From f8ce8345048e05e0ba0a04af2489e62c864c15ba Mon Sep 17 00:00:00 2001 From: qupeng Date: Mon, 4 Sep 2023 17:37:39 +0800 Subject: [PATCH 1/4] init scan txn entries Signed-off-by: qupeng --- go.mod | 2 +- pkg/autoid/autoid.pb.go | 633 +- pkg/brpb/brpb.pb.go | 6936 ++--- pkg/cdcpb/cdcpb.pb.go | 2813 +- pkg/configpb/configpb.pb.go | 2583 +- pkg/coprocessor/coprocessor.pb.go | 1793 +- pkg/deadlock/deadlock.pb.go | 705 +- pkg/debugpb/debugpb.pb.go | 4597 +--- pkg/diagnosticspb/diagnosticspb.pb.go | 955 +- pkg/disaggregated/disaggregated.pb.go | 2937 +-- pkg/disk_usage/disk_usage.pb.go | 21 +- pkg/encryptionpb/encryptionpb.pb.go | 1509 +- pkg/enginepb/enginepb.pb.go | 1449 +- pkg/eraftpb/eraftpb.pb.go | 1524 +- pkg/errorpb/errorpb.pb.go | 2591 +- pkg/gcpb/gcpb.pb.go | 1535 +- pkg/import_kvpb/import_kvpb.pb.go | 2536 +- pkg/import_sstpb/import_sstpb.pb.go | 4811 ++-- pkg/keyspacepb/keyspacepb.pb.go | 1242 +- pkg/kvrpcpb/kvrpcpb.pb.go | 21177 ++++++---------- pkg/logbackuppb/logbackuppb.pb.go | 827 +- pkg/meta_storagepb/meta_storagepb.pb.go | 1636 +- pkg/metapb/metapb.pb.go | 1515 +- pkg/mpp/mpp.pb.go | 1715 +- pkg/pdpb/pdpb.pb.go | 16570 ++++-------- pkg/raft_cmdpb/raft_cmdpb.pb.go | 7222 ++---- pkg/raft_serverpb/raft_serverpb.pb.go | 4272 +--- pkg/recoverdatapb/recoverdatapb.pb.go | 1080 +- .../replication_modepb.pb.go | 589 +- pkg/resource_manager/resource_manager.pb.go | 3459 +-- .../resource_usage_agent.pb.go | 674 +- pkg/tikvpb/tikvpb.pb.go | 4989 ++-- pkg/tracepb/tracepb.pb.go | 1107 +- pkg/tsopb/tsopb.pb.go | 1684 +- proto/kvrpcpb.proto | 45 + proto/tikvpb.proto | 5 + scripts/proto.lock | 118 + 37 files changed, 35918 insertions(+), 73938 deletions(-) diff --git a/go.mod b/go.mod index a36ce5b5e..31e2a37c7 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.3 github.com/grpc-ecosystem/grpc-gateway v1.16.0 + golang.org/x/net v0.10.0 golang.org/x/tools v0.6.0 google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 google.golang.org/grpc v1.51.0 @@ -13,7 +14,6 @@ require ( github.com/ghodss/yaml v1.0.0 // indirect github.com/golang/glog v1.1.0 // indirect golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.10.0 // indirect golang.org/x/sys v0.8.0 // indirect golang.org/x/text v0.9.0 // indirect google.golang.org/protobuf v1.30.0 // indirect diff --git a/pkg/autoid/autoid.pb.go b/pkg/autoid/autoid.pb.go index a4b5e1b8d..9d70e45f7 100644 --- a/pkg/autoid/autoid.pb.go +++ b/pkg/autoid/autoid.pb.go @@ -1,20 +1,33 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: autoid.proto +/* +Package autoid is a generated protocol buffer package. + +It is generated from these files: + + autoid.proto + +It has these top-level messages: + + AutoIDRequest + AutoIDResponse + RebaseRequest + RebaseResponse +*/ package autoid import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,53 +39,22 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type AutoIDRequest struct { - DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` - TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` - IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` - N uint64 `protobuf:"varint,4,opt,name=n,proto3" json:"n,omitempty"` - Increment int64 `protobuf:"varint,5,opt,name=increment,proto3" json:"increment,omitempty"` - Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` - KeyspaceID uint32 `protobuf:"varint,7,opt,name=keyspaceID,proto3" json:"keyspaceID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AutoIDRequest) Reset() { *m = AutoIDRequest{} } -func (m *AutoIDRequest) String() string { return proto.CompactTextString(m) } -func (*AutoIDRequest) ProtoMessage() {} -func (*AutoIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d81e5bb779eac45f, []int{0} -} -func (m *AutoIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AutoIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AutoIDRequest.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 *AutoIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AutoIDRequest.Merge(m, src) -} -func (m *AutoIDRequest) XXX_Size() int { - return m.Size() -} -func (m *AutoIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AutoIDRequest.DiscardUnknown(m) + DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` + TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` + IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` + N uint64 `protobuf:"varint,4,opt,name=n,proto3" json:"n,omitempty"` + Increment int64 `protobuf:"varint,5,opt,name=increment,proto3" json:"increment,omitempty"` + Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + KeyspaceID uint32 `protobuf:"varint,7,opt,name=keyspaceID,proto3" json:"keyspaceID,omitempty"` } -var xxx_messageInfo_AutoIDRequest proto.InternalMessageInfo +func (m *AutoIDRequest) Reset() { *m = AutoIDRequest{} } +func (m *AutoIDRequest) String() string { return proto.CompactTextString(m) } +func (*AutoIDRequest) ProtoMessage() {} +func (*AutoIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{0} } func (m *AutoIDRequest) GetDbID() int64 { if m != nil { @@ -124,46 +106,15 @@ func (m *AutoIDRequest) GetKeyspaceID() uint32 { } type AutoIDResponse struct { - Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` - Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` - Errmsg []byte `protobuf:"bytes,3,opt,name=errmsg,proto3" json:"errmsg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` + Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` + Errmsg []byte `protobuf:"bytes,3,opt,name=errmsg,proto3" json:"errmsg,omitempty"` } -func (m *AutoIDResponse) Reset() { *m = AutoIDResponse{} } -func (m *AutoIDResponse) String() string { return proto.CompactTextString(m) } -func (*AutoIDResponse) ProtoMessage() {} -func (*AutoIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d81e5bb779eac45f, []int{1} -} -func (m *AutoIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AutoIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AutoIDResponse.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 *AutoIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AutoIDResponse.Merge(m, src) -} -func (m *AutoIDResponse) XXX_Size() int { - return m.Size() -} -func (m *AutoIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AutoIDResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AutoIDResponse proto.InternalMessageInfo +func (m *AutoIDResponse) Reset() { *m = AutoIDResponse{} } +func (m *AutoIDResponse) String() string { return proto.CompactTextString(m) } +func (*AutoIDResponse) ProtoMessage() {} +func (*AutoIDResponse) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{1} } func (m *AutoIDResponse) GetMin() int64 { if m != nil { @@ -187,48 +138,17 @@ func (m *AutoIDResponse) GetErrmsg() []byte { } type RebaseRequest struct { - DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` - TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` - IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` - Base int64 `protobuf:"varint,4,opt,name=base,proto3" json:"base,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` + TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` + IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` + Base int64 `protobuf:"varint,4,opt,name=base,proto3" json:"base,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` } -func (m *RebaseRequest) Reset() { *m = RebaseRequest{} } -func (m *RebaseRequest) String() string { return proto.CompactTextString(m) } -func (*RebaseRequest) ProtoMessage() {} -func (*RebaseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d81e5bb779eac45f, []int{2} -} -func (m *RebaseRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RebaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RebaseRequest.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 *RebaseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebaseRequest.Merge(m, src) -} -func (m *RebaseRequest) XXX_Size() int { - return m.Size() -} -func (m *RebaseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebaseRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RebaseRequest proto.InternalMessageInfo +func (m *RebaseRequest) Reset() { *m = RebaseRequest{} } +func (m *RebaseRequest) String() string { return proto.CompactTextString(m) } +func (*RebaseRequest) ProtoMessage() {} +func (*RebaseRequest) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{2} } func (m *RebaseRequest) GetDbID() int64 { if m != nil { @@ -266,44 +186,13 @@ func (m *RebaseRequest) GetForce() bool { } type RebaseResponse struct { - Errmsg []byte `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Errmsg []byte `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"` } -func (m *RebaseResponse) Reset() { *m = RebaseResponse{} } -func (m *RebaseResponse) String() string { return proto.CompactTextString(m) } -func (*RebaseResponse) ProtoMessage() {} -func (*RebaseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d81e5bb779eac45f, []int{3} -} -func (m *RebaseResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RebaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RebaseResponse.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 *RebaseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebaseResponse.Merge(m, src) -} -func (m *RebaseResponse) XXX_Size() int { - return m.Size() -} -func (m *RebaseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RebaseResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RebaseResponse proto.InternalMessageInfo +func (m *RebaseResponse) Reset() { *m = RebaseResponse{} } +func (m *RebaseResponse) String() string { return proto.CompactTextString(m) } +func (*RebaseResponse) ProtoMessage() {} +func (*RebaseResponse) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{3} } func (m *RebaseResponse) GetErrmsg() []byte { if m != nil { @@ -319,36 +208,6 @@ func init() { proto.RegisterType((*RebaseResponse)(nil), "autoid.RebaseResponse") } -func init() { proto.RegisterFile("autoid.proto", fileDescriptor_d81e5bb779eac45f) } - -var fileDescriptor_d81e5bb779eac45f = []byte{ - // 384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbf, 0x4e, 0xf3, 0x30, - 0x14, 0xc5, 0xeb, 0x2f, 0x69, 0xbe, 0x72, 0xfb, 0x87, 0xca, 0x2a, 0x55, 0x54, 0xa1, 0x28, 0xca, - 0x80, 0x32, 0x05, 0x09, 0x26, 0x16, 0xa4, 0xa2, 0x2c, 0x91, 0x98, 0x2c, 0xf1, 0x00, 0x49, 0xea, - 0x46, 0x51, 0x5b, 0xbb, 0xc4, 0x4e, 0x05, 0x33, 0x0b, 0x8f, 0xc0, 0x23, 0xf0, 0x12, 0xec, 0x8c, - 0x8c,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48, 0xed, 0xbc, 0x27, 0x04, 0x7d, 0x42, 0x93, - 0x58, 0xd0, 0xbf, 0x9f, 0x06, 0x06, 0xb3, 0x2a, 0xac, 0x06, 0x62, 0x10, 0xa5, 0xab, 0x4a, 0x73, - 0x5e, 0xa4, 0x54, 0xcd, 0xa3, 0x43, 0xb4, 0xf1, 0x7c, 0x18, 0xec, 0x42, 0xd4, 0x6f, 0x6a, 0xf2, - 0xa2, 0xfd, 0xbc, 0x17, 0xcf, 0x08, 0xba, 0xfa, 0xf9, 0xd3, 0xe5, 0x92, 0xa7, 0xf8, 0x1a, 0xba, - 0x4a, 0x68, 0x86, 0x4f, 0x82, 0x7a, 0x35, 0x0e, 0xfe, 0xf0, 0x64, 0xfc, 0x1b, 0xeb, 0x2e, 0x5e, - 0x0b, 0x5f, 0x81, 0xa5, 0x3b, 0x37, 0x57, 0x0f, 0xc6, 0xd1, 0x5c, 0x3d, 0x0c, 0xe8, 0xb5, 0x6e, - 0xce, 0x3e, 0x5f, 0x3b, 0xe8, 0x7d, 0xeb, 0xa0, 0x8f, 0xad, 0x83, 0xbe, 0xb6, 0x0e, 0x7a, 0xf9, - 0x76, 0x5a, 0x30, 0xe4, 0x45, 0x16, 0xc8, 0x7c, 0xb1, 0x09, 0x16, 0x1b, 0xb5, 0x70, 0x89, 0xa5, - 0x3e, 0x97, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe8, 0x66, 0x90, 0xb6, 0x02, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -357,9 +216,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// AutoIDAllocClient is the client API for AutoIDAlloc service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for AutoIDAlloc service + type AutoIDAllocClient interface { AllocAutoID(ctx context.Context, in *AutoIDRequest, opts ...grpc.CallOption) (*AutoIDResponse, error) Rebase(ctx context.Context, in *RebaseRequest, opts ...grpc.CallOption) (*RebaseResponse, error) @@ -375,7 +233,7 @@ func NewAutoIDAllocClient(cc *grpc.ClientConn) AutoIDAllocClient { func (c *autoIDAllocClient) AllocAutoID(ctx context.Context, in *AutoIDRequest, opts ...grpc.CallOption) (*AutoIDResponse, error) { out := new(AutoIDResponse) - err := c.cc.Invoke(ctx, "/autoid.AutoIDAlloc/AllocAutoID", in, out, opts...) + err := grpc.Invoke(ctx, "/autoid.AutoIDAlloc/AllocAutoID", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -384,30 +242,20 @@ func (c *autoIDAllocClient) AllocAutoID(ctx context.Context, in *AutoIDRequest, func (c *autoIDAllocClient) Rebase(ctx context.Context, in *RebaseRequest, opts ...grpc.CallOption) (*RebaseResponse, error) { out := new(RebaseResponse) - err := c.cc.Invoke(ctx, "/autoid.AutoIDAlloc/Rebase", in, out, opts...) + err := grpc.Invoke(ctx, "/autoid.AutoIDAlloc/Rebase", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// AutoIDAllocServer is the server API for AutoIDAlloc service. +// Server API for AutoIDAlloc service + type AutoIDAllocServer interface { AllocAutoID(context.Context, *AutoIDRequest) (*AutoIDResponse, error) Rebase(context.Context, *RebaseRequest) (*RebaseResponse, error) } -// UnimplementedAutoIDAllocServer can be embedded to have forward compatible implementations. -type UnimplementedAutoIDAllocServer struct { -} - -func (*UnimplementedAutoIDAllocServer) AllocAutoID(ctx context.Context, req *AutoIDRequest) (*AutoIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllocAutoID not implemented") -} -func (*UnimplementedAutoIDAllocServer) Rebase(ctx context.Context, req *RebaseRequest) (*RebaseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Rebase not implemented") -} - func RegisterAutoIDAllocServer(s *grpc.Server, srv AutoIDAllocServer) { s.RegisterService(&_AutoIDAlloc_serviceDesc, srv) } @@ -468,7 +316,7 @@ var _AutoIDAlloc_serviceDesc = grpc.ServiceDesc{ func (m *AutoIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -476,66 +324,57 @@ func (m *AutoIDRequest) Marshal() (dAtA []byte, err error) { } func (m *AutoIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AutoIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.KeyspaceID != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.KeyspaceID)) - i-- - dAtA[i] = 0x38 - } - if m.Offset != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x30 - } - if m.Increment != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.Increment)) - i-- - dAtA[i] = 0x28 + if m.DbID != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) } - if m.N != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.N)) - i-- - dAtA[i] = 0x20 + if m.TblID != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) } if m.IsUnsigned { - i-- + dAtA[i] = 0x18 + i++ if m.IsUnsigned { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.TblID != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) - i-- - dAtA[i] = 0x10 + if m.N != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.N)) } - if m.DbID != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) - i-- - dAtA[i] = 0x8 + if m.Increment != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.Increment)) } - return len(dAtA) - i, nil + if m.Offset != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.Offset)) + } + if m.KeyspaceID != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.KeyspaceID)) + } + return i, nil } func (m *AutoIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -543,43 +382,33 @@ func (m *AutoIDResponse) Marshal() (dAtA []byte, err error) { } func (m *AutoIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AutoIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Errmsg) > 0 { - i -= len(m.Errmsg) - copy(dAtA[i:], m.Errmsg) - i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) - i-- - dAtA[i] = 0x1a + if m.Min != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.Min)) } if m.Max != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.Max)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.Max)) } - if m.Min != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.Min)) - i-- - dAtA[i] = 0x8 + if len(m.Errmsg) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) + i += copy(dAtA[i:], m.Errmsg) } - return len(dAtA) - i, nil + return i, nil } func (m *RebaseRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -587,61 +416,52 @@ func (m *RebaseRequest) Marshal() (dAtA []byte, err error) { } func (m *RebaseRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RebaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.DbID != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) } - if m.Force { - i-- - if m.Force { + if m.TblID != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) + } + if m.IsUnsigned { + dAtA[i] = 0x18 + i++ + if m.IsUnsigned { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 + i++ } if m.Base != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.Base)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintAutoid(dAtA, i, uint64(m.Base)) } - if m.IsUnsigned { - i-- - if m.IsUnsigned { + if m.Force { + dAtA[i] = 0x28 + i++ + if m.Force { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - if m.TblID != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) - i-- - dAtA[i] = 0x10 - } - if m.DbID != 0 { - i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RebaseResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -649,44 +469,29 @@ func (m *RebaseResponse) Marshal() (dAtA []byte, err error) { } func (m *RebaseResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RebaseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Errmsg) > 0 { - i -= len(m.Errmsg) - copy(dAtA[i:], m.Errmsg) - i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) + i += copy(dAtA[i:], m.Errmsg) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintAutoid(dAtA []byte, offset int, v uint64) int { - offset -= sovAutoid(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *AutoIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.DbID != 0 { @@ -710,16 +515,10 @@ func (m *AutoIDRequest) Size() (n int) { if m.KeyspaceID != 0 { n += 1 + sovAutoid(uint64(m.KeyspaceID)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AutoIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Min != 0 { @@ -732,16 +531,10 @@ func (m *AutoIDResponse) Size() (n int) { if l > 0 { n += 1 + l + sovAutoid(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RebaseRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.DbID != 0 { @@ -759,30 +552,28 @@ func (m *RebaseRequest) Size() (n int) { if m.Force { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RebaseResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Errmsg) if l > 0 { n += 1 + l + sovAutoid(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovAutoid(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozAutoid(x uint64) (n int) { return sovAutoid(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -802,7 +593,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -830,7 +621,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DbID |= int64(b&0x7F) << shift + m.DbID |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -849,7 +640,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TblID |= int64(b&0x7F) << shift + m.TblID |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -868,7 +659,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -888,7 +679,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.N |= uint64(b&0x7F) << shift + m.N |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -907,7 +698,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Increment |= int64(b&0x7F) << shift + m.Increment |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -926,7 +717,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Offset |= int64(b&0x7F) << shift + m.Offset |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -945,7 +736,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceID |= uint32(b&0x7F) << shift + m.KeyspaceID |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -956,13 +747,12 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -987,7 +777,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1015,7 +805,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Min |= int64(b&0x7F) << shift + m.Min |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1034,7 +824,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Max |= int64(b&0x7F) << shift + m.Max |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1053,7 +843,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1062,9 +852,6 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAutoid } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAutoid - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1079,13 +866,12 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1110,7 +896,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1138,7 +924,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DbID |= int64(b&0x7F) << shift + m.DbID |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1157,7 +943,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TblID |= int64(b&0x7F) << shift + m.TblID |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1176,7 +962,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1196,7 +982,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Base |= int64(b&0x7F) << shift + m.Base |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1215,7 +1001,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1227,13 +1013,12 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1258,7 +1043,7 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1286,7 +1071,7 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1295,9 +1080,6 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAutoid } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAutoid - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1312,13 +1094,12 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1331,7 +1112,6 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { func skipAutoid(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1363,8 +1143,10 @@ func skipAutoid(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1381,34 +1163,83 @@ func skipAutoid(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthAutoid } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAutoid + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAutoid + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipAutoid(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthAutoid - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthAutoid = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAutoid = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAutoid = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthAutoid = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAutoid = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("autoid.proto", fileDescriptorAutoid) } + +var fileDescriptorAutoid = []byte{ + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0xeb, 0x2f, 0x69, 0xbe, 0x72, 0xfb, 0x87, 0xca, 0x2a, 0x55, 0x54, 0xa1, 0x28, 0xca, + 0x80, 0x32, 0x05, 0x09, 0x26, 0x16, 0xa4, 0xa2, 0x2c, 0x91, 0x98, 0x2c, 0xf1, 0x00, 0x49, 0xea, + 0x46, 0x51, 0x5b, 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xc4, 0x0f, 0x75, 0xf6, 0x4a, 0x56, + 0xdd, 0x68, 0x51, 0xac, 0x44, 0xa6, 0x52, 0xf7, 0x48, 0xed, 0xbc, 0x27, 0x04, 0x7d, 0x42, 0x93, + 0x58, 0xd0, 0xbf, 0x9f, 0x06, 0x06, 0xb3, 0x2a, 0xac, 0x06, 0x62, 0x10, 0xa5, 0xab, 0x4a, 0x73, + 0x5e, 0xa4, 0x54, 0xcd, 0xa3, 0x43, 0xb4, 0xf1, 0x7c, 0x18, 0xec, 0x42, 0xd4, 0x6f, 0x6a, 0xf2, + 0xa2, 0xfd, 0xbc, 0x17, 0xcf, 0x08, 0xba, 0xfa, 0xf9, 0xd3, 0xe5, 0x92, 0xa7, 0xf8, 0x1a, 0xba, + 0x4a, 0x68, 0x86, 0x4f, 0x82, 0x7a, 0x35, 0x0e, 0xfe, 0xf0, 0x64, 0xfc, 0x1b, 0xeb, 0x2e, 0x5e, + 0x0b, 0x5f, 0x81, 0xa5, 0x3b, 0x37, 0x57, 0x0f, 0xc6, 0xd1, 0x5c, 0x3d, 0x0c, 0xe8, 0xb5, 0x6e, + 0xce, 0x3e, 0x5f, 0x3b, 0xe8, 0x7d, 0xeb, 0xa0, 0x8f, 0xad, 0x83, 0xbe, 0xb6, 0x0e, 0x7a, 0xf9, + 0x76, 0x5a, 0x30, 0xe4, 0x45, 0x16, 0xc8, 0x7c, 0xb1, 0x09, 0x16, 0x1b, 0xb5, 0x70, 0x89, 0xa5, + 0x3e, 0x97, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe8, 0x66, 0x90, 0xb6, 0x02, 0x00, 0x00, +} diff --git a/pkg/brpb/brpb.pb.go b/pkg/brpb/brpb.pb.go index dd430a106..925d48846 100644 --- a/pkg/brpb/brpb.pb.go +++ b/pkg/brpb/brpb.pb.go @@ -1,24 +1,76 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: brpb.proto +/* +Package backup is a generated protocol buffer package. + +It is generated from these files: + + brpb.proto + +It has these top-level messages: + + BackupMeta + File + MetaFile + PlacementPolicy + Schema + IDMap + PitrTableMap + PitrDBMap + RawRange + ClusterIDError + Error + CipherInfo + BackupRequest + StreamBackupTaskInfo + StorageBackend + Noop + Local + S3 + GCS + AzureCustomerKey + AzureBlobStorage + Bucket + CloudDynamic + HDFS + BackupResponse + CleanupRequest + CleanupResponse + PrepareRequest + PrepareResponse + CheckAdminRequest + CheckAdminResponse + ExternalStorageRestoreRequest + ExternalStorageRestoreResponse + ExternalStorageSaveRequest + ExternalStorageSaveResponse + Metadata + DataFileGroup + DataFileInfo + StreamBackupError +*/ package backup import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" - errorpb "github.com/pingcap/kvproto/pkg/errorpb" kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + + encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -30,7 +82,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // sst files or log files compression algorithm // for log files, unknown means not use compression algorithm @@ -49,7 +101,6 @@ var CompressionType_name = map[int32]string{ 2: "SNAPPY", 3: "ZSTD", } - var CompressionType_value = map[string]int32{ "UNKNOWN": 0, "LZ4": 1, @@ -60,10 +111,7 @@ var CompressionType_value = map[string]int32{ func (x CompressionType) String() string { return proto.EnumName(CompressionType_name, int32(x)) } - -func (CompressionType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{0} -} +func (CompressionType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{0} } // BackupMpde represents the mode of this whole backup request to the cluster. // and we need to store it in `backupmeta`. @@ -84,7 +132,6 @@ var BackupMode_name = map[int32]string{ 0: "SCAN", 1: "FILE", } - var BackupMode_value = map[string]int32{ "SCAN": 0, "FILE": 1, @@ -93,10 +140,7 @@ var BackupMode_value = map[string]int32{ func (x BackupMode) String() string { return proto.EnumName(BackupMode_name, int32(x)) } - -func (BackupMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{1} -} +func (BackupMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{1} } type MetaVersion int32 @@ -109,7 +153,6 @@ var MetaVersion_name = map[int32]string{ 0: "V1", 1: "V2", } - var MetaVersion_value = map[string]int32{ "V1": 0, "V2": 1, @@ -118,10 +161,7 @@ var MetaVersion_value = map[string]int32{ func (x MetaVersion) String() string { return proto.EnumName(MetaVersion_name, int32(x)) } - -func (MetaVersion) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{2} -} +func (MetaVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{2} } type FileType int32 @@ -134,7 +174,6 @@ var FileType_name = map[int32]string{ 0: "Delete", 1: "Put", } - var FileType_value = map[string]int32{ "Delete": 0, "Put": 1, @@ -143,10 +182,7 @@ var FileType_value = map[string]int32{ func (x FileType) String() string { return proto.EnumName(FileType_name, int32(x)) } - -func (FileType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{3} -} +func (FileType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{3} } // The message save the metadata of a backup. type BackupMeta struct { @@ -160,9 +196,9 @@ type BackupMeta struct { // A set of files that compose a backup. // Note: `files` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` + Files []*File `protobuf:"bytes,4,rep,name=files" json:"files,omitempty"` // An index to files contains data files. - FileIndex *MetaFile `protobuf:"bytes,13,opt,name=file_index,json=fileIndex,proto3" json:"file_index,omitempty"` + FileIndex *MetaFile `protobuf:"bytes,13,opt,name=file_index,json=fileIndex" json:"file_index,omitempty"` // A pair of timestamp specifies a time range of a backup. // For full backup, the start_version equals to the end_version, // it means point in time. @@ -173,74 +209,43 @@ type BackupMeta struct { // Table metadata describes database and table info. // Note: `schemas` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - Schemas []*Schema `protobuf:"bytes,7,rep,name=schemas,proto3" json:"schemas,omitempty"` + Schemas []*Schema `protobuf:"bytes,7,rep,name=schemas" json:"schemas,omitempty"` // An index to files contains Schemas. - SchemaIndex *MetaFile `protobuf:"bytes,14,opt,name=schema_index,json=schemaIndex,proto3" json:"schema_index,omitempty"` + SchemaIndex *MetaFile `protobuf:"bytes,14,opt,name=schema_index,json=schemaIndex" json:"schema_index,omitempty"` // If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be // ignored, and the backup data's range is represented by raw_ranges. IsRawKv bool `protobuf:"varint,8,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` // Note: `raw_ranges` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - RawRanges []*RawRange `protobuf:"bytes,9,rep,name=raw_ranges,json=rawRanges,proto3" json:"raw_ranges,omitempty"` + RawRanges []*RawRange `protobuf:"bytes,9,rep,name=raw_ranges,json=rawRanges" json:"raw_ranges,omitempty"` // An index to files contains RawRanges. - RawRangeIndex *MetaFile `protobuf:"bytes,15,opt,name=raw_range_index,json=rawRangeIndex,proto3" json:"raw_range_index,omitempty"` + RawRangeIndex *MetaFile `protobuf:"bytes,15,opt,name=raw_range_index,json=rawRangeIndex" json:"raw_range_index,omitempty"` // In incremental backup, DDLs which are completed in // (lastBackupTS, backupTS] will be stored here. // Note: `raw_ranges` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. Ddls []byte `protobuf:"bytes,10,opt,name=ddls,proto3" json:"ddls,omitempty"` // An index to files contains DDLs. - DdlIndexes *MetaFile `protobuf:"bytes,16,opt,name=ddl_indexes,json=ddlIndexes,proto3" json:"ddl_indexes,omitempty"` + DdlIndexes *MetaFile `protobuf:"bytes,16,opt,name=ddl_indexes,json=ddlIndexes" json:"ddl_indexes,omitempty"` // the backup result into `backupmeta` file BackupResult string `protobuf:"bytes,17,opt,name=backup_result,json=backupResult,proto3" json:"backup_result,omitempty"` // API version implies the encode of the key and value. ApiVersion kvrpcpb.APIVersion `protobuf:"varint,18,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // the placement policy info in backup cluster. we assume the policy won't be too much for one cluster. - Policies []*PlacementPolicy `protobuf:"bytes,19,rep,name=policies,proto3" json:"policies,omitempty"` + Policies []*PlacementPolicy `protobuf:"bytes,19,rep,name=policies" json:"policies,omitempty"` // new_collations_enabled specifies the config `new_collations_enabled_on_first_bootstrap` in tidb. NewCollationsEnabled string `protobuf:"bytes,20,opt,name=new_collations_enabled,json=newCollationsEnabled,proto3" json:"new_collations_enabled,omitempty"` // If in txn kv mode, `schemas` will be ignored, the backup data's range is as same as normal backup. IsTxnKv bool `protobuf:"varint,21,opt,name=is_txn_kv,json=isTxnKv,proto3" json:"is_txn_kv,omitempty"` // maintain the id mapping from upstream cluster to downstream cluster. - DbMaps []*PitrDBMap `protobuf:"bytes,22,rep,name=db_maps,json=dbMaps,proto3" json:"db_maps,omitempty"` - Mode BackupMode `protobuf:"varint,23,opt,name=mode,proto3,enum=backup.BackupMode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BackupMeta) Reset() { *m = BackupMeta{} } -func (m *BackupMeta) String() string { return proto.CompactTextString(m) } -func (*BackupMeta) ProtoMessage() {} -func (*BackupMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{0} -} -func (m *BackupMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupMeta.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 *BackupMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupMeta.Merge(m, src) -} -func (m *BackupMeta) XXX_Size() int { - return m.Size() -} -func (m *BackupMeta) XXX_DiscardUnknown() { - xxx_messageInfo_BackupMeta.DiscardUnknown(m) + DbMaps []*PitrDBMap `protobuf:"bytes,22,rep,name=db_maps,json=dbMaps" json:"db_maps,omitempty"` + Mode BackupMode `protobuf:"varint,23,opt,name=mode,proto3,enum=backup.BackupMode" json:"mode,omitempty"` } -var xxx_messageInfo_BackupMeta proto.InternalMessageInfo +func (m *BackupMeta) Reset() { *m = BackupMeta{} } +func (m *BackupMeta) String() string { return proto.CompactTextString(m) } +func (*BackupMeta) ProtoMessage() {} +func (*BackupMeta) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{0} } func (m *BackupMeta) GetClusterId() uint64 { if m != nil { @@ -409,44 +414,13 @@ type File struct { Cf string `protobuf:"bytes,10,opt,name=cf,proto3" json:"cf,omitempty"` Size_ uint64 `protobuf:"varint,11,opt,name=size,proto3" json:"size,omitempty"` // cipher_iv is used for AES cipher - CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *File) Reset() { *m = File{} } -func (m *File) String() string { return proto.CompactTextString(m) } -func (*File) ProtoMessage() {} -func (*File) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{1} -} -func (m *File) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_File.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 *File) XXX_Merge(src proto.Message) { - xxx_messageInfo_File.Merge(m, src) -} -func (m *File) XXX_Size() int { - return m.Size() -} -func (m *File) XXX_DiscardUnknown() { - xxx_messageInfo_File.DiscardUnknown(m) + CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` } -var xxx_messageInfo_File proto.InternalMessageInfo +func (m *File) Reset() { *m = File{} } +func (m *File) String() string { return proto.CompactTextString(m) } +func (*File) ProtoMessage() {} +func (*File) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{1} } func (m *File) GetName() string { if m != nil { @@ -536,52 +510,21 @@ func (m *File) GetCipherIv() []byte { type MetaFile struct { // A set of files that contains a MetaFile. // It is used as a multi-level index. - MetaFiles []*File `protobuf:"bytes,1,rep,name=meta_files,json=metaFiles,proto3" json:"meta_files,omitempty"` + MetaFiles []*File `protobuf:"bytes,1,rep,name=meta_files,json=metaFiles" json:"meta_files,omitempty"` // A set of files that contains user data. - DataFiles []*File `protobuf:"bytes,2,rep,name=data_files,json=dataFiles,proto3" json:"data_files,omitempty"` + DataFiles []*File `protobuf:"bytes,2,rep,name=data_files,json=dataFiles" json:"data_files,omitempty"` // A set of files that contains Schemas. - Schemas []*Schema `protobuf:"bytes,3,rep,name=schemas,proto3" json:"schemas,omitempty"` + Schemas []*Schema `protobuf:"bytes,3,rep,name=schemas" json:"schemas,omitempty"` // A set of files that contains RawRanges. - RawRanges []*RawRange `protobuf:"bytes,4,rep,name=raw_ranges,json=rawRanges,proto3" json:"raw_ranges,omitempty"` + RawRanges []*RawRange `protobuf:"bytes,4,rep,name=raw_ranges,json=rawRanges" json:"raw_ranges,omitempty"` // A set of files that contains DDLs. - Ddls [][]byte `protobuf:"bytes,5,rep,name=ddls,proto3" json:"ddls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MetaFile) Reset() { *m = MetaFile{} } -func (m *MetaFile) String() string { return proto.CompactTextString(m) } -func (*MetaFile) ProtoMessage() {} -func (*MetaFile) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{2} -} -func (m *MetaFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetaFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetaFile.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 *MetaFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetaFile.Merge(m, src) -} -func (m *MetaFile) XXX_Size() int { - return m.Size() -} -func (m *MetaFile) XXX_DiscardUnknown() { - xxx_messageInfo_MetaFile.DiscardUnknown(m) + Ddls [][]byte `protobuf:"bytes,5,rep,name=ddls" json:"ddls,omitempty"` } -var xxx_messageInfo_MetaFile proto.InternalMessageInfo +func (m *MetaFile) Reset() { *m = MetaFile{} } +func (m *MetaFile) String() string { return proto.CompactTextString(m) } +func (*MetaFile) ProtoMessage() {} +func (*MetaFile) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{2} } func (m *MetaFile) GetMetaFiles() []*File { if m != nil { @@ -619,44 +562,13 @@ func (m *MetaFile) GetDdls() [][]byte { } type PlacementPolicy struct { - Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} } -func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } -func (*PlacementPolicy) ProtoMessage() {} -func (*PlacementPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{3} -} -func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PlacementPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PlacementPolicy.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 *PlacementPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlacementPolicy.Merge(m, src) -} -func (m *PlacementPolicy) XXX_Size() int { - return m.Size() -} -func (m *PlacementPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PlacementPolicy.DiscardUnknown(m) + Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` } -var xxx_messageInfo_PlacementPolicy proto.InternalMessageInfo +func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} } +func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } +func (*PlacementPolicy) ProtoMessage() {} +func (*PlacementPolicy) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{3} } func (m *PlacementPolicy) GetInfo() []byte { if m != nil { @@ -674,44 +586,13 @@ type Schema struct { TiflashReplicas uint32 `protobuf:"varint,6,opt,name=tiflash_replicas,json=tiflashReplicas,proto3" json:"tiflash_replicas,omitempty"` // stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON // https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116 - Stats []byte `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Schema) Reset() { *m = Schema{} } -func (m *Schema) String() string { return proto.CompactTextString(m) } -func (*Schema) ProtoMessage() {} -func (*Schema) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{4} -} -func (m *Schema) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Schema.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 *Schema) XXX_Merge(src proto.Message) { - xxx_messageInfo_Schema.Merge(m, src) -} -func (m *Schema) XXX_Size() int { - return m.Size() -} -func (m *Schema) XXX_DiscardUnknown() { - xxx_messageInfo_Schema.DiscardUnknown(m) + Stats []byte `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"` } -var xxx_messageInfo_Schema proto.InternalMessageInfo +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{4} } func (m *Schema) GetDb() []byte { if m != nil { @@ -763,45 +644,14 @@ func (m *Schema) GetStats() []byte { } type IDMap struct { - UpstreamId int64 `protobuf:"varint,1,opt,name=upstream_id,json=upstreamId,proto3" json:"upstream_id,omitempty"` - DownstreamId int64 `protobuf:"varint,2,opt,name=downstream_id,json=downstreamId,proto3" json:"downstream_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IDMap) Reset() { *m = IDMap{} } -func (m *IDMap) String() string { return proto.CompactTextString(m) } -func (*IDMap) ProtoMessage() {} -func (*IDMap) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{5} -} -func (m *IDMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IDMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IDMap.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 *IDMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_IDMap.Merge(m, src) -} -func (m *IDMap) XXX_Size() int { - return m.Size() -} -func (m *IDMap) XXX_DiscardUnknown() { - xxx_messageInfo_IDMap.DiscardUnknown(m) + UpstreamId int64 `protobuf:"varint,1,opt,name=upstream_id,json=upstreamId,proto3" json:"upstream_id,omitempty"` + DownstreamId int64 `protobuf:"varint,2,opt,name=downstream_id,json=downstreamId,proto3" json:"downstream_id,omitempty"` } -var xxx_messageInfo_IDMap proto.InternalMessageInfo +func (m *IDMap) Reset() { *m = IDMap{} } +func (m *IDMap) String() string { return proto.CompactTextString(m) } +func (*IDMap) ProtoMessage() {} +func (*IDMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{5} } func (m *IDMap) GetUpstreamId() int64 { if m != nil { @@ -818,46 +668,15 @@ func (m *IDMap) GetDownstreamId() int64 { } type PitrTableMap struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap,proto3" json:"id_map,omitempty"` - Partitions []*IDMap `protobuf:"bytes,3,rep,name=partitions,proto3" json:"partitions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PitrTableMap) Reset() { *m = PitrTableMap{} } -func (m *PitrTableMap) String() string { return proto.CompactTextString(m) } -func (*PitrTableMap) ProtoMessage() {} -func (*PitrTableMap) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{6} -} -func (m *PitrTableMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PitrTableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PitrTableMap.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 *PitrTableMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_PitrTableMap.Merge(m, src) -} -func (m *PitrTableMap) XXX_Size() int { - return m.Size() -} -func (m *PitrTableMap) XXX_DiscardUnknown() { - xxx_messageInfo_PitrTableMap.DiscardUnknown(m) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap" json:"id_map,omitempty"` + Partitions []*IDMap `protobuf:"bytes,3,rep,name=partitions" json:"partitions,omitempty"` } -var xxx_messageInfo_PitrTableMap proto.InternalMessageInfo +func (m *PitrTableMap) Reset() { *m = PitrTableMap{} } +func (m *PitrTableMap) String() string { return proto.CompactTextString(m) } +func (*PitrTableMap) ProtoMessage() {} +func (*PitrTableMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{6} } func (m *PitrTableMap) GetName() string { if m != nil { @@ -881,46 +700,15 @@ func (m *PitrTableMap) GetPartitions() []*IDMap { } type PitrDBMap struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap,proto3" json:"id_map,omitempty"` - Tables []*PitrTableMap `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PitrDBMap) Reset() { *m = PitrDBMap{} } -func (m *PitrDBMap) String() string { return proto.CompactTextString(m) } -func (*PitrDBMap) ProtoMessage() {} -func (*PitrDBMap) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{7} -} -func (m *PitrDBMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PitrDBMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PitrDBMap.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 *PitrDBMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_PitrDBMap.Merge(m, src) -} -func (m *PitrDBMap) XXX_Size() int { - return m.Size() -} -func (m *PitrDBMap) XXX_DiscardUnknown() { - xxx_messageInfo_PitrDBMap.DiscardUnknown(m) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap" json:"id_map,omitempty"` + Tables []*PitrTableMap `protobuf:"bytes,3,rep,name=tables" json:"tables,omitempty"` } -var xxx_messageInfo_PitrDBMap proto.InternalMessageInfo +func (m *PitrDBMap) Reset() { *m = PitrDBMap{} } +func (m *PitrDBMap) String() string { return proto.CompactTextString(m) } +func (*PitrDBMap) ProtoMessage() {} +func (*PitrDBMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{7} } func (m *PitrDBMap) GetName() string { if m != nil { @@ -944,46 +732,15 @@ func (m *PitrDBMap) GetTables() []*PitrTableMap { } type RawRange struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawRange) Reset() { *m = RawRange{} } -func (m *RawRange) String() string { return proto.CompactTextString(m) } -func (*RawRange) ProtoMessage() {} -func (*RawRange) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{8} -} -func (m *RawRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawRange.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 *RawRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawRange.Merge(m, src) -} -func (m *RawRange) XXX_Size() int { - return m.Size() -} -func (m *RawRange) XXX_DiscardUnknown() { - xxx_messageInfo_RawRange.DiscardUnknown(m) + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` } -var xxx_messageInfo_RawRange proto.InternalMessageInfo +func (m *RawRange) Reset() { *m = RawRange{} } +func (m *RawRange) String() string { return proto.CompactTextString(m) } +func (*RawRange) ProtoMessage() {} +func (*RawRange) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{8} } func (m *RawRange) GetStartKey() []byte { if m != nil { @@ -1007,45 +764,14 @@ func (m *RawRange) GetCf() string { } type ClusterIDError struct { - Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterIDError) Reset() { *m = ClusterIDError{} } -func (m *ClusterIDError) String() string { return proto.CompactTextString(m) } -func (*ClusterIDError) ProtoMessage() {} -func (*ClusterIDError) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{9} -} -func (m *ClusterIDError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterIDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterIDError.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 *ClusterIDError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterIDError.Merge(m, src) -} -func (m *ClusterIDError) XXX_Size() int { - return m.Size() -} -func (m *ClusterIDError) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterIDError.DiscardUnknown(m) + Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` } -var xxx_messageInfo_ClusterIDError proto.InternalMessageInfo +func (m *ClusterIDError) Reset() { *m = ClusterIDError{} } +func (m *ClusterIDError) String() string { return proto.CompactTextString(m) } +func (*ClusterIDError) ProtoMessage() {} +func (*ClusterIDError) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{9} } func (m *ClusterIDError) GetCurrent() uint64 { if m != nil { @@ -1067,44 +793,13 @@ type Error struct { // *Error_ClusterIdError // *Error_KvError // *Error_RegionError - Detail isError_Detail `protobuf_oneof:"detail"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{10} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Detail isError_Detail `protobuf_oneof:"detail"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{10} } type isError_Detail interface { isError_Detail() @@ -1113,13 +808,13 @@ type isError_Detail interface { } type Error_ClusterIdError struct { - ClusterIdError *ClusterIDError `protobuf:"bytes,3,opt,name=cluster_id_error,json=clusterIdError,proto3,oneof" json:"cluster_id_error,omitempty"` + ClusterIdError *ClusterIDError `protobuf:"bytes,3,opt,name=cluster_id_error,json=clusterIdError,oneof"` } type Error_KvError struct { - KvError *kvrpcpb.KeyError `protobuf:"bytes,4,opt,name=kv_error,json=kvError,proto3,oneof" json:"kv_error,omitempty"` + KvError *kvrpcpb.KeyError `protobuf:"bytes,4,opt,name=kv_error,json=kvError,oneof"` } type Error_RegionError struct { - RegionError *errorpb.Error `protobuf:"bytes,5,opt,name=region_error,json=regionError,proto3,oneof" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,5,opt,name=region_error,json=regionError,oneof"` } func (*Error_ClusterIdError) isError_Detail() {} @@ -1161,55 +856,108 @@ func (m *Error) GetRegionError() *errorpb.Error { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Error) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Error) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Error_OneofMarshaler, _Error_OneofUnmarshaler, _Error_OneofSizer, []interface{}{ (*Error_ClusterIdError)(nil), (*Error_KvError)(nil), (*Error_RegionError)(nil), } } -type CipherInfo struct { - CipherType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=cipher_type,json=cipherType,proto3,enum=encryptionpb.EncryptionMethod" json:"cipher_type,omitempty"` - CipherKey []byte `protobuf:"bytes,2,opt,name=cipher_key,json=cipherKey,proto3" json:"cipher_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CipherInfo) Reset() { *m = CipherInfo{} } -func (m *CipherInfo) String() string { return proto.CompactTextString(m) } -func (*CipherInfo) ProtoMessage() {} -func (*CipherInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{11} -} -func (m *CipherInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CipherInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CipherInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _Error_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Error) + // detail + switch x := m.Detail.(type) { + case *Error_ClusterIdError: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ClusterIdError); err != nil { + return err } - return b[:n], nil + case *Error_KvError: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.KvError); err != nil { + return err + } + case *Error_RegionError: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RegionError); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Error.Detail has unexpected type %T", x) } + return nil } -func (m *CipherInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CipherInfo.Merge(m, src) -} -func (m *CipherInfo) XXX_Size() int { - return m.Size() + +func _Error_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Error) + switch tag { + case 3: // detail.cluster_id_error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ClusterIDError) + err := b.DecodeMessage(msg) + m.Detail = &Error_ClusterIdError{msg} + return true, err + case 4: // detail.kv_error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.KeyError) + err := b.DecodeMessage(msg) + m.Detail = &Error_KvError{msg} + return true, err + case 5: // detail.region_error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(errorpb.Error) + err := b.DecodeMessage(msg) + m.Detail = &Error_RegionError{msg} + return true, err + default: + return false, nil + } +} + +func _Error_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Error) + // detail + switch x := m.Detail.(type) { + case *Error_ClusterIdError: + s := proto.Size(x.ClusterIdError) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *Error_KvError: + s := proto.Size(x.KvError) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *Error_RegionError: + s := proto.Size(x.RegionError) + n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *CipherInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CipherInfo.DiscardUnknown(m) + +type CipherInfo struct { + CipherType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=cipher_type,json=cipherType,proto3,enum=encryptionpb.EncryptionMethod" json:"cipher_type,omitempty"` + CipherKey []byte `protobuf:"bytes,2,opt,name=cipher_key,json=cipherKey,proto3" json:"cipher_key,omitempty"` } -var xxx_messageInfo_CipherInfo proto.InternalMessageInfo +func (m *CipherInfo) Reset() { *m = CipherInfo{} } +func (m *CipherInfo) String() string { return proto.CompactTextString(m) } +func (*CipherInfo) ProtoMessage() {} +func (*CipherInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{11} } func (m *CipherInfo) GetCipherType() encryptionpb.EncryptionMethod { if m != nil { @@ -1235,7 +983,7 @@ type BackupRequest struct { RateLimit uint64 `protobuf:"varint,7,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` // The concurrency for executing the backup request in every tikv node. Concurrency uint32 `protobuf:"varint,8,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - StorageBackend *StorageBackend `protobuf:"bytes,9,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + StorageBackend *StorageBackend `protobuf:"bytes,9,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` // If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf` // specifies which cf to backup. IsRawKv bool `protobuf:"varint,10,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` @@ -1245,7 +993,7 @@ type BackupRequest struct { // sst compression level, some algorithms support negative compression levels CompressionLevel int32 `protobuf:"varint,13,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"` // The cipher_info is Used to encrypt sst - CipherInfo *CipherInfo `protobuf:"bytes,14,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` + CipherInfo *CipherInfo `protobuf:"bytes,14,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` // dst_api_version indicates the key-value encoding version used by the // generated SST file. Accepted values: // 1. "v1": the generated SST files are encoded with api-v1, can be restored @@ -1255,7 +1003,7 @@ type BackupRequest struct { DstApiVersion kvrpcpb.APIVersion `protobuf:"varint,15,opt,name=dst_api_version,json=dstApiVersion,proto3,enum=kvrpcpb.APIVersion" json:"dst_api_version,omitempty"` // with checkpoint, some subintervals of the range have been backed up and recorded. // only the remaining sub ranges of the range need to be backed up this time. - SubRanges []*kvrpcpb.KeyRange `protobuf:"bytes,16,rep,name=sub_ranges,json=subRanges,proto3" json:"sub_ranges,omitempty"` + SubRanges []*kvrpcpb.KeyRange `protobuf:"bytes,16,rep,name=sub_ranges,json=subRanges" json:"sub_ranges,omitempty"` // replica_read indicates whether to use replica read for backup. // If it is false, the backup will only read data from leader. // If it is true, the backup will read data from both leader and follower. @@ -1264,45 +1012,14 @@ type BackupRequest struct { // unique_id represents the handle of this backup. after we implement file-copy backup. // we need generate some internal states during the whole backup precedure. // this unique id is help to find the state effictively. - UniqueId string `protobuf:"bytes,19,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,20,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BackupRequest) Reset() { *m = BackupRequest{} } -func (m *BackupRequest) String() string { return proto.CompactTextString(m) } -func (*BackupRequest) ProtoMessage() {} -func (*BackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{12} -} -func (m *BackupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupRequest.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 *BackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupRequest.Merge(m, src) -} -func (m *BackupRequest) XXX_Size() int { - return m.Size() -} -func (m *BackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BackupRequest.DiscardUnknown(m) + UniqueId string `protobuf:"bytes,19,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,20,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_BackupRequest proto.InternalMessageInfo +func (m *BackupRequest) Reset() { *m = BackupRequest{} } +func (m *BackupRequest) String() string { return proto.CompactTextString(m) } +func (*BackupRequest) ProtoMessage() {} +func (*BackupRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{12} } func (m *BackupRequest) GetClusterId() uint64 { if m != nil { @@ -1439,7 +1156,7 @@ func (m *BackupRequest) GetContext() *kvrpcpb.Context { type StreamBackupTaskInfo struct { // The storage for backup, parsed by BR. - Storage *StorageBackend `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` + Storage *StorageBackend `protobuf:"bytes,1,opt,name=storage" json:"storage,omitempty"` // The time range for backing up. StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` EndTs uint64 `protobuf:"varint,3,opt,name=end_ts,json=endTs,proto3" json:"end_ts,omitempty"` @@ -1448,46 +1165,15 @@ type StreamBackupTaskInfo struct { Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The table filter of the task. // Only for displaying the task info. - TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter,proto3" json:"table_filter,omitempty"` + TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter" json:"table_filter,omitempty"` // compression type - CompressionType CompressionType `protobuf:"varint,6,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StreamBackupTaskInfo) Reset() { *m = StreamBackupTaskInfo{} } -func (m *StreamBackupTaskInfo) String() string { return proto.CompactTextString(m) } -func (*StreamBackupTaskInfo) ProtoMessage() {} -func (*StreamBackupTaskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{13} -} -func (m *StreamBackupTaskInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamBackupTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StreamBackupTaskInfo.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 *StreamBackupTaskInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamBackupTaskInfo.Merge(m, src) -} -func (m *StreamBackupTaskInfo) XXX_Size() int { - return m.Size() -} -func (m *StreamBackupTaskInfo) XXX_DiscardUnknown() { - xxx_messageInfo_StreamBackupTaskInfo.DiscardUnknown(m) + CompressionType CompressionType `protobuf:"varint,6,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` } -var xxx_messageInfo_StreamBackupTaskInfo proto.InternalMessageInfo +func (m *StreamBackupTaskInfo) Reset() { *m = StreamBackupTaskInfo{} } +func (m *StreamBackupTaskInfo) String() string { return proto.CompactTextString(m) } +func (*StreamBackupTaskInfo) ProtoMessage() {} +func (*StreamBackupTaskInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{13} } func (m *StreamBackupTaskInfo) GetStorage() *StorageBackend { if m != nil { @@ -1540,44 +1226,13 @@ type StorageBackend struct { // *StorageBackend_CloudDynamic // *StorageBackend_Hdfs // *StorageBackend_AzureBlobStorage - Backend isStorageBackend_Backend `protobuf_oneof:"backend"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StorageBackend) Reset() { *m = StorageBackend{} } -func (m *StorageBackend) String() string { return proto.CompactTextString(m) } -func (*StorageBackend) ProtoMessage() {} -func (*StorageBackend) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{14} -} -func (m *StorageBackend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StorageBackend.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 *StorageBackend) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageBackend.Merge(m, src) -} -func (m *StorageBackend) XXX_Size() int { - return m.Size() -} -func (m *StorageBackend) XXX_DiscardUnknown() { - xxx_messageInfo_StorageBackend.DiscardUnknown(m) + Backend isStorageBackend_Backend `protobuf_oneof:"backend"` } -var xxx_messageInfo_StorageBackend proto.InternalMessageInfo +func (m *StorageBackend) Reset() { *m = StorageBackend{} } +func (m *StorageBackend) String() string { return proto.CompactTextString(m) } +func (*StorageBackend) ProtoMessage() {} +func (*StorageBackend) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{14} } type isStorageBackend_Backend interface { isStorageBackend_Backend() @@ -1586,25 +1241,25 @@ type isStorageBackend_Backend interface { } type StorageBackend_Noop struct { - Noop *Noop `protobuf:"bytes,1,opt,name=noop,proto3,oneof" json:"noop,omitempty"` + Noop *Noop `protobuf:"bytes,1,opt,name=noop,oneof"` } type StorageBackend_Local struct { - Local *Local `protobuf:"bytes,2,opt,name=local,proto3,oneof" json:"local,omitempty"` + Local *Local `protobuf:"bytes,2,opt,name=local,oneof"` } type StorageBackend_S3 struct { - S3 *S3 `protobuf:"bytes,3,opt,name=s3,proto3,oneof" json:"s3,omitempty"` + S3 *S3 `protobuf:"bytes,3,opt,name=s3,oneof"` } type StorageBackend_Gcs struct { - Gcs *GCS `protobuf:"bytes,4,opt,name=gcs,proto3,oneof" json:"gcs,omitempty"` + Gcs *GCS `protobuf:"bytes,4,opt,name=gcs,oneof"` } type StorageBackend_CloudDynamic struct { - CloudDynamic *CloudDynamic `protobuf:"bytes,5,opt,name=cloud_dynamic,json=cloudDynamic,proto3,oneof" json:"cloud_dynamic,omitempty"` + CloudDynamic *CloudDynamic `protobuf:"bytes,5,opt,name=cloud_dynamic,json=cloudDynamic,oneof"` } type StorageBackend_Hdfs struct { - Hdfs *HDFS `protobuf:"bytes,6,opt,name=hdfs,proto3,oneof" json:"hdfs,omitempty"` + Hdfs *HDFS `protobuf:"bytes,6,opt,name=hdfs,oneof"` } type StorageBackend_AzureBlobStorage struct { - AzureBlobStorage *AzureBlobStorage `protobuf:"bytes,7,opt,name=azure_blob_storage,json=azureBlobStorage,proto3,oneof" json:"azure_blob_storage,omitempty"` + AzureBlobStorage *AzureBlobStorage `protobuf:"bytes,7,opt,name=azure_blob_storage,json=azureBlobStorage,oneof"` } func (*StorageBackend_Noop) isStorageBackend_Backend() {} @@ -1671,9 +1326,9 @@ func (m *StorageBackend) GetAzureBlobStorage() *AzureBlobStorage { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*StorageBackend) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*StorageBackend) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _StorageBackend_OneofMarshaler, _StorageBackend_OneofUnmarshaler, _StorageBackend_OneofSizer, []interface{}{ (*StorageBackend_Noop)(nil), (*StorageBackend_Local)(nil), (*StorageBackend_S3)(nil), @@ -1684,86 +1339,180 @@ func (*StorageBackend) XXX_OneofWrappers() []interface{} { } } -// Noop storage backend saves files into void. -type Noop struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Noop) Reset() { *m = Noop{} } -func (m *Noop) String() string { return proto.CompactTextString(m) } -func (*Noop) ProtoMessage() {} -func (*Noop) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{15} -} -func (m *Noop) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Noop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Noop.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _StorageBackend_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*StorageBackend) + // backend + switch x := m.Backend.(type) { + case *StorageBackend_Noop: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Noop); err != nil { + return err + } + case *StorageBackend_Local: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Local); err != nil { + return err + } + case *StorageBackend_S3: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.S3); err != nil { + return err + } + case *StorageBackend_Gcs: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Gcs); err != nil { + return err + } + case *StorageBackend_CloudDynamic: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CloudDynamic); err != nil { + return err + } + case *StorageBackend_Hdfs: + _ = b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hdfs); err != nil { + return err + } + case *StorageBackend_AzureBlobStorage: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AzureBlobStorage); err != nil { + return err } - return b[:n], nil + case nil: + default: + return fmt.Errorf("StorageBackend.Backend has unexpected type %T", x) } + return nil } -func (m *Noop) XXX_Merge(src proto.Message) { - xxx_messageInfo_Noop.Merge(m, src) -} -func (m *Noop) XXX_Size() int { - return m.Size() + +func _StorageBackend_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*StorageBackend) + switch tag { + case 1: // backend.noop + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Noop) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Noop{msg} + return true, err + case 2: // backend.local + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Local) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Local{msg} + return true, err + case 3: // backend.s3 + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(S3) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_S3{msg} + return true, err + case 4: // backend.gcs + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GCS) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Gcs{msg} + return true, err + case 5: // backend.cloud_dynamic + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CloudDynamic) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_CloudDynamic{msg} + return true, err + case 6: // backend.hdfs + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(HDFS) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Hdfs{msg} + return true, err + case 7: // backend.azure_blob_storage + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AzureBlobStorage) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_AzureBlobStorage{msg} + return true, err + default: + return false, nil + } +} + +func _StorageBackend_OneofSizer(msg proto.Message) (n int) { + m := msg.(*StorageBackend) + // backend + switch x := m.Backend.(type) { + case *StorageBackend_Noop: + s := proto.Size(x.Noop) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Local: + s := proto.Size(x.Local) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_S3: + s := proto.Size(x.S3) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Gcs: + s := proto.Size(x.Gcs) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_CloudDynamic: + s := proto.Size(x.CloudDynamic) + n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Hdfs: + s := proto.Size(x.Hdfs) + n += proto.SizeVarint(6<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_AzureBlobStorage: + s := proto.Size(x.AzureBlobStorage) + n += proto.SizeVarint(7<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *Noop) XXX_DiscardUnknown() { - xxx_messageInfo_Noop.DiscardUnknown(m) + +// Noop storage backend saves files into void. +type Noop struct { } -var xxx_messageInfo_Noop proto.InternalMessageInfo +func (m *Noop) Reset() { *m = Noop{} } +func (m *Noop) String() string { return proto.CompactTextString(m) } +func (*Noop) ProtoMessage() {} +func (*Noop) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{15} } // Local storage backend saves files into local disk type Local struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Local) Reset() { *m = Local{} } -func (m *Local) String() string { return proto.CompactTextString(m) } -func (*Local) ProtoMessage() {} -func (*Local) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{16} -} -func (m *Local) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Local.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 *Local) XXX_Merge(src proto.Message) { - xxx_messageInfo_Local.Merge(m, src) -} -func (m *Local) XXX_Size() int { - return m.Size() -} -func (m *Local) XXX_DiscardUnknown() { - xxx_messageInfo_Local.DiscardUnknown(m) + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -var xxx_messageInfo_Local proto.InternalMessageInfo +func (m *Local) Reset() { *m = Local{} } +func (m *Local) String() string { return proto.CompactTextString(m) } +func (*Local) ProtoMessage() {} +func (*Local) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{16} } func (m *Local) GetPath() string { if m != nil { @@ -1781,54 +1530,23 @@ type S3 struct { Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"` StorageClass string `protobuf:"bytes,5,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` // server side encryption - Sse string `protobuf:"bytes,6,opt,name=sse,proto3" json:"sse,omitempty"` - Acl string `protobuf:"bytes,7,opt,name=acl,proto3" json:"acl,omitempty"` - AccessKey string `protobuf:"bytes,8,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretAccessKey string `protobuf:"bytes,9,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` - ForcePathStyle bool `protobuf:"varint,10,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` - SseKmsKeyId string `protobuf:"bytes,11,opt,name=sse_kms_key_id,json=sseKmsKeyId,proto3" json:"sse_kms_key_id,omitempty"` - RoleArn string `protobuf:"bytes,12,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` - ExternalId string `protobuf:"bytes,13,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` - ObjectLockEnabled bool `protobuf:"varint,14,opt,name=object_lock_enabled,json=objectLockEnabled,proto3" json:"object_lock_enabled,omitempty"` - SessionToken string `protobuf:"bytes,15,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` - Provider string `protobuf:"bytes,16,opt,name=provider,proto3" json:"provider,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *S3) Reset() { *m = S3{} } -func (m *S3) String() string { return proto.CompactTextString(m) } -func (*S3) ProtoMessage() {} -func (*S3) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{17} -} -func (m *S3) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *S3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_S3.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 *S3) XXX_Merge(src proto.Message) { - xxx_messageInfo_S3.Merge(m, src) -} -func (m *S3) XXX_Size() int { - return m.Size() -} -func (m *S3) XXX_DiscardUnknown() { - xxx_messageInfo_S3.DiscardUnknown(m) -} - -var xxx_messageInfo_S3 proto.InternalMessageInfo + Sse string `protobuf:"bytes,6,opt,name=sse,proto3" json:"sse,omitempty"` + Acl string `protobuf:"bytes,7,opt,name=acl,proto3" json:"acl,omitempty"` + AccessKey string `protobuf:"bytes,8,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretAccessKey string `protobuf:"bytes,9,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` + ForcePathStyle bool `protobuf:"varint,10,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` + SseKmsKeyId string `protobuf:"bytes,11,opt,name=sse_kms_key_id,json=sseKmsKeyId,proto3" json:"sse_kms_key_id,omitempty"` + RoleArn string `protobuf:"bytes,12,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` + ExternalId string `protobuf:"bytes,13,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + ObjectLockEnabled bool `protobuf:"varint,14,opt,name=object_lock_enabled,json=objectLockEnabled,proto3" json:"object_lock_enabled,omitempty"` + SessionToken string `protobuf:"bytes,15,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Provider string `protobuf:"bytes,16,opt,name=provider,proto3" json:"provider,omitempty"` +} + +func (m *S3) Reset() { *m = S3{} } +func (m *S3) String() string { return proto.CompactTextString(m) } +func (*S3) ProtoMessage() {} +func (*S3) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{17} } func (m *S3) GetEndpoint() string { if m != nil { @@ -1955,44 +1673,13 @@ type GCS struct { // Service Account Credentials JSON blob // You can get one from https://console.cloud.google.com/apis/credentials, and // copy the content, set it as string here. - CredentialsBlob string `protobuf:"bytes,6,opt,name=credentials_blob,json=credentialsBlob,proto3" json:"credentials_blob,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GCS) Reset() { *m = GCS{} } -func (m *GCS) String() string { return proto.CompactTextString(m) } -func (*GCS) ProtoMessage() {} -func (*GCS) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{18} -} -func (m *GCS) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GCS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GCS.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 *GCS) XXX_Merge(src proto.Message) { - xxx_messageInfo_GCS.Merge(m, src) -} -func (m *GCS) XXX_Size() int { - return m.Size() -} -func (m *GCS) XXX_DiscardUnknown() { - xxx_messageInfo_GCS.DiscardUnknown(m) + CredentialsBlob string `protobuf:"bytes,6,opt,name=credentials_blob,json=credentialsBlob,proto3" json:"credentials_blob,omitempty"` } -var xxx_messageInfo_GCS proto.InternalMessageInfo +func (m *GCS) Reset() { *m = GCS{} } +func (m *GCS) String() string { return proto.CompactTextString(m) } +func (*GCS) ProtoMessage() {} +func (*GCS) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{18} } func (m *GCS) GetEndpoint() string { if m != nil { @@ -2041,44 +1728,13 @@ type AzureCustomerKey struct { // A Base64-encoded AES-256 encryption key value. EncryptionKey string `protobuf:"bytes,1,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` // The Base64-encoded SHA256 of the encryption key. - EncryptionKeySha256 string `protobuf:"bytes,2,opt,name=encryption_key_sha256,json=encryptionKeySha256,proto3" json:"encryption_key_sha256,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AzureCustomerKey) Reset() { *m = AzureCustomerKey{} } -func (m *AzureCustomerKey) String() string { return proto.CompactTextString(m) } -func (*AzureCustomerKey) ProtoMessage() {} -func (*AzureCustomerKey) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{19} -} -func (m *AzureCustomerKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureCustomerKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AzureCustomerKey.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 *AzureCustomerKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureCustomerKey.Merge(m, src) -} -func (m *AzureCustomerKey) XXX_Size() int { - return m.Size() -} -func (m *AzureCustomerKey) XXX_DiscardUnknown() { - xxx_messageInfo_AzureCustomerKey.DiscardUnknown(m) + EncryptionKeySha256 string `protobuf:"bytes,2,opt,name=encryption_key_sha256,json=encryptionKeySha256,proto3" json:"encryption_key_sha256,omitempty"` } -var xxx_messageInfo_AzureCustomerKey proto.InternalMessageInfo +func (m *AzureCustomerKey) Reset() { *m = AzureCustomerKey{} } +func (m *AzureCustomerKey) String() string { return proto.CompactTextString(m) } +func (*AzureCustomerKey) ProtoMessage() {} +func (*AzureCustomerKey) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{19} } func (m *AzureCustomerKey) GetEncryptionKey() string { if m != nil { @@ -2141,44 +1797,13 @@ type AzureBlobStorage struct { // // See https://learn.microsoft.com/en-us/azure/storage/blobs/encryption-customer-provided-keys // - EncryptionKey *AzureCustomerKey `protobuf:"bytes,10,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AzureBlobStorage) Reset() { *m = AzureBlobStorage{} } -func (m *AzureBlobStorage) String() string { return proto.CompactTextString(m) } -func (*AzureBlobStorage) ProtoMessage() {} -func (*AzureBlobStorage) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{20} -} -func (m *AzureBlobStorage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureBlobStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AzureBlobStorage.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 *AzureBlobStorage) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureBlobStorage.Merge(m, src) -} -func (m *AzureBlobStorage) XXX_Size() int { - return m.Size() -} -func (m *AzureBlobStorage) XXX_DiscardUnknown() { - xxx_messageInfo_AzureBlobStorage.DiscardUnknown(m) + EncryptionKey *AzureCustomerKey `protobuf:"bytes,10,opt,name=encryption_key,json=encryptionKey" json:"encryption_key,omitempty"` } -var xxx_messageInfo_AzureBlobStorage proto.InternalMessageInfo +func (m *AzureBlobStorage) Reset() { *m = AzureBlobStorage{} } +func (m *AzureBlobStorage) String() string { return proto.CompactTextString(m) } +func (*AzureBlobStorage) ProtoMessage() {} +func (*AzureBlobStorage) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{20} } func (m *AzureBlobStorage) GetEndpoint() string { if m != nil { @@ -2244,48 +1869,17 @@ func (m *AzureBlobStorage) GetEncryptionKey() *AzureCustomerKey { } type Bucket struct { - Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"` - Prefix string `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"` - StorageClass string `protobuf:"bytes,6,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Bucket) Reset() { *m = Bucket{} } -func (m *Bucket) String() string { return proto.CompactTextString(m) } -func (*Bucket) ProtoMessage() {} -func (*Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{21} -} -func (m *Bucket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Bucket.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 *Bucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_Bucket.Merge(m, src) -} -func (m *Bucket) XXX_Size() int { - return m.Size() -} -func (m *Bucket) XXX_DiscardUnknown() { - xxx_messageInfo_Bucket.DiscardUnknown(m) + Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"` + Prefix string `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"` + StorageClass string `protobuf:"bytes,6,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` } -var xxx_messageInfo_Bucket proto.InternalMessageInfo +func (m *Bucket) Reset() { *m = Bucket{} } +func (m *Bucket) String() string { return proto.CompactTextString(m) } +func (*Bucket) ProtoMessage() {} +func (*Bucket) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{21} } func (m *Bucket) GetEndpoint() string { if m != nil { @@ -2324,46 +1918,15 @@ func (m *Bucket) GetStorageClass() string { // CloudDynamic allows testing new cloud providers and new fields without changing protobuf definitions type CloudDynamic struct { - Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` - ProviderName string `protobuf:"bytes,2,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` - Attrs map[string]string `protobuf:"bytes,3,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudDynamic) Reset() { *m = CloudDynamic{} } -func (m *CloudDynamic) String() string { return proto.CompactTextString(m) } -func (*CloudDynamic) ProtoMessage() {} -func (*CloudDynamic) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{22} -} -func (m *CloudDynamic) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloudDynamic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloudDynamic.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 *CloudDynamic) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudDynamic.Merge(m, src) -} -func (m *CloudDynamic) XXX_Size() int { - return m.Size() -} -func (m *CloudDynamic) XXX_DiscardUnknown() { - xxx_messageInfo_CloudDynamic.DiscardUnknown(m) + Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"` + ProviderName string `protobuf:"bytes,2,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` + Attrs map[string]string `protobuf:"bytes,3,rep,name=attrs" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -var xxx_messageInfo_CloudDynamic proto.InternalMessageInfo +func (m *CloudDynamic) Reset() { *m = CloudDynamic{} } +func (m *CloudDynamic) String() string { return proto.CompactTextString(m) } +func (*CloudDynamic) ProtoMessage() {} +func (*CloudDynamic) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{22} } func (m *CloudDynamic) GetBucket() *Bucket { if m != nil { @@ -2389,44 +1952,13 @@ func (m *CloudDynamic) GetAttrs() map[string]string { // HDFS storage backend saves file into HDFS compatible storages type HDFS struct { // a URL: hdfs:///some/path or hdfs://host:port/some/path - Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HDFS) Reset() { *m = HDFS{} } -func (m *HDFS) String() string { return proto.CompactTextString(m) } -func (*HDFS) ProtoMessage() {} -func (*HDFS) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{23} -} -func (m *HDFS) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HDFS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HDFS.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 *HDFS) XXX_Merge(src proto.Message) { - xxx_messageInfo_HDFS.Merge(m, src) -} -func (m *HDFS) XXX_Size() int { - return m.Size() -} -func (m *HDFS) XXX_DiscardUnknown() { - xxx_messageInfo_HDFS.DiscardUnknown(m) + Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` } -var xxx_messageInfo_HDFS proto.InternalMessageInfo +func (m *HDFS) Reset() { *m = HDFS{} } +func (m *HDFS) String() string { return proto.CompactTextString(m) } +func (*HDFS) ProtoMessage() {} +func (*HDFS) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{23} } func (m *HDFS) GetRemote() string { if m != nil { @@ -2436,49 +1968,18 @@ func (m *HDFS) GetRemote() string { } type BackupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` + Files []*File `protobuf:"bytes,4,rep,name=files" json:"files,omitempty"` // API version implies the encode of the key and value. - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,5,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BackupResponse) Reset() { *m = BackupResponse{} } -func (m *BackupResponse) String() string { return proto.CompactTextString(m) } -func (*BackupResponse) ProtoMessage() {} -func (*BackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{24} -} -func (m *BackupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackupResponse.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 *BackupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupResponse.Merge(m, src) -} -func (m *BackupResponse) XXX_Size() int { - return m.Size() -} -func (m *BackupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BackupResponse.DiscardUnknown(m) + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,5,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` } -var xxx_messageInfo_BackupResponse proto.InternalMessageInfo +func (m *BackupResponse) Reset() { *m = BackupResponse{} } +func (m *BackupResponse) String() string { return proto.CompactTextString(m) } +func (*BackupResponse) ProtoMessage() {} +func (*BackupResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{24} } func (m *BackupResponse) GetError() *Error { if m != nil { @@ -2518,44 +2019,13 @@ func (m *BackupResponse) GetApiVersion() kvrpcpb.APIVersion { type CleanupRequest struct { // unique_id represents the unique handle of the whole backup predecure. // it generated in prepare request and corrosponed to one specific backup. - UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{25} -} -func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupRequest.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 *CleanupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupRequest.Merge(m, src) -} -func (m *CleanupRequest) XXX_Size() int { - return m.Size() -} -func (m *CleanupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupRequest.DiscardUnknown(m) + UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` } -var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo +func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } +func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupRequest) ProtoMessage() {} +func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{25} } func (m *CleanupRequest) GetUniqueId() string { if m != nil { @@ -2565,45 +2035,14 @@ func (m *CleanupRequest) GetUniqueId() string { } type CleanupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{26} -} -func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupResponse.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 *CleanupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupResponse.Merge(m, src) -} -func (m *CleanupResponse) XXX_Size() int { - return m.Size() -} -func (m *CleanupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` } -var xxx_messageInfo_CleanupResponse proto.InternalMessageInfo +func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } +func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } +func (*CleanupResponse) ProtoMessage() {} +func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{26} } func (m *CleanupResponse) GetError() *Error { if m != nil { @@ -2621,44 +2060,13 @@ func (m *CleanupResponse) GetSuccess() bool { type PrepareRequest struct { // whether save state to the storage. - SaveToStorage bool `protobuf:"varint,1,opt,name=save_to_storage,json=saveToStorage,proto3" json:"save_to_storage,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrepareRequest) Reset() { *m = PrepareRequest{} } -func (m *PrepareRequest) String() string { return proto.CompactTextString(m) } -func (*PrepareRequest) ProtoMessage() {} -func (*PrepareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{27} -} -func (m *PrepareRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareRequest.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 *PrepareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareRequest.Merge(m, src) -} -func (m *PrepareRequest) XXX_Size() int { - return m.Size() -} -func (m *PrepareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareRequest.DiscardUnknown(m) + SaveToStorage bool `protobuf:"varint,1,opt,name=save_to_storage,json=saveToStorage,proto3" json:"save_to_storage,omitempty"` } -var xxx_messageInfo_PrepareRequest proto.InternalMessageInfo +func (m *PrepareRequest) Reset() { *m = PrepareRequest{} } +func (m *PrepareRequest) String() string { return proto.CompactTextString(m) } +func (*PrepareRequest) ProtoMessage() {} +func (*PrepareRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{27} } func (m *PrepareRequest) GetSaveToStorage() bool { if m != nil { @@ -2668,50 +2076,19 @@ func (m *PrepareRequest) GetSaveToStorage() bool { } type PrepareResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` // unique_id represents the unique handle of the whole backup predecure. // if unique_id = 0 means prepare failed. // if unique_id > 0 means prepare success and all states saved with this unique info. - UniqueId string `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - CollectFileCount uint64 `protobuf:"varint,3,opt,name=collect_file_count,json=collectFileCount,proto3" json:"collect_file_count,omitempty"` - CollectFileSize uint64 `protobuf:"varint,4,opt,name=collect_file_size,json=collectFileSize,proto3" json:"collect_file_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrepareResponse) Reset() { *m = PrepareResponse{} } -func (m *PrepareResponse) String() string { return proto.CompactTextString(m) } -func (*PrepareResponse) ProtoMessage() {} -func (*PrepareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{28} -} -func (m *PrepareResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareResponse.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 *PrepareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareResponse.Merge(m, src) -} -func (m *PrepareResponse) XXX_Size() int { - return m.Size() -} -func (m *PrepareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareResponse.DiscardUnknown(m) + UniqueId string `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + CollectFileCount uint64 `protobuf:"varint,3,opt,name=collect_file_count,json=collectFileCount,proto3" json:"collect_file_count,omitempty"` + CollectFileSize uint64 `protobuf:"varint,4,opt,name=collect_file_size,json=collectFileSize,proto3" json:"collect_file_size,omitempty"` } -var xxx_messageInfo_PrepareResponse proto.InternalMessageInfo +func (m *PrepareResponse) Reset() { *m = PrepareResponse{} } +func (m *PrepareResponse) String() string { return proto.CompactTextString(m) } +func (*PrepareResponse) ProtoMessage() {} +func (*PrepareResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{28} } func (m *PrepareResponse) GetError() *Error { if m != nil { @@ -2742,85 +2119,23 @@ func (m *PrepareResponse) GetCollectFileSize() uint64 { } type CheckAdminRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckAdminRequest) Reset() { *m = CheckAdminRequest{} } -func (m *CheckAdminRequest) String() string { return proto.CompactTextString(m) } -func (*CheckAdminRequest) ProtoMessage() {} -func (*CheckAdminRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{29} -} -func (m *CheckAdminRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckAdminRequest.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 *CheckAdminRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckAdminRequest.Merge(m, src) -} -func (m *CheckAdminRequest) XXX_Size() int { - return m.Size() -} -func (m *CheckAdminRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckAdminRequest.DiscardUnknown(m) } -var xxx_messageInfo_CheckAdminRequest proto.InternalMessageInfo +func (m *CheckAdminRequest) Reset() { *m = CheckAdminRequest{} } +func (m *CheckAdminRequest) String() string { return proto.CompactTextString(m) } +func (*CheckAdminRequest) ProtoMessage() {} +func (*CheckAdminRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{29} } type CheckAdminResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - HasPendingAdmin bool `protobuf:"varint,3,opt,name=has_pending_admin,json=hasPendingAdmin,proto3" json:"has_pending_admin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckAdminResponse) Reset() { *m = CheckAdminResponse{} } -func (m *CheckAdminResponse) String() string { return proto.CompactTextString(m) } -func (*CheckAdminResponse) ProtoMessage() {} -func (*CheckAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{30} -} -func (m *CheckAdminResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckAdminResponse.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 *CheckAdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckAdminResponse.Merge(m, src) -} -func (m *CheckAdminResponse) XXX_Size() int { - return m.Size() -} -func (m *CheckAdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckAdminResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + HasPendingAdmin bool `protobuf:"varint,3,opt,name=has_pending_admin,json=hasPendingAdmin,proto3" json:"has_pending_admin,omitempty"` } -var xxx_messageInfo_CheckAdminResponse proto.InternalMessageInfo +func (m *CheckAdminResponse) Reset() { *m = CheckAdminResponse{} } +func (m *CheckAdminResponse) String() string { return proto.CompactTextString(m) } +func (*CheckAdminResponse) ProtoMessage() {} +func (*CheckAdminResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{30} } func (m *CheckAdminResponse) GetError() *Error { if m != nil { @@ -2844,48 +2159,19 @@ func (m *CheckAdminResponse) GetHasPendingAdmin() bool { } type ExternalStorageRestoreRequest struct { - StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` - ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - RestoreName string `protobuf:"bytes,3,opt,name=restore_name,json=restoreName,proto3" json:"restore_name,omitempty"` - ContentLength uint64 `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` + ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + RestoreName string `protobuf:"bytes,3,opt,name=restore_name,json=restoreName,proto3" json:"restore_name,omitempty"` + ContentLength uint64 `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` } func (m *ExternalStorageRestoreRequest) Reset() { *m = ExternalStorageRestoreRequest{} } func (m *ExternalStorageRestoreRequest) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreRequest) ProtoMessage() {} func (*ExternalStorageRestoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{31} -} -func (m *ExternalStorageRestoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalStorageRestoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalStorageRestoreRequest.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 *ExternalStorageRestoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalStorageRestoreRequest.Merge(m, src) -} -func (m *ExternalStorageRestoreRequest) XXX_Size() int { - return m.Size() -} -func (m *ExternalStorageRestoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalStorageRestoreRequest.DiscardUnknown(m) + return fileDescriptorBrpb, []int{31} } -var xxx_messageInfo_ExternalStorageRestoreRequest proto.InternalMessageInfo - func (m *ExternalStorageRestoreRequest) GetStorageBackend() *StorageBackend { if m != nil { return m.StorageBackend @@ -2915,85 +2201,25 @@ func (m *ExternalStorageRestoreRequest) GetContentLength() uint64 { } type ExternalStorageRestoreResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ExternalStorageRestoreResponse) Reset() { *m = ExternalStorageRestoreResponse{} } func (m *ExternalStorageRestoreResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreResponse) ProtoMessage() {} func (*ExternalStorageRestoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{32} -} -func (m *ExternalStorageRestoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorBrpb, []int{32} } -func (m *ExternalStorageRestoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalStorageRestoreResponse.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 *ExternalStorageRestoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalStorageRestoreResponse.Merge(m, src) -} -func (m *ExternalStorageRestoreResponse) XXX_Size() int { - return m.Size() -} -func (m *ExternalStorageRestoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalStorageRestoreResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalStorageRestoreResponse proto.InternalMessageInfo type ExternalStorageSaveRequest struct { - StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` - ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - ContentLength uint64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalStorageSaveRequest) Reset() { *m = ExternalStorageSaveRequest{} } -func (m *ExternalStorageSaveRequest) String() string { return proto.CompactTextString(m) } -func (*ExternalStorageSaveRequest) ProtoMessage() {} -func (*ExternalStorageSaveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{33} -} -func (m *ExternalStorageSaveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalStorageSaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalStorageSaveRequest.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 *ExternalStorageSaveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalStorageSaveRequest.Merge(m, src) -} -func (m *ExternalStorageSaveRequest) XXX_Size() int { - return m.Size() -} -func (m *ExternalStorageSaveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalStorageSaveRequest.DiscardUnknown(m) + StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` + ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + ContentLength uint64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` } -var xxx_messageInfo_ExternalStorageSaveRequest proto.InternalMessageInfo +func (m *ExternalStorageSaveRequest) Reset() { *m = ExternalStorageSaveRequest{} } +func (m *ExternalStorageSaveRequest) String() string { return proto.CompactTextString(m) } +func (*ExternalStorageSaveRequest) ProtoMessage() {} +func (*ExternalStorageSaveRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{33} } func (m *ExternalStorageSaveRequest) GetStorageBackend() *StorageBackend { if m != nil { @@ -3017,90 +2243,30 @@ func (m *ExternalStorageSaveRequest) GetContentLength() uint64 { } type ExternalStorageSaveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ExternalStorageSaveResponse) Reset() { *m = ExternalStorageSaveResponse{} } func (m *ExternalStorageSaveResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageSaveResponse) ProtoMessage() {} func (*ExternalStorageSaveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{34} -} -func (m *ExternalStorageSaveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalStorageSaveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExternalStorageSaveResponse.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 *ExternalStorageSaveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalStorageSaveResponse.Merge(m, src) -} -func (m *ExternalStorageSaveResponse) XXX_Size() int { - return m.Size() -} -func (m *ExternalStorageSaveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalStorageSaveResponse.DiscardUnknown(m) + return fileDescriptorBrpb, []int{34} } -var xxx_messageInfo_ExternalStorageSaveResponse proto.InternalMessageInfo - type Metadata struct { // deprecated after(in) v6.3.0 TiKV cluster - Files []*DataFileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` - FileGroups []*DataFileGroup `protobuf:"bytes,6,rep,name=file_groups,json=fileGroups,proto3" json:"file_groups,omitempty"` - StoreId int64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - MaxTs uint64 `protobuf:"varint,4,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - MinTs uint64 `protobuf:"varint,5,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` - MetaVersion MetaVersion `protobuf:"varint,7,opt,name=meta_version,json=metaVersion,proto3,enum=backup.MetaVersion" json:"meta_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{35} -} -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Metadata.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 *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) -} -func (m *Metadata) XXX_Size() int { - return m.Size() -} -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) + Files []*DataFileInfo `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"` + FileGroups []*DataFileGroup `protobuf:"bytes,6,rep,name=file_groups,json=fileGroups" json:"file_groups,omitempty"` + StoreId int64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + MaxTs uint64 `protobuf:"varint,4,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + MinTs uint64 `protobuf:"varint,5,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` + MetaVersion MetaVersion `protobuf:"varint,7,opt,name=meta_version,json=metaVersion,proto3,enum=backup.MetaVersion" json:"meta_version,omitempty"` } -var xxx_messageInfo_Metadata proto.InternalMessageInfo +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{35} } func (m *Metadata) GetFiles() []*DataFileInfo { if m != nil { @@ -3156,8 +2322,8 @@ type DataFileGroup struct { // Path of the file. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Partitions of the file. - DataFilesInfo []*DataFileInfo `protobuf:"bytes,2,rep,name=data_files_info,json=dataFilesInfo,proto3" json:"data_files_info,omitempty"` - /// Below are extra information of the file, for better filtering files. + DataFilesInfo []*DataFileInfo `protobuf:"bytes,2,rep,name=data_files_info,json=dataFilesInfo" json:"data_files_info,omitempty"` + // / Below are extra information of the file, for better filtering files. // The min ts of the keys in the file. MinTs uint64 `protobuf:"varint,3,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` // The max ts of the keys in the file. @@ -3165,44 +2331,13 @@ type DataFileGroup struct { // The resolved ts of the region when saving the file. MinResolvedTs uint64 `protobuf:"varint,5,opt,name=min_resolved_ts,json=minResolvedTs,proto3" json:"min_resolved_ts,omitempty"` // The file length after compressed. - Length uint64 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataFileGroup) Reset() { *m = DataFileGroup{} } -func (m *DataFileGroup) String() string { return proto.CompactTextString(m) } -func (*DataFileGroup) ProtoMessage() {} -func (*DataFileGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{36} -} -func (m *DataFileGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataFileGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataFileGroup.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 *DataFileGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataFileGroup.Merge(m, src) -} -func (m *DataFileGroup) XXX_Size() int { - return m.Size() -} -func (m *DataFileGroup) XXX_DiscardUnknown() { - xxx_messageInfo_DataFileGroup.DiscardUnknown(m) + Length uint64 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` } -var xxx_messageInfo_DataFileGroup proto.InternalMessageInfo +func (m *DataFileGroup) Reset() { *m = DataFileGroup{} } +func (m *DataFileGroup) String() string { return proto.CompactTextString(m) } +func (*DataFileGroup) ProtoMessage() {} +func (*DataFileGroup) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{36} } func (m *DataFileGroup) GetPath() string { if m != nil { @@ -3252,7 +2387,7 @@ type DataFileInfo struct { // Path of the file. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` NumberOfEntries int64 `protobuf:"varint,3,opt,name=number_of_entries,json=numberOfEntries,proto3" json:"number_of_entries,omitempty"` - /// Below are extra information of the file, for better filtering files. + // / Below are extra information of the file, for better filtering files. // The min ts of the keys in the file. MinTs uint64 `protobuf:"varint,4,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` // The max ts of the keys in the file. @@ -3282,44 +2417,13 @@ type DataFileInfo struct { // The range length of the merged file, if it exists. RangeLength uint64 `protobuf:"varint,17,opt,name=range_length,json=rangeLength,proto3" json:"range_length,omitempty"` // The compression type for the file. - CompressionType CompressionType `protobuf:"varint,18,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataFileInfo) Reset() { *m = DataFileInfo{} } -func (m *DataFileInfo) String() string { return proto.CompactTextString(m) } -func (*DataFileInfo) ProtoMessage() {} -func (*DataFileInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{37} -} -func (m *DataFileInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataFileInfo.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 *DataFileInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataFileInfo.Merge(m, src) -} -func (m *DataFileInfo) XXX_Size() int { - return m.Size() -} -func (m *DataFileInfo) XXX_DiscardUnknown() { - xxx_messageInfo_DataFileInfo.DiscardUnknown(m) + CompressionType CompressionType `protobuf:"varint,18,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` } -var xxx_messageInfo_DataFileInfo proto.InternalMessageInfo +func (m *DataFileInfo) Reset() { *m = DataFileInfo{} } +func (m *DataFileInfo) String() string { return proto.CompactTextString(m) } +func (*DataFileInfo) ProtoMessage() {} +func (*DataFileInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{37} } func (m *DataFileInfo) GetSha256() []byte { if m != nil { @@ -3455,44 +2559,13 @@ type StreamBackupError struct { // the user-friendly error message. ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // the store id of who issues the error. - StoreId uint64 `protobuf:"varint,4,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StreamBackupError) Reset() { *m = StreamBackupError{} } -func (m *StreamBackupError) String() string { return proto.CompactTextString(m) } -func (*StreamBackupError) ProtoMessage() {} -func (*StreamBackupError) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{38} -} -func (m *StreamBackupError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamBackupError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StreamBackupError.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 *StreamBackupError) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamBackupError.Merge(m, src) -} -func (m *StreamBackupError) XXX_Size() int { - return m.Size() -} -func (m *StreamBackupError) XXX_DiscardUnknown() { - xxx_messageInfo_StreamBackupError.DiscardUnknown(m) + StoreId uint64 `protobuf:"varint,4,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } -var xxx_messageInfo_StreamBackupError proto.InternalMessageInfo +func (m *StreamBackupError) Reset() { *m = StreamBackupError{} } +func (m *StreamBackupError) String() string { return proto.CompactTextString(m) } +func (*StreamBackupError) ProtoMessage() {} +func (*StreamBackupError) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{38} } func (m *StreamBackupError) GetHappenAt() uint64 { if m != nil { @@ -3523,10 +2596,6 @@ func (m *StreamBackupError) GetStoreId() uint64 { } func init() { - proto.RegisterEnum("backup.CompressionType", CompressionType_name, CompressionType_value) - proto.RegisterEnum("backup.BackupMode", BackupMode_name, BackupMode_value) - proto.RegisterEnum("backup.MetaVersion", MetaVersion_name, MetaVersion_value) - proto.RegisterEnum("backup.FileType", FileType_name, FileType_value) proto.RegisterType((*BackupMeta)(nil), "backup.BackupMeta") proto.RegisterType((*File)(nil), "backup.File") proto.RegisterType((*MetaFile)(nil), "backup.MetaFile") @@ -3550,7 +2619,6 @@ func init() { proto.RegisterType((*AzureBlobStorage)(nil), "backup.AzureBlobStorage") proto.RegisterType((*Bucket)(nil), "backup.Bucket") proto.RegisterType((*CloudDynamic)(nil), "backup.CloudDynamic") - proto.RegisterMapType((map[string]string)(nil), "backup.CloudDynamic.AttrsEntry") proto.RegisterType((*HDFS)(nil), "backup.HDFS") proto.RegisterType((*BackupResponse)(nil), "backup.BackupResponse") proto.RegisterType((*CleanupRequest)(nil), "backup.CleanupRequest") @@ -3567,219 +2635,10 @@ func init() { proto.RegisterType((*DataFileGroup)(nil), "backup.DataFileGroup") proto.RegisterType((*DataFileInfo)(nil), "backup.DataFileInfo") proto.RegisterType((*StreamBackupError)(nil), "backup.StreamBackupError") -} - -func init() { proto.RegisterFile("brpb.proto", fileDescriptor_483d1f48d58a4885) } - -var fileDescriptor_483d1f48d58a4885 = []byte{ - // 3311 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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, 0x83, - 0x95, 0xbc, 0x21, 0x6a, 0x44, 0x04, 0x5f, 0x71, 0xca, 0x2b, 0x26, 0xa3, 0x6f, 0xdc, 0xc1, 0x0b, - 0x92, 0x73, 0x4c, 0x5c, 0x53, 0x4a, 0x2a, 0x2d, 0x56, 0x97, 0xc0, 0xe1, 0xd4, 0xfe, 0xd6, 0x80, - 0xba, 0x76, 0x53, 0xeb, 0xc7, 0x00, 0x98, 0x3d, 0x1d, 0x99, 0x67, 0x8c, 0x2b, 0xf2, 0x4c, 0x63, - 0xac, 0x78, 0x05, 0x32, 0xfb, 0x6e, 0xce, 0x5c, 0xba, 0x8a, 0x19, 0xe9, 0x92, 0xb9, 0x90, 0x21, - 0xca, 0x37, 0x67, 0x88, 0xf9, 0x80, 0x36, 0xdf, 0x1f, 0xd0, 0x3a, 0x2c, 0x2b, 0xab, 0x65, 0x1d, - 0x96, 0xf6, 0x13, 0xe8, 0x2e, 0x38, 0x3c, 0xb2, 0x05, 0xd1, 0x30, 0x26, 0x5f, 0x69, 0x31, 0xfa, - 0xb6, 0xbf, 0x36, 0xa0, 0x2a, 0xf7, 0x47, 0x45, 0xfa, 0x03, 0x45, 0x2c, 0xf9, 0x03, 0xeb, 0x36, - 0x54, 0x32, 0xf4, 0x74, 0xe5, 0x45, 0x72, 0x30, 0x67, 0xc8, 0xf2, 0x4d, 0x86, 0x34, 0x6f, 0x36, - 0x64, 0xe5, 0x1d, 0x43, 0xfe, 0x01, 0xf4, 0xb2, 0x60, 0x18, 0xba, 0xe2, 0xdc, 0x49, 0x79, 0x12, - 0x06, 0x9e, 0x2b, 0xc8, 0x91, 0xda, 0xac, 0xab, 0x70, 0xa6, 0x60, 0x14, 0x4d, 0x64, 0x6e, 0x26, - 0xc8, 0x95, 0x5a, 0x4c, 0x0e, 0xec, 0x57, 0x50, 0x39, 0xdc, 0x7b, 0xe5, 0x26, 0xb8, 0xd5, 0x24, - 0x11, 0x59, 0xca, 0xdd, 0xb1, 0xae, 0x54, 0x65, 0x06, 0x1a, 0x3a, 0xf4, 0xd1, 0xa7, 0xfd, 0xf8, - 0x6d, 0x34, 0x63, 0x29, 0x11, 0x4b, 0x6b, 0x06, 0x1e, 0xfa, 0xf6, 0x5b, 0x68, 0x61, 0xb0, 0x9e, - 0xe2, 0xb1, 0x71, 0xd5, 0xab, 0x42, 0xed, 0x47, 0x50, 0x0d, 0x7c, 0x8c, 0x73, 0x5a, 0xa1, 0xb9, - 0xd9, 0xd6, 0x66, 0x22, 0x41, 0x58, 0x25, 0xf0, 0x71, 0xe6, 0x4f, 0x01, 0x12, 0x37, 0xcd, 0x02, - 0x4a, 0x1f, 0xca, 0xfa, 0x0b, 0x9c, 0x05, 0x06, 0x5b, 0x40, 0x23, 0xcf, 0x12, 0xff, 0x87, 0x5d, - 0x7f, 0x02, 0x55, 0x32, 0x99, 0xde, 0xf1, 0x76, 0x31, 0x05, 0xe9, 0x53, 0x31, 0xc5, 0x63, 0x1f, - 0x43, 0x5d, 0xbb, 0xd6, 0x7c, 0xa2, 0x30, 0xae, 0x4f, 0x14, 0xa5, 0xb9, 0x44, 0x21, 0x03, 0xb1, - 0xac, 0x03, 0xd1, 0xde, 0x83, 0xce, 0xae, 0x6a, 0x0e, 0xf6, 0xf6, 0xb1, 0x41, 0xc1, 0xca, 0xee, - 0x4d, 0xd2, 0x94, 0x47, 0x99, 0xea, 0x1e, 0xf4, 0x10, 0x29, 0x29, 0xff, 0xcd, 0x84, 0x8b, 0x8c, - 0x16, 0x35, 0x99, 0x1e, 0xda, 0xff, 0x66, 0x40, 0x45, 0xce, 0xee, 0x41, 0x79, 0x2c, 0xce, 0x94, - 0x22, 0xf0, 0xd3, 0xda, 0x81, 0xde, 0xac, 0x21, 0x71, 0xa8, 0x09, 0xa2, 0xfd, 0x9b, 0x9b, 0x77, - 0xf5, 0x59, 0xe7, 0x25, 0x38, 0x58, 0xca, 0x9b, 0x91, 0x43, 0x5f, 0xae, 0xba, 0x01, 0xf5, 0xd1, - 0x54, 0x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xfd, 0xa7, 0xc5, 0xa0, 0x4a, 0x7f, - 0xb6, 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x27, 0xf0, 0xf7, 0xed, 0x21, 0x00, 0x00, + proto.RegisterEnum("backup.CompressionType", CompressionType_name, CompressionType_value) + proto.RegisterEnum("backup.BackupMode", BackupMode_name, BackupMode_value) + proto.RegisterEnum("backup.MetaVersion", MetaVersion_name, MetaVersion_value) + proto.RegisterEnum("backup.FileType", FileType_name, FileType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -3790,9 +2649,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// BackupClient is the client API for Backup service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Backup service + type BackupClient interface { Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (Backup_BackupClient, error) // CheckPendingAdminOp used for snapshot backup. before we start snapshot for a TiKV. @@ -3816,7 +2674,7 @@ func NewBackupClient(cc *grpc.ClientConn) BackupClient { } func (c *backupClient) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (Backup_BackupClient, error) { - stream, err := c.cc.NewStream(ctx, &_Backup_serviceDesc.Streams[0], "/backup.Backup/backup", opts...) + stream, err := grpc.NewClientStream(ctx, &_Backup_serviceDesc.Streams[0], c.cc, "/backup.Backup/backup", opts...) if err != nil { return nil, err } @@ -3848,7 +2706,7 @@ func (x *backupBackupClient) Recv() (*BackupResponse, error) { } func (c *backupClient) CheckPendingAdminOp(ctx context.Context, in *CheckAdminRequest, opts ...grpc.CallOption) (Backup_CheckPendingAdminOpClient, error) { - stream, err := c.cc.NewStream(ctx, &_Backup_serviceDesc.Streams[1], "/backup.Backup/CheckPendingAdminOp", opts...) + stream, err := grpc.NewClientStream(ctx, &_Backup_serviceDesc.Streams[1], c.cc, "/backup.Backup/CheckPendingAdminOp", opts...) if err != nil { return nil, err } @@ -3881,7 +2739,7 @@ func (x *backupCheckPendingAdminOpClient) Recv() (*CheckAdminResponse, error) { func (c *backupClient) Prepare(ctx context.Context, in *PrepareRequest, opts ...grpc.CallOption) (*PrepareResponse, error) { out := new(PrepareResponse) - err := c.cc.Invoke(ctx, "/backup.Backup/prepare", in, out, opts...) + err := grpc.Invoke(ctx, "/backup.Backup/prepare", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -3890,14 +2748,15 @@ func (c *backupClient) Prepare(ctx context.Context, in *PrepareRequest, opts ... func (c *backupClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { out := new(CleanupResponse) - err := c.cc.Invoke(ctx, "/backup.Backup/cleanup", in, out, opts...) + err := grpc.Invoke(ctx, "/backup.Backup/cleanup", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// BackupServer is the server API for Backup service. +// Server API for Backup service + type BackupServer interface { Backup(*BackupRequest, Backup_BackupServer) error // CheckPendingAdminOp used for snapshot backup. before we start snapshot for a TiKV. @@ -3912,23 +2771,6 @@ type BackupServer interface { Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) } -// UnimplementedBackupServer can be embedded to have forward compatible implementations. -type UnimplementedBackupServer struct { -} - -func (*UnimplementedBackupServer) Backup(req *BackupRequest, srv Backup_BackupServer) error { - return status.Errorf(codes.Unimplemented, "method Backup not implemented") -} -func (*UnimplementedBackupServer) CheckPendingAdminOp(req *CheckAdminRequest, srv Backup_CheckPendingAdminOpServer) error { - return status.Errorf(codes.Unimplemented, "method CheckPendingAdminOp not implemented") -} -func (*UnimplementedBackupServer) Prepare(ctx context.Context, req *PrepareRequest) (*PrepareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Prepare not implemented") -} -func (*UnimplementedBackupServer) Cleanup(ctx context.Context, req *CleanupRequest) (*CleanupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented") -} - func RegisterBackupServer(s *grpc.Server, srv BackupServer) { s.RegisterService(&_Backup_serviceDesc, srv) } @@ -4039,9 +2881,8 @@ var _Backup_serviceDesc = grpc.ServiceDesc{ Metadata: "brpb.proto", } -// ExternalStorageClient is the client API for ExternalStorage service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ExternalStorage service + type ExternalStorageClient interface { // Restore to a file Restore(ctx context.Context, in *ExternalStorageRestoreRequest, opts ...grpc.CallOption) (*ExternalStorageRestoreResponse, error) @@ -4059,7 +2900,7 @@ func NewExternalStorageClient(cc *grpc.ClientConn) ExternalStorageClient { func (c *externalStorageClient) Restore(ctx context.Context, in *ExternalStorageRestoreRequest, opts ...grpc.CallOption) (*ExternalStorageRestoreResponse, error) { out := new(ExternalStorageRestoreResponse) - err := c.cc.Invoke(ctx, "/backup.ExternalStorage/restore", in, out, opts...) + err := grpc.Invoke(ctx, "/backup.ExternalStorage/restore", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -4068,14 +2909,15 @@ func (c *externalStorageClient) Restore(ctx context.Context, in *ExternalStorage func (c *externalStorageClient) Save(ctx context.Context, in *ExternalStorageSaveRequest, opts ...grpc.CallOption) (*ExternalStorageSaveResponse, error) { out := new(ExternalStorageSaveResponse) - err := c.cc.Invoke(ctx, "/backup.ExternalStorage/save", in, out, opts...) + err := grpc.Invoke(ctx, "/backup.ExternalStorage/save", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// ExternalStorageServer is the server API for ExternalStorage service. +// Server API for ExternalStorage service + type ExternalStorageServer interface { // Restore to a file Restore(context.Context, *ExternalStorageRestoreRequest) (*ExternalStorageRestoreResponse, error) @@ -4083,17 +2925,6 @@ type ExternalStorageServer interface { Save(context.Context, *ExternalStorageSaveRequest) (*ExternalStorageSaveResponse, error) } -// UnimplementedExternalStorageServer can be embedded to have forward compatible implementations. -type UnimplementedExternalStorageServer struct { -} - -func (*UnimplementedExternalStorageServer) Restore(ctx context.Context, req *ExternalStorageRestoreRequest) (*ExternalStorageRestoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Restore not implemented") -} -func (*UnimplementedExternalStorageServer) Save(ctx context.Context, req *ExternalStorageSaveRequest) (*ExternalStorageSaveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Save not implemented") -} - func RegisterExternalStorageServer(s *grpc.Server, srv ExternalStorageServer) { s.RegisterService(&_ExternalStorage_serviceDesc, srv) } @@ -4154,7 +2985,7 @@ var _ExternalStorage_serviceDesc = grpc.ServiceDesc{ func (m *BackupMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4162,245 +2993,213 @@ func (m *BackupMeta) Marshal() (dAtA []byte, err error) { } func (m *BackupMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Mode != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 - } - if len(m.DbMaps) > 0 { - for iNdEx := len(m.DbMaps) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DbMaps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - } - if m.IsTxnKv { - i-- - if m.IsTxnKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) } - if len(m.NewCollationsEnabled) > 0 { - i -= len(m.NewCollationsEnabled) - copy(dAtA[i:], m.NewCollationsEnabled) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.NewCollationsEnabled))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 + if len(m.ClusterVersion) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ClusterVersion))) + i += copy(dAtA[i:], m.ClusterVersion) } - if len(m.Policies) > 0 { - for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Policies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.Files) > 0 { + for _, msg := range m.Files { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + i += n } } - if m.ApiVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.StartVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) } - if len(m.BackupResult) > 0 { - i -= len(m.BackupResult) - copy(dAtA[i:], m.BackupResult) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.BackupResult))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + if m.EndVersion != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) } - if m.DdlIndexes != nil { - { - size, err := m.DdlIndexes.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Schemas) > 0 { + for _, msg := range m.Schemas { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 } - if m.RawRangeIndex != nil { - { - size, err := m.RawRangeIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if m.IsRawKv { + dAtA[i] = 0x40 + i++ + if m.IsRawKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x7a + i++ } - if m.SchemaIndex != nil { - { - size, err := m.SchemaIndex.MarshalToSizedBuffer(dAtA[:i]) + if len(m.RawRanges) > 0 { + for _, msg := range m.RawRanges { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x72 } - if m.FileIndex != nil { - { - size, err := m.FileIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a + if len(m.Ddls) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) + i += copy(dAtA[i:], m.Ddls) + } + if len(m.BrVersion) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) + i += copy(dAtA[i:], m.BrVersion) } if m.Version != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) - i-- dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) } - if len(m.BrVersion) > 0 { - i -= len(m.BrVersion) - copy(dAtA[i:], m.BrVersion) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) - i-- - dAtA[i] = 0x5a + if m.FileIndex != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.FileIndex.Size())) + n1, err := m.FileIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if len(m.Ddls) > 0 { - i -= len(m.Ddls) - copy(dAtA[i:], m.Ddls) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) - i-- - dAtA[i] = 0x52 + if m.SchemaIndex != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.SchemaIndex.Size())) + n2, err := m.SchemaIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - if len(m.RawRanges) > 0 { - for iNdEx := len(m.RawRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RawRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a + if m.RawRangeIndex != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RawRangeIndex.Size())) + n3, err := m.RawRangeIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n3 } - if m.IsRawKv { - i-- - if m.IsRawKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.DdlIndexes != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DdlIndexes.Size())) + n4, err := m.DdlIndexes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n4 } - if len(m.Schemas) > 0 { - for iNdEx := len(m.Schemas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Schemas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.BackupResult) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.BackupResult))) + i += copy(dAtA[i:], m.BackupResult) + } + if m.ApiVersion != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) + } + if len(m.Policies) > 0 { + for _, msg := range m.Policies { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n } } - if m.EndVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) - i-- - dAtA[i] = 0x30 + if len(m.NewCollationsEnabled) > 0 { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.NewCollationsEnabled))) + i += copy(dAtA[i:], m.NewCollationsEnabled) } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x28 + if m.IsTxnKv { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsTxnKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if len(m.Files) > 0 { - for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.DbMaps) > 0 { + for _, msg := range m.DbMaps { + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } - if len(m.ClusterVersion) > 0 { - i -= len(m.ClusterVersion) - copy(dAtA[i:], m.ClusterVersion) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ClusterVersion))) - i-- - dAtA[i] = 0x12 - } - if m.ClusterId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.Mode != 0 { + dAtA[i] = 0xb8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) } - return len(dAtA) - i, nil + return i, nil } func (m *File) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4408,98 +3207,83 @@ func (m *File) Marshal() (dAtA []byte, err error) { } func (m *File) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *File) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.CipherIv) > 0 { - i -= len(m.CipherIv) - copy(dAtA[i:], m.CipherIv) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) - i-- - dAtA[i] = 0x62 + if len(m.Sha256) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - if m.Size_ != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x58 + if len(m.StartKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x52 + if len(m.EndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.TotalBytes != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) - i-- - dAtA[i] = 0x48 + if m.StartVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) } - if m.TotalKvs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) - i-- - dAtA[i] = 0x40 + if m.EndVersion != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) } if m.Crc64Xor != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) - i-- dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) } - if m.EndVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) - i-- - dAtA[i] = 0x30 - } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x28 + if m.TotalKvs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x22 + if m.TotalBytes != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x1a + if len(m.Cf) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if len(m.Sha256) > 0 { - i -= len(m.Sha256) - copy(dAtA[i:], m.Sha256) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) - i-- - dAtA[i] = 0x12 + if m.Size_ != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if len(m.CipherIv) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) + i += copy(dAtA[i:], m.CipherIv) } - return len(dAtA) - i, nil + return i, nil } func (m *MetaFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4507,91 +3291,73 @@ func (m *MetaFile) Marshal() (dAtA []byte, err error) { } func (m *MetaFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetaFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Ddls) > 0 { - for iNdEx := len(m.Ddls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ddls[iNdEx]) - copy(dAtA[i:], m.Ddls[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls[iNdEx]))) - i-- - dAtA[i] = 0x2a + if len(m.MetaFiles) > 0 { + for _, msg := range m.MetaFiles { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.RawRanges) > 0 { - for iNdEx := len(m.RawRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RawRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.DataFiles) > 0 { + for _, msg := range m.DataFiles { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } if len(m.Schemas) > 0 { - for iNdEx := len(m.Schemas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Schemas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Schemas { dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.DataFiles) > 0 { - for iNdEx := len(m.DataFiles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DataFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.RawRanges) > 0 { + for _, msg := range m.RawRanges { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if len(m.MetaFiles) > 0 { - for iNdEx := len(m.MetaFiles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MetaFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Ddls) > 0 { + for _, b := range m.Ddls { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - return len(dAtA) - i, nil + return i, nil } func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4599,33 +3365,23 @@ func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) { } func (m *PlacementPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PlacementPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Info) > 0 { - i -= len(m.Info) - copy(dAtA[i:], m.Info) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Info))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Info))) + i += copy(dAtA[i:], m.Info) } - return len(dAtA) - i, nil + return i, nil } func (m *Schema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4633,67 +3389,55 @@ func (m *Schema) Marshal() (dAtA []byte, err error) { } func (m *Schema) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Schema) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Stats) > 0 { - i -= len(m.Stats) - copy(dAtA[i:], m.Stats) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Stats))) - i-- - dAtA[i] = 0x3a + if len(m.Db) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Db))) + i += copy(dAtA[i:], m.Db) } - if m.TiflashReplicas != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TiflashReplicas)) - i-- - dAtA[i] = 0x30 + if len(m.Table) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Table))) + i += copy(dAtA[i:], m.Table) } - if m.TotalBytes != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) - i-- - dAtA[i] = 0x28 + if m.Crc64Xor != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) } if m.TotalKvs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) } - if m.Crc64Xor != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) - i-- - dAtA[i] = 0x18 + if m.TotalBytes != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) } - if len(m.Table) > 0 { - i -= len(m.Table) - copy(dAtA[i:], m.Table) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Table))) - i-- - dAtA[i] = 0x12 + if m.TiflashReplicas != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TiflashReplicas)) } - if len(m.Db) > 0 { - i -= len(m.Db) - copy(dAtA[i:], m.Db) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Db))) - i-- - dAtA[i] = 0xa + if len(m.Stats) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Stats))) + i += copy(dAtA[i:], m.Stats) } - return len(dAtA) - i, nil + return i, nil } func (m *IDMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4701,36 +3445,27 @@ func (m *IDMap) Marshal() (dAtA []byte, err error) { } func (m *IDMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IDMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.UpstreamId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.UpstreamId)) } if m.DownstreamId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.DownstreamId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DownstreamId)) } - if m.UpstreamId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.UpstreamId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *PitrTableMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4738,59 +3473,45 @@ func (m *PitrTableMap) Marshal() (dAtA []byte, err error) { } func (m *PitrTableMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PitrTableMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.Partitions) > 0 { - for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Partitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.IdMap != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) + n5, err := m.IdMap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n5 } - if m.IdMap != nil { - { - size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Partitions) > 0 { + for _, msg := range m.Partitions { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *PitrDBMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4798,59 +3519,45 @@ func (m *PitrDBMap) Marshal() (dAtA []byte, err error) { } func (m *PitrDBMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PitrDBMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.Tables) > 0 { - for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.IdMap != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) + n6, err := m.IdMap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n6 } - if m.IdMap != nil { - { - size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Tables) > 0 { + for _, msg := range m.Tables { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4858,47 +3565,35 @@ func (m *RawRange) Marshal() (dAtA []byte, err error) { } func (m *RawRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if len(m.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - return len(dAtA) - i, nil + return i, nil } func (m *ClusterIDError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4906,36 +3601,27 @@ func (m *ClusterIDError) Marshal() (dAtA []byte, err error) { } func (m *ClusterIDError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterIDError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Current != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Current)) } if m.Request != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Request)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Request)) } - if m.Current != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Current)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4943,105 +3629,72 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Msg) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } if m.Detail != nil { - { - size := m.Detail.Size() - i -= size - if _, err := m.Detail.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn7, err := m.Detail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn7 } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *Error_ClusterIdError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_ClusterIdError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ClusterIdError != nil { - { - size, err := m.ClusterIdError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterIdError.Size())) + n8, err := m.ClusterIdError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *Error_KvError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_KvError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.KvError != nil { - { - size, err := m.KvError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.KvError.Size())) + n9, err := m.KvError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *Error_RegionError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_RegionError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionError.Size())) + n10, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *CipherInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5049,38 +3702,28 @@ func (m *CipherInfo) Marshal() (dAtA []byte, err error) { } func (m *CipherInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CipherInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CipherType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CipherType)) } if len(m.CipherKey) > 0 { - i -= len(m.CipherKey) - copy(dAtA[i:], m.CipherKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherKey))) + i += copy(dAtA[i:], m.CipherKey) } - if m.CipherType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CipherType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *BackupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5088,179 +3731,158 @@ func (m *BackupRequest) Marshal() (dAtA []byte, err error) { } func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if len(m.UniqueId) > 0 { - i -= len(m.UniqueId) - copy(dAtA[i:], m.UniqueId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.Mode != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.StartVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) } - if m.ReplicaRead { - i-- - if m.ReplicaRead { + if m.EndVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + } + if m.RateLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) + } + if m.Concurrency != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) + } + if m.StorageBackend != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) + n11, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.IsRawKv { + dAtA[i] = 0x50 + i++ + if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + i++ } - if len(m.SubRanges) > 0 { - for iNdEx := len(m.SubRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SubRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + if len(m.Cf) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.CompressionType != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + } + if m.CompressionLevel != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) + } + if m.CipherInfo != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CipherInfo.Size())) + n12, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n12 } if m.DstApiVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) - i-- dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) } - if m.CipherInfo != nil { - { - size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) + if len(m.SubRanges) > 0 { + for _, msg := range m.SubRanges { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x72 } - if m.CompressionLevel != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) - i-- - dAtA[i] = 0x68 - } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x60 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x5a - } - if m.IsRawKv { - i-- - if m.IsRawKv { + if m.ReplicaRead { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 + i++ } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Concurrency != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) - i-- - dAtA[i] = 0x40 - } - if m.RateLimit != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) - i-- - dAtA[i] = 0x38 - } - if m.EndVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) - i-- - dAtA[i] = 0x28 - } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + if m.Mode != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 + if len(m.UniqueId) > 0 { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) + i += copy(dAtA[i:], m.UniqueId) } - if m.ClusterId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.Context != nil { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Context.Size())) + n13, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *StreamBackupTaskInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5268,69 +3890,63 @@ func (m *StreamBackupTaskInfo) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupTaskInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupTaskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x30 - } - if len(m.TableFilter) > 0 { - for iNdEx := len(m.TableFilter) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TableFilter[iNdEx]) - copy(dAtA[i:], m.TableFilter[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.TableFilter[iNdEx]))) - i-- - dAtA[i] = 0x2a + if m.Storage != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Storage.Size())) + n14, err := m.Storage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n14 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 + if m.StartTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) } if m.EndTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) } - if m.StartTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if len(m.Name) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.Storage != nil { - { - size, err := m.Storage.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TableFilter) > 0 { + for _, s := range m.TableFilter { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.CompressionType != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + } + return i, nil } func (m *StorageBackend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5338,182 +3954,122 @@ func (m *StorageBackend) Marshal() (dAtA []byte, err error) { } func (m *StorageBackend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Backend != nil { - { - size := m.Backend.Size() - i -= size - if _, err := m.Backend.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn15, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn15 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_Noop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_Noop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Noop != nil { - { - size, err := m.Noop.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Noop.Size())) + n16, err := m.Noop.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_Local) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Local != nil { - { - size, err := m.Local.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Local.Size())) + n17, err := m.Local.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_S3) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_S3) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.S3 != nil { - { - size, err := m.S3.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.S3.Size())) + n18, err := m.S3.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_Gcs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_Gcs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Gcs != nil { - { - size, err := m.Gcs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Gcs.Size())) + n19, err := m.Gcs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_CloudDynamic) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_CloudDynamic) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.CloudDynamic != nil { - { - size, err := m.CloudDynamic.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CloudDynamic.Size())) + n20, err := m.CloudDynamic.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_Hdfs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_Hdfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Hdfs != nil { - { - size, err := m.Hdfs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Hdfs.Size())) + n21, err := m.Hdfs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *StorageBackend_AzureBlobStorage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageBackend_AzureBlobStorage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.AzureBlobStorage != nil { - { - size, err := m.AzureBlobStorage.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.AzureBlobStorage.Size())) + n22, err := m.AzureBlobStorage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *Noop) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5521,26 +4077,17 @@ func (m *Noop) Marshal() (dAtA []byte, err error) { } func (m *Noop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Noop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *Local) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5548,33 +4095,23 @@ func (m *Local) Marshal() (dAtA []byte, err error) { } func (m *Local) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - return len(dAtA) - i, nil + return i, nil } func (m *S3) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5582,146 +4119,123 @@ func (m *S3) Marshal() (dAtA []byte, err error) { } func (m *S3) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *S3) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Endpoint) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - if len(m.Provider) > 0 { - i -= len(m.Provider) - copy(dAtA[i:], m.Provider) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Provider))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + if len(m.Region) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } - if len(m.SessionToken) > 0 { - i -= len(m.SessionToken) - copy(dAtA[i:], m.SessionToken) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) - i-- - dAtA[i] = 0x7a + if len(m.Bucket) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } - if m.ObjectLockEnabled { - i-- - if m.ObjectLockEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 + if len(m.Prefix) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } - if len(m.ExternalId) > 0 { - i -= len(m.ExternalId) - copy(dAtA[i:], m.ExternalId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) - i-- - dAtA[i] = 0x6a + if len(m.StorageClass) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i += copy(dAtA[i:], m.StorageClass) } - if len(m.RoleArn) > 0 { - i -= len(m.RoleArn) - copy(dAtA[i:], m.RoleArn) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.RoleArn))) - i-- - dAtA[i] = 0x62 + if len(m.Sse) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sse))) + i += copy(dAtA[i:], m.Sse) } - if len(m.SseKmsKeyId) > 0 { - i -= len(m.SseKmsKeyId) - copy(dAtA[i:], m.SseKmsKeyId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SseKmsKeyId))) - i-- - dAtA[i] = 0x5a + if len(m.Acl) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Acl))) + i += copy(dAtA[i:], m.Acl) + } + if len(m.AccessKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessKey))) + i += copy(dAtA[i:], m.AccessKey) + } + if len(m.SecretAccessKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SecretAccessKey))) + i += copy(dAtA[i:], m.SecretAccessKey) } if m.ForcePathStyle { - i-- + dAtA[i] = 0x50 + i++ if m.ForcePathStyle { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 - } - if len(m.SecretAccessKey) > 0 { - i -= len(m.SecretAccessKey) - copy(dAtA[i:], m.SecretAccessKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SecretAccessKey))) - i-- - dAtA[i] = 0x4a - } - if len(m.AccessKey) > 0 { - i -= len(m.AccessKey) - copy(dAtA[i:], m.AccessKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessKey))) - i-- - dAtA[i] = 0x42 + i++ } - if len(m.Acl) > 0 { - i -= len(m.Acl) - copy(dAtA[i:], m.Acl) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Acl))) - i-- - dAtA[i] = 0x3a - } - if len(m.Sse) > 0 { - i -= len(m.Sse) - copy(dAtA[i:], m.Sse) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sse))) - i-- - dAtA[i] = 0x32 + if len(m.SseKmsKeyId) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SseKmsKeyId))) + i += copy(dAtA[i:], m.SseKmsKeyId) } - if len(m.StorageClass) > 0 { - i -= len(m.StorageClass) - copy(dAtA[i:], m.StorageClass) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i-- - dAtA[i] = 0x2a + if len(m.RoleArn) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RoleArn))) + i += copy(dAtA[i:], m.RoleArn) } - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x22 + if len(m.ExternalId) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) + i += copy(dAtA[i:], m.ExternalId) } - if len(m.Bucket) > 0 { - i -= len(m.Bucket) - copy(dAtA[i:], m.Bucket) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i-- - dAtA[i] = 0x1a + if m.ObjectLockEnabled { + dAtA[i] = 0x70 + i++ + if m.ObjectLockEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) - i-- - dAtA[i] = 0x12 + if len(m.SessionToken) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) + i += copy(dAtA[i:], m.SessionToken) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0xa + if len(m.Provider) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Provider))) + i += copy(dAtA[i:], m.Provider) } - return len(dAtA) - i, nil + return i, nil } func (m *GCS) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5729,68 +4243,53 @@ func (m *GCS) Marshal() (dAtA []byte, err error) { } func (m *GCS) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GCS) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Endpoint) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - if len(m.CredentialsBlob) > 0 { - i -= len(m.CredentialsBlob) - copy(dAtA[i:], m.CredentialsBlob) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.CredentialsBlob))) - i-- - dAtA[i] = 0x32 + if len(m.Bucket) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } - if len(m.PredefinedAcl) > 0 { - i -= len(m.PredefinedAcl) - copy(dAtA[i:], m.PredefinedAcl) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.PredefinedAcl))) - i-- - dAtA[i] = 0x2a + if len(m.Prefix) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } if len(m.StorageClass) > 0 { - i -= len(m.StorageClass) - copy(dAtA[i:], m.StorageClass) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i += copy(dAtA[i:], m.StorageClass) } - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x1a - } - if len(m.Bucket) > 0 { - i -= len(m.Bucket) - copy(dAtA[i:], m.Bucket) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i-- - dAtA[i] = 0x12 + if len(m.PredefinedAcl) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.PredefinedAcl))) + i += copy(dAtA[i:], m.PredefinedAcl) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0xa + if len(m.CredentialsBlob) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CredentialsBlob))) + i += copy(dAtA[i:], m.CredentialsBlob) } - return len(dAtA) - i, nil + return i, nil } func (m *AzureCustomerKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5798,40 +4297,29 @@ func (m *AzureCustomerKey) Marshal() (dAtA []byte, err error) { } func (m *AzureCustomerKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureCustomerKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.EncryptionKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKey))) + i += copy(dAtA[i:], m.EncryptionKey) } if len(m.EncryptionKeySha256) > 0 { - i -= len(m.EncryptionKeySha256) - copy(dAtA[i:], m.EncryptionKeySha256) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKeySha256))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKeySha256))) + i += copy(dAtA[i:], m.EncryptionKeySha256) } - if len(m.EncryptionKey) > 0 { - i -= len(m.EncryptionKey) - copy(dAtA[i:], m.EncryptionKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *AzureBlobStorage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5839,94 +4327,75 @@ func (m *AzureBlobStorage) Marshal() (dAtA []byte, err error) { } func (m *AzureBlobStorage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureBlobStorage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.EncryptionKey != nil { - { - size, err := m.EncryptionKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 + if len(m.Endpoint) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - if len(m.EncryptionScope) > 0 { - i -= len(m.EncryptionScope) - copy(dAtA[i:], m.EncryptionScope) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionScope))) - i-- - dAtA[i] = 0x4a + if len(m.Bucket) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } - if len(m.AccessSig) > 0 { - i -= len(m.AccessSig) - copy(dAtA[i:], m.AccessSig) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessSig))) - i-- - dAtA[i] = 0x42 + if len(m.Prefix) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } - if len(m.SharedKey) > 0 { - i -= len(m.SharedKey) - copy(dAtA[i:], m.SharedKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SharedKey))) - i-- - dAtA[i] = 0x32 + if len(m.StorageClass) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i += copy(dAtA[i:], m.StorageClass) } if len(m.AccountName) > 0 { - i -= len(m.AccountName) - copy(dAtA[i:], m.AccountName) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccountName))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccountName))) + i += copy(dAtA[i:], m.AccountName) } - if len(m.StorageClass) > 0 { - i -= len(m.StorageClass) - copy(dAtA[i:], m.StorageClass) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i-- - dAtA[i] = 0x22 + if len(m.SharedKey) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SharedKey))) + i += copy(dAtA[i:], m.SharedKey) } - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x1a + if len(m.AccessSig) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessSig))) + i += copy(dAtA[i:], m.AccessSig) } - if len(m.Bucket) > 0 { - i -= len(m.Bucket) - copy(dAtA[i:], m.Bucket) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i-- - dAtA[i] = 0x12 + if len(m.EncryptionScope) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionScope))) + i += copy(dAtA[i:], m.EncryptionScope) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0xa + if m.EncryptionKey != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EncryptionKey.Size())) + n23, err := m.EncryptionKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - return len(dAtA) - i, nil + return i, nil } func (m *Bucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5934,61 +4403,47 @@ func (m *Bucket) Marshal() (dAtA []byte, err error) { } func (m *Bucket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.StorageClass) > 0 { - i -= len(m.StorageClass) - copy(dAtA[i:], m.StorageClass) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i-- - dAtA[i] = 0x32 + if len(m.Endpoint) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x2a + if len(m.Region) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } if len(m.Bucket) > 0 { - i -= len(m.Bucket) - copy(dAtA[i:], m.Bucket) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } - if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) - i-- - dAtA[i] = 0x1a + if len(m.Prefix) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0xa + if len(m.StorageClass) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i += copy(dAtA[i:], m.StorageClass) } - return len(dAtA) - i, nil + return i, nil } func (m *CloudDynamic) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5996,64 +4451,50 @@ func (m *CloudDynamic) Marshal() (dAtA []byte, err error) { } func (m *CloudDynamic) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloudDynamic) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Attrs) > 0 { - for k := range m.Attrs { - v := m.Attrs[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintBrpb(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintBrpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintBrpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a + if m.Bucket != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Bucket.Size())) + n24, err := m.Bucket.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n24 } if len(m.ProviderName) > 0 { - i -= len(m.ProviderName) - copy(dAtA[i:], m.ProviderName) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ProviderName))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ProviderName))) + i += copy(dAtA[i:], m.ProviderName) } - if m.Bucket != nil { - { - size, err := m.Bucket.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.Attrs) > 0 { + for k, _ := range m.Attrs { + dAtA[i] = 0x1a + i++ + v := m.Attrs[k] + mapSize := 1 + len(k) + sovBrpb(uint64(len(k))) + 1 + len(v) + sovBrpb(uint64(len(v))) + i = encodeVarintBrpb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *HDFS) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6061,33 +4502,23 @@ func (m *HDFS) Marshal() (dAtA []byte, err error) { } func (m *HDFS) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HDFS) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Remote) > 0 { - i -= len(m.Remote) - copy(dAtA[i:], m.Remote) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Remote))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Remote))) + i += copy(dAtA[i:], m.Remote) } - return len(dAtA) - i, nil + return i, nil } func (m *BackupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6095,71 +4526,56 @@ func (m *BackupResponse) Marshal() (dAtA []byte, err error) { } func (m *BackupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ApiVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x28 - } - if len(m.Files) > 0 { - for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n25, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + i += n25 } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) + } + if len(m.Files) > 0 { + for _, msg := range m.Files { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.ApiVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) + } + return i, nil } func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6167,33 +4583,23 @@ func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.UniqueId) > 0 { - i -= len(m.UniqueId) - copy(dAtA[i:], m.UniqueId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) + i += copy(dAtA[i:], m.UniqueId) } - return len(dAtA) - i, nil + return i, nil } func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6201,48 +4607,37 @@ func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n26, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } if m.Success { - i-- + dAtA[i] = 0x10 + i++ if m.Success { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6250,36 +4645,27 @@ func (m *PrepareRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.SaveToStorage { - i-- + dAtA[i] = 0x8 + i++ if m.SaveToStorage { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6287,55 +4673,43 @@ func (m *PrepareResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CollectFileSize != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) - i-- - dAtA[i] = 0x20 - } - if m.CollectFileCount != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileCount)) - i-- - dAtA[i] = 0x18 + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n27, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } if len(m.UniqueId) > 0 { - i -= len(m.UniqueId) - copy(dAtA[i:], m.UniqueId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) + i += copy(dAtA[i:], m.UniqueId) + } + if m.CollectFileCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileCount)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CollectFileSize != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) } - return len(dAtA) - i, nil + return i, nil } func (m *CheckAdminRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6343,26 +4717,17 @@ func (m *CheckAdminRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckAdminRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CheckAdminResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6370,60 +4735,47 @@ func (m *CheckAdminResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckAdminResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n28, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 + } + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Region.Size())) + n29, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } if m.HasPendingAdmin { - i-- + dAtA[i] = 0x18 + i++ if m.HasPendingAdmin { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *ExternalStorageRestoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6431,57 +4783,44 @@ func (m *ExternalStorageRestoreRequest) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageRestoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalStorageRestoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StorageBackend != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) + n30, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } - if m.ContentLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) - i-- - dAtA[i] = 0x20 + if len(m.ObjectName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) + i += copy(dAtA[i:], m.ObjectName) } if len(m.RestoreName) > 0 { - i -= len(m.RestoreName) - copy(dAtA[i:], m.RestoreName) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.RestoreName))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RestoreName))) + i += copy(dAtA[i:], m.RestoreName) } - if len(m.ObjectName) > 0 { - i -= len(m.ObjectName) - copy(dAtA[i:], m.ObjectName) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) - i-- - dAtA[i] = 0x12 - } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.ContentLength != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) } - return len(dAtA) - i, nil + return i, nil } func (m *ExternalStorageRestoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6489,26 +4828,17 @@ func (m *ExternalStorageRestoreResponse) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageRestoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalStorageRestoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ExternalStorageSaveRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6516,50 +4846,38 @@ func (m *ExternalStorageSaveRequest) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageSaveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalStorageSaveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ContentLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) - i-- - dAtA[i] = 0x18 + if m.StorageBackend != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) + n31, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } if len(m.ObjectName) > 0 { - i -= len(m.ObjectName) - copy(dAtA[i:], m.ObjectName) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) + i += copy(dAtA[i:], m.ObjectName) } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.ContentLength != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) } - return len(dAtA) - i, nil + return i, nil } func (m *ExternalStorageSaveResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6567,26 +4885,17 @@ func (m *ExternalStorageSaveResponse) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageSaveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalStorageSaveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *Metadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6594,79 +4903,66 @@ func (m *Metadata) Marshal() (dAtA []byte, err error) { } func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MetaVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MetaVersion)) - i-- - dAtA[i] = 0x38 - } - if len(m.FileGroups) > 0 { - for iNdEx := len(m.FileGroups) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FileGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.Files) > 0 { + for _, msg := range m.Files { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n } } - if m.MinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) - i-- - dAtA[i] = 0x28 - } - if m.MaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) - i-- - dAtA[i] = 0x20 + if m.StoreId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) } if m.ResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) } - if m.StoreId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x10 + if m.MaxTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) } - if len(m.Files) > 0 { - for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if m.MinTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + } + if len(m.FileGroups) > 0 { + for _, msg := range m.FileGroups { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n } } - return len(dAtA) - i, nil + if m.MetaVersion != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MetaVersion)) + } + return i, nil } func (m *DataFileGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6674,67 +4970,55 @@ func (m *DataFileGroup) Marshal() (dAtA []byte, err error) { } func (m *DataFileGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataFileGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Path) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - if m.Length != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x30 + if len(m.DataFilesInfo) > 0 { + for _, msg := range m.DataFilesInfo { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.MinResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinResolvedTs)) - i-- - dAtA[i] = 0x28 + if m.MinTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) } if m.MaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) } - if m.MinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.DataFilesInfo) > 0 { - for iNdEx := len(m.DataFilesInfo) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DataFilesInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.MinResolvedTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinResolvedTs)) } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa + if m.Length != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - return len(dAtA) - i, nil + return i, nil } func (m *DataFileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6742,137 +5026,123 @@ func (m *DataFileInfo) Marshal() (dAtA []byte, err error) { } func (m *DataFileInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataFileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Sha256) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if len(m.Path) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - if m.RangeLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.NumberOfEntries != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) } - if m.RangeOffset != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.MinTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) } - if m.MinBeginTsInDefaultCf != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) - i-- - dAtA[i] = 0x78 + if m.MaxTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) } - if m.Length != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x70 + if m.ResolvedTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) + } + if m.RegionId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) + } + if len(m.StartKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) + } + if len(m.Cf) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.TableId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) - i-- - dAtA[i] = 0x68 + if m.Type != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) } if m.IsMeta { - i-- + dAtA[i] = 0x60 + i++ if m.IsMeta { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x60 - } - if m.Type != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x58 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x52 + i++ } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x4a - } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x42 - } - if m.RegionId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x38 - } - if m.ResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x30 + if m.TableId != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) } - if m.MaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) - i-- - dAtA[i] = 0x28 + if m.Length != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - if m.MinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) - i-- - dAtA[i] = 0x20 + if m.MinBeginTsInDefaultCf != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) } - if m.NumberOfEntries != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) - i-- - dAtA[i] = 0x18 + if m.RangeOffset != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 + if m.RangeLength != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) } - if len(m.Sha256) > 0 { - i -= len(m.Sha256) - copy(dAtA[i:], m.Sha256) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) - i-- - dAtA[i] = 0xa + if m.CompressionType != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) } - return len(dAtA) - i, nil + return i, nil } func (m *StreamBackupError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6880,61 +5150,45 @@ func (m *StreamBackupError) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.HappenAt != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.HappenAt)) } - if m.StoreId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x20 + if len(m.ErrorCode) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorCode))) + i += copy(dAtA[i:], m.ErrorCode) } if len(m.ErrorMessage) > 0 { - i -= len(m.ErrorMessage) - copy(dAtA[i:], m.ErrorMessage) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorMessage))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorMessage))) + i += copy(dAtA[i:], m.ErrorMessage) } - if len(m.ErrorCode) > 0 { - i -= len(m.ErrorCode) - copy(dAtA[i:], m.ErrorCode) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorCode))) - i-- - dAtA[i] = 0x12 - } - if m.HappenAt != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.HappenAt)) - i-- - dAtA[i] = 0x8 + if m.StoreId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintBrpb(dAtA []byte, offset int, v uint64) int { - offset -= sovBrpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *BackupMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -7027,16 +5281,10 @@ func (m *BackupMeta) Size() (n int) { if m.Mode != 0 { n += 2 + sovBrpb(uint64(m.Mode)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *File) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -7081,16 +5329,10 @@ func (m *File) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MetaFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.MetaFiles) > 0 { @@ -7123,32 +5365,20 @@ func (m *MetaFile) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PlacementPolicy) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Info) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Schema) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Db) @@ -7175,16 +5405,10 @@ func (m *Schema) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IDMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.UpstreamId != 0 { @@ -7193,16 +5417,10 @@ func (m *IDMap) Size() (n int) { if m.DownstreamId != 0 { n += 1 + sovBrpb(uint64(m.DownstreamId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PitrTableMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -7219,16 +5437,10 @@ func (m *PitrTableMap) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PitrDBMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -7245,16 +5457,10 @@ func (m *PitrDBMap) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -7269,16 +5475,10 @@ func (m *RawRange) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ClusterIDError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Current != 0 { @@ -7287,16 +5487,10 @@ func (m *ClusterIDError) Size() (n int) { if m.Request != 0 { n += 1 + sovBrpb(uint64(m.Request)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -7306,16 +5500,10 @@ func (m *Error) Size() (n int) { if m.Detail != nil { n += m.Detail.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error_ClusterIdError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterIdError != nil { @@ -7325,9 +5513,6 @@ func (m *Error_ClusterIdError) Size() (n int) { return n } func (m *Error_KvError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KvError != nil { @@ -7337,9 +5522,6 @@ func (m *Error_KvError) Size() (n int) { return n } func (m *Error_RegionError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -7349,9 +5531,6 @@ func (m *Error_RegionError) Size() (n int) { return n } func (m *CipherInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CipherType != 0 { @@ -7361,16 +5540,10 @@ func (m *CipherInfo) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BackupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -7440,16 +5613,10 @@ func (m *BackupRequest) Size() (n int) { l = m.Context.Size() n += 2 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StreamBackupTaskInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Storage != nil { @@ -7475,31 +5642,19 @@ func (m *StreamBackupTaskInfo) Size() (n int) { if m.CompressionType != 0 { n += 1 + sovBrpb(uint64(m.CompressionType)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StorageBackend) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Backend != nil { n += m.Backend.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StorageBackend_Noop) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Noop != nil { @@ -7509,9 +5664,6 @@ func (m *StorageBackend_Noop) Size() (n int) { return n } func (m *StorageBackend_Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Local != nil { @@ -7521,9 +5673,6 @@ func (m *StorageBackend_Local) Size() (n int) { return n } func (m *StorageBackend_S3) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.S3 != nil { @@ -7533,9 +5682,6 @@ func (m *StorageBackend_S3) Size() (n int) { return n } func (m *StorageBackend_Gcs) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Gcs != nil { @@ -7545,9 +5691,6 @@ func (m *StorageBackend_Gcs) Size() (n int) { return n } func (m *StorageBackend_CloudDynamic) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CloudDynamic != nil { @@ -7557,9 +5700,6 @@ func (m *StorageBackend_CloudDynamic) Size() (n int) { return n } func (m *StorageBackend_Hdfs) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Hdfs != nil { @@ -7569,9 +5709,6 @@ func (m *StorageBackend_Hdfs) Size() (n int) { return n } func (m *StorageBackend_AzureBlobStorage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AzureBlobStorage != nil { @@ -7581,37 +5718,22 @@ func (m *StorageBackend_AzureBlobStorage) Size() (n int) { return n } func (m *Noop) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *S3) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -7676,16 +5798,10 @@ func (m *S3) Size() (n int) { if l > 0 { n += 2 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GCS) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -7712,16 +5828,10 @@ func (m *GCS) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AzureCustomerKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.EncryptionKey) @@ -7732,16 +5842,10 @@ func (m *AzureCustomerKey) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AzureBlobStorage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -7780,16 +5884,10 @@ func (m *AzureBlobStorage) Size() (n int) { l = m.EncryptionKey.Size() n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Bucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -7812,16 +5910,10 @@ func (m *Bucket) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CloudDynamic) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Bucket != nil { @@ -7840,32 +5932,20 @@ func (m *CloudDynamic) Size() (n int) { n += mapEntrySize + 1 + sovBrpb(uint64(mapEntrySize)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *HDFS) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Remote) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BackupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -7889,32 +5969,20 @@ func (m *BackupResponse) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovBrpb(uint64(m.ApiVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.UniqueId) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -7924,31 +5992,19 @@ func (m *CleanupResponse) Size() (n int) { if m.Success { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SaveToStorage { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -7965,28 +6021,16 @@ func (m *PrepareResponse) Size() (n int) { if m.CollectFileSize != 0 { n += 1 + sovBrpb(uint64(m.CollectFileSize)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckAdminRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckAdminResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -8000,16 +6044,10 @@ func (m *CheckAdminResponse) Size() (n int) { if m.HasPendingAdmin { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExternalStorageRestoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StorageBackend != nil { @@ -8027,28 +6065,16 @@ func (m *ExternalStorageRestoreRequest) Size() (n int) { if m.ContentLength != 0 { n += 1 + sovBrpb(uint64(m.ContentLength)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExternalStorageRestoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExternalStorageSaveRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StorageBackend != nil { @@ -8062,28 +6088,16 @@ func (m *ExternalStorageSaveRequest) Size() (n int) { if m.ContentLength != 0 { n += 1 + sovBrpb(uint64(m.ContentLength)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExternalStorageSaveResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Metadata) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Files) > 0 { @@ -8113,16 +6127,10 @@ func (m *Metadata) Size() (n int) { if m.MetaVersion != 0 { n += 1 + sovBrpb(uint64(m.MetaVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DataFileGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -8147,16 +6155,10 @@ func (m *DataFileGroup) Size() (n int) { if m.Length != 0 { n += 1 + sovBrpb(uint64(m.Length)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DataFileInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Sha256) @@ -8218,16 +6220,10 @@ func (m *DataFileInfo) Size() (n int) { if m.CompressionType != 0 { n += 2 + sovBrpb(uint64(m.CompressionType)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StreamBackupError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.HappenAt != 0 { @@ -8244,14 +6240,18 @@ func (m *StreamBackupError) Size() (n int) { if m.StoreId != 0 { n += 1 + sovBrpb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovBrpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozBrpb(x uint64) (n int) { return sovBrpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -8271,7 +6271,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8299,7 +6299,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8318,7 +6318,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8328,9 +6328,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8350,7 +6347,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8359,9 +6356,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8384,7 +6378,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8403,7 +6397,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= uint64(b&0x7F) << shift + m.EndVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8422,7 +6416,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8431,9 +6425,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8456,7 +6447,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8476,7 +6467,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8485,9 +6476,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8510,7 +6498,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8519,9 +6507,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8544,7 +6529,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8554,9 +6539,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8576,7 +6558,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= int32(b&0x7F) << shift + m.Version |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -8595,7 +6577,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8604,9 +6586,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8631,7 +6610,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8640,9 +6619,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8667,7 +6643,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8676,9 +6652,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8703,7 +6676,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8712,9 +6685,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8739,7 +6709,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8749,9 +6719,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8771,7 +6738,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -8790,7 +6757,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8799,9 +6766,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8824,7 +6788,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8834,9 +6798,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8856,7 +6817,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8876,7 +6837,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8885,9 +6846,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8910,7 +6868,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= BackupMode(b&0x7F) << shift + m.Mode |= (BackupMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -8921,13 +6879,12 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8952,7 +6909,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8980,7 +6937,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8990,9 +6947,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9012,7 +6966,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9021,9 +6975,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9046,7 +6997,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9055,9 +7006,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9080,7 +7028,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9089,9 +7037,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9114,7 +7059,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9133,7 +7078,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= uint64(b&0x7F) << shift + m.EndVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9152,7 +7097,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc64Xor |= uint64(b&0x7F) << shift + m.Crc64Xor |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9171,7 +7116,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= uint64(b&0x7F) << shift + m.TotalKvs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9190,7 +7135,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= uint64(b&0x7F) << shift + m.TotalBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9209,7 +7154,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9219,9 +7164,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9241,7 +7183,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift + m.Size_ |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9260,7 +7202,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9269,9 +7211,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9286,13 +7225,12 @@ func (m *File) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9317,7 +7255,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9345,7 +7283,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9354,9 +7292,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9379,7 +7314,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9388,9 +7323,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9413,7 +7345,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9422,9 +7354,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9447,7 +7376,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9456,9 +7385,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9481,7 +7407,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9490,9 +7416,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9505,13 +7428,12 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9536,7 +7458,7 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9564,7 +7486,7 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9573,9 +7495,6 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9590,13 +7509,12 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9621,7 +7539,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9649,7 +7567,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9658,9 +7576,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9683,7 +7598,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9692,9 +7607,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9717,7 +7629,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc64Xor |= uint64(b&0x7F) << shift + m.Crc64Xor |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9736,7 +7648,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= uint64(b&0x7F) << shift + m.TotalKvs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9755,7 +7667,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= uint64(b&0x7F) << shift + m.TotalBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9774,7 +7686,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TiflashReplicas |= uint32(b&0x7F) << shift + m.TiflashReplicas |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -9793,7 +7705,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9802,9 +7714,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9819,13 +7728,12 @@ func (m *Schema) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9850,7 +7758,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9878,7 +7786,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UpstreamId |= int64(b&0x7F) << shift + m.UpstreamId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9897,7 +7805,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DownstreamId |= int64(b&0x7F) << shift + m.DownstreamId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9908,13 +7816,12 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9939,7 +7846,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9967,7 +7874,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9977,9 +7884,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9999,7 +7903,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10008,9 +7912,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10035,7 +7936,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10044,9 +7945,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10061,13 +7959,12 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10092,7 +7989,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10120,7 +8017,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10130,9 +8027,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10152,7 +8046,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10161,9 +8055,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10188,7 +8079,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10197,9 +8088,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10214,13 +8102,12 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10245,7 +8132,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10273,7 +8160,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10282,9 +8169,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10307,7 +8191,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10316,9 +8200,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10341,7 +8222,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10351,9 +8232,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10365,13 +8243,12 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10396,7 +8273,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10424,7 +8301,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Current |= uint64(b&0x7F) << shift + m.Current |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10443,7 +8320,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Request |= uint64(b&0x7F) << shift + m.Request |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10454,13 +8331,12 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10485,7 +8361,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10513,7 +8389,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10523,9 +8399,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10545,7 +8418,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10554,9 +8427,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10580,7 +8450,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10589,9 +8459,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10615,7 +8482,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10624,9 +8491,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10642,13 +8506,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10673,7 +8536,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10701,7 +8564,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CipherType |= encryptionpb.EncryptionMethod(b&0x7F) << shift + m.CipherType |= (encryptionpb.EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -10720,7 +8583,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10729,9 +8592,6 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10746,13 +8606,12 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10777,7 +8636,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10805,7 +8664,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10824,7 +8683,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10833,9 +8692,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10858,7 +8714,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10867,9 +8723,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10892,7 +8745,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10911,7 +8764,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= uint64(b&0x7F) << shift + m.EndVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10930,7 +8783,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RateLimit |= uint64(b&0x7F) << shift + m.RateLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10949,7 +8802,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Concurrency |= uint32(b&0x7F) << shift + m.Concurrency |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -10968,7 +8821,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10977,9 +8830,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11004,7 +8854,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11024,7 +8874,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11034,9 +8884,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11056,7 +8903,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= CompressionType(b&0x7F) << shift + m.CompressionType |= (CompressionType(b) & 0x7F) << shift if b < 0x80 { break } @@ -11075,7 +8922,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionLevel |= int32(b&0x7F) << shift + m.CompressionLevel |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -11094,7 +8941,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11103,9 +8950,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11130,7 +8974,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DstApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.DstApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -11149,7 +8993,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11158,9 +9002,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11183,7 +9024,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11203,7 +9044,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= BackupMode(b&0x7F) << shift + m.Mode |= (BackupMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -11222,7 +9063,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11232,9 +9073,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11254,7 +9092,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11263,9 +9101,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11282,13 +9117,12 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11313,7 +9147,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11341,7 +9175,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11350,9 +9184,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11377,7 +9208,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11396,7 +9227,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTs |= uint64(b&0x7F) << shift + m.EndTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11415,7 +9246,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11425,9 +9256,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11447,7 +9275,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11457,9 +9285,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11479,7 +9304,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= CompressionType(b&0x7F) << shift + m.CompressionType |= (CompressionType(b) & 0x7F) << shift if b < 0x80 { break } @@ -11490,13 +9315,12 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11521,7 +9345,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11549,7 +9373,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11558,9 +9382,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11584,7 +9405,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11593,9 +9414,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11619,7 +9437,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11628,9 +9446,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11654,7 +9469,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11663,9 +9478,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11689,7 +9501,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11698,9 +9510,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11724,7 +9533,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11733,9 +9542,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11759,7 +9565,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11768,9 +9574,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11786,13 +9589,12 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11817,7 +9619,7 @@ func (m *Noop) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11837,13 +9639,12 @@ func (m *Noop) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11868,7 +9669,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11896,7 +9697,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11906,9 +9707,6 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11920,13 +9718,12 @@ func (m *Local) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11951,7 +9748,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11979,7 +9776,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11989,9 +9786,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12011,7 +9805,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12021,9 +9815,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12043,7 +9834,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12053,9 +9844,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12075,7 +9863,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12085,9 +9873,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12107,7 +9892,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12117,9 +9902,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12139,7 +9921,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12149,9 +9931,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12171,7 +9950,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12181,9 +9960,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12203,7 +9979,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12213,9 +9989,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12235,7 +10008,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12245,9 +10018,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12267,7 +10037,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12287,7 +10057,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12297,9 +10067,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12319,7 +10086,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12329,9 +10096,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12351,7 +10115,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12361,9 +10125,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12383,7 +10144,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12403,7 +10164,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12413,9 +10174,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12435,7 +10193,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12445,9 +10203,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12459,13 +10214,12 @@ func (m *S3) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12490,7 +10244,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12518,7 +10272,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12528,9 +10282,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12550,7 +10301,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12560,9 +10311,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12582,7 +10330,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12592,9 +10340,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12614,7 +10359,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12624,9 +10369,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12646,7 +10388,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12656,9 +10398,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12678,7 +10417,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12688,9 +10427,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12702,13 +10438,12 @@ func (m *GCS) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12733,7 +10468,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12761,7 +10496,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12771,9 +10506,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12793,7 +10525,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12803,9 +10535,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12817,13 +10546,12 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12848,7 +10576,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12876,7 +10604,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12886,9 +10614,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12908,7 +10633,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12918,9 +10643,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12940,7 +10662,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12950,9 +10672,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12972,7 +10691,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12982,9 +10701,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13004,7 +10720,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13014,9 +10730,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13036,7 +10749,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13046,9 +10759,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13068,7 +10778,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13078,9 +10788,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13100,7 +10807,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13110,9 +10817,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13132,7 +10836,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13141,9 +10845,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13160,13 +10861,12 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13191,7 +10891,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13219,7 +10919,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13229,9 +10929,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13251,7 +10948,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13261,9 +10958,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13283,7 +10977,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13293,9 +10987,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13315,7 +11006,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13325,9 +11016,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13347,7 +11035,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13357,9 +11045,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13371,13 +11056,12 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13402,7 +11086,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13430,7 +11114,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13439,9 +11123,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13466,7 +11147,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13476,9 +11157,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13498,7 +11176,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13507,9 +11185,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13530,7 +11205,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13547,7 +11222,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13557,9 +11232,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -13576,7 +11248,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift + stringLenmapvalue |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13586,9 +11258,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -13600,7 +11269,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > postIndex { @@ -13617,13 +11286,12 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13648,7 +11316,7 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13676,7 +11344,7 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13686,9 +11354,6 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13700,13 +11365,12 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13731,7 +11395,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13759,7 +11423,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13768,9 +11432,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13795,7 +11456,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13804,9 +11465,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13829,7 +11487,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13838,9 +11496,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13863,7 +11518,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13872,9 +11527,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13897,7 +11549,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -13908,13 +11560,12 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13939,7 +11590,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13967,7 +11618,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13977,9 +11628,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13991,13 +11639,12 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14022,7 +11669,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14050,7 +11697,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14059,9 +11706,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14086,7 +11730,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14098,13 +11742,12 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14129,7 +11772,7 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14157,7 +11800,7 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14169,13 +11812,12 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14200,7 +11842,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14228,7 +11870,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14237,9 +11879,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14264,7 +11903,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14274,9 +11913,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14296,7 +11932,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CollectFileCount |= uint64(b&0x7F) << shift + m.CollectFileCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14315,7 +11951,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CollectFileSize |= uint64(b&0x7F) << shift + m.CollectFileSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14326,13 +11962,12 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14357,7 +11992,7 @@ func (m *CheckAdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14377,13 +12012,12 @@ func (m *CheckAdminRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14408,7 +12042,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14436,7 +12070,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14445,9 +12079,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14472,7 +12103,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14481,9 +12112,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14508,7 +12136,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14520,13 +12148,12 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14551,7 +12178,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14579,7 +12206,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14588,9 +12215,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14615,7 +12239,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14625,9 +12249,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14647,7 +12268,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14657,9 +12278,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14679,7 +12297,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContentLength |= uint64(b&0x7F) << shift + m.ContentLength |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14690,13 +12308,12 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14721,7 +12338,7 @@ func (m *ExternalStorageRestoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14741,13 +12358,12 @@ func (m *ExternalStorageRestoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14772,7 +12388,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14800,7 +12416,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14809,9 +12425,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14836,7 +12449,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14846,9 +12459,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14868,7 +12478,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContentLength |= uint64(b&0x7F) << shift + m.ContentLength |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14879,13 +12489,12 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14910,7 +12519,7 @@ func (m *ExternalStorageSaveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14930,13 +12539,12 @@ func (m *ExternalStorageSaveResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14961,7 +12569,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14989,7 +12597,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14998,9 +12606,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15023,7 +12628,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= int64(b&0x7F) << shift + m.StoreId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15042,7 +12647,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.ResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15061,7 +12666,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15080,7 +12685,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= uint64(b&0x7F) << shift + m.MinTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15099,7 +12704,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15108,9 +12713,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15133,7 +12735,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MetaVersion |= MetaVersion(b&0x7F) << shift + m.MetaVersion |= (MetaVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -15144,13 +12746,12 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15175,7 +12776,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15203,7 +12804,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15213,9 +12814,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15235,7 +12833,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15244,9 +12842,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15269,7 +12864,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= uint64(b&0x7F) << shift + m.MinTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15288,7 +12883,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15307,7 +12902,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinResolvedTs |= uint64(b&0x7F) << shift + m.MinResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15326,7 +12921,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15337,13 +12932,12 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15368,7 +12962,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15396,7 +12990,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15405,9 +12999,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15430,7 +13021,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15440,9 +13031,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15462,7 +13050,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfEntries |= int64(b&0x7F) << shift + m.NumberOfEntries |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15481,7 +13069,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= uint64(b&0x7F) << shift + m.MinTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15500,7 +13088,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15519,7 +13107,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.ResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15538,7 +13126,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= int64(b&0x7F) << shift + m.RegionId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15557,7 +13145,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15566,9 +13154,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15591,7 +13176,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15600,9 +13185,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15625,7 +13207,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15635,9 +13217,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15657,7 +13236,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= FileType(b&0x7F) << shift + m.Type |= (FileType(b) & 0x7F) << shift if b < 0x80 { break } @@ -15676,7 +13255,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15696,7 +13275,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= int64(b&0x7F) << shift + m.TableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15715,7 +13294,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15734,7 +13313,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinBeginTsInDefaultCf |= uint64(b&0x7F) << shift + m.MinBeginTsInDefaultCf |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15753,7 +13332,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeOffset |= uint64(b&0x7F) << shift + m.RangeOffset |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15772,7 +13351,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeLength |= uint64(b&0x7F) << shift + m.RangeLength |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15791,7 +13370,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= CompressionType(b&0x7F) << shift + m.CompressionType |= (CompressionType(b) & 0x7F) << shift if b < 0x80 { break } @@ -15802,13 +13381,12 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15833,7 +13411,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15861,7 +13439,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HappenAt |= uint64(b&0x7F) << shift + m.HappenAt |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15880,7 +13458,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15890,9 +13468,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15912,7 +13487,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15922,9 +13497,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15944,7 +13516,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15955,13 +13527,12 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15974,7 +13545,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { func skipBrpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -16006,8 +13576,10 @@ func skipBrpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -16024,34 +13596,266 @@ func skipBrpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthBrpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBrpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBrpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipBrpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthBrpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthBrpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBrpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBrpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthBrpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBrpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("brpb.proto", fileDescriptorBrpb) } + +var fileDescriptorBrpb = []byte{ + // 3309 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0x5b, 0x6f, 0x24, 0xc7, + 0x75, 0x66, 0xcf, 0xf4, 0xdc, 0xce, 0x5c, 0x59, 0x7b, 0xd1, 0x88, 0xca, 0xee, 0x52, 0x2d, 0xef, + 0x86, 0xa1, 0x6d, 0x5a, 0x26, 0x65, 0x41, 0x89, 0x1c, 0x08, 0xbc, 0xac, 0x44, 0x9a, 0xbb, 0x2b, + 0xa6, 0xc8, 0x38, 0x88, 0x5e, 0x1a, 0x3d, 0xdd, 0x35, 0x64, 0x87, 0x3d, 0xdd, 0xed, 0xae, 0x9e, + 0x59, 0x52, 0xff, 0xc1, 0x48, 0x82, 0x20, 0x48, 0xfe, 0x40, 0x80, 0xbc, 0xe4, 0x3f, 0xe4, 0x25, + 0x80, 0x8d, 0x04, 0x88, 0x01, 0xbf, 0xe4, 0x31, 0x50, 0xfe, 0x44, 0x1e, 0x83, 0x73, 0xaa, 0xaa, + 0xa7, 0x67, 0x96, 0xa4, 0xb4, 0x49, 0xe0, 0x27, 0x76, 0x7d, 0xe7, 0xd4, 0xed, 0xdc, 0x4f, 0x0d, + 0x01, 0x46, 0x59, 0x3a, 0xda, 0x4a, 0xb3, 0x24, 0x4f, 0x58, 0x7d, 0xe4, 0xf9, 0x97, 0xd3, 0x74, + 0xad, 0x7b, 0x39, 0xcb, 0x52, 0xdf, 0xc0, 0x6b, 0x5d, 0x91, 0x65, 0x49, 0xc1, 0xb5, 0xd6, 0x99, + 0x88, 0xdc, 0x2b, 0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 0x19, 0xa5, 0x3c, 0xbe, 0xf6, 0xc1, 0x9d, + 0x3c, 0x66, 0xc9, 0xbd, 0x67, 0xff, 0xf1, 0x8f, 0x4d, 0xeb, 0x57, 0xdf, 0x3c, 0xb6, 0x7e, 0xf3, + 0xcd, 0x63, 0xeb, 0x3f, 0xbf, 0x79, 0x6c, 0xfd, 0xfd, 0x7f, 0x3d, 0x5e, 0x81, 0x41, 0x92, 0x9d, + 0x6f, 0xe5, 0xe1, 0xe5, 0x6c, 0xeb, 0x72, 0x46, 0xff, 0x69, 0x31, 0xaa, 0xd3, 0x9f, 0x9d, 0xff, + 0x09, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x1b, 0x66, 0x65, 0xed, 0x21, 0x00, 0x00, +} diff --git a/pkg/cdcpb/cdcpb.pb.go b/pkg/cdcpb/cdcpb.pb.go index 69dff8a59..06fe86e2e 100644 --- a/pkg/cdcpb/cdcpb.pb.go +++ b/pkg/cdcpb/cdcpb.pb.go @@ -1,24 +1,48 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cdcpb.proto +/* +Package cdcpb is a generated protocol buffer package. + +It is generated from these files: + + cdcpb.proto + +It has these top-level messages: + + Header + DuplicateRequest + Compatibility + ClusterIDMismatch + Error + TxnInfo + TxnStatus + Event + ChangeDataEvent + ResolvedTs + ChangeDataRequest +*/ package cdcpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" + + metapb "github.com/pingcap/kvproto/pkg/metapb" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - metapb "github.com/pingcap/kvproto/pkg/metapb" - raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -30,7 +54,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Event_LogType int32 @@ -51,7 +75,6 @@ var Event_LogType_name = map[int32]string{ 4: "COMMITTED", 5: "INITIALIZED", } - var Event_LogType_value = map[string]int32{ "UNKNOWN": 0, "PREWRITE": 1, @@ -64,10 +87,7 @@ var Event_LogType_value = map[string]int32{ func (x Event_LogType) String() string { return proto.EnumName(Event_LogType_name, int32(x)) } - -func (Event_LogType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0} -} +func (Event_LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0} } type Event_Row_OpType int32 @@ -82,7 +102,6 @@ var Event_Row_OpType_name = map[int32]string{ 1: "PUT", 2: "DELETE", } - var Event_Row_OpType_value = map[string]int32{ "UNKNOWN": 0, "PUT": 1, @@ -92,10 +111,7 @@ var Event_Row_OpType_value = map[string]int32{ func (x Event_Row_OpType) String() string { return proto.EnumName(Event_Row_OpType_name, int32(x)) } - -func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0, 0} -} +func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0, 0} } // KvAPI specifies to capture data written by different KV API. // See more details in https://github.com/tikv/rfcs/blob/master/text/0069-api-v2.md. @@ -112,7 +128,6 @@ var ChangeDataRequest_KvAPI_name = map[int32]string{ 1: "RawKV", 2: "TxnKV", } - var ChangeDataRequest_KvAPI_value = map[string]int32{ "TiDB": 0, "RawKV": 1, @@ -122,51 +137,19 @@ var ChangeDataRequest_KvAPI_value = map[string]int32{ func (x ChangeDataRequest_KvAPI) String() string { return proto.EnumName(ChangeDataRequest_KvAPI_name, int32(x)) } - func (ChangeDataRequest_KvAPI) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 0} + return fileDescriptorCdcpb, []int{10, 0} } type Header struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - TicdcVersion string `protobuf:"bytes,2,opt,name=ticdc_version,json=ticdcVersion,proto3" json:"ticdc_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Header) Reset() { *m = Header{} } -func (m *Header) String() string { return proto.CompactTextString(m) } -func (*Header) ProtoMessage() {} -func (*Header) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{0} -} -func (m *Header) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Header.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 *Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Header.Merge(m, src) -} -func (m *Header) XXX_Size() int { - return m.Size() -} -func (m *Header) XXX_DiscardUnknown() { - xxx_messageInfo_Header.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + TicdcVersion string `protobuf:"bytes,2,opt,name=ticdc_version,json=ticdcVersion,proto3" json:"ticdc_version,omitempty"` } -var xxx_messageInfo_Header proto.InternalMessageInfo +func (m *Header) Reset() { *m = Header{} } +func (m *Header) String() string { return proto.CompactTextString(m) } +func (*Header) ProtoMessage() {} +func (*Header) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{0} } func (m *Header) GetClusterId() uint64 { if m != nil { @@ -183,44 +166,13 @@ func (m *Header) GetTicdcVersion() string { } type DuplicateRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DuplicateRequest) Reset() { *m = DuplicateRequest{} } -func (m *DuplicateRequest) String() string { return proto.CompactTextString(m) } -func (*DuplicateRequest) ProtoMessage() {} -func (*DuplicateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{1} -} -func (m *DuplicateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DuplicateRequest.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 *DuplicateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DuplicateRequest.Merge(m, src) -} -func (m *DuplicateRequest) XXX_Size() int { - return m.Size() -} -func (m *DuplicateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DuplicateRequest.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_DuplicateRequest proto.InternalMessageInfo +func (m *DuplicateRequest) Reset() { *m = DuplicateRequest{} } +func (m *DuplicateRequest) String() string { return proto.CompactTextString(m) } +func (*DuplicateRequest) ProtoMessage() {} +func (*DuplicateRequest) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{1} } func (m *DuplicateRequest) GetRegionId() uint64 { if m != nil { @@ -230,44 +182,13 @@ func (m *DuplicateRequest) GetRegionId() uint64 { } type Compatibility struct { - RequiredVersion string `protobuf:"bytes,1,opt,name=required_version,json=requiredVersion,proto3" json:"required_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Compatibility) Reset() { *m = Compatibility{} } -func (m *Compatibility) String() string { return proto.CompactTextString(m) } -func (*Compatibility) ProtoMessage() {} -func (*Compatibility) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{2} -} -func (m *Compatibility) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Compatibility) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Compatibility.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 *Compatibility) XXX_Merge(src proto.Message) { - xxx_messageInfo_Compatibility.Merge(m, src) -} -func (m *Compatibility) XXX_Size() int { - return m.Size() -} -func (m *Compatibility) XXX_DiscardUnknown() { - xxx_messageInfo_Compatibility.DiscardUnknown(m) + RequiredVersion string `protobuf:"bytes,1,opt,name=required_version,json=requiredVersion,proto3" json:"required_version,omitempty"` } -var xxx_messageInfo_Compatibility proto.InternalMessageInfo +func (m *Compatibility) Reset() { *m = Compatibility{} } +func (m *Compatibility) String() string { return proto.CompactTextString(m) } +func (*Compatibility) ProtoMessage() {} +func (*Compatibility) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{2} } func (m *Compatibility) GetRequiredVersion() string { if m != nil { @@ -282,44 +203,13 @@ type ClusterIDMismatch struct { // The current tikv cluster ID. Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` // The cluster ID of the TiCDC request. - Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterIDMismatch) Reset() { *m = ClusterIDMismatch{} } -func (m *ClusterIDMismatch) String() string { return proto.CompactTextString(m) } -func (*ClusterIDMismatch) ProtoMessage() {} -func (*ClusterIDMismatch) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{3} -} -func (m *ClusterIDMismatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterIDMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClusterIDMismatch.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 *ClusterIDMismatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterIDMismatch.Merge(m, src) -} -func (m *ClusterIDMismatch) XXX_Size() int { - return m.Size() -} -func (m *ClusterIDMismatch) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterIDMismatch.DiscardUnknown(m) + Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` } -var xxx_messageInfo_ClusterIDMismatch proto.InternalMessageInfo +func (m *ClusterIDMismatch) Reset() { *m = ClusterIDMismatch{} } +func (m *ClusterIDMismatch) String() string { return proto.CompactTextString(m) } +func (*ClusterIDMismatch) ProtoMessage() {} +func (*ClusterIDMismatch) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{3} } func (m *ClusterIDMismatch) GetCurrent() uint64 { if m != nil { @@ -336,49 +226,18 @@ func (m *ClusterIDMismatch) GetRequest() uint64 { } type Error struct { - NotLeader *errorpb.NotLeader `protobuf:"bytes,1,opt,name=not_leader,json=notLeader,proto3" json:"not_leader,omitempty"` - RegionNotFound *errorpb.RegionNotFound `protobuf:"bytes,2,opt,name=region_not_found,json=regionNotFound,proto3" json:"region_not_found,omitempty"` - EpochNotMatch *errorpb.EpochNotMatch `protobuf:"bytes,3,opt,name=epoch_not_match,json=epochNotMatch,proto3" json:"epoch_not_match,omitempty"` - DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest,proto3" json:"duplicate_request,omitempty"` - Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility,proto3" json:"compatibility,omitempty"` - ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch,proto3" json:"cluster_id_mismatch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{4} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + NotLeader *errorpb.NotLeader `protobuf:"bytes,1,opt,name=not_leader,json=notLeader" json:"not_leader,omitempty"` + RegionNotFound *errorpb.RegionNotFound `protobuf:"bytes,2,opt,name=region_not_found,json=regionNotFound" json:"region_not_found,omitempty"` + EpochNotMatch *errorpb.EpochNotMatch `protobuf:"bytes,3,opt,name=epoch_not_match,json=epochNotMatch" json:"epoch_not_match,omitempty"` + DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest" json:"duplicate_request,omitempty"` + Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility" json:"compatibility,omitempty"` + ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch" json:"cluster_id_mismatch,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{4} } func (m *Error) GetNotLeader() *errorpb.NotLeader { if m != nil { @@ -423,45 +282,14 @@ func (m *Error) GetClusterIdMismatch() *ClusterIDMismatch { } type TxnInfo struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Primary []byte `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnInfo) Reset() { *m = TxnInfo{} } -func (m *TxnInfo) String() string { return proto.CompactTextString(m) } -func (*TxnInfo) ProtoMessage() {} -func (*TxnInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{5} -} -func (m *TxnInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnInfo.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 *TxnInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnInfo.Merge(m, src) -} -func (m *TxnInfo) XXX_Size() int { - return m.Size() -} -func (m *TxnInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TxnInfo.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Primary []byte `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"` } -var xxx_messageInfo_TxnInfo proto.InternalMessageInfo +func (m *TxnInfo) Reset() { *m = TxnInfo{} } +func (m *TxnInfo) String() string { return proto.CompactTextString(m) } +func (*TxnInfo) ProtoMessage() {} +func (*TxnInfo) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{5} } func (m *TxnInfo) GetStartTs() uint64 { if m != nil { @@ -478,47 +306,16 @@ func (m *TxnInfo) GetPrimary() []byte { } type TxnStatus struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - MinCommitTs uint64 `protobuf:"varint,2,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - IsRolledBack bool `protobuf:"varint,4,opt,name=is_rolled_back,json=isRolledBack,proto3" json:"is_rolled_back,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnStatus) Reset() { *m = TxnStatus{} } -func (m *TxnStatus) String() string { return proto.CompactTextString(m) } -func (*TxnStatus) ProtoMessage() {} -func (*TxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{6} -} -func (m *TxnStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnStatus.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 *TxnStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnStatus.Merge(m, src) -} -func (m *TxnStatus) XXX_Size() int { - return m.Size() -} -func (m *TxnStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TxnStatus.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + MinCommitTs uint64 `protobuf:"varint,2,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + IsRolledBack bool `protobuf:"varint,4,opt,name=is_rolled_back,json=isRolledBack,proto3" json:"is_rolled_back,omitempty"` } -var xxx_messageInfo_TxnStatus proto.InternalMessageInfo +func (m *TxnStatus) Reset() { *m = TxnStatus{} } +func (m *TxnStatus) String() string { return proto.CompactTextString(m) } +func (*TxnStatus) ProtoMessage() {} +func (*TxnStatus) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{6} } func (m *TxnStatus) GetStartTs() uint64 { if m != nil { @@ -558,44 +355,13 @@ type Event struct { // *Event_Error // *Event_ResolvedTs // *Event_LongTxn_ - Event isEvent_Event `protobuf_oneof:"event"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.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 *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + Event isEvent_Event `protobuf_oneof:"event"` } -var xxx_messageInfo_Event proto.InternalMessageInfo +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7} } type isEvent_Event interface { isEvent_Event() @@ -604,19 +370,19 @@ type isEvent_Event interface { } type Event_Entries_ struct { - Entries *Event_Entries `protobuf:"bytes,3,opt,name=entries,proto3,oneof" json:"entries,omitempty"` + Entries *Event_Entries `protobuf:"bytes,3,opt,name=entries,oneof"` } type Event_Admin_ struct { - Admin *Event_Admin `protobuf:"bytes,4,opt,name=admin,proto3,oneof" json:"admin,omitempty"` + Admin *Event_Admin `protobuf:"bytes,4,opt,name=admin,oneof"` } type Event_Error struct { - Error *Error `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"` + Error *Error `protobuf:"bytes,5,opt,name=error,oneof"` } type Event_ResolvedTs struct { - ResolvedTs uint64 `protobuf:"varint,6,opt,name=resolved_ts,json=resolvedTs,proto3,oneof" json:"resolved_ts,omitempty"` + ResolvedTs uint64 `protobuf:"varint,6,opt,name=resolved_ts,json=resolvedTs,proto3,oneof"` } type Event_LongTxn_ struct { - LongTxn *Event_LongTxn `protobuf:"bytes,8,opt,name=long_txn,json=longTxn,proto3,oneof" json:"long_txn,omitempty"` + LongTxn *Event_LongTxn `protobuf:"bytes,8,opt,name=long_txn,json=longTxn,oneof"` } func (*Event_Entries_) isEvent_Event() {} @@ -674,7 +440,6 @@ func (m *Event) GetError() *Error { return nil } -// Deprecated: Do not use. func (m *Event) GetResolvedTs() uint64 { if x, ok := m.GetEvent().(*Event_ResolvedTs); ok { return x.ResolvedTs @@ -689,9 +454,9 @@ func (m *Event) GetLongTxn() *Event_LongTxn { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Event) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{ (*Event_Entries_)(nil), (*Event_Admin_)(nil), (*Event_Error)(nil), @@ -700,6 +465,121 @@ func (*Event) XXX_OneofWrappers() []interface{} { } } +func _Event_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Event) + // event + switch x := m.Event.(type) { + case *Event_Entries_: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Entries); err != nil { + return err + } + case *Event_Admin_: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Admin); err != nil { + return err + } + case *Event_Error: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case *Event_ResolvedTs: + _ = b.EncodeVarint(6<<3 | proto.WireVarint) + _ = b.EncodeVarint(uint64(x.ResolvedTs)) + case *Event_LongTxn_: + _ = b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LongTxn); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Event.Event has unexpected type %T", x) + } + return nil +} + +func _Event_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Event) + switch tag { + case 3: // event.entries + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Event_Entries) + err := b.DecodeMessage(msg) + m.Event = &Event_Entries_{msg} + return true, err + case 4: // event.admin + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Event_Admin) + err := b.DecodeMessage(msg) + m.Event = &Event_Admin_{msg} + return true, err + case 5: // event.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Error) + err := b.DecodeMessage(msg) + m.Event = &Event_Error{msg} + return true, err + case 6: // event.resolved_ts + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Event = &Event_ResolvedTs{x} + return true, err + case 8: // event.long_txn + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Event_LongTxn) + err := b.DecodeMessage(msg) + m.Event = &Event_LongTxn_{msg} + return true, err + default: + return false, nil + } +} + +func _Event_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Event) + // event + switch x := m.Event.(type) { + case *Event_Entries_: + s := proto.Size(x.Entries) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_Admin_: + s := proto.Size(x.Admin) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_Error: + s := proto.Size(x.Error) + n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_ResolvedTs: + n += proto.SizeVarint(6<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.ResolvedTs)) + case *Event_LongTxn_: + s := proto.Size(x.LongTxn) + n += proto.SizeVarint(8<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type Event_Row struct { StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` @@ -713,44 +593,13 @@ type Event_Row struct { // Absolute time, seconds since Unix epoch. ExpireTsUnixSecs uint64 `protobuf:"varint,8,opt,name=expire_ts_unix_secs,json=expireTsUnixSecs,proto3" json:"expire_ts_unix_secs,omitempty"` // The source of this row. - TxnSource uint64 `protobuf:"varint,9,opt,name=txn_source,json=txnSource,proto3" json:"txn_source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event_Row) Reset() { *m = Event_Row{} } -func (m *Event_Row) String() string { return proto.CompactTextString(m) } -func (*Event_Row) ProtoMessage() {} -func (*Event_Row) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0} -} -func (m *Event_Row) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event_Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event_Row.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 *Event_Row) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Row.Merge(m, src) -} -func (m *Event_Row) XXX_Size() int { - return m.Size() -} -func (m *Event_Row) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Row.DiscardUnknown(m) + TxnSource uint64 `protobuf:"varint,9,opt,name=txn_source,json=txnSource,proto3" json:"txn_source,omitempty"` } -var xxx_messageInfo_Event_Row proto.InternalMessageInfo +func (m *Event_Row) Reset() { *m = Event_Row{} } +func (m *Event_Row) String() string { return proto.CompactTextString(m) } +func (*Event_Row) ProtoMessage() {} +func (*Event_Row) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0} } func (m *Event_Row) GetStartTs() uint64 { if m != nil { @@ -816,44 +665,13 @@ func (m *Event_Row) GetTxnSource() uint64 { } type Event_Entries struct { - Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event_Entries) Reset() { *m = Event_Entries{} } -func (m *Event_Entries) String() string { return proto.CompactTextString(m) } -func (*Event_Entries) ProtoMessage() {} -func (*Event_Entries) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 1} -} -func (m *Event_Entries) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event_Entries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event_Entries.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 *Event_Entries) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Entries.Merge(m, src) -} -func (m *Event_Entries) XXX_Size() int { - return m.Size() -} -func (m *Event_Entries) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Entries.DiscardUnknown(m) + Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` } -var xxx_messageInfo_Event_Entries proto.InternalMessageInfo +func (m *Event_Entries) Reset() { *m = Event_Entries{} } +func (m *Event_Entries) String() string { return proto.CompactTextString(m) } +func (*Event_Entries) ProtoMessage() {} +func (*Event_Entries) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 1} } func (m *Event_Entries) GetEntries() []*Event_Row { if m != nil { @@ -863,45 +681,14 @@ func (m *Event_Entries) GetEntries() []*Event_Row { } type Event_Admin struct { - AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,1,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` - AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,2,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event_Admin) Reset() { *m = Event_Admin{} } -func (m *Event_Admin) String() string { return proto.CompactTextString(m) } -func (*Event_Admin) ProtoMessage() {} -func (*Event_Admin) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 2} -} -func (m *Event_Admin) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event_Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event_Admin.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 *Event_Admin) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_Admin.Merge(m, src) -} -func (m *Event_Admin) XXX_Size() int { - return m.Size() -} -func (m *Event_Admin) XXX_DiscardUnknown() { - xxx_messageInfo_Event_Admin.DiscardUnknown(m) + AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,1,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` + AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,2,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` } -var xxx_messageInfo_Event_Admin proto.InternalMessageInfo +func (m *Event_Admin) Reset() { *m = Event_Admin{} } +func (m *Event_Admin) String() string { return proto.CompactTextString(m) } +func (*Event_Admin) ProtoMessage() {} +func (*Event_Admin) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 2} } func (m *Event_Admin) GetAdminRequest() *raft_cmdpb.AdminRequest { if m != nil { @@ -918,44 +705,13 @@ func (m *Event_Admin) GetAdminResponse() *raft_cmdpb.AdminResponse { } type Event_LongTxn struct { - TxnInfo []*TxnInfo `protobuf:"bytes,1,rep,name=txn_info,json=txnInfo,proto3" json:"txn_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event_LongTxn) Reset() { *m = Event_LongTxn{} } -func (m *Event_LongTxn) String() string { return proto.CompactTextString(m) } -func (*Event_LongTxn) ProtoMessage() {} -func (*Event_LongTxn) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 3} -} -func (m *Event_LongTxn) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event_LongTxn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event_LongTxn.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 *Event_LongTxn) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event_LongTxn.Merge(m, src) -} -func (m *Event_LongTxn) XXX_Size() int { - return m.Size() -} -func (m *Event_LongTxn) XXX_DiscardUnknown() { - xxx_messageInfo_Event_LongTxn.DiscardUnknown(m) + TxnInfo []*TxnInfo `protobuf:"bytes,1,rep,name=txn_info,json=txnInfo" json:"txn_info,omitempty"` } -var xxx_messageInfo_Event_LongTxn proto.InternalMessageInfo +func (m *Event_LongTxn) Reset() { *m = Event_LongTxn{} } +func (m *Event_LongTxn) String() string { return proto.CompactTextString(m) } +func (*Event_LongTxn) ProtoMessage() {} +func (*Event_LongTxn) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 3} } func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { if m != nil { @@ -966,45 +722,14 @@ func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { // NOTE: events and resolved_ts won't appear simultaneously in one ChangeDataEvent. type ChangeDataEvent struct { - Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - ResolvedTs *ResolvedTs `protobuf:"bytes,2,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangeDataEvent) Reset() { *m = ChangeDataEvent{} } -func (m *ChangeDataEvent) String() string { return proto.CompactTextString(m) } -func (*ChangeDataEvent) ProtoMessage() {} -func (*ChangeDataEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{8} -} -func (m *ChangeDataEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangeDataEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangeDataEvent.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 *ChangeDataEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataEvent.Merge(m, src) -} -func (m *ChangeDataEvent) XXX_Size() int { - return m.Size() -} -func (m *ChangeDataEvent) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeDataEvent.DiscardUnknown(m) + Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` + ResolvedTs *ResolvedTs `protobuf:"bytes,2,opt,name=resolved_ts,json=resolvedTs" json:"resolved_ts,omitempty"` } -var xxx_messageInfo_ChangeDataEvent proto.InternalMessageInfo +func (m *ChangeDataEvent) Reset() { *m = ChangeDataEvent{} } +func (m *ChangeDataEvent) String() string { return proto.CompactTextString(m) } +func (*ChangeDataEvent) ProtoMessage() {} +func (*ChangeDataEvent) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{8} } func (m *ChangeDataEvent) GetEvents() []*Event { if m != nil { @@ -1021,46 +746,15 @@ func (m *ChangeDataEvent) GetResolvedTs() *ResolvedTs { } type ResolvedTs struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` - RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResolvedTs) Reset() { *m = ResolvedTs{} } -func (m *ResolvedTs) String() string { return proto.CompactTextString(m) } -func (*ResolvedTs) ProtoMessage() {} -func (*ResolvedTs) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{9} -} -func (m *ResolvedTs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResolvedTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResolvedTs.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 *ResolvedTs) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolvedTs.Merge(m, src) -} -func (m *ResolvedTs) XXX_Size() int { - return m.Size() -} -func (m *ResolvedTs) XXX_DiscardUnknown() { - xxx_messageInfo_ResolvedTs.DiscardUnknown(m) + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -var xxx_messageInfo_ResolvedTs proto.InternalMessageInfo +func (m *ResolvedTs) Reset() { *m = ResolvedTs{} } +func (m *ResolvedTs) String() string { return proto.CompactTextString(m) } +func (*ResolvedTs) ProtoMessage() {} +func (*ResolvedTs) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{9} } func (m *ResolvedTs) GetRegions() []uint64 { if m != nil { @@ -1084,9 +778,9 @@ func (m *ResolvedTs) GetRequestId() uint64 { } type ChangeDataRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` CheckpointTs uint64 `protobuf:"varint,4,opt,name=checkpoint_ts,json=checkpointTs,proto3" json:"checkpoint_ts,omitempty"` StartKey []byte `protobuf:"bytes,5,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,6,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` @@ -1102,44 +796,13 @@ type ChangeDataRequest struct { Request isChangeDataRequest_Request `protobuf_oneof:"request"` KvApi ChangeDataRequest_KvAPI `protobuf:"varint,11,opt,name=kv_api,json=kvApi,proto3,enum=cdcpb.ChangeDataRequest_KvAPI" json:"kv_api,omitempty"` // Whether to filter out the value write by cdc itself. - FilterLoop bool `protobuf:"varint,12,opt,name=filter_loop,json=filterLoop,proto3" json:"filter_loop,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangeDataRequest) Reset() { *m = ChangeDataRequest{} } -func (m *ChangeDataRequest) String() string { return proto.CompactTextString(m) } -func (*ChangeDataRequest) ProtoMessage() {} -func (*ChangeDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10} -} -func (m *ChangeDataRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangeDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangeDataRequest.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 *ChangeDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataRequest.Merge(m, src) -} -func (m *ChangeDataRequest) XXX_Size() int { - return m.Size() -} -func (m *ChangeDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeDataRequest.DiscardUnknown(m) + FilterLoop bool `protobuf:"varint,12,opt,name=filter_loop,json=filterLoop,proto3" json:"filter_loop,omitempty"` } -var xxx_messageInfo_ChangeDataRequest proto.InternalMessageInfo +func (m *ChangeDataRequest) Reset() { *m = ChangeDataRequest{} } +func (m *ChangeDataRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeDataRequest) ProtoMessage() {} +func (*ChangeDataRequest) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{10} } type isChangeDataRequest_Request interface { isChangeDataRequest_Request() @@ -1148,13 +811,13 @@ type isChangeDataRequest_Request interface { } type ChangeDataRequest_Register_ struct { - Register *ChangeDataRequest_Register `protobuf:"bytes,9,opt,name=register,proto3,oneof" json:"register,omitempty"` + Register *ChangeDataRequest_Register `protobuf:"bytes,9,opt,name=register,oneof"` } type ChangeDataRequest_NotifyTxnStatus_ struct { - NotifyTxnStatus *ChangeDataRequest_NotifyTxnStatus `protobuf:"bytes,10,opt,name=notify_txn_status,json=notifyTxnStatus,proto3,oneof" json:"notify_txn_status,omitempty"` + NotifyTxnStatus *ChangeDataRequest_NotifyTxnStatus `protobuf:"bytes,10,opt,name=notify_txn_status,json=notifyTxnStatus,oneof"` } type ChangeDataRequest_Deregister_ struct { - Deregister *ChangeDataRequest_Deregister `protobuf:"bytes,13,opt,name=deregister,proto3,oneof" json:"deregister,omitempty"` + Deregister *ChangeDataRequest_Deregister `protobuf:"bytes,13,opt,name=deregister,oneof"` } func (*ChangeDataRequest_Register_) isChangeDataRequest_Request() {} @@ -1259,132 +922,129 @@ func (m *ChangeDataRequest) GetFilterLoop() bool { return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ChangeDataRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ChangeDataRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ChangeDataRequest_OneofMarshaler, _ChangeDataRequest_OneofUnmarshaler, _ChangeDataRequest_OneofSizer, []interface{}{ (*ChangeDataRequest_Register_)(nil), (*ChangeDataRequest_NotifyTxnStatus_)(nil), (*ChangeDataRequest_Deregister_)(nil), } } +func _ChangeDataRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ChangeDataRequest) + // request + switch x := m.Request.(type) { + case *ChangeDataRequest_Register_: + _ = b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Register); err != nil { + return err + } + case *ChangeDataRequest_NotifyTxnStatus_: + _ = b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NotifyTxnStatus); err != nil { + return err + } + case *ChangeDataRequest_Deregister_: + _ = b.EncodeVarint(13<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Deregister); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ChangeDataRequest.Request has unexpected type %T", x) + } + return nil +} + +func _ChangeDataRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ChangeDataRequest) + switch tag { + case 9: // request.register + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ChangeDataRequest_Register) + err := b.DecodeMessage(msg) + m.Request = &ChangeDataRequest_Register_{msg} + return true, err + case 10: // request.notify_txn_status + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ChangeDataRequest_NotifyTxnStatus) + err := b.DecodeMessage(msg) + m.Request = &ChangeDataRequest_NotifyTxnStatus_{msg} + return true, err + case 13: // request.deregister + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ChangeDataRequest_Deregister) + err := b.DecodeMessage(msg) + m.Request = &ChangeDataRequest_Deregister_{msg} + return true, err + default: + return false, nil + } +} + +func _ChangeDataRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ChangeDataRequest) + // request + switch x := m.Request.(type) { + case *ChangeDataRequest_Register_: + s := proto.Size(x.Register) + n += proto.SizeVarint(9<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ChangeDataRequest_NotifyTxnStatus_: + s := proto.Size(x.NotifyTxnStatus) + n += proto.SizeVarint(10<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ChangeDataRequest_Deregister_: + s := proto.Size(x.Deregister) + n += proto.SizeVarint(13<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type ChangeDataRequest_Register struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ChangeDataRequest_Register) Reset() { *m = ChangeDataRequest_Register{} } func (m *ChangeDataRequest_Register) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Register) ProtoMessage() {} func (*ChangeDataRequest_Register) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 0} -} -func (m *ChangeDataRequest_Register) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangeDataRequest_Register) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangeDataRequest_Register.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 *ChangeDataRequest_Register) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataRequest_Register.Merge(m, src) -} -func (m *ChangeDataRequest_Register) XXX_Size() int { - return m.Size() + return fileDescriptorCdcpb, []int{10, 0} } -func (m *ChangeDataRequest_Register) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeDataRequest_Register.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeDataRequest_Register proto.InternalMessageInfo type ChangeDataRequest_Deregister struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ChangeDataRequest_Deregister) Reset() { *m = ChangeDataRequest_Deregister{} } func (m *ChangeDataRequest_Deregister) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Deregister) ProtoMessage() {} func (*ChangeDataRequest_Deregister) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 1} -} -func (m *ChangeDataRequest_Deregister) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangeDataRequest_Deregister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangeDataRequest_Deregister.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 *ChangeDataRequest_Deregister) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataRequest_Deregister.Merge(m, src) -} -func (m *ChangeDataRequest_Deregister) XXX_Size() int { - return m.Size() -} -func (m *ChangeDataRequest_Deregister) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeDataRequest_Deregister.DiscardUnknown(m) + return fileDescriptorCdcpb, []int{10, 1} } -var xxx_messageInfo_ChangeDataRequest_Deregister proto.InternalMessageInfo - type ChangeDataRequest_NotifyTxnStatus struct { - TxnStatus []*TxnStatus `protobuf:"bytes,1,rep,name=txn_status,json=txnStatus,proto3" json:"txn_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TxnStatus []*TxnStatus `protobuf:"bytes,1,rep,name=txn_status,json=txnStatus" json:"txn_status,omitempty"` } func (m *ChangeDataRequest_NotifyTxnStatus) Reset() { *m = ChangeDataRequest_NotifyTxnStatus{} } func (m *ChangeDataRequest_NotifyTxnStatus) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_NotifyTxnStatus) ProtoMessage() {} func (*ChangeDataRequest_NotifyTxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 2} -} -func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorCdcpb, []int{10, 2} } -func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.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 *ChangeDataRequest_NotifyTxnStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.Merge(m, src) -} -func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Size() int { - return m.Size() -} -func (m *ChangeDataRequest_NotifyTxnStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus proto.InternalMessageInfo func (m *ChangeDataRequest_NotifyTxnStatus) GetTxnStatus() []*TxnStatus { if m != nil { @@ -1394,9 +1054,6 @@ func (m *ChangeDataRequest_NotifyTxnStatus) GetTxnStatus() []*TxnStatus { } func init() { - proto.RegisterEnum("cdcpb.Event_LogType", Event_LogType_name, Event_LogType_value) - proto.RegisterEnum("cdcpb.Event_Row_OpType", Event_Row_OpType_name, Event_Row_OpType_value) - proto.RegisterEnum("cdcpb.ChangeDataRequest_KvAPI", ChangeDataRequest_KvAPI_name, ChangeDataRequest_KvAPI_value) proto.RegisterType((*Header)(nil), "cdcpb.Header") proto.RegisterType((*DuplicateRequest)(nil), "cdcpb.DuplicateRequest") proto.RegisterType((*Compatibility)(nil), "cdcpb.Compatibility") @@ -1415,104 +1072,9 @@ func init() { proto.RegisterType((*ChangeDataRequest_Register)(nil), "cdcpb.ChangeDataRequest.Register") proto.RegisterType((*ChangeDataRequest_Deregister)(nil), "cdcpb.ChangeDataRequest.Deregister") proto.RegisterType((*ChangeDataRequest_NotifyTxnStatus)(nil), "cdcpb.ChangeDataRequest.NotifyTxnStatus") -} - -func init() { proto.RegisterFile("cdcpb.proto", fileDescriptor_911209a1d38ef245) } - -var fileDescriptor_911209a1d38ef245 = []byte{ - // 1466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0xb7, 0xfc, 0xdf, 0xcf, 0x76, 0xa2, 0x6c, 0x3b, 0xad, 0x6b, 0x86, 0x50, 0xdc, 0x16, 0xd2, - 0x32, 0xb8, 0xad, 0xa1, 0x1c, 0x3a, 0x43, 0x21, 0x8e, 0x5d, 0xe2, 0x89, 0xe3, 0x74, 0xb6, 0x4a, - 0x3a, 0xc3, 0x01, 0x8d, 0x22, 0x6d, 0x1c, 0x8d, 0x6d, 0xad, 0x2a, 0xad, 0x5d, 0xe7, 0xc6, 0x11, - 0x0e, 0xdc, 0x38, 0xf0, 0x11, 0xf8, 0x28, 0x1c, 0x39, 0xf6, 0xc8, 0x94, 0x8f, 0xc0, 0x17, 0x60, - 0xf6, 0xad, 0x24, 0xff, 0x69, 0x53, 0x66, 0x38, 0x69, 0xdf, 0xfb, 0xbd, 0x7d, 0xfb, 0xfe, 0x3f, - 0x41, 0xd9, 0x76, 0x6c, 0xff, 0xb4, 0xe9, 0x07, 0x5c, 0x70, 0x92, 0x43, 0xa2, 0xae, 0x07, 0xd6, - 0x99, 0x30, 0xed, 0x89, 0x13, 0x03, 0xf5, 0xca, 0x84, 0x09, 0x2b, 0xa1, 0xaa, 0x2c, 0x08, 0x78, - 0xb0, 0x20, 0x47, 0xb3, 0xc0, 0x4f, 0x94, 0xd4, 0xaf, 0x0e, 0xf9, 0x90, 0xe3, 0xf1, 0xbe, 0x3c, - 0x45, 0xdc, 0xcd, 0x60, 0x1a, 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, 0x6f, - 0xb6, 0xb5, 0xbf, 0xde, 0x6c, 0x6b, 0xbf, 0xfd, 0xbd, 0x9d, 0x02, 0x9d, 0x07, 0xc3, 0xa6, 0x70, - 0x47, 0xb3, 0xe6, 0x68, 0x86, 0xff, 0xf6, 0xa7, 0x79, 0xfc, 0x7c, 0xf1, 0x6f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xae, 0xbe, 0x39, 0x6e, 0x5d, 0x0c, 0x00, 0x00, + proto.RegisterEnum("cdcpb.Event_LogType", Event_LogType_name, Event_LogType_value) + proto.RegisterEnum("cdcpb.Event_Row_OpType", Event_Row_OpType_name, Event_Row_OpType_value) + proto.RegisterEnum("cdcpb.ChangeDataRequest_KvAPI", ChangeDataRequest_KvAPI_name, ChangeDataRequest_KvAPI_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1523,9 +1085,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ChangeDataClient is the client API for ChangeData service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ChangeData service + type ChangeDataClient interface { EventFeed(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedClient, error) // EventFeedV2 is like EventFeed, with some new changes: @@ -1544,7 +1105,7 @@ func NewChangeDataClient(cc *grpc.ClientConn) ChangeDataClient { } func (c *changeDataClient) EventFeed(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedClient, error) { - stream, err := c.cc.NewStream(ctx, &_ChangeData_serviceDesc.Streams[0], "/cdcpb.ChangeData/EventFeed", opts...) + stream, err := grpc.NewClientStream(ctx, &_ChangeData_serviceDesc.Streams[0], c.cc, "/cdcpb.ChangeData/EventFeed", opts...) if err != nil { return nil, err } @@ -1575,7 +1136,7 @@ func (x *changeDataEventFeedClient) Recv() (*ChangeDataEvent, error) { } func (c *changeDataClient) EventFeedV2(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedV2Client, error) { - stream, err := c.cc.NewStream(ctx, &_ChangeData_serviceDesc.Streams[1], "/cdcpb.ChangeData/EventFeedV2", opts...) + stream, err := grpc.NewClientStream(ctx, &_ChangeData_serviceDesc.Streams[1], c.cc, "/cdcpb.ChangeData/EventFeedV2", opts...) if err != nil { return nil, err } @@ -1605,7 +1166,8 @@ func (x *changeDataEventFeedV2Client) Recv() (*ChangeDataEvent, error) { return m, nil } -// ChangeDataServer is the server API for ChangeData service. +// Server API for ChangeData service + type ChangeDataServer interface { EventFeed(ChangeData_EventFeedServer) error // EventFeedV2 is like EventFeed, with some new changes: @@ -1615,17 +1177,6 @@ type ChangeDataServer interface { EventFeedV2(ChangeData_EventFeedV2Server) error } -// UnimplementedChangeDataServer can be embedded to have forward compatible implementations. -type UnimplementedChangeDataServer struct { -} - -func (*UnimplementedChangeDataServer) EventFeed(srv ChangeData_EventFeedServer) error { - return status.Errorf(codes.Unimplemented, "method EventFeed not implemented") -} -func (*UnimplementedChangeDataServer) EventFeedV2(srv ChangeData_EventFeedV2Server) error { - return status.Errorf(codes.Unimplemented, "method EventFeedV2 not implemented") -} - func RegisterChangeDataServer(s *grpc.Server, srv ChangeDataServer) { s.RegisterService(&_ChangeData_serviceDesc, srv) } @@ -1706,7 +1257,7 @@ var _ChangeData_serviceDesc = grpc.ServiceDesc{ func (m *Header) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1714,38 +1265,28 @@ func (m *Header) Marshal() (dAtA []byte, err error) { } func (m *Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterId)) } if len(m.TicdcVersion) > 0 { - i -= len(m.TicdcVersion) - copy(dAtA[i:], m.TicdcVersion) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.TicdcVersion))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.TicdcVersion))) + i += copy(dAtA[i:], m.TicdcVersion) } - if m.ClusterId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *DuplicateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1753,31 +1294,22 @@ func (m *DuplicateRequest) Marshal() (dAtA []byte, err error) { } func (m *DuplicateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *Compatibility) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1785,33 +1317,23 @@ func (m *Compatibility) Marshal() (dAtA []byte, err error) { } func (m *Compatibility) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Compatibility) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.RequiredVersion) > 0 { - i -= len(m.RequiredVersion) - copy(dAtA[i:], m.RequiredVersion) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.RequiredVersion))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.RequiredVersion))) + i += copy(dAtA[i:], m.RequiredVersion) } - return len(dAtA) - i, nil + return i, nil } func (m *ClusterIDMismatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1819,36 +1341,27 @@ func (m *ClusterIDMismatch) Marshal() (dAtA []byte, err error) { } func (m *ClusterIDMismatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterIDMismatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Current != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Current)) } if m.Request != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Request)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Request)) } - if m.Current != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Current)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1856,98 +1369,77 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ClusterIdMismatch != nil { - { - size, err := m.ClusterIdMismatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.NotLeader != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.NotLeader.Size())) + n1, err := m.NotLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n1 } - if m.Compatibility != nil { - { - size, err := m.Compatibility.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.RegionNotFound != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionNotFound.Size())) + n2, err := m.RegionNotFound.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n2 } - if m.DuplicateRequest != nil { - { - size, err := m.DuplicateRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.EpochNotMatch != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.EpochNotMatch.Size())) + n3, err := m.EpochNotMatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n3 } - if m.EpochNotMatch != nil { - { - size, err := m.EpochNotMatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.DuplicateRequest != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.DuplicateRequest.Size())) + n4, err := m.DuplicateRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n4 } - if m.RegionNotFound != nil { - { - size, err := m.RegionNotFound.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.Compatibility != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Compatibility.Size())) + n5, err := m.Compatibility.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n5 } - if m.NotLeader != nil { - { - size, err := m.NotLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.ClusterIdMismatch != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterIdMismatch.Size())) + n6, err := m.ClusterIdMismatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *TxnInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1955,38 +1447,28 @@ func (m *TxnInfo) Marshal() (dAtA []byte, err error) { } func (m *TxnInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) } if len(m.Primary) > 0 { - i -= len(m.Primary) - copy(dAtA[i:], m.Primary) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Primary))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Primary))) + i += copy(dAtA[i:], m.Primary) } - if m.StartTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *TxnStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1994,51 +1476,42 @@ func (m *TxnStatus) Marshal() (dAtA []byte, err error) { } func (m *TxnStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + } + if m.MinCommitTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.MinCommitTs)) + } + if m.CommitTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) } if m.IsRolledBack { - i-- + dAtA[i] = 0x20 + i++ if m.IsRolledBack { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.CommitTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 - } - if m.MinCommitTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x10 - } - if m.StartTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *Event) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2046,146 +1519,102 @@ func (m *Event) Marshal() (dAtA []byte, err error) { } func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + } + if m.Index != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Index)) } if m.Event != nil { - { - size := m.Event.Size() - i -= size - if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn7, err := m.Event.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn7 } if m.RequestId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) - i-- dAtA[i] = 0x38 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) } - if m.Index != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x10 - } - if m.RegionId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Entries_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Entries_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Entries != nil { - { - size, err := m.Entries.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Entries.Size())) + n8, err := m.Entries.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Admin_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Admin_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Admin != nil { - { - size, err := m.Admin.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Admin.Size())) + n9, err := m.Admin.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Error.Size())) + n10, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *Event_ResolvedTs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs)) - i-- + i := 0 dAtA[i] = 0x30 - return len(dAtA) - i, nil + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs)) + return i, nil } func (m *Event_LongTxn_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_LongTxn_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.LongTxn != nil { - { - size, err := m.LongTxn.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x42 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.LongTxn.Size())) + n11, err := m.LongTxn.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Row) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2193,77 +1622,65 @@ func (m *Event_Row) Marshal() (dAtA []byte, err error) { } func (m *Event_Row) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Row) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TxnSource != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) - i-- - dAtA[i] = 0x48 + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) } - if m.ExpireTsUnixSecs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) - i-- - dAtA[i] = 0x40 + if m.CommitTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) } - if len(m.OldValue) > 0 { - i -= len(m.OldValue) - copy(dAtA[i:], m.OldValue) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) - i-- - dAtA[i] = 0x3a + if m.Type != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x32 + if m.OpType != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.OpType != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) - i-- - dAtA[i] = 0x20 + if len(m.Value) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if m.Type != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 + if len(m.OldValue) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) + i += copy(dAtA[i:], m.OldValue) } - if m.CommitTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x10 + if m.ExpireTsUnixSecs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) } - if m.StartTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.TxnSource != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Entries) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2271,40 +1688,29 @@ func (m *Event_Entries) Marshal() (dAtA []byte, err error) { } func (m *Event_Entries) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Entries) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Entries { dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *Event_Admin) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2312,50 +1718,37 @@ func (m *Event_Admin) Marshal() (dAtA []byte, err error) { } func (m *Event_Admin) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Admin) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.AdminRequest != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.AdminRequest.Size())) + n12, err := m.AdminRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } if m.AdminResponse != nil { - { - size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.AdminRequest != nil { - { - size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.AdminResponse.Size())) + n13, err := m.AdminResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *Event_LongTxn) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2363,40 +1756,29 @@ func (m *Event_LongTxn) Marshal() (dAtA []byte, err error) { } func (m *Event_LongTxn) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_LongTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.TxnInfo) > 0 { - for iNdEx := len(m.TxnInfo) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TxnInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.TxnInfo { dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2404,52 +1786,39 @@ func (m *ChangeDataEvent) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ResolvedTs != nil { - { - size, err := m.ResolvedTs.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Events) > 0 { + for _, msg := range m.Events { + dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - 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 = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.ResolvedTs != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs.Size())) + n14, err := m.ResolvedTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n14 } - return len(dAtA) - i, nil + return i, nil } func (m *ResolvedTs) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2457,54 +1826,44 @@ func (m *ResolvedTs) Marshal() (dAtA []byte, err error) { } func (m *ResolvedTs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RequestId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) - i-- - dAtA[i] = 0x18 - } - if m.Ts != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Ts)) - i-- - dAtA[i] = 0x10 - } if len(m.Regions) > 0 { - dAtA15 := make([]byte, len(m.Regions)*10) - var j14 int + dAtA16 := make([]byte, len(m.Regions)*10) + var j15 int for _, num := range m.Regions { for num >= 1<<7 { - dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) + dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j14++ + j15++ } - dAtA15[j14] = uint8(num) - j14++ + dAtA16[j15] = uint8(num) + j15++ } - i -= j14 - copy(dAtA[i:], dAtA15[:j14]) - i = encodeVarintCdcpb(dAtA, i, uint64(j14)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(j15)) + i += copy(dAtA[i:], dAtA16[:j15]) + } + if m.Ts != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Ts)) + } + if m.RequestId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2512,171 +1871,133 @@ func (m *ChangeDataRequest) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Request != nil { - { - size := m.Request.Size() - i -= size - if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Header.Size())) + n17, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n17 } - if m.FilterLoop { - i-- - if m.FilterLoop { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) } - if m.KvApi != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.KvApi)) - i-- - dAtA[i] = 0x58 + if m.RegionEpoch != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n18, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - if m.ExtraOp != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.ExtraOp)) - i-- - dAtA[i] = 0x40 + if m.CheckpointTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.CheckpointTs)) } - if m.RequestId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) - i-- - dAtA[i] = 0x38 + if len(m.StartKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x2a - } - if m.CheckpointTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.CheckpointTs)) - i-- - dAtA[i] = 0x20 + if m.RequestId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.ExtraOp != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExtraOp)) + } + if m.Request != nil { + nn19, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += nn19 } - if m.RegionId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + if m.KvApi != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.KvApi)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.FilterLoop { + dAtA[i] = 0x60 + i++ + if m.FilterLoop { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_Register_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_Register_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Register != nil { - { - size, err := m.Register.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x4a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Register.Size())) + n20, err := m.Register.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_NotifyTxnStatus_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_NotifyTxnStatus_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.NotifyTxnStatus != nil { - { - size, err := m.NotifyTxnStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x52 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.NotifyTxnStatus.Size())) + n21, err := m.NotifyTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_Deregister_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_Deregister_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Deregister != nil { - { - size, err := m.Deregister.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x6a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Deregister.Size())) + n22, err := m.Deregister.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_Register) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2684,26 +2005,17 @@ func (m *ChangeDataRequest_Register) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_Register) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_Register) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_Deregister) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2711,26 +2023,17 @@ func (m *ChangeDataRequest_Deregister) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_Deregister) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_Deregister) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ChangeDataRequest_NotifyTxnStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2738,51 +2041,35 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_NotifyTxnStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangeDataRequest_NotifyTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.TxnStatus) > 0 { - for iNdEx := len(m.TxnStatus) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TxnStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.TxnStatus { dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func encodeVarintCdcpb(dAtA []byte, offset int, v uint64) int { - offset -= sovCdcpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *Header) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2792,47 +2079,29 @@ func (m *Header) Size() (n int) { if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DuplicateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovCdcpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Compatibility) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.RequiredVersion) if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ClusterIDMismatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Current != 0 { @@ -2841,16 +2110,10 @@ func (m *ClusterIDMismatch) Size() (n int) { if m.Request != 0 { n += 1 + sovCdcpb(uint64(m.Request)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotLeader != nil { @@ -2877,16 +2140,10 @@ func (m *Error) Size() (n int) { l = m.ClusterIdMismatch.Size() n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -2896,16 +2153,10 @@ func (m *TxnInfo) Size() (n int) { if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -2920,16 +2171,10 @@ func (m *TxnStatus) Size() (n int) { if m.IsRolledBack { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2944,16 +2189,10 @@ func (m *Event) Size() (n int) { if m.RequestId != 0 { n += 1 + sovCdcpb(uint64(m.RequestId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event_Entries_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Entries != nil { @@ -2963,9 +2202,6 @@ func (m *Event_Entries_) Size() (n int) { return n } func (m *Event_Admin_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Admin != nil { @@ -2975,9 +2211,6 @@ func (m *Event_Admin_) Size() (n int) { return n } func (m *Event_Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -2987,18 +2220,12 @@ func (m *Event_Error) Size() (n int) { return n } func (m *Event_ResolvedTs) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l n += 1 + sovCdcpb(uint64(m.ResolvedTs)) return n } func (m *Event_LongTxn_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LongTxn != nil { @@ -3008,9 +2235,6 @@ func (m *Event_LongTxn_) Size() (n int) { return n } func (m *Event_Row) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -3043,16 +2267,10 @@ func (m *Event_Row) Size() (n int) { if m.TxnSource != 0 { n += 1 + sovCdcpb(uint64(m.TxnSource)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event_Entries) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -3061,16 +2279,10 @@ func (m *Event_Entries) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event_Admin) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AdminRequest != nil { @@ -3081,16 +2293,10 @@ func (m *Event_Admin) Size() (n int) { l = m.AdminResponse.Size() n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event_LongTxn) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.TxnInfo) > 0 { @@ -3099,16 +2305,10 @@ func (m *Event_LongTxn) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangeDataEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Events) > 0 { @@ -3121,16 +2321,10 @@ func (m *ChangeDataEvent) Size() (n int) { l = m.ResolvedTs.Size() n += 1 + l + sovCdcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResolvedTs) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -3146,16 +2340,10 @@ func (m *ResolvedTs) Size() (n int) { if m.RequestId != 0 { n += 1 + sovCdcpb(uint64(m.RequestId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangeDataRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3195,16 +2383,10 @@ func (m *ChangeDataRequest) Size() (n int) { if m.FilterLoop { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangeDataRequest_Register_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Register != nil { @@ -3214,9 +2396,6 @@ func (m *ChangeDataRequest_Register_) Size() (n int) { return n } func (m *ChangeDataRequest_NotifyTxnStatus_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotifyTxnStatus != nil { @@ -3226,9 +2405,6 @@ func (m *ChangeDataRequest_NotifyTxnStatus_) Size() (n int) { return n } func (m *ChangeDataRequest_Deregister_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Deregister != nil { @@ -3238,33 +2414,18 @@ func (m *ChangeDataRequest_Deregister_) Size() (n int) { return n } func (m *ChangeDataRequest_Register) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangeDataRequest_Deregister) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.TxnStatus) > 0 { @@ -3273,14 +2434,18 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovCdcpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozCdcpb(x uint64) (n int) { return sovCdcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3300,7 +2465,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3328,7 +2493,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3347,7 +2512,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3357,9 +2522,6 @@ func (m *Header) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3371,13 +2533,12 @@ func (m *Header) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3402,7 +2563,7 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3430,7 +2591,7 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3441,13 +2602,12 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3472,7 +2632,7 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3500,7 +2660,7 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3510,9 +2670,6 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3524,13 +2681,12 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3555,7 +2711,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3583,7 +2739,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Current |= uint64(b&0x7F) << shift + m.Current |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3602,7 +2758,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Request |= uint64(b&0x7F) << shift + m.Request |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3613,13 +2769,12 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3644,7 +2799,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3672,7 +2827,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3681,9 +2836,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3708,7 +2860,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3717,9 +2869,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3744,7 +2893,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3753,9 +2902,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3780,7 +2926,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3789,9 +2935,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3816,7 +2959,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3825,9 +2968,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3852,7 +2992,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3861,9 +3001,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3880,13 +3017,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3911,7 +3047,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3939,7 +3075,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3958,7 +3094,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3967,9 +3103,6 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3984,13 +3117,12 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4015,7 +3147,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4043,7 +3175,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4062,7 +3194,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4081,7 +3213,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4100,7 +3232,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4112,13 +3244,12 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4143,7 +3274,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4171,7 +3302,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4190,7 +3321,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4209,7 +3340,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4218,9 +3349,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4244,7 +3372,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4253,9 +3381,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4279,7 +3404,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4288,9 +3413,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4314,7 +3436,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4334,7 +3456,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= uint64(b&0x7F) << shift + m.RequestId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4353,7 +3475,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4362,9 +3484,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4380,13 +3499,12 @@ func (m *Event) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4411,7 +3529,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4439,7 +3557,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4458,7 +3576,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4477,7 +3595,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Event_LogType(b&0x7F) << shift + m.Type |= (Event_LogType(b) & 0x7F) << shift if b < 0x80 { break } @@ -4496,7 +3614,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OpType |= Event_Row_OpType(b&0x7F) << shift + m.OpType |= (Event_Row_OpType(b) & 0x7F) << shift if b < 0x80 { break } @@ -4515,7 +3633,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4524,9 +3642,6 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4549,7 +3664,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4558,9 +3673,6 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4583,7 +3695,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4592,9 +3704,6 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4617,7 +3726,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExpireTsUnixSecs |= uint64(b&0x7F) << shift + m.ExpireTsUnixSecs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4636,7 +3745,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSource |= uint64(b&0x7F) << shift + m.TxnSource |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4647,13 +3756,12 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4678,7 +3786,7 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4706,7 +3814,7 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4715,9 +3823,6 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4732,13 +3837,12 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4763,7 +3867,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4791,7 +3895,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4800,9 +3904,6 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4827,7 +3928,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4836,9 +3937,6 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4855,13 +3953,12 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4886,7 +3983,7 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4914,7 +4011,7 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4923,9 +4020,6 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4940,13 +4034,12 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4971,7 +4064,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4999,7 +4092,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5008,9 +4101,6 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5033,7 +4123,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5042,9 +4132,6 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5061,13 +4148,12 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5092,7 +4178,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5118,7 +4204,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5135,7 +4221,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5144,23 +4230,9 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } 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.Regions) == 0 { - m.Regions = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -5172,7 +4244,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5196,7 +4268,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= uint64(b&0x7F) << shift + m.Ts |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5215,7 +4287,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= uint64(b&0x7F) << shift + m.RequestId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5226,13 +4298,12 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5257,7 +4328,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5285,7 +4356,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5294,9 +4365,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5321,7 +4389,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5340,7 +4408,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5349,9 +4417,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5376,7 +4441,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CheckpointTs |= uint64(b&0x7F) << shift + m.CheckpointTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5395,7 +4460,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5404,9 +4469,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5429,7 +4491,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5438,9 +4500,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5463,7 +4522,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= uint64(b&0x7F) << shift + m.RequestId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5482,7 +4541,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExtraOp |= kvrpcpb.ExtraOp(b&0x7F) << shift + m.ExtraOp |= (kvrpcpb.ExtraOp(b) & 0x7F) << shift if b < 0x80 { break } @@ -5501,7 +4560,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5510,9 +4569,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5536,7 +4592,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5545,9 +4601,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5571,7 +4624,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvApi |= ChangeDataRequest_KvAPI(b&0x7F) << shift + m.KvApi |= (ChangeDataRequest_KvAPI(b) & 0x7F) << shift if b < 0x80 { break } @@ -5590,7 +4643,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5610,7 +4663,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5619,9 +4672,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5637,13 +4687,12 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5668,7 +4717,7 @@ func (m *ChangeDataRequest_Register) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5688,13 +4737,12 @@ func (m *ChangeDataRequest_Register) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5719,7 +4767,7 @@ func (m *ChangeDataRequest_Deregister) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5739,13 +4787,12 @@ func (m *ChangeDataRequest_Deregister) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5770,7 +4817,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5798,7 +4845,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5807,9 +4854,6 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5824,13 +4868,12 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5843,7 +4886,6 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { func skipCdcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -5875,8 +4917,10 @@ func skipCdcpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -5893,34 +4937,151 @@ func skipCdcpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthCdcpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCdcpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCdcpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipCdcpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthCdcpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthCdcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCdcpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCdcpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCdcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCdcpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("cdcpb.proto", fileDescriptorCdcpb) } + +var fileDescriptorCdcpb = []byte{ + // 1463 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, + 0x14, 0xb7, 0xfc, 0xdf, 0xcf, 0x76, 0xa2, 0x6c, 0x3b, 0xad, 0x6b, 0x86, 0x50, 0xdc, 0x16, 0xd2, + 0x32, 0xb8, 0xad, 0xa1, 0x1c, 0x3a, 0x43, 0x21, 0x8e, 0x5d, 0xe2, 0x89, 0xe3, 0x74, 0xb6, 0x4a, + 0x3a, 0xc3, 0x01, 0x8d, 0x22, 0x6d, 0x1c, 0x8d, 0x6d, 0xad, 0x2a, 0xad, 0x5d, 0xe7, 0xc6, 0x11, + 0x0e, 0xdc, 0x38, 0xf0, 0x11, 0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, 0x86, 0x5a, 0xac, 0x61, 0x3d, 0x59, 0x74, 0x2b, 0x29, 0xaf, 0x98, 0xd5, 0x78, + 0x02, 0x05, 0x63, 0xee, 0xf5, 0xbc, 0x33, 0x4e, 0x6e, 0x40, 0x31, 0x14, 0x56, 0x20, 0x4c, 0x11, + 0xc6, 0xb9, 0x44, 0xda, 0x08, 0x65, 0x2e, 0xfd, 0xc0, 0x9d, 0x58, 0xc1, 0x05, 0xc6, 0xba, 0x42, + 0x63, 0xb2, 0xf1, 0x8b, 0x06, 0x25, 0x63, 0xee, 0x3d, 0x17, 0x96, 0x98, 0x86, 0xef, 0x53, 0xd1, + 0x80, 0xea, 0xc4, 0xf5, 0x4c, 0x9b, 0x4f, 0x26, 0x2e, 0xe2, 0xaa, 0x28, 0xca, 0x13, 0xd7, 0xdb, + 0x43, 0x9e, 0x11, 0xca, 0xd2, 0x5d, 0xe0, 0x19, 0x55, 0xba, 0x76, 0x0c, 0xde, 0x86, 0x0d, 0x37, + 0x34, 0x03, 0x3e, 0x1e, 0x33, 0xc7, 0x3c, 0xb5, 0xec, 0x11, 0x86, 0xbc, 0x48, 0x2b, 0x6e, 0x48, + 0x91, 0xd9, 0xb6, 0xec, 0x51, 0xe3, 0x9f, 0x02, 0xe4, 0xba, 0x33, 0x59, 0x7f, 0xef, 0xeb, 0x03, + 0x72, 0x15, 0x72, 0xae, 0xe7, 0xb0, 0x79, 0x64, 0x85, 0x22, 0xc8, 0x03, 0x28, 0x30, 0x4f, 0x04, + 0x2e, 0x0b, 0xa3, 0x82, 0x88, 0x93, 0x81, 0x1a, 0x9b, 0x5d, 0x85, 0xed, 0xa7, 0x68, 0x2c, 0x46, + 0xee, 0x41, 0xce, 0x72, 0x26, 0xae, 0x17, 0xa5, 0x9f, 0xac, 0xc8, 0xef, 0x4a, 0x64, 0x3f, 0x45, + 0x95, 0x08, 0xb9, 0x0d, 0x39, 0x2c, 0xaf, 0x28, 0xd1, 0x95, 0x58, 0x56, 0xf2, 0xa4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22, 0x25, 0xc8, 0x51, 0xeb, 0xd5, 0xc1, 0x89, 0xae, + 0xc9, 0xa3, 0x31, 0xf7, 0x0e, 0x4e, 0xf4, 0x74, 0xbb, 0x94, 0xbc, 0x13, 0x5b, 0xbf, 0x6a, 0x00, + 0x0b, 0x07, 0xc8, 0x2e, 0x94, 0xb0, 0x5b, 0x9f, 0x32, 0xe6, 0x90, 0xda, 0x65, 0x0e, 0xd6, 0xaf, + 0xbd, 0x85, 0xe0, 0xad, 0x1d, 0xed, 0x81, 0x46, 0xf6, 0xa0, 0x9c, 0xa8, 0x38, 0x69, 0xfd, 0x3f, + 0x25, 0xed, 0x4f, 0x5e, 0xff, 0x5e, 0xd4, 0xfe, 0x78, 0xb3, 0xad, 0xfd, 0xf9, 0x66, 0x5b, 0xfb, + 0xeb, 0xcd, 0xb6, 0xf6, 0xdb, 0xdf, 0xdb, 0x29, 0xd0, 0x79, 0x30, 0x6c, 0x0a, 0x77, 0x34, 0x6b, + 0x8e, 0x66, 0xf8, 0xb6, 0x3f, 0xcd, 0xe3, 0xe7, 0x8b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe3, + 0x25, 0xec, 0xc2, 0x5d, 0x0c, 0x00, 0x00, +} diff --git a/pkg/configpb/configpb.pb.go b/pkg/configpb/configpb.pb.go index 99caf3426..f1a6045ee 100644 --- a/pkg/configpb/configpb.pb.go +++ b/pkg/configpb/configpb.pb.go @@ -1,21 +1,49 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: configpb.proto +/* +Package configpb is a generated protocol buffer package. + +It is generated from these files: + + configpb.proto + +It has these top-level messages: + + Status + Version + Local + Global + ConfigKind + ConfigEntry + LocalConfig + Header + CreateRequest + CreateResponse + GetAllRequest + GetAllResponse + GetRequest + GetResponse + UpdateRequest + UpdateResponse + DeleteRequest + DeleteResponse +*/ package configpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,7 +55,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type StatusCode int32 @@ -48,7 +76,6 @@ var StatusCode_name = map[int32]string{ 4: "COMPONENT_NOT_FOUND", 5: "COMPONENT_ID_NOT_FOUND", } - var StatusCode_value = map[string]int32{ "UNKNOWN": 0, "OK": 1, @@ -61,51 +88,17 @@ var StatusCode_value = map[string]int32{ func (x StatusCode) String() string { return proto.EnumName(StatusCode_name, int32(x)) } - -func (StatusCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{0} -} +func (StatusCode) EnumDescriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{0} } type Status struct { - Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=configpb.StatusCode" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{0} -} -func (m *Status) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Status.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 *Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_Status.Merge(m, src) -} -func (m *Status) XXX_Size() int { - return m.Size() -} -func (m *Status) XXX_DiscardUnknown() { - xxx_messageInfo_Status.DiscardUnknown(m) + Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=configpb.StatusCode" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Status proto.InternalMessageInfo +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{0} } func (m *Status) GetCode() StatusCode { if m != nil { @@ -128,45 +121,14 @@ func (m *Status) GetMessage() string { // For local version, every component will have one to represent // the version of these configuration which cannot be shared. type Version struct { - Local uint64 `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"` - Global uint64 `protobuf:"varint,2,opt,name=global,proto3" json:"global,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{1} -} -func (m *Version) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Version.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 *Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Version.Merge(m, src) -} -func (m *Version) XXX_Size() int { - return m.Size() -} -func (m *Version) XXX_DiscardUnknown() { - xxx_messageInfo_Version.DiscardUnknown(m) + Local uint64 `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"` + Global uint64 `protobuf:"varint,2,opt,name=global,proto3" json:"global,omitempty"` } -var xxx_messageInfo_Version proto.InternalMessageInfo +func (m *Version) Reset() { *m = Version{} } +func (m *Version) String() string { return proto.CompactTextString(m) } +func (*Version) ProtoMessage() {} +func (*Version) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{1} } func (m *Version) GetLocal() uint64 { if m != nil { @@ -183,44 +145,13 @@ func (m *Version) GetGlobal() uint64 { } type Local struct { - ComponentId string `protobuf:"bytes,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Local) Reset() { *m = Local{} } -func (m *Local) String() string { return proto.CompactTextString(m) } -func (*Local) ProtoMessage() {} -func (*Local) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{2} -} -func (m *Local) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Local.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 *Local) XXX_Merge(src proto.Message) { - xxx_messageInfo_Local.Merge(m, src) -} -func (m *Local) XXX_Size() int { - return m.Size() -} -func (m *Local) XXX_DiscardUnknown() { - xxx_messageInfo_Local.DiscardUnknown(m) + ComponentId string `protobuf:"bytes,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` } -var xxx_messageInfo_Local proto.InternalMessageInfo +func (m *Local) Reset() { *m = Local{} } +func (m *Local) String() string { return proto.CompactTextString(m) } +func (*Local) ProtoMessage() {} +func (*Local) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{2} } func (m *Local) GetComponentId() string { if m != nil { @@ -230,44 +161,13 @@ func (m *Local) GetComponentId() string { } type Global struct { - Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Global) Reset() { *m = Global{} } -func (m *Global) String() string { return proto.CompactTextString(m) } -func (*Global) ProtoMessage() {} -func (*Global) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{3} -} -func (m *Global) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Global.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 *Global) XXX_Merge(src proto.Message) { - xxx_messageInfo_Global.Merge(m, src) -} -func (m *Global) XXX_Size() int { - return m.Size() -} -func (m *Global) XXX_DiscardUnknown() { - xxx_messageInfo_Global.DiscardUnknown(m) + Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` } -var xxx_messageInfo_Global proto.InternalMessageInfo +func (m *Global) Reset() { *m = Global{} } +func (m *Global) String() string { return proto.CompactTextString(m) } +func (*Global) ProtoMessage() {} +func (*Global) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{3} } func (m *Global) GetComponent() string { if m != nil { @@ -280,44 +180,13 @@ type ConfigKind struct { // Types that are valid to be assigned to Kind: // *ConfigKind_Local // *ConfigKind_Global - Kind isConfigKind_Kind `protobuf_oneof:"kind"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfigKind) Reset() { *m = ConfigKind{} } -func (m *ConfigKind) String() string { return proto.CompactTextString(m) } -func (*ConfigKind) ProtoMessage() {} -func (*ConfigKind) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{4} -} -func (m *ConfigKind) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfigKind.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 *ConfigKind) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigKind.Merge(m, src) -} -func (m *ConfigKind) XXX_Size() int { - return m.Size() -} -func (m *ConfigKind) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigKind.DiscardUnknown(m) + Kind isConfigKind_Kind `protobuf_oneof:"kind"` } -var xxx_messageInfo_ConfigKind proto.InternalMessageInfo +func (m *ConfigKind) Reset() { *m = ConfigKind{} } +func (m *ConfigKind) String() string { return proto.CompactTextString(m) } +func (*ConfigKind) ProtoMessage() {} +func (*ConfigKind) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{4} } type isConfigKind_Kind interface { isConfigKind_Kind() @@ -326,10 +195,10 @@ type isConfigKind_Kind interface { } type ConfigKind_Local struct { - Local *Local `protobuf:"bytes,1,opt,name=local,proto3,oneof" json:"local,omitempty"` + Local *Local `protobuf:"bytes,1,opt,name=local,oneof"` } type ConfigKind_Global struct { - Global *Global `protobuf:"bytes,2,opt,name=global,proto3,oneof" json:"global,omitempty"` + Global *Global `protobuf:"bytes,2,opt,name=global,oneof"` } func (*ConfigKind_Local) isConfigKind_Kind() {} @@ -356,54 +225,89 @@ func (m *ConfigKind) GetGlobal() *Global { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ConfigKind) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ConfigKind) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ConfigKind_OneofMarshaler, _ConfigKind_OneofUnmarshaler, _ConfigKind_OneofSizer, []interface{}{ (*ConfigKind_Local)(nil), (*ConfigKind_Global)(nil), } } -type ConfigEntry struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfigEntry) Reset() { *m = ConfigEntry{} } -func (m *ConfigEntry) String() string { return proto.CompactTextString(m) } -func (*ConfigEntry) ProtoMessage() {} -func (*ConfigEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{5} -} -func (m *ConfigEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfigEntry.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _ConfigKind_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ConfigKind) + // kind + switch x := m.Kind.(type) { + case *ConfigKind_Local: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Local); err != nil { + return err } - return b[:n], nil + case *ConfigKind_Global: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Global); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ConfigKind.Kind has unexpected type %T", x) } + return nil } -func (m *ConfigEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigEntry.Merge(m, src) -} -func (m *ConfigEntry) XXX_Size() int { - return m.Size() + +func _ConfigKind_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ConfigKind) + switch tag { + case 1: // kind.local + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Local) + err := b.DecodeMessage(msg) + m.Kind = &ConfigKind_Local{msg} + return true, err + case 2: // kind.global + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Global) + err := b.DecodeMessage(msg) + m.Kind = &ConfigKind_Global{msg} + return true, err + default: + return false, nil + } +} + +func _ConfigKind_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ConfigKind) + // kind + switch x := m.Kind.(type) { + case *ConfigKind_Local: + s := proto.Size(x.Local) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ConfigKind_Global: + s := proto.Size(x.Global) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *ConfigEntry) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigEntry.DiscardUnknown(m) + +type ConfigEntry struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_ConfigEntry proto.InternalMessageInfo +func (m *ConfigEntry) Reset() { *m = ConfigEntry{} } +func (m *ConfigEntry) String() string { return proto.CompactTextString(m) } +func (*ConfigEntry) ProtoMessage() {} +func (*ConfigEntry) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{5} } func (m *ConfigEntry) GetName() string { if m != nil { @@ -420,47 +324,16 @@ func (m *ConfigEntry) GetValue() string { } type LocalConfig struct { - Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LocalConfig) Reset() { *m = LocalConfig{} } -func (m *LocalConfig) String() string { return proto.CompactTextString(m) } -func (*LocalConfig) ProtoMessage() {} -func (*LocalConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{6} -} -func (m *LocalConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LocalConfig.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 *LocalConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalConfig.Merge(m, src) -} -func (m *LocalConfig) XXX_Size() int { - return m.Size() -} -func (m *LocalConfig) XXX_DiscardUnknown() { - xxx_messageInfo_LocalConfig.DiscardUnknown(m) + Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` + Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` } -var xxx_messageInfo_LocalConfig proto.InternalMessageInfo +func (m *LocalConfig) Reset() { *m = LocalConfig{} } +func (m *LocalConfig) String() string { return proto.CompactTextString(m) } +func (*LocalConfig) ProtoMessage() {} +func (*LocalConfig) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{6} } func (m *LocalConfig) GetVersion() *Version { if m != nil { @@ -491,44 +364,13 @@ func (m *LocalConfig) GetConfig() string { } type Header struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Header) Reset() { *m = Header{} } -func (m *Header) String() string { return proto.CompactTextString(m) } -func (*Header) ProtoMessage() {} -func (*Header) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{7} -} -func (m *Header) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Header.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 *Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Header.Merge(m, src) -} -func (m *Header) XXX_Size() int { - return m.Size() -} -func (m *Header) XXX_DiscardUnknown() { - xxx_messageInfo_Header.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` } -var xxx_messageInfo_Header proto.InternalMessageInfo +func (m *Header) Reset() { *m = Header{} } +func (m *Header) String() string { return proto.CompactTextString(m) } +func (*Header) ProtoMessage() {} +func (*Header) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{7} } func (m *Header) GetClusterId() uint64 { if m != nil { @@ -538,48 +380,17 @@ func (m *Header) GetClusterId() uint64 { } type CreateRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateRequest) Reset() { *m = CreateRequest{} } -func (m *CreateRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRequest) ProtoMessage() {} -func (*CreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{8} -} -func (m *CreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateRequest.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 *CreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateRequest.Merge(m, src) -} -func (m *CreateRequest) XXX_Size() int { - return m.Size() -} -func (m *CreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateRequest.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` } -var xxx_messageInfo_CreateRequest proto.InternalMessageInfo +func (m *CreateRequest) Reset() { *m = CreateRequest{} } +func (m *CreateRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRequest) ProtoMessage() {} +func (*CreateRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{8} } func (m *CreateRequest) GetHeader() *Header { if m != nil { @@ -617,47 +428,16 @@ func (m *CreateRequest) GetConfig() string { } type CreateResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateResponse) Reset() { *m = CreateResponse{} } -func (m *CreateResponse) String() string { return proto.CompactTextString(m) } -func (*CreateResponse) ProtoMessage() {} -func (*CreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{9} -} -func (m *CreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CreateResponse.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 *CreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateResponse.Merge(m, src) -} -func (m *CreateResponse) XXX_Size() int { - return m.Size() -} -func (m *CreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateResponse.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` } -var xxx_messageInfo_CreateResponse proto.InternalMessageInfo +func (m *CreateResponse) Reset() { *m = CreateResponse{} } +func (m *CreateResponse) String() string { return proto.CompactTextString(m) } +func (*CreateResponse) ProtoMessage() {} +func (*CreateResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{9} } func (m *CreateResponse) GetHeader() *Header { if m != nil { @@ -688,44 +468,13 @@ func (m *CreateResponse) GetConfig() string { } type GetAllRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAllRequest) Reset() { *m = GetAllRequest{} } -func (m *GetAllRequest) String() string { return proto.CompactTextString(m) } -func (*GetAllRequest) ProtoMessage() {} -func (*GetAllRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{10} -} -func (m *GetAllRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllRequest.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 *GetAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllRequest.Merge(m, src) -} -func (m *GetAllRequest) XXX_Size() int { - return m.Size() -} -func (m *GetAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllRequest.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetAllRequest proto.InternalMessageInfo +func (m *GetAllRequest) Reset() { *m = GetAllRequest{} } +func (m *GetAllRequest) String() string { return proto.CompactTextString(m) } +func (*GetAllRequest) ProtoMessage() {} +func (*GetAllRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{10} } func (m *GetAllRequest) GetHeader() *Header { if m != nil { @@ -735,46 +484,15 @@ func (m *GetAllRequest) GetHeader() *Header { } type GetAllResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LocalConfigs []*LocalConfig `protobuf:"bytes,3,rep,name=local_configs,json=localConfigs,proto3" json:"local_configs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAllResponse) Reset() { *m = GetAllResponse{} } -func (m *GetAllResponse) String() string { return proto.CompactTextString(m) } -func (*GetAllResponse) ProtoMessage() {} -func (*GetAllResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{11} -} -func (m *GetAllResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllResponse.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 *GetAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllResponse.Merge(m, src) -} -func (m *GetAllResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllResponse.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` + LocalConfigs []*LocalConfig `protobuf:"bytes,3,rep,name=local_configs,json=localConfigs" json:"local_configs,omitempty"` } -var xxx_messageInfo_GetAllResponse proto.InternalMessageInfo +func (m *GetAllResponse) Reset() { *m = GetAllResponse{} } +func (m *GetAllResponse) String() string { return proto.CompactTextString(m) } +func (*GetAllResponse) ProtoMessage() {} +func (*GetAllResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{11} } func (m *GetAllResponse) GetHeader() *Header { if m != nil { @@ -798,47 +516,16 @@ func (m *GetAllResponse) GetLocalConfigs() []*LocalConfig { } type GetRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{12} -} -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{12} } func (m *GetRequest) GetHeader() *Header { if m != nil { @@ -869,47 +556,16 @@ func (m *GetRequest) GetComponentId() string { } type GetResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{13} -} -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return m.Size() -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{13} } func (m *GetResponse) GetHeader() *Header { if m != nil { @@ -940,47 +596,16 @@ func (m *GetResponse) GetConfig() string { } type UpdateRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` - Entries []*ConfigEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } -func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateRequest) ProtoMessage() {} -func (*UpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{14} -} -func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateRequest.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 *UpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRequest.Merge(m, src) -} -func (m *UpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRequest.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` + Entries []*ConfigEntry `protobuf:"bytes,4,rep,name=entries" json:"entries,omitempty"` } -var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo +func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } +func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateRequest) ProtoMessage() {} +func (*UpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{14} } func (m *UpdateRequest) GetHeader() *Header { if m != nil { @@ -1011,47 +636,16 @@ func (m *UpdateRequest) GetEntries() []*ConfigEntry { } type UpdateResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } -func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateResponse) ProtoMessage() {} -func (*UpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{15} -} -func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateResponse.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 *UpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateResponse.Merge(m, src) -} -func (m *UpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateResponse.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` } -var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo +func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } +func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateResponse) ProtoMessage() {} +func (*UpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{15} } func (m *UpdateResponse) GetHeader() *Header { if m != nil { @@ -1082,46 +676,15 @@ func (m *UpdateResponse) GetConfig() string { } type DeleteRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{16} -} -func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRequest.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 *DeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRequest.Merge(m, src) -} -func (m *DeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRequest.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` } -var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo +func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } +func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRequest) ProtoMessage() {} +func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{16} } func (m *DeleteRequest) GetHeader() *Header { if m != nil { @@ -1145,46 +708,15 @@ func (m *DeleteRequest) GetKind() *ConfigKind { } type DeleteResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} -func (*DeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a04502e9e0ee6409, []int{17} -} -func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteResponse.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 *DeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResponse.Merge(m, src) -} -func (m *DeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResponse.DiscardUnknown(m) + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` } -var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo +func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } +func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteResponse) ProtoMessage() {} +func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{17} } func (m *DeleteResponse) GetHeader() *Header { if m != nil { @@ -1208,7 +740,6 @@ func (m *DeleteResponse) GetVersion() *Version { } func init() { - proto.RegisterEnum("configpb.StatusCode", StatusCode_name, StatusCode_value) proto.RegisterType((*Status)(nil), "configpb.Status") proto.RegisterType((*Version)(nil), "configpb.Version") proto.RegisterType((*Local)(nil), "configpb.Local") @@ -1227,64 +758,7 @@ func init() { proto.RegisterType((*UpdateResponse)(nil), "configpb.UpdateResponse") proto.RegisterType((*DeleteRequest)(nil), "configpb.DeleteRequest") proto.RegisterType((*DeleteResponse)(nil), "configpb.DeleteResponse") -} - -func init() { proto.RegisterFile("configpb.proto", fileDescriptor_a04502e9e0ee6409) } - -var fileDescriptor_a04502e9e0ee6409 = []byte{ - // 830 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xcf, 0x24, 0x8e, 0xb3, 0x79, 0x6e, 0xd2, 0xec, 0x90, 0xee, 0x46, 0xd1, 0x12, 0x95, 0x39, - 0xb0, 0x51, 0x90, 0x36, 0x52, 0x38, 0xac, 0x58, 0x89, 0xc3, 0x36, 0x4d, 0x93, 0xa8, 0xc5, 0x46, - 0xd3, 0x7f, 0xc7, 0xc8, 0x8d, 0x87, 0x60, 0xe1, 0x7a, 0x82, 0xed, 0x54, 0xea, 0x95, 0x4f, 0x00, - 0xea, 0x85, 0x23, 0x07, 0x84, 0xe0, 0x53, 0x20, 0x6e, 0x1c, 0x91, 0xb8, 0x70, 0x44, 0x85, 0x6f, - 0xc0, 0x17, 0x40, 0x99, 0xb1, 0xeb, 0x71, 0x22, 0xa8, 0x7a, 0xa8, 0x94, 0x9b, 0xdf, 0xbc, 0x3f, - 0xf3, 0x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, 0x00, 0xff, 0xff, 0xbe, 0x62, 0x2c, 0x39, 0xdf, 0x0a, 0x00, 0x00, + proto.RegisterEnum("configpb.StatusCode", StatusCode_name, StatusCode_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1295,9 +769,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ConfigClient is the client API for Config service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Config service + type ConfigClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) @@ -1316,7 +789,7 @@ func NewConfigClient(cc *grpc.ClientConn) ConfigClient { func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/configpb.Config/Create", in, out, opts...) + err := grpc.Invoke(ctx, "/configpb.Config/Create", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1325,7 +798,7 @@ func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...gr func (c *configClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) { out := new(GetAllResponse) - err := c.cc.Invoke(ctx, "/configpb.Config/GetAll", in, out, opts...) + err := grpc.Invoke(ctx, "/configpb.Config/GetAll", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1334,7 +807,7 @@ func (c *configClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...gr func (c *configClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/configpb.Config/Get", in, out, opts...) + err := grpc.Invoke(ctx, "/configpb.Config/Get", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1343,7 +816,7 @@ func (c *configClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Cal func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { out := new(UpdateResponse) - err := c.cc.Invoke(ctx, "/configpb.Config/Update", in, out, opts...) + err := grpc.Invoke(ctx, "/configpb.Config/Update", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1352,14 +825,15 @@ func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...gr func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/configpb.Config/Delete", in, out, opts...) + err := grpc.Invoke(ctx, "/configpb.Config/Delete", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// ConfigServer is the server API for Config service. +// Server API for Config service + type ConfigServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) @@ -1368,26 +842,6 @@ type ConfigServer interface { Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) } -// UnimplementedConfigServer can be embedded to have forward compatible implementations. -type UnimplementedConfigServer struct { -} - -func (*UnimplementedConfigServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") -} -func (*UnimplementedConfigServer) GetAll(ctx context.Context, req *GetAllRequest) (*GetAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAll not implemented") -} -func (*UnimplementedConfigServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (*UnimplementedConfigServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") -} -func (*UnimplementedConfigServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} - func RegisterConfigServer(s *grpc.Server, srv ConfigServer) { s.RegisterService(&_Config_serviceDesc, srv) } @@ -1514,7 +968,7 @@ var _Config_serviceDesc = grpc.ServiceDesc{ func (m *Status) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1522,38 +976,28 @@ func (m *Status) Marshal() (dAtA []byte, err error) { } func (m *Status) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Code != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Code)) } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Code != 0 { - i = encodeVarintConfigpb(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Version) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1561,36 +1005,27 @@ func (m *Version) Marshal() (dAtA []byte, err error) { } func (m *Version) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Local != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Local)) } if m.Global != 0 { - i = encodeVarintConfigpb(dAtA, i, uint64(m.Global)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Global)) } - if m.Local != 0 { - i = encodeVarintConfigpb(dAtA, i, uint64(m.Local)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Local) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1598,33 +1033,23 @@ func (m *Local) Marshal() (dAtA []byte, err error) { } func (m *Local) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.ComponentId) > 0 { - i -= len(m.ComponentId) - copy(dAtA[i:], m.ComponentId) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i += copy(dAtA[i:], m.ComponentId) } - return len(dAtA) - i, nil + return i, nil } func (m *Global) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1632,33 +1057,23 @@ func (m *Global) Marshal() (dAtA []byte, err error) { } func (m *Global) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Global) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) + i += copy(dAtA[i:], m.Component) } - return len(dAtA) - i, nil + return i, nil } func (m *ConfigKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1666,77 +1081,52 @@ func (m *ConfigKind) Marshal() (dAtA []byte, err error) { } func (m *ConfigKind) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Kind != nil { - { - size := m.Kind.Size() - i -= size - if _, err := m.Kind.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn1, err := m.Kind.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn1 } - return len(dAtA) - i, nil + return i, nil } func (m *ConfigKind_Local) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigKind_Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Local != nil { - { - size, err := m.Local.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Local.Size())) + n2, err := m.Local.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *ConfigKind_Global) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigKind_Global) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Global != nil { - { - size, err := m.Global.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Global.Size())) + n3, err := m.Global.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *ConfigEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1744,40 +1134,29 @@ func (m *ConfigEntry) Marshal() (dAtA []byte, err error) { } func (m *ConfigEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintConfigpb(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 = encodeVarintConfigpb(dAtA, i, uint64(len(m.Name))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - return len(dAtA) - i, nil + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + return i, nil } func (m *LocalConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1785,59 +1164,45 @@ func (m *LocalConfig) Marshal() (dAtA []byte, err error) { } func (m *LocalConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LocalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Version != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n4, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if len(m.Config) > 0 { - i -= len(m.Config) - copy(dAtA[i:], m.Config) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i-- - dAtA[i] = 0x22 + if len(m.Component) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) + i += copy(dAtA[i:], m.Component) } if len(m.ComponentId) > 0 { - i -= len(m.ComponentId) - copy(dAtA[i:], m.ComponentId) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i += copy(dAtA[i:], m.ComponentId) } - if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i-- - dAtA[i] = 0x12 - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) } - return len(dAtA) - i, nil + return i, nil } func (m *Header) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1845,31 +1210,22 @@ func (m *Header) Marshal() (dAtA []byte, err error) { } func (m *Header) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.ClusterId != 0 { - i = encodeVarintConfigpb(dAtA, i, uint64(m.ClusterId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.ClusterId)) } - return len(dAtA) - i, nil + return i, nil } func (m *CreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1877,71 +1233,55 @@ func (m *CreateRequest) Marshal() (dAtA []byte, err error) { } func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Config) > 0 { - i -= len(m.Config) - copy(dAtA[i:], m.Config) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i-- - dAtA[i] = 0x2a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if len(m.ComponentId) > 0 { - i -= len(m.ComponentId) - copy(dAtA[i:], m.ComponentId) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i-- - dAtA[i] = 0x22 + if m.Version != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n6, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) + i += copy(dAtA[i:], m.Component) } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if len(m.ComponentId) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i += copy(dAtA[i:], m.ComponentId) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Config) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) } - return len(dAtA) - i, nil + return i, nil } func (m *CreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1949,69 +1289,53 @@ func (m *CreateResponse) Marshal() (dAtA []byte, err error) { } func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Config) > 0 { - i -= len(m.Config) - copy(dAtA[i:], m.Config) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i-- - dAtA[i] = 0x22 - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n7, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n7 } if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) + n8, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Version != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n9, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n9 } - return len(dAtA) - i, nil + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) + } + return i, nil } func (m *GetAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2019,38 +1343,27 @@ func (m *GetAllRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n10, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2058,64 +1371,49 @@ func (m *GetAllResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LocalConfigs) > 0 { - for iNdEx := len(m.LocalConfigs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.LocalConfigs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n11, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n11 } if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) + n12, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.LocalConfigs) > 0 { + for _, msg := range m.LocalConfigs { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2123,64 +1421,49 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n13, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - if len(m.ComponentId) > 0 { - i -= len(m.ComponentId) - copy(dAtA[i:], m.ComponentId) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i-- - dAtA[i] = 0x22 + if m.Version != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n14, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) + i += copy(dAtA[i:], m.Component) } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(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 = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.ComponentId) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i += copy(dAtA[i:], m.ComponentId) } - return len(dAtA) - i, nil + return i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2188,69 +1471,53 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Config) > 0 { - i -= len(m.Config) - copy(dAtA[i:], m.Config) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i-- - dAtA[i] = 0x22 - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n15, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n15 } if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) + n16, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Version != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n17, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n17 } - return len(dAtA) - i, nil + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) + } + return i, nil } func (m *UpdateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2258,76 +1525,59 @@ func (m *UpdateRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n18, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Version != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n19, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n19 } if m.Kind != nil { - { - size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Kind.Size())) + n20, err := m.Kind.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n20 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2335,69 +1585,53 @@ func (m *UpdateResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Config) > 0 { - i -= len(m.Config) - copy(dAtA[i:], m.Config) - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i-- - dAtA[i] = 0x22 - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n21, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n21 } if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) + n22, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Version != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n23, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n23 + } + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2405,62 +1639,47 @@ func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Kind != nil { - { - size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n24, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n24 } if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n25, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Kind != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Kind.Size())) + n26, err := m.Kind.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2468,73 +1687,53 @@ func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) + n27, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n27 } if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) + n28, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintConfigpb(dAtA, i, uint64(size)) + if m.Version != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n29, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n29 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintConfigpb(dAtA []byte, offset int, v uint64) int { - offset -= sovConfigpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *Status) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -2544,16 +1743,10 @@ func (m *Status) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Version) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Local != 0 { @@ -2562,63 +1755,39 @@ func (m *Version) Size() (n int) { if m.Global != 0 { n += 1 + sovConfigpb(uint64(m.Global)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ComponentId) if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Global) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Component) if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfigKind) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Kind != nil { n += m.Kind.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfigKind_Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Local != nil { @@ -2628,9 +1797,6 @@ func (m *ConfigKind_Local) Size() (n int) { return n } func (m *ConfigKind_Global) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Global != nil { @@ -2640,9 +1806,6 @@ func (m *ConfigKind_Global) Size() (n int) { return n } func (m *ConfigEntry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -2653,16 +1816,10 @@ func (m *ConfigEntry) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LocalConfig) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != nil { @@ -2681,31 +1838,19 @@ func (m *LocalConfig) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Header) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { n += 1 + sovConfigpb(uint64(m.ClusterId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CreateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2728,16 +1873,10 @@ func (m *CreateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CreateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2756,32 +1895,20 @@ func (m *CreateResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { l = m.Header.Size() n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2798,16 +1925,10 @@ func (m *GetAllResponse) Size() (n int) { n += 1 + l + sovConfigpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2826,16 +1947,10 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2854,16 +1969,10 @@ func (m *GetResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2884,16 +1993,10 @@ func (m *UpdateRequest) Size() (n int) { n += 1 + l + sovConfigpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2912,16 +2015,10 @@ func (m *UpdateResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2936,16 +2033,10 @@ func (m *DeleteRequest) Size() (n int) { l = m.Kind.Size() n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2960,14 +2051,18 @@ func (m *DeleteResponse) Size() (n int) { l = m.Version.Size() n += 1 + l + sovConfigpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovConfigpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozConfigpb(x uint64) (n int) { return sovConfigpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2987,7 +2082,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3015,7 +2110,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= StatusCode(b&0x7F) << shift + m.Code |= (StatusCode(b) & 0x7F) << shift if b < 0x80 { break } @@ -3034,7 +2129,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3044,9 +2139,6 @@ func (m *Status) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3058,13 +2150,12 @@ func (m *Status) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3089,7 +2180,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3117,7 +2208,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Local |= uint64(b&0x7F) << shift + m.Local |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3136,7 +2227,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Global |= uint64(b&0x7F) << shift + m.Global |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3147,13 +2238,12 @@ func (m *Version) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3178,7 +2268,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3206,7 +2296,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3216,9 +2306,6 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3230,13 +2317,12 @@ func (m *Local) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3261,7 +2347,7 @@ func (m *Global) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3289,7 +2375,7 @@ func (m *Global) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3299,9 +2385,6 @@ func (m *Global) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3313,13 +2396,12 @@ func (m *Global) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3344,7 +2426,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3372,7 +2454,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3381,9 +2463,6 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3407,7 +2486,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3416,9 +2495,6 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3434,13 +2510,12 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3465,7 +2540,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3493,7 +2568,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3503,9 +2578,6 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3525,7 +2597,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3535,9 +2607,6 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3549,13 +2618,12 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3580,7 +2648,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3608,7 +2676,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3617,9 +2685,6 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3644,7 +2709,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3654,9 +2719,6 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3676,7 +2738,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3686,9 +2748,6 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3708,7 +2767,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3718,9 +2777,6 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3732,13 +2788,12 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3763,7 +2818,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3791,7 +2846,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3802,13 +2857,12 @@ func (m *Header) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3833,7 +2887,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3861,7 +2915,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3870,9 +2924,6 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3897,7 +2948,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3906,9 +2957,6 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3933,7 +2981,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3943,9 +2991,6 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3965,7 +3010,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3975,9 +3020,6 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3997,7 +3039,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4007,9 +3049,6 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4021,13 +3060,12 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4052,7 +3090,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4080,7 +3118,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4089,9 +3127,6 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4116,7 +3151,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4125,9 +3160,6 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4152,7 +3184,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4161,9 +3193,6 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4188,7 +3217,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4198,9 +3227,6 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4212,13 +3238,12 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4243,7 +3268,7 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4271,7 +3296,7 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4280,9 +3305,6 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4299,13 +3321,12 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4330,7 +3351,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4358,7 +3379,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4367,9 +3388,6 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4394,7 +3412,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4403,9 +3421,6 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4430,7 +3445,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4439,9 +3454,6 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4456,13 +3468,12 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4487,7 +3498,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4515,7 +3526,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4524,9 +3535,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4551,7 +3559,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4560,9 +3568,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4587,7 +3592,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4597,9 +3602,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4619,7 +3621,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4629,9 +3631,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4643,13 +3642,12 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4674,7 +3672,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4702,7 +3700,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4711,9 +3709,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4738,7 +3733,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4747,9 +3742,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4774,7 +3766,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4783,9 +3775,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4810,7 +3799,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4820,9 +3809,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4834,13 +3820,12 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4865,7 +3850,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4893,7 +3878,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4902,9 +3887,6 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4929,7 +3911,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4938,9 +3920,6 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4965,7 +3944,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4974,9 +3953,6 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5001,7 +3977,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5010,9 +3986,6 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5027,13 +4000,12 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5058,7 +4030,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5086,7 +4058,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5095,9 +4067,6 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5122,7 +4091,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5131,9 +4100,6 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5158,7 +4124,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5167,9 +4133,6 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5194,7 +4157,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5204,9 +4167,6 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5218,13 +4178,12 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5249,7 +4208,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5277,7 +4236,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5286,9 +4245,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5313,7 +4269,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5322,9 +4278,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5349,7 +4302,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5358,9 +4311,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5377,13 +4327,12 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5408,7 +4357,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5436,7 +4385,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5445,9 +4394,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5472,7 +4418,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5481,9 +4427,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5508,7 +4451,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5517,9 +4460,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthConfigpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5536,13 +4476,12 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5555,7 +4494,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { func skipConfigpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -5587,8 +4525,10 @@ func skipConfigpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -5605,34 +4545,111 @@ func skipConfigpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthConfigpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupConfigpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowConfigpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipConfigpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthConfigpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupConfigpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("configpb.proto", fileDescriptorConfigpb) } + +var fileDescriptorConfigpb = []byte{ + // 830 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xcf, 0x24, 0x8e, 0xb3, 0x79, 0x6e, 0xd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x15, 0x05, 0x5d, 0x4e, + 0x87, 0x0a, 0x23, 0x33, 0xf3, 0x2a, 0x8c, 0xec, 0x20, 0x91, 0x1d, 0x51, 0x70, 0x9b, 0x28, 0x05, + 0xdf, 0xa0, 0x0e, 0xb6, 0x40, 0x97, 0x2d, 0xa3, 0xd6, 0xcc, 0xf4, 0xb5, 0x5a, 0x33, 0xdb, 0x5d, + 0x09, 0xc8, 0x8e, 0x52, 0x73, 0xaf, 0xfe, 0xc7, 0x8f, 0x4f, 0xd0, 0xaf, 0xb7, 0x2d, 0xf4, 0xdb, + 0x6d, 0x0b, 0xfd, 0x79, 0xdb, 0x42, 0xdf, 0xfe, 0xd5, 0xca, 0x5d, 0xe8, 0xe2, 0xf7, 0xf3, 0xc3, + 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x62, 0x2c, 0x39, 0xdf, 0x0a, 0x00, 0x00, +} diff --git a/pkg/coprocessor/coprocessor.pb.go b/pkg/coprocessor/coprocessor.pb.go index ad63f5941..a5a9164fb 100644 --- a/pkg/coprocessor/coprocessor.pb.go +++ b/pkg/coprocessor/coprocessor.pb.go @@ -1,19 +1,41 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: coprocessor.proto +/* +Package coprocessor is a generated protocol buffer package. + +It is generated from these files: + + coprocessor.proto + +It has these top-level messages: + + KeyRange + Request + Response + RegionInfo + TableRegions + BatchRequest + BatchResponse + StoreBatchTask + StoreBatchTaskResponse +*/ package coprocessor import ( "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" errorpb "github.com/pingcap/kvproto/pkg/errorpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + + _ "github.com/gogo/protobuf/gogoproto" + metapb "github.com/pingcap/kvproto/pkg/metapb" + github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" ) @@ -26,49 +48,18 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // [start, end) type KeyRange struct { - Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyRange) Reset() { *m = KeyRange{} } -func (m *KeyRange) String() string { return proto.CompactTextString(m) } -func (*KeyRange) ProtoMessage() {} -func (*KeyRange) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{0} -} -func (m *KeyRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyRange.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 *KeyRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyRange.Merge(m, src) -} -func (m *KeyRange) XXX_Size() int { - return m.Size() -} -func (m *KeyRange) XXX_DiscardUnknown() { - xxx_messageInfo_KeyRange.DiscardUnknown(m) + Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` } -var xxx_messageInfo_KeyRange proto.InternalMessageInfo +func (m *KeyRange) Reset() { *m = KeyRange{} } +func (m *KeyRange) String() string { return proto.CompactTextString(m) } +func (*KeyRange) ProtoMessage() {} +func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{0} } func (m *KeyRange) GetStart() []byte { if m != nil { @@ -85,11 +76,11 @@ func (m *KeyRange) GetEnd() []byte { } type Request struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Tp int64 `protobuf:"varint,2,opt,name=tp,proto3" json:"tp,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` StartTs uint64 `protobuf:"varint,7,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` // If cache is enabled, TiKV returns cache hit instead of data if // its last version matches this `cache_if_match_version`. IsCacheEnabled bool `protobuf:"varint,5,opt,name=is_cache_enabled,json=isCacheEnabled,proto3" json:"is_cache_enabled,omitempty"` @@ -100,44 +91,13 @@ type Request struct { // paging_size is 0 when it's disabled, otherwise, it should be a positive number. PagingSize uint64 `protobuf:"varint,10,opt,name=paging_size,json=pagingSize,proto3" json:"paging_size,omitempty"` // tasks stores the batched coprocessor tasks sent to the same tikv store. - Tasks []*StoreBatchTask `protobuf:"bytes,11,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} -func (*Request) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{1} -} -func (m *Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Request.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 *Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Request.Merge(m, src) -} -func (m *Request) XXX_Size() int { - return m.Size() -} -func (m *Request) XXX_DiscardUnknown() { - xxx_messageInfo_Request.DiscardUnknown(m) + Tasks []*StoreBatchTask `protobuf:"bytes,11,rep,name=tasks" json:"tasks,omitempty"` } -var xxx_messageInfo_Request proto.InternalMessageInfo +func (m *Request) Reset() { *m = Request{} } +func (m *Request) String() string { return proto.CompactTextString(m) } +func (*Request) ProtoMessage() {} +func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{1} } func (m *Request) GetContext() *kvrpcpb.Context { if m != nil { @@ -218,16 +178,16 @@ func (m *Request) GetTasks() []*StoreBatchTask { type Response struct { Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - Range *KeyRange `protobuf:"bytes,5,opt,name=range,proto3" json:"range,omitempty"` + Range *KeyRange `protobuf:"bytes,5,opt,name=range" json:"range,omitempty"` // This field is always filled for compatibility consideration. However // newer TiDB should respect `exec_details_v2` field instead. - ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,6,opt,name=exec_details,json=execDetails,proto3" json:"exec_details,omitempty"` + ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,6,opt,name=exec_details,json=execDetails" json:"exec_details,omitempty"` // This field is provided in later versions, containing more detailed // information. - ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,11,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,11,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` IsCacheHit bool `protobuf:"varint,7,opt,name=is_cache_hit,json=isCacheHit,proto3" json:"is_cache_hit,omitempty"` CacheLastVersion uint64 `protobuf:"varint,8,opt,name=cache_last_version,json=cacheLastVersion,proto3" json:"cache_last_version,omitempty"` CanBeCached bool `protobuf:"varint,9,opt,name=can_be_cached,json=canBeCached,proto3" json:"can_be_cached,omitempty"` @@ -235,44 +195,13 @@ type Response struct { // Clients should query PD to update buckets in cache if its is stale. LatestBucketsVersion uint64 `protobuf:"varint,12,opt,name=latest_buckets_version,json=latestBucketsVersion,proto3" json:"latest_buckets_version,omitempty"` // StoreBatchTaskResponse is the collection of batch task responses. - BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses,proto3" json:"batch_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{2} -} -func (m *Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Response.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 *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(m, src) -} -func (m *Response) XXX_Size() int { - return m.Size() -} -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) + BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses" json:"batch_responses,omitempty"` } -var xxx_messageInfo_Response proto.InternalMessageInfo +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{2} } func (m *Response) GetRegionError() *errorpb.Error { if m != nil { @@ -352,46 +281,15 @@ func (m *Response) GetBatchResponses() []*StoreBatchTaskResponse { } type RegionInfo struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionInfo) Reset() { *m = RegionInfo{} } -func (m *RegionInfo) String() string { return proto.CompactTextString(m) } -func (*RegionInfo) ProtoMessage() {} -func (*RegionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{3} -} -func (m *RegionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionInfo.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 *RegionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionInfo.Merge(m, src) -} -func (m *RegionInfo) XXX_Size() int { - return m.Size() -} -func (m *RegionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RegionInfo.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` } -var xxx_messageInfo_RegionInfo proto.InternalMessageInfo +func (m *RegionInfo) Reset() { *m = RegionInfo{} } +func (m *RegionInfo) String() string { return proto.CompactTextString(m) } +func (*RegionInfo) ProtoMessage() {} +func (*RegionInfo) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{3} } func (m *RegionInfo) GetRegionId() uint64 { if m != nil { @@ -415,45 +313,14 @@ func (m *RegionInfo) GetRanges() []*KeyRange { } type TableRegions struct { - PhysicalTableId int64 `protobuf:"varint,1,opt,name=physical_table_id,json=physicalTableId,proto3" json:"physical_table_id,omitempty"` - Regions []*RegionInfo `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TableRegions) Reset() { *m = TableRegions{} } -func (m *TableRegions) String() string { return proto.CompactTextString(m) } -func (*TableRegions) ProtoMessage() {} -func (*TableRegions) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{4} -} -func (m *TableRegions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TableRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TableRegions.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 *TableRegions) XXX_Merge(src proto.Message) { - xxx_messageInfo_TableRegions.Merge(m, src) -} -func (m *TableRegions) XXX_Size() int { - return m.Size() -} -func (m *TableRegions) XXX_DiscardUnknown() { - xxx_messageInfo_TableRegions.DiscardUnknown(m) + PhysicalTableId int64 `protobuf:"varint,1,opt,name=physical_table_id,json=physicalTableId,proto3" json:"physical_table_id,omitempty"` + Regions []*RegionInfo `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_TableRegions proto.InternalMessageInfo +func (m *TableRegions) Reset() { *m = TableRegions{} } +func (m *TableRegions) String() string { return proto.CompactTextString(m) } +func (*TableRegions) ProtoMessage() {} +func (*TableRegions) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{4} } func (m *TableRegions) GetPhysicalTableId() int64 { if m != nil { @@ -470,53 +337,22 @@ func (m *TableRegions) GetRegions() []*RegionInfo { } type BatchRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Tp int64 `protobuf:"varint,2,opt,name=tp,proto3" json:"tp,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - Regions []*RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // Any schema-ful storage to validate schema correctness if necessary. SchemaVer int64 `protobuf:"varint,6,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for partition table scan - TableRegions []*TableRegions `protobuf:"bytes,7,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` - LogId string `protobuf:"bytes,8,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchRequest) Reset() { *m = BatchRequest{} } -func (m *BatchRequest) String() string { return proto.CompactTextString(m) } -func (*BatchRequest) ProtoMessage() {} -func (*BatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{5} -} -func (m *BatchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchRequest.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 *BatchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchRequest.Merge(m, src) -} -func (m *BatchRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchRequest.DiscardUnknown(m) + TableRegions []*TableRegions `protobuf:"bytes,7,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` + LogId string `protobuf:"bytes,8,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` } -var xxx_messageInfo_BatchRequest proto.InternalMessageInfo +func (m *BatchRequest) Reset() { *m = BatchRequest{} } +func (m *BatchRequest) String() string { return proto.CompactTextString(m) } +func (*BatchRequest) ProtoMessage() {} +func (*BatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{5} } func (m *BatchRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -575,47 +411,16 @@ func (m *BatchRequest) GetLogId() string { } type BatchResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - OtherError string `protobuf:"bytes,2,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,3,opt,name=exec_details,json=execDetails,proto3" json:"exec_details,omitempty"` - RetryRegions []*metapb.Region `protobuf:"bytes,4,rep,name=retry_regions,json=retryRegions,proto3" json:"retry_regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchResponse) Reset() { *m = BatchResponse{} } -func (m *BatchResponse) String() string { return proto.CompactTextString(m) } -func (*BatchResponse) ProtoMessage() {} -func (*BatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{6} -} -func (m *BatchResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchResponse.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 *BatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchResponse.Merge(m, src) -} -func (m *BatchResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchResponse.DiscardUnknown(m) + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + OtherError string `protobuf:"bytes,2,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` + ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,3,opt,name=exec_details,json=execDetails" json:"exec_details,omitempty"` + RetryRegions []*metapb.Region `protobuf:"bytes,4,rep,name=retry_regions,json=retryRegions" json:"retry_regions,omitempty"` } -var xxx_messageInfo_BatchResponse proto.InternalMessageInfo +func (m *BatchResponse) Reset() { *m = BatchResponse{} } +func (m *BatchResponse) String() string { return proto.CompactTextString(m) } +func (*BatchResponse) ProtoMessage() {} +func (*BatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{6} } func (m *BatchResponse) GetOtherError() string { if m != nil { @@ -639,48 +444,17 @@ func (m *BatchResponse) GetRetryRegions() []*metapb.Region { } type StoreBatchTask struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` - TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreBatchTask) Reset() { *m = StoreBatchTask{} } -func (m *StoreBatchTask) String() string { return proto.CompactTextString(m) } -func (*StoreBatchTask) ProtoMessage() {} -func (*StoreBatchTask) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{7} -} -func (m *StoreBatchTask) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreBatchTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreBatchTask.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 *StoreBatchTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreBatchTask.Merge(m, src) -} -func (m *StoreBatchTask) XXX_Size() int { - return m.Size() -} -func (m *StoreBatchTask) XXX_DiscardUnknown() { - xxx_messageInfo_StoreBatchTask.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer" json:"peer,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` + TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` } -var xxx_messageInfo_StoreBatchTask proto.InternalMessageInfo +func (m *StoreBatchTask) Reset() { *m = StoreBatchTask{} } +func (m *StoreBatchTask) String() string { return proto.CompactTextString(m) } +func (*StoreBatchTask) ProtoMessage() {} +func (*StoreBatchTask) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{7} } func (m *StoreBatchTask) GetRegionId() uint64 { if m != nil { @@ -718,49 +492,20 @@ func (m *StoreBatchTask) GetTaskId() uint64 { } type StoreBatchTaskResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` - OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` + OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` + TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } func (m *StoreBatchTaskResponse) Reset() { *m = StoreBatchTaskResponse{} } func (m *StoreBatchTaskResponse) String() string { return proto.CompactTextString(m) } func (*StoreBatchTaskResponse) ProtoMessage() {} func (*StoreBatchTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_29878c170c3dd019, []int{8} -} -func (m *StoreBatchTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorCoprocessor, []int{8} } -func (m *StoreBatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreBatchTaskResponse.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 *StoreBatchTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreBatchTaskResponse.Merge(m, src) -} -func (m *StoreBatchTaskResponse) XXX_Size() int { - return m.Size() -} -func (m *StoreBatchTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StoreBatchTaskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StoreBatchTaskResponse proto.InternalMessageInfo func (m *StoreBatchTaskResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -808,80 +553,10 @@ func init() { proto.RegisterType((*StoreBatchTask)(nil), "coprocessor.StoreBatchTask") proto.RegisterType((*StoreBatchTaskResponse)(nil), "coprocessor.StoreBatchTaskResponse") } - -func init() { proto.RegisterFile("coprocessor.proto", fileDescriptor_29878c170c3dd019) } - -var fileDescriptor_29878c170c3dd019 = []byte{ - // 1003 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xef, 0xfa, 0x7f, 0xde, 0xae, 0x1d, 0x67, 0x9a, 0xa6, 0xdb, 0x56, 0x24, 0x96, 0x91, 0x90, - 0x29, 0xe0, 0x28, 0x0e, 0x2a, 0xb7, 0x1c, 0x5c, 0x22, 0x61, 0x08, 0x12, 0x9a, 0x44, 0xb9, 0xae, - 0xc6, 0xbb, 0x93, 0xf5, 0xca, 0xce, 0xce, 0x32, 0x33, 0x89, 0x92, 0xde, 0xf8, 0x06, 0x1c, 0xb9, - 0x21, 0x71, 0xe2, 0x83, 0x70, 0xe8, 0x0d, 0x8e, 0x88, 0x43, 0x85, 0xc2, 0x37, 0xe0, 0x13, 0xa0, - 0x79, 0xb3, 0xeb, 0xd8, 0x21, 0x45, 0xe9, 0x21, 0x17, 0x4e, 0x3b, 0xef, 0xff, 0x9b, 0xf7, 0x7e, - 0xfb, 0x1b, 0x58, 0x0b, 0x45, 0x26, 0x45, 0xc8, 0x95, 0x12, 0xb2, 0x9f, 0x49, 0xa1, 0x05, 0x71, - 0x17, 0x54, 0x4f, 0x9b, 0x5c, 0x4a, 0x21, 0xb3, 0xb1, 0xb5, 0x3d, 0x6d, 0x4e, 0xcf, 0x65, 0x16, - 0xce, 0xc5, 0xf5, 0x58, 0xc4, 0x02, 0x8f, 0xdb, 0xe6, 0x94, 0x6b, 0x57, 0xe5, 0x99, 0xd2, 0x78, - 0xcc, 0x15, 0xde, 0x29, 0xd7, 0xac, 0x08, 0xea, 0x0e, 0xa0, 0xf1, 0x15, 0xbf, 0xa4, 0x2c, 0x8d, - 0x39, 0x59, 0x87, 0xaa, 0xd2, 0x4c, 0x6a, 0xdf, 0xe9, 0x38, 0x3d, 0x8f, 0x5a, 0x81, 0x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 0x90, 0xcf, 0xc0, 0xe3, 0x17, 0x3c, - 0x0c, 0x22, 0xae, 0x59, 0x32, 0x53, 0xb8, 0x54, 0x77, 0xb0, 0x3e, 0x2f, 0xbf, 0x7f, 0xc1, 0xc3, - 0xcf, 0xad, 0x8d, 0xba, 0xfc, 0x5a, 0x20, 0x7b, 0xb0, 0xba, 0x18, 0x18, 0x9c, 0x0f, 0x7c, 0x17, - 0x63, 0x37, 0x6e, 0x8b, 0x3d, 0x1e, 0xd0, 0x26, 0x5f, 0x14, 0x49, 0x07, 0xbc, 0x39, 0x02, 0x27, - 0x89, 0x46, 0x3c, 0x37, 0x28, 0xe4, 0xe8, 0xfb, 0x22, 0xd1, 0xe4, 0x63, 0x20, 0xd6, 0x3c, 0x63, - 0x4a, 0xcf, 0x51, 0xd7, 0x40, 0x08, 0xb4, 0xd1, 0x72, 0xc0, 0x94, 0x2e, 0x20, 0xd7, 0x85, 0x66, - 0xc8, 0xd2, 0x60, 0xcc, 0x6d, 0xce, 0x02, 0x50, 0x6e, 0xc8, 0xd2, 0x21, 0xc7, 0x9c, 0x11, 0xf9, - 0x14, 0x36, 0x66, 0x4c, 0x73, 0xa5, 0x83, 0xf1, 0x59, 0x38, 0xe5, 0x5a, 0xcd, 0xb3, 0x7a, 0x98, - 0x75, 0xdd, 0x5a, 0x87, 0xd6, 0x58, 0x64, 0x3e, 0x80, 0xd5, 0x31, 0x02, 0x5f, 0xe6, 0xa0, 0x51, - 0x7e, 0x13, 0xc1, 0xf6, 0xfe, 0x7f, 0x81, 0x2d, 0xf7, 0xa5, 0x2d, 0x8c, 0x2d, 0x44, 0xf5, 0x65, - 0xa5, 0x01, 0x6d, 0xb7, 0xfb, 0xbd, 0x03, 0x40, 0x71, 0xff, 0x66, 0xb7, 0xe4, 0x19, 0xac, 0xe4, - 0x88, 0x49, 0x22, 0x84, 0x62, 0x85, 0x36, 0xac, 0x62, 0x14, 0x91, 0x17, 0xd7, 0x70, 0xca, 0x44, - 0x38, 0xc9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, 0xe6, 0xb7, 0xf1, 0x0a, 0xff, 0x6f, 0x38, - 0x97, 0x14, 0x2d, 0xef, 0xfa, 0xa8, 0x3e, 0x86, 0xba, 0x79, 0x61, 0x4c, 0x8f, 0x16, 0x3d, 0x35, - 0x23, 0x8e, 0xa2, 0xee, 0x2f, 0x25, 0xd8, 0xb8, 0x9d, 0x1e, 0xfe, 0x8f, 0xef, 0xcf, 0xdb, 0xc6, - 0x70, 0xdb, 0x93, 0x51, 0x7b, 0x87, 0x27, 0x63, 0xf8, 0xc1, 0xef, 0x3f, 0x37, 0x9c, 0xd7, 0x57, - 0x9b, 0xce, 0x6f, 0x57, 0x9b, 0xce, 0x9f, 0x57, 0x9b, 0xce, 0x0f, 0x7f, 0x6d, 0x3e, 0x80, 0xb6, - 0x90, 0x71, 0x5f, 0x27, 0xd3, 0xf3, 0x7e, 0x3e, 0xa1, 0x71, 0x0d, 0x3f, 0xbb, 0xff, 0x04, 0x00, - 0x00, 0xff, 0xff, 0xc1, 0xb1, 0xfb, 0x7d, 0x32, 0x0a, 0x00, 0x00, -} - func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -889,40 +564,29 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { } func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Start) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Start))) + i += copy(dAtA[i:], m.Start) } if len(m.End) > 0 { - i -= len(m.End) - copy(dAtA[i:], m.End) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.End))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.End))) + i += copy(dAtA[i:], m.End) } - if len(m.Start) > 0 { - i -= len(m.Start) - copy(dAtA[i:], m.Start) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Start))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -930,118 +594,102 @@ func (m *Request) Marshal() (dAtA []byte, err error) { } func (m *Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Context.Size())) + n1, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if len(m.Tasks) > 0 { - for iNdEx := len(m.Tasks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if m.Tp != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n } } - if m.PagingSize != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.PagingSize)) - i-- - dAtA[i] = 0x50 - } - if m.IsTraceEnabled { - i-- - if m.IsTraceEnabled { + if m.IsCacheEnabled { + dAtA[i] = 0x28 + i++ + if m.IsCacheEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 + i++ } - if m.SchemaVer != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) - i-- - dAtA[i] = 0x40 + if m.CacheIfMatchVersion != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheIfMatchVersion)) } if m.StartTs != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) - i-- dAtA[i] = 0x38 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) } - if m.CacheIfMatchVersion != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheIfMatchVersion)) - i-- - dAtA[i] = 0x30 + if m.SchemaVer != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) } - if m.IsCacheEnabled { - i-- - if m.IsCacheEnabled { + if m.IsTraceEnabled { + dAtA[i] = 0x48 + i++ + if m.IsTraceEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 + i++ } - 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x1a - } - if m.Tp != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) - i-- - dAtA[i] = 0x10 + if m.PagingSize != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.PagingSize)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + dAtA[i] = 0x5a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1049,147 +697,123 @@ func (m *Response) Marshal() (dAtA []byte, err error) { } func (m *Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) + n2, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.BatchResponses) > 0 { - for iNdEx := len(m.BatchResponses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BatchResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a + i += n2 + if m.RegionError != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionError.Size())) + n3, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n3 } - if m.LatestBucketsVersion != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) - i-- - dAtA[i] = 0x60 + if m.Locked != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Locked.Size())) + n4, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if len(m.OtherError) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i += copy(dAtA[i:], m.OtherError) + } + if m.Range != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Range.Size())) + n5, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n5 } - if m.CanBeCached { - i-- - if m.CanBeCached { + if m.ExecDetails != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) + n6, err := m.ExecDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.IsCacheHit { + dAtA[i] = 0x38 + i++ + if m.IsCacheHit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 + i++ } if m.CacheLastVersion != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheLastVersion)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheLastVersion)) } - if m.IsCacheHit { - i-- - if m.IsCacheHit { + if m.CanBeCached { + dAtA[i] = 0x48 + i++ + if m.CanBeCached { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.ExecDetails != nil { - { - size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n7, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n7 } - if len(m.OtherError) > 0 { - i -= len(m.OtherError) - copy(dAtA[i:], m.OtherError) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i-- - dAtA[i] = 0x22 - } - if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.LatestBucketsVersion != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.BatchResponses) > 0 { + for _, msg := range m.BatchResponses { + dAtA[i] = 0x6a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { - return 0, err + i += n } - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return i, nil } func (m *RegionInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1197,57 +821,44 @@ func (m *RegionInfo) Marshal() (dAtA []byte, err error) { } func (m *RegionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) } - 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.RegionEpoch != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionEpoch.Size())) + n8, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n8 } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.RegionId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *TableRegions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1255,45 +866,34 @@ func (m *TableRegions) Marshal() (dAtA []byte, err error) { } func (m *TableRegions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TableRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.PhysicalTableId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.PhysicalTableId)) } 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.PhysicalTableId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.PhysicalTableId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *BatchRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1301,95 +901,78 @@ func (m *BatchRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LogId) > 0 { - i -= len(m.LogId) - copy(dAtA[i:], m.LogId) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.LogId))) - i-- - dAtA[i] = 0x42 - } - if len(m.TableRegions) > 0 { - for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Context.Size())) + n9, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n9 } - if m.SchemaVer != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) - i-- - dAtA[i] = 0x30 - } - if m.StartTs != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x28 + if m.Tp != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) } - 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + if len(m.Regions) > 0 { + for _, msg := range m.Regions { dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x1a + if m.StartTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) } - if m.Tp != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) - i-- - dAtA[i] = 0x10 + if m.SchemaVer != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.TableRegions) > 0 { + for _, msg := range m.TableRegions { + dAtA[i] = 0x3a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if len(m.LogId) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.LogId))) + i += copy(dAtA[i:], m.LogId) + } + return i, nil } func (m *BatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1397,69 +980,53 @@ func (m *BatchResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) + n10, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.RetryRegions) > 0 { - for iNdEx := len(m.RetryRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RetryRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + i += n10 + if len(m.OtherError) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i += copy(dAtA[i:], m.OtherError) } if m.ExecDetails != nil { - { - size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) + n11, err := m.ExecDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if len(m.RetryRegions) > 0 { + for _, msg := range m.RetryRegions { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a - } - if len(m.OtherError) > 0 { - i -= len(m.OtherError) - copy(dAtA[i:], m.OtherError) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i-- - dAtA[i] = 0x12 - } - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return i, nil } func (m *StoreBatchTask) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1467,74 +1034,59 @@ func (m *StoreBatchTask) Marshal() (dAtA []byte, err error) { } func (m *StoreBatchTask) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreBatchTask) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TaskId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x28 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) } - 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.RegionEpoch != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionEpoch.Size())) + n12, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n12 } if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Peer.Size())) + n13, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.RegionId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.TaskId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) } - return len(dAtA) - i, nil + return i, nil } func (m *StoreBatchTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1542,95 +1094,72 @@ func (m *StoreBatchTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreBatchTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreBatchTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) + n14, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n14 + if m.RegionError != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionError.Size())) + n15, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n15 } - if m.TaskId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x28 + if m.Locked != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Locked.Size())) + n16, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } if len(m.OtherError) > 0 { - i -= len(m.OtherError) - copy(dAtA[i:], m.OtherError) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i += copy(dAtA[i:], m.OtherError) } - if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.TaskId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) } - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n17, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { return 0, err } - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n17 } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return i, nil } func encodeVarintCoprocessor(dAtA []byte, offset int, v uint64) int { - offset -= sovCoprocessor(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *KeyRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Start) @@ -1641,16 +1170,10 @@ func (m *KeyRange) Size() (n int) { if l > 0 { n += 1 + l + sovCoprocessor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -1694,16 +1217,10 @@ func (m *Request) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1750,16 +1267,10 @@ func (m *Response) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1775,16 +1286,10 @@ func (m *RegionInfo) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TableRegions) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PhysicalTableId != 0 { @@ -1796,16 +1301,10 @@ func (m *TableRegions) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -1841,16 +1340,10 @@ func (m *BatchRequest) Size() (n int) { if l > 0 { n += 1 + l + sovCoprocessor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1869,16 +1362,10 @@ func (m *BatchResponse) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreBatchTask) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1901,16 +1388,10 @@ func (m *StoreBatchTask) Size() (n int) { if m.TaskId != 0 { n += 1 + sovCoprocessor(uint64(m.TaskId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreBatchTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1934,14 +1415,18 @@ func (m *StoreBatchTaskResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovCoprocessor(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovCoprocessor(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozCoprocessor(x uint64) (n int) { return sovCoprocessor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1961,7 +1446,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1989,7 +1474,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1998,9 +1483,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2023,7 +1505,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2032,9 +1514,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2049,13 +1528,12 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2080,7 +1558,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2108,7 +1586,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2117,9 +1595,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2144,7 +1619,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= int64(b&0x7F) << shift + m.Tp |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2163,7 +1638,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2172,9 +1647,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2197,7 +1669,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2206,9 +1678,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2231,7 +1700,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2251,7 +1720,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CacheIfMatchVersion |= uint64(b&0x7F) << shift + m.CacheIfMatchVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2270,7 +1739,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2289,7 +1758,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= int64(b&0x7F) << shift + m.SchemaVer |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2308,7 +1777,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2328,7 +1797,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PagingSize |= uint64(b&0x7F) << shift + m.PagingSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2347,7 +1816,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2356,9 +1825,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2373,13 +1839,12 @@ func (m *Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2404,7 +1869,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2432,7 +1897,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2441,9 +1906,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2465,7 +1927,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2474,9 +1936,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2501,7 +1960,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2510,9 +1969,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2537,7 +1993,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2547,9 +2003,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2569,7 +2022,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2578,9 +2031,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2605,7 +2055,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2614,9 +2064,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2641,7 +2088,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2661,7 +2108,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CacheLastVersion |= uint64(b&0x7F) << shift + m.CacheLastVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2680,7 +2127,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2700,7 +2147,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2709,9 +2156,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2736,7 +2180,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatestBucketsVersion |= uint64(b&0x7F) << shift + m.LatestBucketsVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2755,7 +2199,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2764,9 +2208,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2781,13 +2222,12 @@ func (m *Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2812,7 +2252,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2840,7 +2280,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2859,7 +2299,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2868,9 +2308,6 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2895,7 +2332,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2904,9 +2341,6 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2921,13 +2355,12 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2952,7 +2385,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2980,7 +2413,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PhysicalTableId |= int64(b&0x7F) << shift + m.PhysicalTableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2999,7 +2432,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3008,9 +2441,6 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3025,13 +2455,12 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3056,7 +2485,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3084,7 +2513,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3093,9 +2522,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3120,7 +2546,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= int64(b&0x7F) << shift + m.Tp |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3139,7 +2565,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3148,9 +2574,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3173,7 +2596,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3182,9 +2605,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3207,7 +2627,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3226,7 +2646,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= int64(b&0x7F) << shift + m.SchemaVer |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3245,7 +2665,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3254,9 +2674,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3279,7 +2696,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3289,9 +2706,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3303,13 +2717,12 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3334,7 +2747,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3362,7 +2775,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3371,9 +2784,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3395,7 +2805,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3405,9 +2815,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3427,7 +2834,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3436,9 +2843,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3463,7 +2867,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3472,9 +2876,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3489,13 +2890,12 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3520,7 +2920,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3548,7 +2948,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3567,7 +2967,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3576,9 +2976,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3603,7 +3000,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3612,9 +3009,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3639,7 +3033,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3648,9 +3042,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3673,7 +3064,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= uint64(b&0x7F) << shift + m.TaskId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3684,13 +3075,12 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3715,7 +3105,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3743,7 +3133,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3752,9 +3142,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3776,7 +3163,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3785,9 +3172,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3812,7 +3196,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3821,9 +3205,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3848,7 +3229,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3858,9 +3239,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3880,7 +3258,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= uint64(b&0x7F) << shift + m.TaskId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3899,7 +3277,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3908,9 +3286,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3927,13 +3302,12 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3946,7 +3320,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { func skipCoprocessor(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3978,8 +3351,10 @@ func skipCoprocessor(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3996,34 +3371,122 @@ func skipCoprocessor(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthCoprocessor } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCoprocessor + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCoprocessor + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipCoprocessor(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthCoprocessor - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthCoprocessor = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCoprocessor = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCoprocessor = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthCoprocessor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCoprocessor = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("coprocessor.proto", fileDescriptorCoprocessor) } + +var fileDescriptorCoprocessor = []byte{ + // 1005 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0xcf, 0x6e, 0xdb, 0xc6, + 0x13, 0x0e, 0xf5, 0xdf, 0x43, 0x4a, 0x96, 0x37, 0x8e, 0xc3, 0x24, 0xf8, 0xd9, 0x82, 0x7e, 0x40, + 0xa1, 0xa6, 0xad, 0x0c, 0xcb, 0x45, 0x7a, 0xf3, 0x41, 0xa9, 0x81, 0xaa, 0x75, 0x81, 0x62, 0x6d, + 0xf8, 0x4a, 0xac, 0xc8, 0x35, 0x45, 0x48, 0xe6, 0xb2, 0xbb, 0x6b, 0xc3, 0xce, 0xad, 0x6f, 0xd0, + 0x63, 0x6f, 0x05, 0x7a, 0xea, 0x83, 0xf4, 0x90, 0x5b, 0x7b, 0x2c, 0x7a, 0x08, 0x0a, 0xf7, 0x0d, + 0xfa, 0x04, 0xc5, 0xce, 0x92, 0xb2, 0xe4, 0x3a, 0x81, 0x73, 0xf0, 0xa5, 0x27, 0xee, 0xfc, 0xe1, + 0xcc, 0xc7, 0x99, 0x6f, 0x3f, 0xc2, 0x5a, 0x28, 0x32, 0x29, 0x42, 0xae, 0x94, 0x90, 0xfd, 0x4c, + 0x0a, 0x2d, 0x88, 0xbb, 0xe0, 0x7a, 0xda, 0xe4, 0x52, 0x0a, 0x99, 0x8d, 0x6d, 0xec, 0x69, 0x73, + 0x7a, 0x2e, 0xb3, 0x70, 0x6e, 0xae, 0xc7, 0x22, 0x16, 0x78, 0xdc, 0x36, 0xa7, 0xdc, 0xbb, 0x2a, + 0xcf, 0x94, 0xc6, 0x63, 0xee, 0xf0, 0x4e, 0xb9, 0x66, 0xc5, 0x4b, 0xdd, 0x01, 0x34, 0xbe, 0xe2, + 0x97,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, 0x15, 0x0a, + 0xe8, 0xb2, 0xb5, 0x3e, 0x82, 0x2a, 0x12, 0x00, 0x77, 0xfd, 0x56, 0x92, 0xd8, 0x1c, 0xf2, 0x19, + 0x78, 0xfc, 0x82, 0x87, 0x41, 0xc4, 0x35, 0x4b, 0x66, 0x0a, 0xf7, 0xed, 0x0e, 0xd6, 0xe7, 0xed, + 0xf7, 0x2f, 0x78, 0xf8, 0xb9, 0x8d, 0x51, 0x97, 0x5f, 0x1b, 0xa4, 0x03, 0xde, 0x9c, 0x5c, 0x93, + 0x44, 0x23, 0x03, 0x1a, 0x14, 0x72, 0x62, 0x7d, 0x91, 0x68, 0xf2, 0x31, 0x10, 0x1b, 0x9e, 0x31, + 0xa5, 0xe7, 0x84, 0x6a, 0xe0, 0x0a, 0xdb, 0x18, 0x39, 0x60, 0x4a, 0x17, 0x6c, 0xea, 0x42, 0x33, + 0x64, 0x69, 0x30, 0xe6, 0xb6, 0x66, 0x41, 0x08, 0x37, 0x64, 0xe9, 0x90, 0x63, 0xcd, 0x88, 0xec, + 0xc1, 0xea, 0x22, 0xd8, 0xe0, 0x7c, 0xe0, 0xbb, 0x88, 0x77, 0xe3, 0x36, 0xbc, 0xc7, 0x03, 0xda, + 0xe4, 0x8b, 0x26, 0xf9, 0x14, 0x36, 0x66, 0x4c, 0x73, 0xa5, 0x83, 0xf1, 0x59, 0x38, 0xe5, 0x5a, + 0xcd, 0x51, 0x79, 0x88, 0x6a, 0xdd, 0x46, 0x87, 0x36, 0x58, 0x20, 0x3b, 0x80, 0xd5, 0x31, 0xde, + 0x09, 0x99, 0x93, 0x46, 0xf9, 0x4d, 0x24, 0xdb, 0xff, 0xdf, 0x45, 0xb6, 0x3c, 0x97, 0xb6, 0xf0, + 0xdd, 0xc2, 0x54, 0x5f, 0x56, 0x1a, 0xd0, 0x76, 0xbb, 0xdf, 0x3b, 0x00, 0x14, 0xf7, 0x6f, 0x76, + 0x4b, 0x9e, 0xc1, 0x4a, 0xce, 0x98, 0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, 0xbf, 0x3a, 0xd0, + 0x5a, 0xbe, 0x4c, 0xf7, 0x73, 0x3f, 0x3a, 0x50, 0xc9, 0x38, 0x97, 0xf9, 0xd7, 0x78, 0x45, 0xfe, + 0x37, 0x9c, 0x4b, 0x8a, 0x91, 0xf7, 0xfd, 0xdf, 0x3e, 0x86, 0xba, 0xf9, 0xc3, 0x18, 0x8c, 0x96, + 0x3d, 0x35, 0x63, 0x8e, 0xa2, 0xee, 0x2f, 0x25, 0xd8, 0xb8, 0x5d, 0x1e, 0xfe, 0x8b, 0xff, 0x9f, + 0xb7, 0x8d, 0xe1, 0x36, 0xf9, 0xae, 0xbd, 0x87, 0x7c, 0x0f, 0x3f, 0xf8, 0xfd, 0xe7, 0x86, 0xf3, + 0xfa, 0x6a, 0xd3, 0xf9, 0xed, 0x6a, 0xd3, 0xf9, 0xf3, 0x6a, 0xd3, 0xf9, 0xe1, 0xaf, 0xcd, 0x07, + 0xd0, 0x16, 0x32, 0xee, 0xeb, 0x64, 0x7a, 0xde, 0xcf, 0x27, 0x34, 0xae, 0xe1, 0x63, 0xf7, 0x9f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x1c, 0x14, 0xd5, 0x32, 0x0a, 0x00, 0x00, +} diff --git a/pkg/deadlock/deadlock.pb.go b/pkg/deadlock/deadlock.pb.go index c19b5a3ce..4be3f69fa 100644 --- a/pkg/deadlock/deadlock.pb.go +++ b/pkg/deadlock/deadlock.pb.go @@ -1,20 +1,34 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: deadlock.proto +/* +Package deadlock is a generated protocol buffer package. + +It is generated from these files: + + deadlock.proto + +It has these top-level messages: + + WaitForEntriesRequest + WaitForEntriesResponse + WaitForEntry + DeadlockRequest + DeadlockResponse +*/ package deadlock import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +40,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DeadlockRequestType int32 @@ -43,7 +57,6 @@ var DeadlockRequestType_name = map[int32]string{ 1: "CleanUpWaitFor", 2: "CleanUp", } - var DeadlockRequestType_value = map[string]int32{ "Detect": 0, "CleanUpWaitFor": 1, @@ -53,89 +66,24 @@ var DeadlockRequestType_value = map[string]int32{ func (x DeadlockRequestType) String() string { return proto.EnumName(DeadlockRequestType_name, int32(x)) } - -func (DeadlockRequestType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{0} -} +func (DeadlockRequestType) EnumDescriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{0} } type WaitForEntriesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WaitForEntriesRequest) Reset() { *m = WaitForEntriesRequest{} } -func (m *WaitForEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*WaitForEntriesRequest) ProtoMessage() {} -func (*WaitForEntriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{0} -} -func (m *WaitForEntriesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WaitForEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WaitForEntriesRequest.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 *WaitForEntriesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WaitForEntriesRequest.Merge(m, src) -} -func (m *WaitForEntriesRequest) XXX_Size() int { - return m.Size() -} -func (m *WaitForEntriesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WaitForEntriesRequest.DiscardUnknown(m) } -var xxx_messageInfo_WaitForEntriesRequest proto.InternalMessageInfo +func (m *WaitForEntriesRequest) Reset() { *m = WaitForEntriesRequest{} } +func (m *WaitForEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*WaitForEntriesRequest) ProtoMessage() {} +func (*WaitForEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{0} } type WaitForEntriesResponse struct { - Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WaitForEntriesResponse) Reset() { *m = WaitForEntriesResponse{} } -func (m *WaitForEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*WaitForEntriesResponse) ProtoMessage() {} -func (*WaitForEntriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{1} -} -func (m *WaitForEntriesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WaitForEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WaitForEntriesResponse.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 *WaitForEntriesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WaitForEntriesResponse.Merge(m, src) -} -func (m *WaitForEntriesResponse) XXX_Size() int { - return m.Size() -} -func (m *WaitForEntriesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WaitForEntriesResponse.DiscardUnknown(m) + Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries" json:"entries"` } -var xxx_messageInfo_WaitForEntriesResponse proto.InternalMessageInfo +func (m *WaitForEntriesResponse) Reset() { *m = WaitForEntriesResponse{} } +func (m *WaitForEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*WaitForEntriesResponse) ProtoMessage() {} +func (*WaitForEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{1} } func (m *WaitForEntriesResponse) GetEntries() []WaitForEntry { if m != nil { @@ -156,44 +104,13 @@ type WaitForEntry struct { // The tag came from the lock request's context. ResourceGroupTag []byte `protobuf:"bytes,5,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` // Milliseconds it has been waits. - WaitTime uint64 `protobuf:"varint,6,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WaitForEntry) Reset() { *m = WaitForEntry{} } -func (m *WaitForEntry) String() string { return proto.CompactTextString(m) } -func (*WaitForEntry) ProtoMessage() {} -func (*WaitForEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{2} -} -func (m *WaitForEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WaitForEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WaitForEntry.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 *WaitForEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_WaitForEntry.Merge(m, src) -} -func (m *WaitForEntry) XXX_Size() int { - return m.Size() -} -func (m *WaitForEntry) XXX_DiscardUnknown() { - xxx_messageInfo_WaitForEntry.DiscardUnknown(m) + WaitTime uint64 `protobuf:"varint,6,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` } -var xxx_messageInfo_WaitForEntry proto.InternalMessageInfo +func (m *WaitForEntry) Reset() { *m = WaitForEntry{} } +func (m *WaitForEntry) String() string { return proto.CompactTextString(m) } +func (*WaitForEntry) ProtoMessage() {} +func (*WaitForEntry) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{2} } func (m *WaitForEntry) GetTxn() uint64 { if m != nil { @@ -238,45 +155,14 @@ func (m *WaitForEntry) GetWaitTime() uint64 { } type DeadlockRequest struct { - Tp DeadlockRequestType `protobuf:"varint,1,opt,name=tp,proto3,enum=deadlock.DeadlockRequestType" json:"tp,omitempty"` - Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeadlockRequest) Reset() { *m = DeadlockRequest{} } -func (m *DeadlockRequest) String() string { return proto.CompactTextString(m) } -func (*DeadlockRequest) ProtoMessage() {} -func (*DeadlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{3} -} -func (m *DeadlockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeadlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeadlockRequest.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 *DeadlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeadlockRequest.Merge(m, src) -} -func (m *DeadlockRequest) XXX_Size() int { - return m.Size() -} -func (m *DeadlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeadlockRequest.DiscardUnknown(m) + Tp DeadlockRequestType `protobuf:"varint,1,opt,name=tp,proto3,enum=deadlock.DeadlockRequestType" json:"tp,omitempty"` + Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry" json:"entry"` } -var xxx_messageInfo_DeadlockRequest proto.InternalMessageInfo +func (m *DeadlockRequest) Reset() { *m = DeadlockRequest{} } +func (m *DeadlockRequest) String() string { return proto.CompactTextString(m) } +func (*DeadlockRequest) ProtoMessage() {} +func (*DeadlockRequest) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{3} } func (m *DeadlockRequest) GetTp() DeadlockRequestType { if m != nil { @@ -294,49 +180,18 @@ func (m *DeadlockRequest) GetEntry() WaitForEntry { type DeadlockResponse struct { // The same entry sent by DeadlockRequest, identifies the sender. - Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry"` + Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry" json:"entry"` // The key hash of the lock that is hold by the waiting transaction. DeadlockKeyHash uint64 `protobuf:"varint,2,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` // The other entries of the dead lock circle. The current entry is in `entry` field and not // included in this field. - WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeadlockResponse) Reset() { *m = DeadlockResponse{} } -func (m *DeadlockResponse) String() string { return proto.CompactTextString(m) } -func (*DeadlockResponse) ProtoMessage() {} -func (*DeadlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{4} -} -func (m *DeadlockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeadlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeadlockResponse.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 *DeadlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeadlockResponse.Merge(m, src) -} -func (m *DeadlockResponse) XXX_Size() int { - return m.Size() -} -func (m *DeadlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeadlockResponse.DiscardUnknown(m) + WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` } -var xxx_messageInfo_DeadlockResponse proto.InternalMessageInfo +func (m *DeadlockResponse) Reset() { *m = DeadlockResponse{} } +func (m *DeadlockResponse) String() string { return proto.CompactTextString(m) } +func (*DeadlockResponse) ProtoMessage() {} +func (*DeadlockResponse) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{4} } func (m *DeadlockResponse) GetEntry() WaitForEntry { if m != nil { @@ -360,48 +215,12 @@ func (m *DeadlockResponse) GetWaitChain() []*WaitForEntry { } func init() { - proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) proto.RegisterType((*WaitForEntriesRequest)(nil), "deadlock.WaitForEntriesRequest") proto.RegisterType((*WaitForEntriesResponse)(nil), "deadlock.WaitForEntriesResponse") proto.RegisterType((*WaitForEntry)(nil), "deadlock.WaitForEntry") proto.RegisterType((*DeadlockRequest)(nil), "deadlock.DeadlockRequest") proto.RegisterType((*DeadlockResponse)(nil), "deadlock.DeadlockResponse") -} - -func init() { proto.RegisterFile("deadlock.proto", fileDescriptor_1995e4345c820a37) } - -var fileDescriptor_1995e4345c820a37 = []byte{ - // 465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x84, 0x69, 0x94, 0xba, 0x03, 0x14, 0x37, 0x88, 0xd4, 0xf2, 0x53, - 0x54, 0x41, 0x41, 0x41, 0x70, 0x80, 0xb4, 0xa5, 0x48, 0xbc, 0x20, 0x2b, 0x08, 0xde, 0xac, 0x25, - 0x1d, 0x6c, 0xcb, 0xad, 0xd7, 0xd8, 0x1b, 0xb5, 0xbe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bd, 0xb7, 0x7e, 0x7f, 0x95, 0x64, 0x22, 0x86, 0xec, 0x19, 0x1b, 0x5b, 0x57, - 0xf3, 0x01, 0xfb, 0x31, 0x1f, 0xb0, 0x5f, 0xf3, 0x01, 0xfb, 0xf2, 0x7b, 0x50, 0xfb, 0xd8, 0xd2, - 0x3f, 0xd5, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, - 0x00, + proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -412,9 +231,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// DeadlockClient is the client API for Deadlock service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Deadlock service + type DeadlockClient interface { // Get local wait for entries, should be handle by every node. // The owner should sent this request to all members to build the complete wait for graph. @@ -435,7 +253,7 @@ func NewDeadlockClient(cc *grpc.ClientConn) DeadlockClient { func (c *deadlockClient) GetWaitForEntries(ctx context.Context, in *WaitForEntriesRequest, opts ...grpc.CallOption) (*WaitForEntriesResponse, error) { out := new(WaitForEntriesResponse) - err := c.cc.Invoke(ctx, "/deadlock.Deadlock/GetWaitForEntries", in, out, opts...) + err := grpc.Invoke(ctx, "/deadlock.Deadlock/GetWaitForEntries", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -443,7 +261,7 @@ func (c *deadlockClient) GetWaitForEntries(ctx context.Context, in *WaitForEntri } func (c *deadlockClient) Detect(ctx context.Context, opts ...grpc.CallOption) (Deadlock_DetectClient, error) { - stream, err := c.cc.NewStream(ctx, &_Deadlock_serviceDesc.Streams[0], "/deadlock.Deadlock/Detect", opts...) + stream, err := grpc.NewClientStream(ctx, &_Deadlock_serviceDesc.Streams[0], c.cc, "/deadlock.Deadlock/Detect", opts...) if err != nil { return nil, err } @@ -473,7 +291,8 @@ func (x *deadlockDetectClient) Recv() (*DeadlockResponse, error) { return m, nil } -// DeadlockServer is the server API for Deadlock service. +// Server API for Deadlock service + type DeadlockServer interface { // Get local wait for entries, should be handle by every node. // The owner should sent this request to all members to build the complete wait for graph. @@ -484,17 +303,6 @@ type DeadlockServer interface { Detect(Deadlock_DetectServer) error } -// UnimplementedDeadlockServer can be embedded to have forward compatible implementations. -type UnimplementedDeadlockServer struct { -} - -func (*UnimplementedDeadlockServer) GetWaitForEntries(ctx context.Context, req *WaitForEntriesRequest) (*WaitForEntriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWaitForEntries not implemented") -} -func (*UnimplementedDeadlockServer) Detect(srv Deadlock_DetectServer) error { - return status.Errorf(codes.Unimplemented, "method Detect not implemented") -} - func RegisterDeadlockServer(s *grpc.Server, srv DeadlockServer) { s.RegisterService(&_Deadlock_serviceDesc, srv) } @@ -566,7 +374,7 @@ var _Deadlock_serviceDesc = grpc.ServiceDesc{ func (m *WaitForEntriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -574,26 +382,17 @@ func (m *WaitForEntriesRequest) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntriesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WaitForEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *WaitForEntriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -601,40 +400,29 @@ func (m *WaitForEntriesResponse) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntriesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WaitForEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Entries { dAtA[i] = 0xa + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *WaitForEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -642,60 +430,49 @@ func (m *WaitForEntry) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WaitForEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Txn != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Txn)) } - if m.WaitTime != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitTime)) - i-- - dAtA[i] = 0x30 + if m.WaitForTxn != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitForTxn)) } - if len(m.ResourceGroupTag) > 0 { - i -= len(m.ResourceGroupTag) - copy(dAtA[i:], m.ResourceGroupTag) - i = encodeVarintDeadlock(dAtA, i, uint64(len(m.ResourceGroupTag))) - i-- - dAtA[i] = 0x2a + if m.KeyHash != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintDeadlock(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.KeyHash != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) - i-- - dAtA[i] = 0x18 - } - if m.WaitForTxn != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitForTxn)) - i-- - dAtA[i] = 0x10 + if len(m.ResourceGroupTag) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.ResourceGroupTag))) + i += copy(dAtA[i:], m.ResourceGroupTag) } - if m.Txn != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.Txn)) - i-- - dAtA[i] = 0x8 + if m.WaitTime != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitTime)) } - return len(dAtA) - i, nil + return i, nil } func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -703,41 +480,30 @@ func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { } func (m *DeadlockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeadlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 if m.Tp != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) } - return len(dAtA) - i, nil + dAtA[i] = 0x12 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) + n1, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + return i, nil } func (m *DeadlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -745,78 +511,54 @@ func (m *DeadlockResponse) Marshal() (dAtA []byte, err error) { } func (m *DeadlockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeadlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.WaitChain) > 0 { - for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + dAtA[i] = 0xa + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) + n2, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n2 if m.DeadlockKeyHash != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.WaitChain) > 0 { + for _, msg := range m.WaitChain { + dAtA[i] = 0x1a + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return i, nil } func encodeVarintDeadlock(dAtA []byte, offset int, v uint64) int { - offset -= sovDeadlock(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *WaitForEntriesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WaitForEntriesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -825,16 +567,10 @@ func (m *WaitForEntriesResponse) Size() (n int) { n += 1 + l + sovDeadlock(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WaitForEntry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Txn != 0 { @@ -857,16 +593,10 @@ func (m *WaitForEntry) Size() (n int) { if m.WaitTime != 0 { n += 1 + sovDeadlock(uint64(m.WaitTime)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeadlockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Tp != 0 { @@ -874,16 +604,10 @@ func (m *DeadlockRequest) Size() (n int) { } l = m.Entry.Size() n += 1 + l + sovDeadlock(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeadlockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Entry.Size() @@ -897,14 +621,18 @@ func (m *DeadlockResponse) Size() (n int) { n += 1 + l + sovDeadlock(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovDeadlock(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozDeadlock(x uint64) (n int) { return sovDeadlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -924,7 +652,7 @@ func (m *WaitForEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -944,13 +672,12 @@ func (m *WaitForEntriesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -975,7 +702,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1003,7 +730,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1012,9 +739,6 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1029,13 +753,12 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1060,7 +783,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1088,7 +811,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Txn |= uint64(b&0x7F) << shift + m.Txn |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1107,7 +830,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitForTxn |= uint64(b&0x7F) << shift + m.WaitForTxn |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1126,7 +849,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyHash |= uint64(b&0x7F) << shift + m.KeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1145,7 +868,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1154,9 +877,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1179,7 +899,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1188,9 +908,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1213,7 +930,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitTime |= uint64(b&0x7F) << shift + m.WaitTime |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1224,13 +941,12 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1255,7 +971,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1283,7 +999,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= DeadlockRequestType(b&0x7F) << shift + m.Tp |= (DeadlockRequestType(b) & 0x7F) << shift if b < 0x80 { break } @@ -1302,7 +1018,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1311,9 +1027,6 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1327,13 +1040,12 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1358,7 +1070,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1386,7 +1098,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1395,9 +1107,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1419,7 +1128,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeadlockKeyHash |= uint64(b&0x7F) << shift + m.DeadlockKeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1438,7 +1147,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1447,9 +1156,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1464,13 +1170,12 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1483,7 +1188,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { func skipDeadlock(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1515,8 +1219,10 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1533,34 +1239,89 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthDeadlock } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDeadlock + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDeadlock + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipDeadlock(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthDeadlock - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDeadlock = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("deadlock.proto", fileDescriptorDeadlock) } + +var fileDescriptorDeadlock = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x84, 0x69, 0x94, 0xba, 0x03, 0x14, 0x37, 0x88, 0xd4, 0xf2, 0x53, + 0x54, 0x41, 0x41, 0x41, 0x70, 0x80, 0xb4, 0xa5, 0x48, 0xbc, 0x20, 0x2b, 0x08, 0xde, 0xac, 0x25, + 0x1d, 0x6c, 0xcb, 0xad, 0xd7, 0xd8, 0x1b, 0xb5, 0xbe, 0x09, 0x57, 0x40, 0xdc, 0x80, 0x13, 0xf4, + 0x91, 0x13, 0x20, 0x14, 0x2e, 0x82, 0x76, 0xed, 0x4d, 0x4a, 0x95, 0x40, 0xdf, 0xd6, 0xf3, 0xff, + 0xfb, 0xef, 0xcc, 0xb7, 0x6b, 0xe8, 0x9d, 0x12, 0x3f, 0x3d, 0x13, 0xd3, 0xf8, 0x20, 0xcd, 0x84, + 0x14, 0xd8, 0x31, 0xdf, 0xfd, 0x7b, 0x81, 0x08, 0x84, 0x2e, 0x3e, 0x55, 0xab, 0x52, 0x77, 0x1f, + 0xc0, 0xfd, 0xf7, 0x3c, 0x92, 0xaf, 0x44, 0x76, 0x9c, 0xc8, 0x2c, 0xa2, 0xdc, 0xa3, 0xcf, 0x33, + 0xca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 0xd2, 0xea, 0x7e, 0x65, 0x60, 0x2d, 0xf3, 0x2a, 0xfe, 0x8b, 0x20, + 0x76, 0xeb, 0x20, 0xdc, 0x87, 0x6d, 0xe3, 0xf2, 0x17, 0xfc, 0x4a, 0xba, 0x5b, 0x46, 0x78, 0x53, + 0x71, 0x7c, 0x01, 0x1a, 0xb8, 0x3f, 0x0d, 0x79, 0x94, 0xd8, 0x8d, 0x7f, 0x5d, 0xb1, 0xa7, 0x89, + 0x1d, 0x2a, 0xe3, 0xfe, 0x18, 0xee, 0xae, 0x18, 0x1d, 0x01, 0x5a, 0x47, 0x24, 0x69, 0x2a, 0xad, + 0x1a, 0x22, 0xf4, 0x0e, 0xcf, 0x88, 0x27, 0xef, 0xd2, 0x2a, 0xc4, 0x62, 0xb8, 0x09, 0xed, 0xaa, + 0x66, 0xd5, 0x47, 0xdf, 0x18, 0x74, 0x4c, 0x08, 0x7e, 0x80, 0xed, 0x13, 0x92, 0x7f, 0x3f, 0x42, + 0xdc, 0x5b, 0xd9, 0xc8, 0xf2, 0xdd, 0xf6, 0x9d, 0xf5, 0x86, 0x92, 0x9f, 0x5b, 0xc3, 0x63, 0xd3, + 0x13, 0xee, 0xae, 0xbd, 0xb7, 0x7e, 0x7f, 0x95, 0x64, 0x22, 0x86, 0xec, 0x19, 0x1b, 0x5b, 0x57, + 0xf3, 0x01, 0xfb, 0x31, 0x1f, 0xb0, 0x5f, 0xf3, 0x01, 0xfb, 0xf2, 0x7b, 0x50, 0xfb, 0xd8, 0xd2, + 0x3f, 0xd5, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, + 0x00, +} diff --git a/pkg/debugpb/debugpb.pb.go b/pkg/debugpb/debugpb.pb.go index 51d6da569..b0d07b278 100644 --- a/pkg/debugpb/debugpb.pb.go +++ b/pkg/debugpb/debugpb.pb.go @@ -1,23 +1,76 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: debugpb.proto +/* +Package debugpb is a generated protocol buffer package. + +It is generated from these files: + + debugpb.proto + +It has these top-level messages: + + GetRequest + GetResponse + RaftLogRequest + RaftLogResponse + RegionInfoRequest + RegionInfoResponse + RegionSizeRequest + RegionSizeResponse + ScanMvccRequest + ScanMvccResponse + CompactRequest + CompactResponse + InjectFailPointRequest + InjectFailPointResponse + RecoverFailPointRequest + RecoverFailPointResponse + ListFailPointsRequest + ListFailPointsResponse + GetMetricsRequest + GetMetricsResponse + RegionConsistencyCheckRequest + RegionConsistencyCheckResponse + ModifyTikvConfigRequest + ModifyTikvConfigResponse + Property + GetRegionPropertiesRequest + GetRegionPropertiesResponse + GetStoreInfoRequest + GetStoreInfoResponse + GetClusterInfoRequest + GetClusterInfoResponse + GetAllRegionsInStoreRequest + GetAllRegionsInStoreResponse + ResetToVersionRequest + ResetToVersionResponse + GetRangePropertiesRequest + GetRangePropertiesResponse + FlashbackToVersionRequest + FlashbackToVersionResponse + GetRegionReadProgressRequest + GetRegionReadProgressResponse +*/ package debugpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -29,7 +82,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DB int32 @@ -44,7 +97,6 @@ var DB_name = map[int32]string{ 1: "KV", 2: "RAFT", } - var DB_value = map[string]int32{ "INVALID": 0, "KV": 1, @@ -54,10 +106,7 @@ var DB_value = map[string]int32{ func (x DB) String() string { return proto.EnumName(DB_name, int32(x)) } - -func (DB) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{0} -} +func (DB) EnumDescriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{0} } type MODULE int32 @@ -88,7 +137,6 @@ var MODULE_name = map[int32]string{ 9: "SECURITY", 10: "IMPORT", } - var MODULE_value = map[string]int32{ "UNUSED": 0, "KVDB": 1, @@ -106,10 +154,7 @@ var MODULE_value = map[string]int32{ func (x MODULE) String() string { return proto.EnumName(MODULE_name, int32(x)) } - -func (MODULE) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{1} -} +func (MODULE) EnumDescriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{1} } type BottommostLevelCompaction int32 @@ -127,7 +172,6 @@ var BottommostLevelCompaction_name = map[int32]string{ 1: "Force", 2: "IfHaveCompactionFilter", } - var BottommostLevelCompaction_value = map[string]int32{ "Skip": 0, "Force": 1, @@ -137,52 +181,20 @@ var BottommostLevelCompaction_value = map[string]int32{ func (x BottommostLevelCompaction) String() string { return proto.EnumName(BottommostLevelCompaction_name, int32(x)) } - func (BottommostLevelCompaction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{2} + return fileDescriptorDebugpb, []int{2} } type GetRequest struct { - Db DB `protobuf:"varint,1,opt,name=db,proto3,enum=debugpb.DB" json:"db,omitempty"` - Cf string `protobuf:"bytes,2,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{0} -} -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + Db DB `protobuf:"varint,1,opt,name=db,proto3,enum=debugpb.DB" json:"db,omitempty"` + Cf string `protobuf:"bytes,2,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{0} } func (m *GetRequest) GetDb() DB { if m != nil { @@ -206,44 +218,13 @@ func (m *GetRequest) GetKey() []byte { } type GetResponse struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{1} -} -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return m.Size() -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{1} } func (m *GetResponse) GetValue() []byte { if m != nil { @@ -253,45 +234,14 @@ func (m *GetResponse) GetValue() []byte { } type RaftLogRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftLogRequest) Reset() { *m = RaftLogRequest{} } -func (m *RaftLogRequest) String() string { return proto.CompactTextString(m) } -func (*RaftLogRequest) ProtoMessage() {} -func (*RaftLogRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{2} -} -func (m *RaftLogRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftLogRequest.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 *RaftLogRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftLogRequest.Merge(m, src) -} -func (m *RaftLogRequest) XXX_Size() int { - return m.Size() -} -func (m *RaftLogRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RaftLogRequest.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` } -var xxx_messageInfo_RaftLogRequest proto.InternalMessageInfo +func (m *RaftLogRequest) Reset() { *m = RaftLogRequest{} } +func (m *RaftLogRequest) String() string { return proto.CompactTextString(m) } +func (*RaftLogRequest) ProtoMessage() {} +func (*RaftLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{2} } func (m *RaftLogRequest) GetRegionId() uint64 { if m != nil { @@ -308,44 +258,13 @@ func (m *RaftLogRequest) GetLogIndex() uint64 { } type RaftLogResponse struct { - Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftLogResponse) Reset() { *m = RaftLogResponse{} } -func (m *RaftLogResponse) String() string { return proto.CompactTextString(m) } -func (*RaftLogResponse) ProtoMessage() {} -func (*RaftLogResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{3} -} -func (m *RaftLogResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftLogResponse.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 *RaftLogResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftLogResponse.Merge(m, src) -} -func (m *RaftLogResponse) XXX_Size() int { - return m.Size() -} -func (m *RaftLogResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RaftLogResponse.DiscardUnknown(m) + Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"` } -var xxx_messageInfo_RaftLogResponse proto.InternalMessageInfo +func (m *RaftLogResponse) Reset() { *m = RaftLogResponse{} } +func (m *RaftLogResponse) String() string { return proto.CompactTextString(m) } +func (*RaftLogResponse) ProtoMessage() {} +func (*RaftLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{3} } func (m *RaftLogResponse) GetEntry() *eraftpb.Entry { if m != nil { @@ -355,44 +274,13 @@ func (m *RaftLogResponse) GetEntry() *eraftpb.Entry { } type RegionInfoRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionInfoRequest) Reset() { *m = RegionInfoRequest{} } -func (m *RegionInfoRequest) String() string { return proto.CompactTextString(m) } -func (*RegionInfoRequest) ProtoMessage() {} -func (*RegionInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{4} -} -func (m *RegionInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionInfoRequest.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 *RegionInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionInfoRequest.Merge(m, src) -} -func (m *RegionInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionInfoRequest.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_RegionInfoRequest proto.InternalMessageInfo +func (m *RegionInfoRequest) Reset() { *m = RegionInfoRequest{} } +func (m *RegionInfoRequest) String() string { return proto.CompactTextString(m) } +func (*RegionInfoRequest) ProtoMessage() {} +func (*RegionInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{4} } func (m *RegionInfoRequest) GetRegionId() uint64 { if m != nil { @@ -402,46 +290,15 @@ func (m *RegionInfoRequest) GetRegionId() uint64 { } type RegionInfoResponse struct { - RaftLocalState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_local_state,json=raftLocalState,proto3" json:"raft_local_state,omitempty"` - RaftApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=raft_apply_state,json=raftApplyState,proto3" json:"raft_apply_state,omitempty"` - RegionLocalState *raft_serverpb.RegionLocalState `protobuf:"bytes,3,opt,name=region_local_state,json=regionLocalState,proto3" json:"region_local_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionInfoResponse) Reset() { *m = RegionInfoResponse{} } -func (m *RegionInfoResponse) String() string { return proto.CompactTextString(m) } -func (*RegionInfoResponse) ProtoMessage() {} -func (*RegionInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{5} -} -func (m *RegionInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionInfoResponse.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 *RegionInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionInfoResponse.Merge(m, src) -} -func (m *RegionInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *RegionInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionInfoResponse.DiscardUnknown(m) + RaftLocalState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_local_state,json=raftLocalState" json:"raft_local_state,omitempty"` + RaftApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=raft_apply_state,json=raftApplyState" json:"raft_apply_state,omitempty"` + RegionLocalState *raft_serverpb.RegionLocalState `protobuf:"bytes,3,opt,name=region_local_state,json=regionLocalState" json:"region_local_state,omitempty"` } -var xxx_messageInfo_RegionInfoResponse proto.InternalMessageInfo +func (m *RegionInfoResponse) Reset() { *m = RegionInfoResponse{} } +func (m *RegionInfoResponse) String() string { return proto.CompactTextString(m) } +func (*RegionInfoResponse) ProtoMessage() {} +func (*RegionInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{5} } func (m *RegionInfoResponse) GetRaftLocalState() *raft_serverpb.RaftLocalState { if m != nil { @@ -465,45 +322,14 @@ func (m *RegionInfoResponse) GetRegionLocalState() *raft_serverpb.RegionLocalSta } type RegionSizeRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Cfs []string `protobuf:"bytes,2,rep,name=cfs,proto3" json:"cfs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionSizeRequest) Reset() { *m = RegionSizeRequest{} } -func (m *RegionSizeRequest) String() string { return proto.CompactTextString(m) } -func (*RegionSizeRequest) ProtoMessage() {} -func (*RegionSizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{6} -} -func (m *RegionSizeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionSizeRequest.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 *RegionSizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionSizeRequest.Merge(m, src) -} -func (m *RegionSizeRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionSizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionSizeRequest.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + Cfs []string `protobuf:"bytes,2,rep,name=cfs" json:"cfs,omitempty"` } -var xxx_messageInfo_RegionSizeRequest proto.InternalMessageInfo +func (m *RegionSizeRequest) Reset() { *m = RegionSizeRequest{} } +func (m *RegionSizeRequest) String() string { return proto.CompactTextString(m) } +func (*RegionSizeRequest) ProtoMessage() {} +func (*RegionSizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{6} } func (m *RegionSizeRequest) GetRegionId() uint64 { if m != nil { @@ -520,44 +346,13 @@ func (m *RegionSizeRequest) GetCfs() []string { } type RegionSizeResponse struct { - Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionSizeResponse) Reset() { *m = RegionSizeResponse{} } -func (m *RegionSizeResponse) String() string { return proto.CompactTextString(m) } -func (*RegionSizeResponse) ProtoMessage() {} -func (*RegionSizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{7} -} -func (m *RegionSizeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionSizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionSizeResponse.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 *RegionSizeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionSizeResponse.Merge(m, src) -} -func (m *RegionSizeResponse) XXX_Size() int { - return m.Size() -} -func (m *RegionSizeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionSizeResponse.DiscardUnknown(m) + Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` } -var xxx_messageInfo_RegionSizeResponse proto.InternalMessageInfo +func (m *RegionSizeResponse) Reset() { *m = RegionSizeResponse{} } +func (m *RegionSizeResponse) String() string { return proto.CompactTextString(m) } +func (*RegionSizeResponse) ProtoMessage() {} +func (*RegionSizeResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{7} } func (m *RegionSizeResponse) GetEntries() []*RegionSizeResponse_Entry { if m != nil { @@ -567,45 +362,16 @@ func (m *RegionSizeResponse) GetEntries() []*RegionSizeResponse_Entry { } type RegionSizeResponse_Entry struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` } func (m *RegionSizeResponse_Entry) Reset() { *m = RegionSizeResponse_Entry{} } func (m *RegionSizeResponse_Entry) String() string { return proto.CompactTextString(m) } func (*RegionSizeResponse_Entry) ProtoMessage() {} func (*RegionSizeResponse_Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{7, 0} -} -func (m *RegionSizeResponse_Entry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorDebugpb, []int{7, 0} } -func (m *RegionSizeResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionSizeResponse_Entry.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 *RegionSizeResponse_Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionSizeResponse_Entry.Merge(m, src) -} -func (m *RegionSizeResponse_Entry) XXX_Size() int { - return m.Size() -} -func (m *RegionSizeResponse_Entry) XXX_DiscardUnknown() { - xxx_messageInfo_RegionSizeResponse_Entry.DiscardUnknown(m) -} - -var xxx_messageInfo_RegionSizeResponse_Entry proto.InternalMessageInfo func (m *RegionSizeResponse_Entry) GetCf() string { if m != nil { @@ -622,46 +388,15 @@ func (m *RegionSizeResponse_Entry) GetSize_() uint64 { } type ScanMvccRequest struct { - FromKey []byte `protobuf:"bytes,1,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` - ToKey []byte `protobuf:"bytes,2,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanMvccRequest) Reset() { *m = ScanMvccRequest{} } -func (m *ScanMvccRequest) String() string { return proto.CompactTextString(m) } -func (*ScanMvccRequest) ProtoMessage() {} -func (*ScanMvccRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{8} -} -func (m *ScanMvccRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanMvccRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanMvccRequest.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 *ScanMvccRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanMvccRequest.Merge(m, src) -} -func (m *ScanMvccRequest) XXX_Size() int { - return m.Size() -} -func (m *ScanMvccRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanMvccRequest.DiscardUnknown(m) + FromKey []byte `protobuf:"bytes,1,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` + ToKey []byte `protobuf:"bytes,2,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } -var xxx_messageInfo_ScanMvccRequest proto.InternalMessageInfo +func (m *ScanMvccRequest) Reset() { *m = ScanMvccRequest{} } +func (m *ScanMvccRequest) String() string { return proto.CompactTextString(m) } +func (*ScanMvccRequest) ProtoMessage() {} +func (*ScanMvccRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{8} } func (m *ScanMvccRequest) GetFromKey() []byte { if m != nil { @@ -685,45 +420,14 @@ func (m *ScanMvccRequest) GetLimit() uint64 { } type ScanMvccResponse struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Info *kvrpcpb.MvccInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanMvccResponse) Reset() { *m = ScanMvccResponse{} } -func (m *ScanMvccResponse) String() string { return proto.CompactTextString(m) } -func (*ScanMvccResponse) ProtoMessage() {} -func (*ScanMvccResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{9} -} -func (m *ScanMvccResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanMvccResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanMvccResponse.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 *ScanMvccResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanMvccResponse.Merge(m, src) -} -func (m *ScanMvccResponse) XXX_Size() int { - return m.Size() -} -func (m *ScanMvccResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanMvccResponse.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Info *kvrpcpb.MvccInfo `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` } -var xxx_messageInfo_ScanMvccResponse proto.InternalMessageInfo +func (m *ScanMvccResponse) Reset() { *m = ScanMvccResponse{} } +func (m *ScanMvccResponse) String() string { return proto.CompactTextString(m) } +func (*ScanMvccResponse) ProtoMessage() {} +func (*ScanMvccResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{9} } func (m *ScanMvccResponse) GetKey() []byte { if m != nil { @@ -746,43 +450,12 @@ type CompactRequest struct { ToKey []byte `protobuf:"bytes,4,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` Threads uint32 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"` BottommostLevelCompaction BottommostLevelCompaction `protobuf:"varint,6,opt,name=bottommost_level_compaction,json=bottommostLevelCompaction,proto3,enum=debugpb.BottommostLevelCompaction" json:"bottommost_level_compaction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{10} -} -func (m *CompactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactRequest.Merge(m, src) -} -func (m *CompactRequest) XXX_Size() int { - return m.Size() -} -func (m *CompactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CompactRequest.DiscardUnknown(m) } -var xxx_messageInfo_CompactRequest proto.InternalMessageInfo +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{10} } func (m *CompactRequest) GetDb() DB { if m != nil { @@ -827,84 +500,22 @@ func (m *CompactRequest) GetBottommostLevelCompaction() BottommostLevelCompactio } type CompactResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{11} -} -func (m *CompactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactResponse.Merge(m, src) -} -func (m *CompactResponse) XXX_Size() int { - return m.Size() -} -func (m *CompactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CompactResponse.DiscardUnknown(m) } -var xxx_messageInfo_CompactResponse proto.InternalMessageInfo +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{11} } type InjectFailPointRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InjectFailPointRequest) Reset() { *m = InjectFailPointRequest{} } -func (m *InjectFailPointRequest) String() string { return proto.CompactTextString(m) } -func (*InjectFailPointRequest) ProtoMessage() {} -func (*InjectFailPointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{12} -} -func (m *InjectFailPointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InjectFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InjectFailPointRequest.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 *InjectFailPointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InjectFailPointRequest.Merge(m, src) -} -func (m *InjectFailPointRequest) XXX_Size() int { - return m.Size() -} -func (m *InjectFailPointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InjectFailPointRequest.DiscardUnknown(m) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` } -var xxx_messageInfo_InjectFailPointRequest proto.InternalMessageInfo +func (m *InjectFailPointRequest) Reset() { *m = InjectFailPointRequest{} } +func (m *InjectFailPointRequest) String() string { return proto.CompactTextString(m) } +func (*InjectFailPointRequest) ProtoMessage() {} +func (*InjectFailPointRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{12} } func (m *InjectFailPointRequest) GetName() string { if m != nil { @@ -921,83 +532,21 @@ func (m *InjectFailPointRequest) GetActions() string { } type InjectFailPointResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InjectFailPointResponse) Reset() { *m = InjectFailPointResponse{} } -func (m *InjectFailPointResponse) String() string { return proto.CompactTextString(m) } -func (*InjectFailPointResponse) ProtoMessage() {} -func (*InjectFailPointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{13} -} -func (m *InjectFailPointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InjectFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InjectFailPointResponse.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 *InjectFailPointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InjectFailPointResponse.Merge(m, src) -} -func (m *InjectFailPointResponse) XXX_Size() int { - return m.Size() -} -func (m *InjectFailPointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InjectFailPointResponse.DiscardUnknown(m) } -var xxx_messageInfo_InjectFailPointResponse proto.InternalMessageInfo +func (m *InjectFailPointResponse) Reset() { *m = InjectFailPointResponse{} } +func (m *InjectFailPointResponse) String() string { return proto.CompactTextString(m) } +func (*InjectFailPointResponse) ProtoMessage() {} +func (*InjectFailPointResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{13} } type RecoverFailPointRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RecoverFailPointRequest) Reset() { *m = RecoverFailPointRequest{} } -func (m *RecoverFailPointRequest) String() string { return proto.CompactTextString(m) } -func (*RecoverFailPointRequest) ProtoMessage() {} -func (*RecoverFailPointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{14} -} -func (m *RecoverFailPointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoverFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoverFailPointRequest.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 *RecoverFailPointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoverFailPointRequest.Merge(m, src) -} -func (m *RecoverFailPointRequest) XXX_Size() int { - return m.Size() -} -func (m *RecoverFailPointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecoverFailPointRequest.DiscardUnknown(m) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -var xxx_messageInfo_RecoverFailPointRequest proto.InternalMessageInfo +func (m *RecoverFailPointRequest) Reset() { *m = RecoverFailPointRequest{} } +func (m *RecoverFailPointRequest) String() string { return proto.CompactTextString(m) } +func (*RecoverFailPointRequest) ProtoMessage() {} +func (*RecoverFailPointRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{14} } func (m *RecoverFailPointRequest) GetName() string { if m != nil { @@ -1007,122 +556,31 @@ func (m *RecoverFailPointRequest) GetName() string { } type RecoverFailPointResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *RecoverFailPointResponse) Reset() { *m = RecoverFailPointResponse{} } func (m *RecoverFailPointResponse) String() string { return proto.CompactTextString(m) } func (*RecoverFailPointResponse) ProtoMessage() {} func (*RecoverFailPointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{15} -} -func (m *RecoverFailPointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoverFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoverFailPointResponse.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 *RecoverFailPointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoverFailPointResponse.Merge(m, src) -} -func (m *RecoverFailPointResponse) XXX_Size() int { - return m.Size() -} -func (m *RecoverFailPointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecoverFailPointResponse.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{15} } -var xxx_messageInfo_RecoverFailPointResponse proto.InternalMessageInfo - type ListFailPointsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListFailPointsRequest) Reset() { *m = ListFailPointsRequest{} } -func (m *ListFailPointsRequest) String() string { return proto.CompactTextString(m) } -func (*ListFailPointsRequest) ProtoMessage() {} -func (*ListFailPointsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{16} -} -func (m *ListFailPointsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListFailPointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListFailPointsRequest.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 *ListFailPointsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListFailPointsRequest.Merge(m, src) -} -func (m *ListFailPointsRequest) XXX_Size() int { - return m.Size() -} -func (m *ListFailPointsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListFailPointsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ListFailPointsRequest proto.InternalMessageInfo +func (m *ListFailPointsRequest) Reset() { *m = ListFailPointsRequest{} } +func (m *ListFailPointsRequest) String() string { return proto.CompactTextString(m) } +func (*ListFailPointsRequest) ProtoMessage() {} +func (*ListFailPointsRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{16} } type ListFailPointsResponse struct { - Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListFailPointsResponse) Reset() { *m = ListFailPointsResponse{} } -func (m *ListFailPointsResponse) String() string { return proto.CompactTextString(m) } -func (*ListFailPointsResponse) ProtoMessage() {} -func (*ListFailPointsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{17} -} -func (m *ListFailPointsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListFailPointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListFailPointsResponse.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 *ListFailPointsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListFailPointsResponse.Merge(m, src) -} -func (m *ListFailPointsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListFailPointsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListFailPointsResponse.DiscardUnknown(m) + Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` } -var xxx_messageInfo_ListFailPointsResponse proto.InternalMessageInfo +func (m *ListFailPointsResponse) Reset() { *m = ListFailPointsResponse{} } +func (m *ListFailPointsResponse) String() string { return proto.CompactTextString(m) } +func (*ListFailPointsResponse) ProtoMessage() {} +func (*ListFailPointsResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{17} } func (m *ListFailPointsResponse) GetEntries() []*ListFailPointsResponse_Entry { if m != nil { @@ -1132,45 +590,16 @@ func (m *ListFailPointsResponse) GetEntries() []*ListFailPointsResponse_Entry { } type ListFailPointsResponse_Entry struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` } func (m *ListFailPointsResponse_Entry) Reset() { *m = ListFailPointsResponse_Entry{} } func (m *ListFailPointsResponse_Entry) String() string { return proto.CompactTextString(m) } func (*ListFailPointsResponse_Entry) ProtoMessage() {} func (*ListFailPointsResponse_Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{17, 0} -} -func (m *ListFailPointsResponse_Entry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorDebugpb, []int{17, 0} } -func (m *ListFailPointsResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListFailPointsResponse_Entry.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 *ListFailPointsResponse_Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListFailPointsResponse_Entry.Merge(m, src) -} -func (m *ListFailPointsResponse_Entry) XXX_Size() int { - return m.Size() -} -func (m *ListFailPointsResponse_Entry) XXX_DiscardUnknown() { - xxx_messageInfo_ListFailPointsResponse_Entry.DiscardUnknown(m) -} - -var xxx_messageInfo_ListFailPointsResponse_Entry proto.InternalMessageInfo func (m *ListFailPointsResponse_Entry) GetName() string { if m != nil { @@ -1187,44 +616,13 @@ func (m *ListFailPointsResponse_Entry) GetActions() string { } type GetMetricsRequest struct { - All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } -func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*GetMetricsRequest) ProtoMessage() {} -func (*GetMetricsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{18} -} -func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMetricsRequest.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 *GetMetricsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsRequest.Merge(m, src) -} -func (m *GetMetricsRequest) XXX_Size() int { - return m.Size() -} -func (m *GetMetricsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsRequest.DiscardUnknown(m) + All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` } -var xxx_messageInfo_GetMetricsRequest proto.InternalMessageInfo +func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } +func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*GetMetricsRequest) ProtoMessage() {} +func (*GetMetricsRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{18} } func (m *GetMetricsRequest) GetAll() bool { if m != nil { @@ -1234,48 +632,17 @@ func (m *GetMetricsRequest) GetAll() bool { } type GetMetricsResponse struct { - Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` - RocksdbKv string `protobuf:"bytes,2,opt,name=rocksdb_kv,json=rocksdbKv,proto3" json:"rocksdb_kv,omitempty"` - RocksdbRaft string `protobuf:"bytes,3,opt,name=rocksdb_raft,json=rocksdbRaft,proto3" json:"rocksdb_raft,omitempty"` - Jemalloc string `protobuf:"bytes,4,opt,name=jemalloc,proto3" json:"jemalloc,omitempty"` - StoreId uint64 `protobuf:"varint,5,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } -func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*GetMetricsResponse) ProtoMessage() {} -func (*GetMetricsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{19} -} -func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMetricsResponse.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 *GetMetricsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsResponse.Merge(m, src) -} -func (m *GetMetricsResponse) XXX_Size() int { - return m.Size() -} -func (m *GetMetricsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsResponse.DiscardUnknown(m) + Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` + RocksdbKv string `protobuf:"bytes,2,opt,name=rocksdb_kv,json=rocksdbKv,proto3" json:"rocksdb_kv,omitempty"` + RocksdbRaft string `protobuf:"bytes,3,opt,name=rocksdb_raft,json=rocksdbRaft,proto3" json:"rocksdb_raft,omitempty"` + Jemalloc string `protobuf:"bytes,4,opt,name=jemalloc,proto3" json:"jemalloc,omitempty"` + StoreId uint64 `protobuf:"varint,5,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } -var xxx_messageInfo_GetMetricsResponse proto.InternalMessageInfo +func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } +func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*GetMetricsResponse) ProtoMessage() {} +func (*GetMetricsResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{19} } func (m *GetMetricsResponse) GetPrometheus() string { if m != nil { @@ -1313,45 +680,16 @@ func (m *GetMetricsResponse) GetStoreId() uint64 { } type RegionConsistencyCheckRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } func (m *RegionConsistencyCheckRequest) Reset() { *m = RegionConsistencyCheckRequest{} } func (m *RegionConsistencyCheckRequest) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckRequest) ProtoMessage() {} func (*RegionConsistencyCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{20} -} -func (m *RegionConsistencyCheckRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionConsistencyCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionConsistencyCheckRequest.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 *RegionConsistencyCheckRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionConsistencyCheckRequest.Merge(m, src) -} -func (m *RegionConsistencyCheckRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionConsistencyCheckRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionConsistencyCheckRequest.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{20} } -var xxx_messageInfo_RegionConsistencyCheckRequest proto.InternalMessageInfo - func (m *RegionConsistencyCheckRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -1360,85 +698,25 @@ func (m *RegionConsistencyCheckRequest) GetRegionId() uint64 { } type RegionConsistencyCheckResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *RegionConsistencyCheckResponse) Reset() { *m = RegionConsistencyCheckResponse{} } func (m *RegionConsistencyCheckResponse) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckResponse) ProtoMessage() {} func (*RegionConsistencyCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{21} -} -func (m *RegionConsistencyCheckResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionConsistencyCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionConsistencyCheckResponse.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 *RegionConsistencyCheckResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionConsistencyCheckResponse.Merge(m, src) -} -func (m *RegionConsistencyCheckResponse) XXX_Size() int { - return m.Size() + return fileDescriptorDebugpb, []int{21} } -func (m *RegionConsistencyCheckResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionConsistencyCheckResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RegionConsistencyCheckResponse proto.InternalMessageInfo type ModifyTikvConfigRequest struct { - Module MODULE `protobuf:"varint,1,opt,name=module,proto3,enum=debugpb.MODULE" json:"module,omitempty"` - ConfigName string `protobuf:"bytes,2,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"` - ConfigValue string `protobuf:"bytes,3,opt,name=config_value,json=configValue,proto3" json:"config_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ModifyTikvConfigRequest) Reset() { *m = ModifyTikvConfigRequest{} } -func (m *ModifyTikvConfigRequest) String() string { return proto.CompactTextString(m) } -func (*ModifyTikvConfigRequest) ProtoMessage() {} -func (*ModifyTikvConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{22} -} -func (m *ModifyTikvConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyTikvConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyTikvConfigRequest.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 *ModifyTikvConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyTikvConfigRequest.Merge(m, src) -} -func (m *ModifyTikvConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *ModifyTikvConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyTikvConfigRequest.DiscardUnknown(m) + Module MODULE `protobuf:"varint,1,opt,name=module,proto3,enum=debugpb.MODULE" json:"module,omitempty"` + ConfigName string `protobuf:"bytes,2,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"` + ConfigValue string `protobuf:"bytes,3,opt,name=config_value,json=configValue,proto3" json:"config_value,omitempty"` } -var xxx_messageInfo_ModifyTikvConfigRequest proto.InternalMessageInfo +func (m *ModifyTikvConfigRequest) Reset() { *m = ModifyTikvConfigRequest{} } +func (m *ModifyTikvConfigRequest) String() string { return proto.CompactTextString(m) } +func (*ModifyTikvConfigRequest) ProtoMessage() {} +func (*ModifyTikvConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{22} } func (m *ModifyTikvConfigRequest) GetModule() MODULE { if m != nil { @@ -1462,84 +740,24 @@ func (m *ModifyTikvConfigRequest) GetConfigValue() string { } type ModifyTikvConfigResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ModifyTikvConfigResponse) Reset() { *m = ModifyTikvConfigResponse{} } func (m *ModifyTikvConfigResponse) String() string { return proto.CompactTextString(m) } func (*ModifyTikvConfigResponse) ProtoMessage() {} func (*ModifyTikvConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{23} -} -func (m *ModifyTikvConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ModifyTikvConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ModifyTikvConfigResponse.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 *ModifyTikvConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ModifyTikvConfigResponse.Merge(m, src) -} -func (m *ModifyTikvConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *ModifyTikvConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ModifyTikvConfigResponse.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{23} } -var xxx_messageInfo_ModifyTikvConfigResponse proto.InternalMessageInfo - type Property struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Property) Reset() { *m = Property{} } -func (m *Property) String() string { return proto.CompactTextString(m) } -func (*Property) ProtoMessage() {} -func (*Property) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{24} -} -func (m *Property) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Property.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 *Property) XXX_Merge(src proto.Message) { - xxx_messageInfo_Property.Merge(m, src) -} -func (m *Property) XXX_Size() int { - return m.Size() -} -func (m *Property) XXX_DiscardUnknown() { - xxx_messageInfo_Property.DiscardUnknown(m) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_Property proto.InternalMessageInfo +func (m *Property) Reset() { *m = Property{} } +func (m *Property) String() string { return proto.CompactTextString(m) } +func (*Property) ProtoMessage() {} +func (*Property) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{24} } func (m *Property) GetName() string { if m != nil { @@ -1556,44 +774,15 @@ func (m *Property) GetValue() string { } type GetRegionPropertiesRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } func (m *GetRegionPropertiesRequest) Reset() { *m = GetRegionPropertiesRequest{} } func (m *GetRegionPropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesRequest) ProtoMessage() {} func (*GetRegionPropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{25} -} -func (m *GetRegionPropertiesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionPropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionPropertiesRequest.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 fileDescriptorDebugpb, []int{25} } -func (m *GetRegionPropertiesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionPropertiesRequest.Merge(m, src) -} -func (m *GetRegionPropertiesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRegionPropertiesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionPropertiesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetRegionPropertiesRequest proto.InternalMessageInfo func (m *GetRegionPropertiesRequest) GetRegionId() uint64 { if m != nil { @@ -1603,45 +792,16 @@ func (m *GetRegionPropertiesRequest) GetRegionId() uint64 { } type GetRegionPropertiesResponse struct { - Props []*Property `protobuf:"bytes,1,rep,name=props,proto3" json:"props,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Props []*Property `protobuf:"bytes,1,rep,name=props" json:"props,omitempty"` } func (m *GetRegionPropertiesResponse) Reset() { *m = GetRegionPropertiesResponse{} } func (m *GetRegionPropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesResponse) ProtoMessage() {} func (*GetRegionPropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{26} -} -func (m *GetRegionPropertiesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionPropertiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionPropertiesResponse.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 *GetRegionPropertiesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionPropertiesResponse.Merge(m, src) -} -func (m *GetRegionPropertiesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetRegionPropertiesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionPropertiesResponse.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{26} } -var xxx_messageInfo_GetRegionPropertiesResponse proto.InternalMessageInfo - func (m *GetRegionPropertiesResponse) GetProps() []*Property { if m != nil { return m.Props @@ -1650,84 +810,22 @@ func (m *GetRegionPropertiesResponse) GetProps() []*Property { } type GetStoreInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStoreInfoRequest) Reset() { *m = GetStoreInfoRequest{} } -func (m *GetStoreInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetStoreInfoRequest) ProtoMessage() {} -func (*GetStoreInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{27} -} -func (m *GetStoreInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStoreInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStoreInfoRequest.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 *GetStoreInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStoreInfoRequest.Merge(m, src) -} -func (m *GetStoreInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetStoreInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetStoreInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetStoreInfoRequest proto.InternalMessageInfo +func (m *GetStoreInfoRequest) Reset() { *m = GetStoreInfoRequest{} } +func (m *GetStoreInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetStoreInfoRequest) ProtoMessage() {} +func (*GetStoreInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{27} } type GetStoreInfoResponse struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStoreInfoResponse) Reset() { *m = GetStoreInfoResponse{} } -func (m *GetStoreInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetStoreInfoResponse) ProtoMessage() {} -func (*GetStoreInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{28} -} -func (m *GetStoreInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStoreInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStoreInfoResponse.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 *GetStoreInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStoreInfoResponse.Merge(m, src) -} -func (m *GetStoreInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetStoreInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStoreInfoResponse.DiscardUnknown(m) + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` } -var xxx_messageInfo_GetStoreInfoResponse proto.InternalMessageInfo +func (m *GetStoreInfoResponse) Reset() { *m = GetStoreInfoResponse{} } +func (m *GetStoreInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetStoreInfoResponse) ProtoMessage() {} +func (*GetStoreInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{28} } func (m *GetStoreInfoResponse) GetStoreId() uint64 { if m != nil { @@ -1744,83 +842,21 @@ func (m *GetStoreInfoResponse) GetApiVersion() kvrpcpb.APIVersion { } type GetClusterInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } -func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoRequest) ProtoMessage() {} -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{29} -} -func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoRequest.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 *GetClusterInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoRequest.Merge(m, src) -} -func (m *GetClusterInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetClusterInfoRequest proto.InternalMessageInfo +func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } +func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoRequest) ProtoMessage() {} +func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{29} } type GetClusterInfoResponse struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } -func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoResponse) ProtoMessage() {} -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{30} -} -func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoResponse.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 *GetClusterInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoResponse.Merge(m, src) -} -func (m *GetClusterInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoResponse.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` } -var xxx_messageInfo_GetClusterInfoResponse proto.InternalMessageInfo +func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } +func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoResponse) ProtoMessage() {} +func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{30} } func (m *GetClusterInfoResponse) GetClusterId() uint64 { if m != nil { @@ -1830,84 +866,26 @@ func (m *GetClusterInfoResponse) GetClusterId() uint64 { } type GetAllRegionsInStoreRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *GetAllRegionsInStoreRequest) Reset() { *m = GetAllRegionsInStoreRequest{} } func (m *GetAllRegionsInStoreRequest) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreRequest) ProtoMessage() {} func (*GetAllRegionsInStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{31} -} -func (m *GetAllRegionsInStoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllRegionsInStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllRegionsInStoreRequest.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 *GetAllRegionsInStoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllRegionsInStoreRequest.Merge(m, src) -} -func (m *GetAllRegionsInStoreRequest) XXX_Size() int { - return m.Size() + return fileDescriptorDebugpb, []int{31} } -func (m *GetAllRegionsInStoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllRegionsInStoreRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAllRegionsInStoreRequest proto.InternalMessageInfo type GetAllRegionsInStoreResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` } func (m *GetAllRegionsInStoreResponse) Reset() { *m = GetAllRegionsInStoreResponse{} } func (m *GetAllRegionsInStoreResponse) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreResponse) ProtoMessage() {} func (*GetAllRegionsInStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{32} -} -func (m *GetAllRegionsInStoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllRegionsInStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllRegionsInStoreResponse.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 *GetAllRegionsInStoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllRegionsInStoreResponse.Merge(m, src) -} -func (m *GetAllRegionsInStoreResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAllRegionsInStoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllRegionsInStoreResponse.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{32} } -var xxx_messageInfo_GetAllRegionsInStoreResponse proto.InternalMessageInfo - func (m *GetAllRegionsInStoreResponse) GetRegions() []uint64 { if m != nil { return m.Regions @@ -1916,44 +894,13 @@ func (m *GetAllRegionsInStoreResponse) GetRegions() []uint64 { } type ResetToVersionRequest struct { - Ts uint64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResetToVersionRequest) Reset() { *m = ResetToVersionRequest{} } -func (m *ResetToVersionRequest) String() string { return proto.CompactTextString(m) } -func (*ResetToVersionRequest) ProtoMessage() {} -func (*ResetToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{33} -} -func (m *ResetToVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetToVersionRequest.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 *ResetToVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetToVersionRequest.Merge(m, src) -} -func (m *ResetToVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *ResetToVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetToVersionRequest.DiscardUnknown(m) + Ts uint64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` } -var xxx_messageInfo_ResetToVersionRequest proto.InternalMessageInfo +func (m *ResetToVersionRequest) Reset() { *m = ResetToVersionRequest{} } +func (m *ResetToVersionRequest) String() string { return proto.CompactTextString(m) } +func (*ResetToVersionRequest) ProtoMessage() {} +func (*ResetToVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{33} } func (m *ResetToVersionRequest) GetTs() uint64 { if m != nil { @@ -1963,84 +910,24 @@ func (m *ResetToVersionRequest) GetTs() uint64 { } type ResetToVersionResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResetToVersionResponse) Reset() { *m = ResetToVersionResponse{} } -func (m *ResetToVersionResponse) String() string { return proto.CompactTextString(m) } -func (*ResetToVersionResponse) ProtoMessage() {} -func (*ResetToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{34} -} -func (m *ResetToVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetToVersionResponse.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 *ResetToVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetToVersionResponse.Merge(m, src) -} -func (m *ResetToVersionResponse) XXX_Size() int { - return m.Size() -} -func (m *ResetToVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResetToVersionResponse.DiscardUnknown(m) } -var xxx_messageInfo_ResetToVersionResponse proto.InternalMessageInfo +func (m *ResetToVersionResponse) Reset() { *m = ResetToVersionResponse{} } +func (m *ResetToVersionResponse) String() string { return proto.CompactTextString(m) } +func (*ResetToVersionResponse) ProtoMessage() {} +func (*ResetToVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{34} } type GetRangePropertiesRequest struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } func (m *GetRangePropertiesRequest) Reset() { *m = GetRangePropertiesRequest{} } func (m *GetRangePropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesRequest) ProtoMessage() {} func (*GetRangePropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{35} -} -func (m *GetRangePropertiesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRangePropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRangePropertiesRequest.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 fileDescriptorDebugpb, []int{35} } -func (m *GetRangePropertiesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRangePropertiesRequest.Merge(m, src) -} -func (m *GetRangePropertiesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRangePropertiesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRangePropertiesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetRangePropertiesRequest proto.InternalMessageInfo func (m *GetRangePropertiesRequest) GetStartKey() []byte { if m != nil { @@ -2057,45 +944,16 @@ func (m *GetRangePropertiesRequest) GetEndKey() []byte { } type GetRangePropertiesResponse struct { - Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties" json:"properties,omitempty"` } func (m *GetRangePropertiesResponse) Reset() { *m = GetRangePropertiesResponse{} } func (m *GetRangePropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesResponse) ProtoMessage() {} func (*GetRangePropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{36} -} -func (m *GetRangePropertiesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRangePropertiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRangePropertiesResponse.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 *GetRangePropertiesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRangePropertiesResponse.Merge(m, src) -} -func (m *GetRangePropertiesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetRangePropertiesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetRangePropertiesResponse.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{36} } -var xxx_messageInfo_GetRangePropertiesResponse proto.InternalMessageInfo - func (m *GetRangePropertiesResponse) GetProperties() []*GetRangePropertiesResponse_RangeProperty { if m != nil { return m.Properties @@ -2104,11 +962,8 @@ func (m *GetRangePropertiesResponse) GetProperties() []*GetRangePropertiesRespon } type GetRangePropertiesResponse_RangeProperty struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (m *GetRangePropertiesResponse_RangeProperty) Reset() { @@ -2117,34 +972,8 @@ func (m *GetRangePropertiesResponse_RangeProperty) Reset() { func (m *GetRangePropertiesResponse_RangeProperty) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesResponse_RangeProperty) ProtoMessage() {} func (*GetRangePropertiesResponse_RangeProperty) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{36, 0} -} -func (m *GetRangePropertiesResponse_RangeProperty) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRangePropertiesResponse_RangeProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.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 *GetRangePropertiesResponse_RangeProperty) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.Merge(m, src) -} -func (m *GetRangePropertiesResponse_RangeProperty) XXX_Size() int { - return m.Size() + return fileDescriptorDebugpb, []int{36, 0} } -func (m *GetRangePropertiesResponse_RangeProperty) XXX_DiscardUnknown() { - xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.DiscardUnknown(m) -} - -var xxx_messageInfo_GetRangePropertiesResponse_RangeProperty proto.InternalMessageInfo func (m *GetRangePropertiesResponse_RangeProperty) GetKey() string { if m != nil { @@ -2161,51 +990,22 @@ func (m *GetRangePropertiesResponse_RangeProperty) GetValue() string { } type FlashbackToVersionRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` - RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - StartKey []byte `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,7,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + StartKey []byte `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,7,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionRequest{} } func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{37} -} -func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackToVersionRequest.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 *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackToVersionRequest.Merge(m, src) -} -func (m *FlashbackToVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *FlashbackToVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackToVersionRequest.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{37} } -var xxx_messageInfo_FlashbackToVersionRequest proto.InternalMessageInfo - func (m *FlashbackToVersionRequest) GetContext() *kvrpcpb.Context { if m != nil { return m.Context @@ -2256,44 +1056,15 @@ func (m *FlashbackToVersionRequest) GetCommitTs() uint64 { } type FlashbackToVersionResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionResponse{} } func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{38} -} -func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorDebugpb, []int{38} } -func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackToVersionResponse.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 *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackToVersionResponse.Merge(m, src) -} -func (m *FlashbackToVersionResponse) XXX_Size() int { - return m.Size() -} -func (m *FlashbackToVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackToVersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FlashbackToVersionResponse proto.InternalMessageInfo func (m *FlashbackToVersionResponse) GetError() string { if m != nil { @@ -2303,47 +1074,18 @@ func (m *FlashbackToVersionResponse) GetError() string { } type GetRegionReadProgressRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - LogLocks bool `protobuf:"varint,2,opt,name=log_locks,json=logLocks,proto3" json:"log_locks,omitempty"` - MinStartTs uint64 `protobuf:"varint,3,opt,name=min_start_ts,json=minStartTs,proto3" json:"min_start_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + LogLocks bool `protobuf:"varint,2,opt,name=log_locks,json=logLocks,proto3" json:"log_locks,omitempty"` + MinStartTs uint64 `protobuf:"varint,3,opt,name=min_start_ts,json=minStartTs,proto3" json:"min_start_ts,omitempty"` } func (m *GetRegionReadProgressRequest) Reset() { *m = GetRegionReadProgressRequest{} } func (m *GetRegionReadProgressRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressRequest) ProtoMessage() {} func (*GetRegionReadProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{39} -} -func (m *GetRegionReadProgressRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionReadProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionReadProgressRequest.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 *GetRegionReadProgressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionReadProgressRequest.Merge(m, src) -} -func (m *GetRegionReadProgressRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRegionReadProgressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionReadProgressRequest.DiscardUnknown(m) + return fileDescriptorDebugpb, []int{39} } -var xxx_messageInfo_GetRegionReadProgressRequest proto.InternalMessageInfo - func (m *GetRegionReadProgressRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -2381,50 +1123,21 @@ type GetRegionReadProgressResponse struct { ReadStateApplyIndex uint64 `protobuf:"varint,19,opt,name=read_state_apply_index,json=readStateApplyIndex,proto3" json:"read_state_apply_index,omitempty"` Discard bool `protobuf:"varint,20,opt,name=discard,proto3" json:"discard,omitempty"` // below are from resolved-ts module - ResolvedTs uint64 `protobuf:"varint,11,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - ResolverTrackedIndex uint64 `protobuf:"varint,12,opt,name=resolver_tracked_index,json=resolverTrackedIndex,proto3" json:"resolver_tracked_index,omitempty"` - ResolverExist bool `protobuf:"varint,13,opt,name=resolver_exist,json=resolverExist,proto3" json:"resolver_exist,omitempty"` - ResolverStopped bool `protobuf:"varint,14,opt,name=resolver_stopped,json=resolverStopped,proto3" json:"resolver_stopped,omitempty"` - NumLocks uint64 `protobuf:"varint,16,opt,name=num_locks,json=numLocks,proto3" json:"num_locks,omitempty"` - NumTransactions uint64 `protobuf:"varint,17,opt,name=num_transactions,json=numTransactions,proto3" json:"num_transactions,omitempty"` - Error string `protobuf:"bytes,15,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResolvedTs uint64 `protobuf:"varint,11,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + ResolverTrackedIndex uint64 `protobuf:"varint,12,opt,name=resolver_tracked_index,json=resolverTrackedIndex,proto3" json:"resolver_tracked_index,omitempty"` + ResolverExist bool `protobuf:"varint,13,opt,name=resolver_exist,json=resolverExist,proto3" json:"resolver_exist,omitempty"` + ResolverStopped bool `protobuf:"varint,14,opt,name=resolver_stopped,json=resolverStopped,proto3" json:"resolver_stopped,omitempty"` + NumLocks uint64 `protobuf:"varint,16,opt,name=num_locks,json=numLocks,proto3" json:"num_locks,omitempty"` + NumTransactions uint64 `protobuf:"varint,17,opt,name=num_transactions,json=numTransactions,proto3" json:"num_transactions,omitempty"` + Error string `protobuf:"bytes,15,opt,name=error,proto3" json:"error,omitempty"` } func (m *GetRegionReadProgressResponse) Reset() { *m = GetRegionReadProgressResponse{} } func (m *GetRegionReadProgressResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressResponse) ProtoMessage() {} func (*GetRegionReadProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{40} -} -func (m *GetRegionReadProgressResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionReadProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionReadProgressResponse.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 *GetRegionReadProgressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionReadProgressResponse.Merge(m, src) -} -func (m *GetRegionReadProgressResponse) XXX_Size() int { - return m.Size() + return fileDescriptorDebugpb, []int{40} } -func (m *GetRegionReadProgressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionReadProgressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetRegionReadProgressResponse proto.InternalMessageInfo func (m *GetRegionReadProgressResponse) GetSafeTs() uint64 { if m != nil { @@ -2567,9 +1280,6 @@ func (m *GetRegionReadProgressResponse) GetError() string { } func init() { - proto.RegisterEnum("debugpb.DB", DB_name, DB_value) - proto.RegisterEnum("debugpb.MODULE", MODULE_name, MODULE_value) - proto.RegisterEnum("debugpb.BottommostLevelCompaction", BottommostLevelCompaction_name, BottommostLevelCompaction_value) proto.RegisterType((*GetRequest)(nil), "debugpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "debugpb.GetResponse") proto.RegisterType((*RaftLogRequest)(nil), "debugpb.RaftLogRequest") @@ -2614,156 +1324,9 @@ func init() { proto.RegisterType((*FlashbackToVersionResponse)(nil), "debugpb.FlashbackToVersionResponse") proto.RegisterType((*GetRegionReadProgressRequest)(nil), "debugpb.GetRegionReadProgressRequest") proto.RegisterType((*GetRegionReadProgressResponse)(nil), "debugpb.GetRegionReadProgressResponse") -} - -func init() { proto.RegisterFile("debugpb.proto", fileDescriptor_823ddaea3037c5c3) } - -var fileDescriptor_823ddaea3037c5c3 = []byte{ - // 2294 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0x4b, 0x73, 0xdb, 0xc8, - 0xf1, 0x17, 0x28, 0x4a, 0xa4, 0x5a, 0x2f, 0x68, 0x24, 0x4b, 0x14, 0xbc, 0x92, 0x65, 0x78, 0x65, - 0x6b, 0xfd, 0xaf, 0xbf, 0xb2, 0xd1, 0x3a, 0xe5, 0xa4, 0x36, 0x8f, 0x92, 0x28, 0x4a, 0xcb, 0x48, - 0xb2, 0xb4, 0x20, 0xad, 0x2a, 0x9f, 0x50, 0x20, 0x30, 0xa4, 0xb1, 0x04, 0x31, 0x0c, 0x66, 0xc8, - 0xb2, 0x7c, 0xc8, 0x31, 0xe7, 0x3d, 0xa6, 0x2a, 0x5f, 0x60, 0x2f, 0xb9, 0xe6, 0x33, 0xe4, 0x98, - 0x63, 0x8e, 0x29, 0xe7, 0x9a, 0x1c, 0x73, 0x4f, 0xcd, 0x03, 0xe0, 0xf0, 0x65, 0x6b, 0x73, 0x12, - 0xa6, 0xbb, 0xa7, 0xbb, 0xa7, 0xfb, 0x37, 0x8f, 0x1f, 0x05, 0xcb, 0x01, 0x6e, 0xf4, 0x5a, 0xdd, - 0xc6, 0x61, 0x37, 0x21, 0x8c, 0xa0, 0x82, 0x1a, 0x5a, 0xcb, 0x38, 0xf1, 0x9a, 0x2c, 0x95, 0x5b, - 0xcb, 0xed, 0x7e, 0xd2, 0xf5, 0xb3, 0xe1, 0x3a, 0x57, 0xba, 0x14, 0x27, 0x7d, 0x9c, 0x64, 0xc2, - 0x8d, 0x16, 0x69, 0x11, 0xf1, 0xf9, 0x13, 0xfe, 0xa5, 0xa4, 0xab, 0x49, 0x8f, 0x32, 0xf1, 0x29, - 0x05, 0xf6, 0x05, 0xc0, 0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xee, 0xd0, 0x27, 0x9d, - 0x4e, 0x28, 0x74, 0x05, 0x19, 0x4d, 0x0a, 0xea, 0xd4, 0x3e, 0x02, 0x6b, 0xd2, 0x6a, 0x07, 0x6f, - 0x73, 0x9c, 0x24, 0x24, 0x51, 0x65, 0x93, 0x03, 0xfb, 0xbd, 0x40, 0xa7, 0x84, 0xa6, 0x83, 0xbd, - 0xe0, 0x26, 0x21, 0xad, 0x04, 0x53, 0xfa, 0x63, 0x5e, 0xea, 0x11, 0x3f, 0xd3, 0x45, 0x5d, 0x8a, - 0xe2, 0xa5, 0x7e, 0xc9, 0xc7, 0x68, 0x0f, 0x96, 0x3a, 0x61, 0xec, 0x66, 0x2b, 0x91, 0xb5, 0x81, - 0x4e, 0x18, 0xd7, 0xe4, 0x62, 0xec, 0xbf, 0x14, 0x60, 0x67, 0x4a, 0x70, 0x95, 0xf3, 0x16, 0x14, - 0xa8, 0xd7, 0xc4, 0x6e, 0x86, 0xf6, 0x79, 0x3e, 0xac, 0x53, 0xf4, 0x04, 0x96, 0xf9, 0xb3, 0x39, - 0xc4, 0xc1, 0x10, 0x4f, 0x58, 0x52, 0x42, 0xc1, 0x15, 0xd0, 0xaf, 0xe0, 0x61, 0x17, 0xc7, 0x41, - 0x18, 0xb7, 0xdc, 0x66, 0x42, 0x62, 0xf9, 0xd2, 0x1e, 0x4c, 0x91, 0x09, 0x95, 0x94, 0xc9, 0x19, - 0xb7, 0x38, 0xd6, 0xa7, 0x1f, 0x80, 0x39, 0x3c, 0x9d, 0x51, 0xd1, 0xc3, 0xbc, 0xb3, 0xa2, 0xcf, - 0xa9, 0x53, 0xf4, 0x35, 0x58, 0xa9, 0x25, 0xaf, 0xfd, 0x48, 0x1c, 0x79, 0x7d, 0x6d, 0x29, 0x8b, - 0x13, 0xcf, 0x6f, 0x0f, 0x85, 0x79, 0x0a, 0xab, 0x43, 0x93, 0xb3, 0xa6, 0x2f, 0x6b, 0x33, 0xea, - 0x94, 0xaf, 0x46, 0x75, 0x82, 0x3f, 0xd7, 0xdc, 0xae, 0xaa, 0x95, 0xdb, 0xf5, 0x7a, 0x14, 0x07, - 0x02, 0x0c, 0x45, 0xa7, 0x94, 0x8c, 0x15, 0xf3, 0x46, 0xe8, 0xd1, 0x37, 0x60, 0x07, 0xbd, 0xc4, - 0xe3, 0x2f, 0x03, 0x97, 0x11, 0x37, 0xf2, 0x28, 0x73, 0x7b, 0xdd, 0xc0, 0x63, 0xd8, 0x55, 0x25, - 0x76, 0x3b, 0xb4, 0x54, 0x14, 0x91, 0x3f, 0x4b, 0x2d, 0xeb, 0xe4, 0xd2, 0xa3, 0xec, 0xb5, 0x30, - 0xab, 0x89, 0xca, 0x5f, 0x51, 0x54, 0x9d, 0xe0, 0xc9, 0x27, 0x31, 0xed, 0x75, 0xb0, 0x1b, 0x61, - 0x2f, 0xc0, 0x09, 0xf7, 0xb4, 0x20, 0x3c, 0xed, 0x0c, 0x7b, 0x2a, 0x4b, 0xb3, 0x4b, 0x61, 0x75, - 0x25, 0x0a, 0x37, 0x71, 0x4d, 0xf8, 0x5d, 0x48, 0x59, 0x09, 0xc4, 0x92, 0xb6, 0xc6, 0x97, 0x54, - 0xe1, 0x6a, 0x64, 0xc3, 0xb2, 0x98, 0x25, 0xe8, 0x0e, 0x2f, 0x1b, 0x12, 0x21, 0x17, 0xb9, 0x50, - 0x30, 0x99, 0x3a, 0x45, 0x5f, 0xc1, 0xa6, 0x66, 0x23, 0x99, 0x96, 0xec, 0xca, 0xba, 0x30, 0x5e, - 0xcf, 0x8c, 0x05, 0x9f, 0x92, 0x1d, 0x29, 0x41, 0x21, 0x08, 0xa9, 0xef, 0x25, 0x41, 0x69, 0x43, - 0xa4, 0x90, 0x0e, 0xf9, 0xad, 0x9e, 0x60, 0x4a, 0xa2, 0x3e, 0x0e, 0x78, 0xc0, 0x45, 0x09, 0xe9, - 0x54, 0x54, 0xa7, 0xe8, 0x05, 0x8f, 0x27, 0x46, 0x89, 0xcb, 0x12, 0xcf, 0x6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0x86, 0x19, 0xb2, 0x56, 0x96, 0x51, 0x2e, - 0x39, 0x83, 0x6e, 0x61, 0x75, 0x84, 0x05, 0xa2, 0x47, 0x99, 0xf9, 0x64, 0x9e, 0x69, 0xed, 0x4d, - 0x37, 0xc8, 0xfc, 0xbe, 0x01, 0x73, 0x94, 0x13, 0xa2, 0x3d, 0xad, 0x1e, 0x13, 0xd9, 0xa5, 0xf5, - 0xf8, 0x23, 0x16, 0x99, 0xeb, 0x1a, 0xac, 0x0c, 0xd3, 0x40, 0xb4, 0x3b, 0x95, 0x1f, 0x4a, 0xb7, - 0x8f, 0x3e, 0xc1, 0x1f, 0x65, 0x57, 0x07, 0x9c, 0x4e, 0xeb, 0xea, 0x18, 0x21, 0xd4, 0xba, 0x3a, - 0x4e, 0x02, 0xed, 0x19, 0xd4, 0x86, 0x4d, 0x45, 0x8f, 0x46, 0x48, 0x13, 0x7a, 0x3a, 0x02, 0x87, - 0x29, 0x74, 0xcc, 0x7a, 0xf6, 0x49, 0x3b, 0xbd, 0xca, 0xa3, 0x8c, 0x47, 0xab, 0xf2, 0x14, 0x52, - 0xa6, 0x55, 0x79, 0x2a, 0x5d, 0x9a, 0x41, 0x0d, 0xc1, 0x3b, 0x46, 0xf9, 0x0b, 0x7a, 0x32, 0xbc, - 0x3d, 0x27, 0x12, 0x23, 0xeb, 0xf3, 0x8f, 0x1b, 0x65, 0x31, 0xae, 0x60, 0x49, 0x27, 0x31, 0xe8, - 0x33, 0x7d, 0xde, 0x28, 0xe5, 0xb1, 0x76, 0xa6, 0x68, 0x75, 0x60, 0x0c, 0x33, 0x12, 0x0d, 0x18, - 0x13, 0x39, 0x8c, 0x06, 0x8c, 0xc9, 0x54, 0xc6, 0x9e, 0x41, 0x58, 0x10, 0xad, 0x31, 0x3a, 0x82, - 0x86, 0xd6, 0x38, 0x8d, 0xcc, 0x58, 0xfb, 0x9f, 0xb0, 0xd2, 0x73, 0x1f, 0xa6, 0x24, 0x5a, 0xee, - 0x13, 0x49, 0x8d, 0x96, 0xfb, 0x14, 0x2e, 0x33, 0x83, 0x5c, 0xf1, 0x43, 0xc5, 0x08, 0x81, 0x40, - 0xf6, 0x47, 0xd9, 0x85, 0x74, 0xfe, 0xe4, 0x1e, 0x0c, 0x44, 0x06, 0x18, 0x7f, 0x41, 0x6b, 0x01, - 0xa6, 0x92, 0x09, 0x2d, 0xc0, 0xf4, 0x27, 0xb8, 0x3d, 0x83, 0xde, 0x0a, 0xf6, 0x39, 0xfe, 0xe2, - 0x45, 0xfb, 0xe3, 0x10, 0x9b, 0xf0, 0x1c, 0xb7, 0x9e, 0x7e, 0xca, 0x2c, 0x8d, 0x74, 0xf2, 0xf4, - 0xef, 0x3f, 0x14, 0x8d, 0xbf, 0x7e, 0xd8, 0x35, 0xfe, 0xf6, 0x61, 0xd7, 0xf8, 0xc7, 0x87, 0x5d, - 0xe3, 0x8f, 0xff, 0xdc, 0x9d, 0x01, 0x93, 0x24, 0xad, 0x43, 0x16, 0xb6, 0xfb, 0x87, 0xed, 0xbe, - 0xf8, 0x77, 0x40, 0x63, 0x5e, 0xfc, 0xf9, 0xea, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0x59, - 0xd2, 0x20, 0x89, 0x18, 0x00, 0x00, + proto.RegisterEnum("debugpb.DB", DB_name, DB_value) + proto.RegisterEnum("debugpb.MODULE", MODULE_name, MODULE_value) + proto.RegisterEnum("debugpb.BottommostLevelCompaction", BottommostLevelCompaction_name, BottommostLevelCompaction_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -2774,9 +1337,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// DebugClient is the client API for Debug service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Debug service + type DebugClient interface { // Read a value arbitrarily for a key. // Note: Server uses key directly w/o any encoding. @@ -2835,7 +1397,7 @@ func NewDebugClient(cc *grpc.ClientConn) DebugClient { func (c *debugClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/Get", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/Get", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2844,7 +1406,7 @@ func (c *debugClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Call func (c *debugClient) RaftLog(ctx context.Context, in *RaftLogRequest, opts ...grpc.CallOption) (*RaftLogResponse, error) { out := new(RaftLogResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/RaftLog", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/RaftLog", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2853,7 +1415,7 @@ func (c *debugClient) RaftLog(ctx context.Context, in *RaftLogRequest, opts ...g func (c *debugClient) RegionInfo(ctx context.Context, in *RegionInfoRequest, opts ...grpc.CallOption) (*RegionInfoResponse, error) { out := new(RegionInfoResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/RegionInfo", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/RegionInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2862,7 +1424,7 @@ func (c *debugClient) RegionInfo(ctx context.Context, in *RegionInfoRequest, opt func (c *debugClient) RegionSize(ctx context.Context, in *RegionSizeRequest, opts ...grpc.CallOption) (*RegionSizeResponse, error) { out := new(RegionSizeResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/RegionSize", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/RegionSize", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2870,7 +1432,7 @@ func (c *debugClient) RegionSize(ctx context.Context, in *RegionSizeRequest, opt } func (c *debugClient) ScanMvcc(ctx context.Context, in *ScanMvccRequest, opts ...grpc.CallOption) (Debug_ScanMvccClient, error) { - stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/debugpb.Debug/ScanMvcc", opts...) + stream, err := grpc.NewClientStream(ctx, &_Debug_serviceDesc.Streams[0], c.cc, "/debugpb.Debug/ScanMvcc", opts...) if err != nil { return nil, err } @@ -2903,7 +1465,7 @@ func (x *debugScanMvccClient) Recv() (*ScanMvccResponse, error) { func (c *debugClient) Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error) { out := new(CompactResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/Compact", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/Compact", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2912,7 +1474,7 @@ func (c *debugClient) Compact(ctx context.Context, in *CompactRequest, opts ...g func (c *debugClient) InjectFailPoint(ctx context.Context, in *InjectFailPointRequest, opts ...grpc.CallOption) (*InjectFailPointResponse, error) { out := new(InjectFailPointResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/InjectFailPoint", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/InjectFailPoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2921,7 +1483,7 @@ func (c *debugClient) InjectFailPoint(ctx context.Context, in *InjectFailPointRe func (c *debugClient) RecoverFailPoint(ctx context.Context, in *RecoverFailPointRequest, opts ...grpc.CallOption) (*RecoverFailPointResponse, error) { out := new(RecoverFailPointResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/RecoverFailPoint", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/RecoverFailPoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2930,7 +1492,7 @@ func (c *debugClient) RecoverFailPoint(ctx context.Context, in *RecoverFailPoint func (c *debugClient) ListFailPoints(ctx context.Context, in *ListFailPointsRequest, opts ...grpc.CallOption) (*ListFailPointsResponse, error) { out := new(ListFailPointsResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/ListFailPoints", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/ListFailPoints", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2939,7 +1501,7 @@ func (c *debugClient) ListFailPoints(ctx context.Context, in *ListFailPointsRequ func (c *debugClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { out := new(GetMetricsResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetMetrics", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetMetrics", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2948,7 +1510,7 @@ func (c *debugClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opt func (c *debugClient) CheckRegionConsistency(ctx context.Context, in *RegionConsistencyCheckRequest, opts ...grpc.CallOption) (*RegionConsistencyCheckResponse, error) { out := new(RegionConsistencyCheckResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/CheckRegionConsistency", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/CheckRegionConsistency", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2957,7 +1519,7 @@ func (c *debugClient) CheckRegionConsistency(ctx context.Context, in *RegionCons func (c *debugClient) ModifyTikvConfig(ctx context.Context, in *ModifyTikvConfigRequest, opts ...grpc.CallOption) (*ModifyTikvConfigResponse, error) { out := new(ModifyTikvConfigResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/ModifyTikvConfig", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/ModifyTikvConfig", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2966,7 +1528,7 @@ func (c *debugClient) ModifyTikvConfig(ctx context.Context, in *ModifyTikvConfig func (c *debugClient) GetRegionProperties(ctx context.Context, in *GetRegionPropertiesRequest, opts ...grpc.CallOption) (*GetRegionPropertiesResponse, error) { out := new(GetRegionPropertiesResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRegionProperties", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetRegionProperties", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2975,7 +1537,7 @@ func (c *debugClient) GetRegionProperties(ctx context.Context, in *GetRegionProp func (c *debugClient) GetStoreInfo(ctx context.Context, in *GetStoreInfoRequest, opts ...grpc.CallOption) (*GetStoreInfoResponse, error) { out := new(GetStoreInfoResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetStoreInfo", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetStoreInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2984,7 +1546,7 @@ func (c *debugClient) GetStoreInfo(ctx context.Context, in *GetStoreInfoRequest, func (c *debugClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { out := new(GetClusterInfoResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetClusterInfo", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetClusterInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2993,7 +1555,7 @@ func (c *debugClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequ func (c *debugClient) GetAllRegionsInStore(ctx context.Context, in *GetAllRegionsInStoreRequest, opts ...grpc.CallOption) (*GetAllRegionsInStoreResponse, error) { out := new(GetAllRegionsInStoreResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetAllRegionsInStore", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetAllRegionsInStore", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -3002,7 +1564,7 @@ func (c *debugClient) GetAllRegionsInStore(ctx context.Context, in *GetAllRegion func (c *debugClient) ResetToVersion(ctx context.Context, in *ResetToVersionRequest, opts ...grpc.CallOption) (*ResetToVersionResponse, error) { out := new(ResetToVersionResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/ResetToVersion", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/ResetToVersion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -3011,7 +1573,7 @@ func (c *debugClient) ResetToVersion(ctx context.Context, in *ResetToVersionRequ func (c *debugClient) GetRangeProperties(ctx context.Context, in *GetRangePropertiesRequest, opts ...grpc.CallOption) (*GetRangePropertiesResponse, error) { out := new(GetRangePropertiesResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRangeProperties", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetRangeProperties", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -3020,7 +1582,7 @@ func (c *debugClient) GetRangeProperties(ctx context.Context, in *GetRangeProper func (c *debugClient) FlashbackToVersion(ctx context.Context, in *FlashbackToVersionRequest, opts ...grpc.CallOption) (*FlashbackToVersionResponse, error) { out := new(FlashbackToVersionResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/FlashbackToVersion", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/FlashbackToVersion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -3029,14 +1591,15 @@ func (c *debugClient) FlashbackToVersion(ctx context.Context, in *FlashbackToVer func (c *debugClient) GetRegionReadProgress(ctx context.Context, in *GetRegionReadProgressRequest, opts ...grpc.CallOption) (*GetRegionReadProgressResponse, error) { out := new(GetRegionReadProgressResponse) - err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRegionReadProgress", in, out, opts...) + err := grpc.Invoke(ctx, "/debugpb.Debug/GetRegionReadProgress", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// DebugServer is the server API for Debug service. +// Server API for Debug service + type DebugServer interface { // Read a value arbitrarily for a key. // Note: Server uses key directly w/o any encoding. @@ -3085,71 +1648,6 @@ type DebugServer interface { GetRegionReadProgress(context.Context, *GetRegionReadProgressRequest) (*GetRegionReadProgressResponse, error) } -// UnimplementedDebugServer can be embedded to have forward compatible implementations. -type UnimplementedDebugServer struct { -} - -func (*UnimplementedDebugServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (*UnimplementedDebugServer) RaftLog(ctx context.Context, req *RaftLogRequest) (*RaftLogResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RaftLog not implemented") -} -func (*UnimplementedDebugServer) RegionInfo(ctx context.Context, req *RegionInfoRequest) (*RegionInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegionInfo not implemented") -} -func (*UnimplementedDebugServer) RegionSize(ctx context.Context, req *RegionSizeRequest) (*RegionSizeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegionSize not implemented") -} -func (*UnimplementedDebugServer) ScanMvcc(req *ScanMvccRequest, srv Debug_ScanMvccServer) error { - return status.Errorf(codes.Unimplemented, "method ScanMvcc not implemented") -} -func (*UnimplementedDebugServer) Compact(ctx context.Context, req *CompactRequest) (*CompactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") -} -func (*UnimplementedDebugServer) InjectFailPoint(ctx context.Context, req *InjectFailPointRequest) (*InjectFailPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InjectFailPoint not implemented") -} -func (*UnimplementedDebugServer) RecoverFailPoint(ctx context.Context, req *RecoverFailPointRequest) (*RecoverFailPointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecoverFailPoint not implemented") -} -func (*UnimplementedDebugServer) ListFailPoints(ctx context.Context, req *ListFailPointsRequest) (*ListFailPointsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListFailPoints not implemented") -} -func (*UnimplementedDebugServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") -} -func (*UnimplementedDebugServer) CheckRegionConsistency(ctx context.Context, req *RegionConsistencyCheckRequest) (*RegionConsistencyCheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckRegionConsistency not implemented") -} -func (*UnimplementedDebugServer) ModifyTikvConfig(ctx context.Context, req *ModifyTikvConfigRequest) (*ModifyTikvConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ModifyTikvConfig not implemented") -} -func (*UnimplementedDebugServer) GetRegionProperties(ctx context.Context, req *GetRegionPropertiesRequest) (*GetRegionPropertiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegionProperties not implemented") -} -func (*UnimplementedDebugServer) GetStoreInfo(ctx context.Context, req *GetStoreInfoRequest) (*GetStoreInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStoreInfo not implemented") -} -func (*UnimplementedDebugServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") -} -func (*UnimplementedDebugServer) GetAllRegionsInStore(ctx context.Context, req *GetAllRegionsInStoreRequest) (*GetAllRegionsInStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllRegionsInStore not implemented") -} -func (*UnimplementedDebugServer) ResetToVersion(ctx context.Context, req *ResetToVersionRequest) (*ResetToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetToVersion not implemented") -} -func (*UnimplementedDebugServer) GetRangeProperties(ctx context.Context, req *GetRangePropertiesRequest) (*GetRangePropertiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRangeProperties not implemented") -} -func (*UnimplementedDebugServer) FlashbackToVersion(ctx context.Context, req *FlashbackToVersionRequest) (*FlashbackToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FlashbackToVersion not implemented") -} -func (*UnimplementedDebugServer) GetRegionReadProgress(ctx context.Context, req *GetRegionReadProgressRequest) (*GetRegionReadProgressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegionReadProgress not implemented") -} - func RegisterDebugServer(s *grpc.Server, srv DebugServer) { s.RegisterService(&_Debug_serviceDesc, srv) } @@ -3611,7 +2109,7 @@ var _Debug_serviceDesc = grpc.ServiceDesc{ func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3619,45 +2117,34 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a + if m.Db != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) } if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Db != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) - i-- - dAtA[i] = 0x8 + if len(m.Key) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - return len(dAtA) - i, nil + return i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3665,33 +2152,23 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - return len(dAtA) - i, nil + return i, nil } func (m *RaftLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3699,36 +2176,27 @@ func (m *RaftLogRequest) Marshal() (dAtA []byte, err error) { } func (m *RaftLogRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } if m.LogIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.LogIndex)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.LogIndex)) } - if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RaftLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3736,38 +2204,27 @@ func (m *RaftLogResponse) Marshal() (dAtA []byte, err error) { } func (m *RaftLogResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Entry != nil { - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Entry.Size())) + n1, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - return len(dAtA) - i, nil + return i, nil } func (m *RegionInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3775,31 +2232,22 @@ func (m *RegionInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3807,62 +2255,47 @@ func (m *RegionInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RegionLocalState != nil { - { - size, err := m.RegionLocalState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) + if m.RaftLocalState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RaftLocalState.Size())) + n2, err := m.RaftLocalState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n2 } if m.RaftApplyState != nil { - { - size, err := m.RaftApplyState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RaftApplyState.Size())) + n3, err := m.RaftApplyState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - if m.RaftLocalState != nil { - { - size, err := m.RaftLocalState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) + if m.RegionLocalState != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionLocalState.Size())) + n4, err := m.RegionLocalState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *RegionSizeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3870,40 +2303,37 @@ func (m *RegionSizeRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionSizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } if len(m.Cfs) > 0 { - for iNdEx := len(m.Cfs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Cfs[iNdEx]) - copy(dAtA[i:], m.Cfs[iNdEx]) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cfs[iNdEx]))) - i-- + for _, s := range m.Cfs { dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RegionSizeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3911,40 +2341,29 @@ func (m *RegionSizeResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionSizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Entries { dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *RegionSizeResponse_Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3952,38 +2371,28 @@ func (m *RegionSizeResponse_Entry) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeResponse_Entry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionSizeResponse_Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if m.Size_ != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Size_)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Size_)) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ScanMvccRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3991,45 +2400,34 @@ func (m *ScanMvccRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanMvccRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanMvccRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Limit != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 + if len(m.FromKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) + i += copy(dAtA[i:], m.FromKey) } if len(m.ToKey) > 0 { - i -= len(m.ToKey) - copy(dAtA[i:], m.ToKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) + i += copy(dAtA[i:], m.ToKey) } - if len(m.FromKey) > 0 { - i -= len(m.FromKey) - copy(dAtA[i:], m.FromKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) - i-- - dAtA[i] = 0xa + if m.Limit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Limit)) } - return len(dAtA) - i, nil + return i, nil } func (m *ScanMvccResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4037,45 +2435,33 @@ func (m *ScanMvccResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanMvccResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanMvccResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Info.Size())) + n5, err := m.Info.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4083,62 +2469,50 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Db != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) } - if m.BottommostLevelCompaction != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.BottommostLevelCompaction)) - i-- - dAtA[i] = 0x30 + if len(m.Cf) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Threads != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Threads)) - i-- - dAtA[i] = 0x28 + if len(m.FromKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) + i += copy(dAtA[i:], m.FromKey) } if len(m.ToKey) > 0 { - i -= len(m.ToKey) - copy(dAtA[i:], m.ToKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) + i += copy(dAtA[i:], m.ToKey) } - if len(m.FromKey) > 0 { - i -= len(m.FromKey) - copy(dAtA[i:], m.FromKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x12 + if m.Threads != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Threads)) } - if m.Db != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) - i-- - dAtA[i] = 0x8 + if m.BottommostLevelCompaction != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.BottommostLevelCompaction)) } - return len(dAtA) - i, nil + return i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4146,26 +2520,17 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *InjectFailPointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4173,40 +2538,29 @@ func (m *InjectFailPointRequest) Marshal() (dAtA []byte, err error) { } func (m *InjectFailPointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InjectFailPointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if len(m.Actions) > 0 { - i -= len(m.Actions) - copy(dAtA[i:], m.Actions) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) + i += copy(dAtA[i:], m.Actions) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *InjectFailPointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4214,26 +2568,17 @@ func (m *InjectFailPointResponse) Marshal() (dAtA []byte, err error) { } func (m *InjectFailPointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InjectFailPointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *RecoverFailPointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4241,33 +2586,23 @@ func (m *RecoverFailPointRequest) Marshal() (dAtA []byte, err error) { } func (m *RecoverFailPointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoverFailPointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - return len(dAtA) - i, nil + return i, nil } func (m *RecoverFailPointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4275,26 +2610,17 @@ func (m *RecoverFailPointResponse) Marshal() (dAtA []byte, err error) { } func (m *RecoverFailPointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoverFailPointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ListFailPointsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4302,26 +2628,17 @@ func (m *ListFailPointsRequest) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListFailPointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ListFailPointsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4329,40 +2646,29 @@ func (m *ListFailPointsResponse) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListFailPointsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Entries { dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *ListFailPointsResponse_Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4370,40 +2676,29 @@ func (m *ListFailPointsResponse_Entry) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsResponse_Entry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListFailPointsResponse_Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if len(m.Actions) > 0 { - i -= len(m.Actions) - copy(dAtA[i:], m.Actions) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) + i += copy(dAtA[i:], m.Actions) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4411,36 +2706,27 @@ func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.All { - i-- + dAtA[i] = 0x8 + i++ if m.All { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4448,59 +2734,46 @@ func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.StoreId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x28 + if len(m.Prometheus) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Prometheus))) + i += copy(dAtA[i:], m.Prometheus) } - if len(m.Jemalloc) > 0 { - i -= len(m.Jemalloc) - copy(dAtA[i:], m.Jemalloc) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Jemalloc))) - i-- - dAtA[i] = 0x22 + if len(m.RocksdbKv) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbKv))) + i += copy(dAtA[i:], m.RocksdbKv) } if len(m.RocksdbRaft) > 0 { - i -= len(m.RocksdbRaft) - copy(dAtA[i:], m.RocksdbRaft) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbRaft))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbRaft))) + i += copy(dAtA[i:], m.RocksdbRaft) } - if len(m.RocksdbKv) > 0 { - i -= len(m.RocksdbKv) - copy(dAtA[i:], m.RocksdbKv) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbKv))) - i-- - dAtA[i] = 0x12 + if len(m.Jemalloc) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Jemalloc))) + i += copy(dAtA[i:], m.Jemalloc) } - if len(m.Prometheus) > 0 { - i -= len(m.Prometheus) - copy(dAtA[i:], m.Prometheus) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Prometheus))) - i-- - dAtA[i] = 0xa + if m.StoreId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionConsistencyCheckRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4508,31 +2781,22 @@ func (m *RegionConsistencyCheckRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionConsistencyCheckRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionConsistencyCheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionConsistencyCheckResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4540,26 +2804,17 @@ func (m *RegionConsistencyCheckResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionConsistencyCheckResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionConsistencyCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ModifyTikvConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4567,45 +2822,34 @@ func (m *ModifyTikvConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *ModifyTikvConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyTikvConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ConfigValue) > 0 { - i -= len(m.ConfigValue) - copy(dAtA[i:], m.ConfigValue) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigValue))) - i-- - dAtA[i] = 0x1a + if m.Module != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Module)) } if len(m.ConfigName) > 0 { - i -= len(m.ConfigName) - copy(dAtA[i:], m.ConfigName) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigName))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigName))) + i += copy(dAtA[i:], m.ConfigName) } - if m.Module != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Module)) - i-- - dAtA[i] = 0x8 + if len(m.ConfigValue) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigValue))) + i += copy(dAtA[i:], m.ConfigValue) } - return len(dAtA) - i, nil + return i, nil } func (m *ModifyTikvConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4613,26 +2857,17 @@ func (m *ModifyTikvConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *ModifyTikvConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ModifyTikvConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *Property) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4640,40 +2875,29 @@ func (m *Property) Marshal() (dAtA []byte, err error) { } func (m *Property) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Property) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionPropertiesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4681,31 +2905,22 @@ func (m *GetRegionPropertiesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRegionPropertiesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionPropertiesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionPropertiesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4713,40 +2928,29 @@ func (m *GetRegionPropertiesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRegionPropertiesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionPropertiesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Props) > 0 { - for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Props { dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *GetStoreInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4754,26 +2958,17 @@ func (m *GetStoreInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetStoreInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStoreInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetStoreInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4781,36 +2976,27 @@ func (m *GetStoreInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetStoreInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStoreInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StoreId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) } if m.ApiVersion != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ApiVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ApiVersion)) } - if m.StoreId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4818,26 +3004,17 @@ func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4845,31 +3022,22 @@ func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.ClusterId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ClusterId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ClusterId)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllRegionsInStoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4877,26 +3045,17 @@ func (m *GetAllRegionsInStoreRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllRegionsInStoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllRegionsInStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllRegionsInStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4904,19 +3063,10 @@ func (m *GetAllRegionsInStoreResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllRegionsInStoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllRegionsInStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Regions) > 0 { dAtA7 := make([]byte, len(m.Regions)*10) var j6 int @@ -4929,19 +3079,18 @@ func (m *GetAllRegionsInStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, e dAtA7[j6] = uint8(num) j6++ } - i -= j6 - copy(dAtA[i:], dAtA7[:j6]) - i = encodeVarintDebugpb(dAtA, i, uint64(j6)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(j6)) + i += copy(dAtA[i:], dAtA7[:j6]) } - return len(dAtA) - i, nil + return i, nil } func (m *ResetToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4949,31 +3098,22 @@ func (m *ResetToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *ResetToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Ts != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Ts)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Ts)) } - return len(dAtA) - i, nil + return i, nil } func (m *ResetToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4981,26 +3121,17 @@ func (m *ResetToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *ResetToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetRangePropertiesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5008,40 +3139,29 @@ func (m *GetRangePropertiesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRangePropertiesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRangePropertiesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetRangePropertiesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5049,40 +3169,29 @@ func (m *GetRangePropertiesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRangePropertiesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRangePropertiesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Properties) > 0 { - for iNdEx := len(m.Properties) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Properties[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Properties { dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *GetRangePropertiesResponse_RangeProperty) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5090,40 +3199,29 @@ func (m *GetRangePropertiesResponse_RangeProperty) Marshal() (dAtA []byte, err e } func (m *GetRangePropertiesResponse_RangeProperty) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRangePropertiesResponse_RangeProperty) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5131,72 +3229,59 @@ func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x38 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Context.Size())) + n8, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - if m.StartTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x30 + if m.Version != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Version)) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x2a + if m.RegionId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x18 + if len(m.EndKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.Version != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x10 + if m.StartTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDebugpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CommitTs != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.CommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5204,33 +3289,23 @@ func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionReadProgressRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5238,46 +3313,37 @@ func (m *GetRegionReadProgressRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRegionReadProgressRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionReadProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MinStartTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.MinStartTs)) - i-- - dAtA[i] = 0x18 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) } if m.LogLocks { - i-- + dAtA[i] = 0x10 + i++ if m.LogLocks { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.RegionId != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.MinStartTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.MinStartTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionReadProgressResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5285,174 +3351,159 @@ func (m *GetRegionReadProgressResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRegionReadProgressResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionReadProgressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Discard { - i-- - if m.Discard { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 + if m.SafeTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.SafeTs)) } - if m.ReadStateApplyIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateApplyIndex)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 + if m.AppliedIndex != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.AppliedIndex)) } - if m.ReadStateTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateTs)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.PendingFrontAppliedIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontAppliedIndex)) } - if m.NumTransactions != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.NumTransactions)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.PendingFrontTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontTs)) } - if m.NumLocks != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.NumLocks)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.PendingBackAppliedIndex != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackAppliedIndex)) } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x7a + if m.PendingBackTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackTs)) } - if m.ResolverStopped { - i-- - if m.ResolverStopped { + if m.RegionReadProgressPaused { + dAtA[i] = 0x38 + i++ + if m.RegionReadProgressPaused { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x70 + i++ } - if m.ResolverExist { - i-- - if m.ResolverExist { + if m.DurationToLastUpdateSafeTsMs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastUpdateSafeTsMs)) + } + if m.DurationToLastConsumeLeaderMs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastConsumeLeaderMs)) + } + if m.RegionReadProgressExist { + dAtA[i] = 0x50 + i++ + if m.RegionReadProgressExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x68 - } - if m.ResolverTrackedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolverTrackedIndex)) - i-- - dAtA[i] = 0x60 + i++ } if m.ResolvedTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolvedTs)) - i-- dAtA[i] = 0x58 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolvedTs)) } - if m.RegionReadProgressExist { - i-- - if m.RegionReadProgressExist { + if m.ResolverTrackedIndex != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolverTrackedIndex)) + } + if m.ResolverExist { + dAtA[i] = 0x68 + i++ + if m.ResolverExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 + i++ } - if m.DurationToLastConsumeLeaderMs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastConsumeLeaderMs)) - i-- - dAtA[i] = 0x48 - } - if m.DurationToLastUpdateSafeTsMs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastUpdateSafeTsMs)) - i-- - dAtA[i] = 0x40 - } - if m.RegionReadProgressPaused { - i-- - if m.RegionReadProgressPaused { + if m.ResolverStopped { + dAtA[i] = 0x70 + i++ + if m.ResolverStopped { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.PendingBackTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackTs)) - i-- - dAtA[i] = 0x30 + if len(m.Error) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.PendingBackAppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackAppliedIndex)) - i-- - dAtA[i] = 0x28 + if m.NumLocks != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumLocks)) } - if m.PendingFrontTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontTs)) - i-- - dAtA[i] = 0x20 + if m.NumTransactions != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumTransactions)) } - if m.PendingFrontAppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontAppliedIndex)) - i-- - dAtA[i] = 0x18 + if m.ReadStateTs != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateTs)) } - if m.AppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x10 + if m.ReadStateApplyIndex != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateApplyIndex)) } - if m.SafeTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.SafeTs)) - i-- - dAtA[i] = 0x8 + if m.Discard { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x1 + i++ + if m.Discard { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return len(dAtA) - i, nil + return i, nil } func encodeVarintDebugpb(dAtA []byte, offset int, v uint64) int { - offset -= sovDebugpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Db != 0 { @@ -5466,32 +3517,20 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Value) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftLogRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5500,47 +3539,29 @@ func (m *RaftLogRequest) Size() (n int) { if m.LogIndex != 0 { n += 1 + sovDebugpb(uint64(m.LogIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Entry != nil { l = m.Entry.Size() n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RaftLocalState != nil { @@ -5555,16 +3576,10 @@ func (m *RegionInfoResponse) Size() (n int) { l = m.RegionLocalState.Size() n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionSizeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5576,16 +3591,10 @@ func (m *RegionSizeRequest) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionSizeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -5594,16 +3603,10 @@ func (m *RegionSizeResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionSizeResponse_Entry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -5613,16 +3616,10 @@ func (m *RegionSizeResponse_Entry) Size() (n int) { if m.Size_ != 0 { n += 1 + sovDebugpb(uint64(m.Size_)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanMvccRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.FromKey) @@ -5636,16 +3633,10 @@ func (m *ScanMvccRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovDebugpb(uint64(m.Limit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanMvccResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -5656,16 +3647,10 @@ func (m *ScanMvccResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Db != 0 { @@ -5689,28 +3674,16 @@ func (m *CompactRequest) Size() (n int) { if m.BottommostLevelCompaction != 0 { n += 1 + sovDebugpb(uint64(m.BottommostLevelCompaction)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *InjectFailPointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5721,68 +3694,38 @@ func (m *InjectFailPointRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *InjectFailPointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoverFailPointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoverFailPointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListFailPointsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListFailPointsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -5791,16 +3734,10 @@ func (m *ListFailPointsResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListFailPointsResponse_Entry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5811,31 +3748,19 @@ func (m *ListFailPointsResponse_Entry) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMetricsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.All { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMetricsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prometheus) @@ -5857,43 +3782,25 @@ func (m *GetMetricsResponse) Size() (n int) { if m.StoreId != 0 { n += 1 + sovDebugpb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionConsistencyCheckRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionConsistencyCheckResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ModifyTikvConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Module != 0 { @@ -5907,28 +3814,16 @@ func (m *ModifyTikvConfigRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ModifyTikvConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Property) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5939,31 +3834,19 @@ func (m *Property) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionPropertiesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionPropertiesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Props) > 0 { @@ -5972,28 +3855,16 @@ func (m *GetRegionPropertiesResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetStoreInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetStoreInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -6002,55 +3873,31 @@ func (m *GetStoreInfoResponse) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovDebugpb(uint64(m.ApiVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetClusterInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { n += 1 + sovDebugpb(uint64(m.ClusterId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllRegionsInStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllRegionsInStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -6060,43 +3907,25 @@ func (m *GetAllRegionsInStoreResponse) Size() (n int) { } n += 1 + sovDebugpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResetToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ts != 0 { n += 1 + sovDebugpb(uint64(m.Ts)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResetToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRangePropertiesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -6107,16 +3936,10 @@ func (m *GetRangePropertiesRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRangePropertiesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Properties) > 0 { @@ -6125,16 +3948,10 @@ func (m *GetRangePropertiesResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -6145,16 +3962,10 @@ func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -6181,32 +3992,20 @@ func (m *FlashbackToVersionRequest) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovDebugpb(uint64(m.CommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionReadProgressRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -6218,16 +4017,10 @@ func (m *GetRegionReadProgressRequest) Size() (n int) { if m.MinStartTs != 0 { n += 1 + sovDebugpb(uint64(m.MinStartTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionReadProgressResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SafeTs != 0 { @@ -6291,14 +4084,18 @@ func (m *GetRegionReadProgressResponse) Size() (n int) { if m.Discard { n += 3 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovDebugpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozDebugpb(x uint64) (n int) { return sovDebugpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -6318,7 +4115,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6346,7 +4143,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Db |= DB(b&0x7F) << shift + m.Db |= (DB(b) & 0x7F) << shift if b < 0x80 { break } @@ -6365,7 +4162,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6375,9 +4172,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6397,7 +4191,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6406,9 +4200,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6423,13 +4214,12 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6454,7 +4244,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6482,7 +4272,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6491,9 +4281,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6508,13 +4295,12 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6539,7 +4325,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6567,7 +4353,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6586,7 +4372,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogIndex |= uint64(b&0x7F) << shift + m.LogIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6597,13 +4383,12 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6628,7 +4413,7 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6656,7 +4441,7 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6665,9 +4450,6 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6684,13 +4466,12 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6715,7 +4496,7 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6743,7 +4524,7 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6754,13 +4535,12 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6785,7 +4565,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6813,7 +4593,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6822,9 +4602,6 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6849,7 +4626,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6858,9 +4635,6 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6885,7 +4659,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6894,9 +4668,6 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6913,13 +4684,12 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6944,7 +4714,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6972,7 +4742,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6991,7 +4761,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7001,9 +4771,6 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7015,13 +4782,12 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7046,7 +4812,7 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7074,7 +4840,7 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7083,9 +4849,6 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7100,13 +4863,12 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7131,7 +4893,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7159,7 +4921,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7169,9 +4931,6 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7191,7 +4950,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift + m.Size_ |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7202,13 +4961,12 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7233,7 +4991,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7261,7 +5019,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7270,9 +5028,6 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7295,7 +5050,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7304,9 +5059,6 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7329,7 +5081,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint64(b&0x7F) << shift + m.Limit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7340,13 +5092,12 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7371,7 +5122,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7399,7 +5150,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7408,9 +5159,6 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7433,7 +5181,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7442,9 +5190,6 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7461,13 +5206,12 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7492,7 +5236,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7520,7 +5264,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Db |= DB(b&0x7F) << shift + m.Db |= (DB(b) & 0x7F) << shift if b < 0x80 { break } @@ -7539,7 +5283,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7549,9 +5293,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7571,7 +5312,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7580,9 +5321,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7605,7 +5343,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7614,9 +5352,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7639,7 +5374,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Threads |= uint32(b&0x7F) << shift + m.Threads |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -7658,7 +5393,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BottommostLevelCompaction |= BottommostLevelCompaction(b&0x7F) << shift + m.BottommostLevelCompaction |= (BottommostLevelCompaction(b) & 0x7F) << shift if b < 0x80 { break } @@ -7669,13 +5404,12 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7700,7 +5434,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7720,13 +5454,12 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7751,7 +5484,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7779,7 +5512,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7789,9 +5522,6 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7811,7 +5541,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7821,9 +5551,6 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7835,13 +5562,12 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7866,7 +5592,7 @@ func (m *InjectFailPointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7886,13 +5612,12 @@ func (m *InjectFailPointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7917,7 +5642,7 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7945,7 +5670,7 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7955,9 +5680,6 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7969,13 +5691,12 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8000,7 +5721,7 @@ func (m *RecoverFailPointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8020,13 +5741,12 @@ func (m *RecoverFailPointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8051,7 +5771,7 @@ func (m *ListFailPointsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8071,13 +5791,12 @@ func (m *ListFailPointsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8102,7 +5821,7 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8130,7 +5849,7 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8139,9 +5858,6 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8156,13 +5872,12 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8187,7 +5902,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8215,7 +5930,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8225,9 +5940,6 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8247,7 +5959,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8257,9 +5969,6 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8271,13 +5980,12 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8302,7 +6010,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8330,7 +6038,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8342,13 +6050,12 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8373,7 +6080,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8401,7 +6108,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8411,9 +6118,6 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8433,7 +6137,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8443,9 +6147,6 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8465,7 +6166,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8475,9 +6176,6 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8497,7 +6195,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8507,9 +6205,6 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8529,7 +6224,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8540,13 +6235,12 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8571,7 +6265,7 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8599,7 +6293,7 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8610,13 +6304,12 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8641,7 +6334,7 @@ func (m *RegionConsistencyCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8661,13 +6354,12 @@ func (m *RegionConsistencyCheckResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8692,7 +6384,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8720,7 +6412,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Module |= MODULE(b&0x7F) << shift + m.Module |= (MODULE(b) & 0x7F) << shift if b < 0x80 { break } @@ -8739,7 +6431,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8749,9 +6441,6 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8771,7 +6460,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8781,9 +6470,6 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8795,13 +6481,12 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8826,7 +6511,7 @@ func (m *ModifyTikvConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8846,13 +6531,12 @@ func (m *ModifyTikvConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8877,7 +6561,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8905,7 +6589,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8915,9 +6599,6 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8937,7 +6618,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8947,9 +6628,6 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8961,13 +6639,12 @@ func (m *Property) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8992,7 +6669,7 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9020,7 +6697,7 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9031,13 +6708,12 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9062,7 +6738,7 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9090,7 +6766,7 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9099,9 +6775,6 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9116,13 +6789,12 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9147,7 +6819,7 @@ func (m *GetStoreInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9167,13 +6839,12 @@ func (m *GetStoreInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9198,7 +6869,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9226,7 +6897,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9245,7 +6916,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -9256,13 +6927,12 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9287,7 +6957,7 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9307,13 +6977,12 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9338,7 +7007,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9366,7 +7035,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9377,13 +7046,12 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9408,7 +7076,7 @@ func (m *GetAllRegionsInStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9428,13 +7096,12 @@ func (m *GetAllRegionsInStoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9459,7 +7126,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9485,7 +7152,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9502,7 +7169,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9511,23 +7178,9 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } 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.Regions) == 0 { - m.Regions = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -9539,7 +7192,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9555,13 +7208,12 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9586,7 +7238,7 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9614,7 +7266,7 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= uint64(b&0x7F) << shift + m.Ts |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9625,13 +7277,12 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9656,7 +7307,7 @@ func (m *ResetToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9676,13 +7327,12 @@ func (m *ResetToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9707,7 +7357,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9735,7 +7385,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9744,9 +7394,6 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9769,7 +7416,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9778,9 +7425,6 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9795,13 +7439,12 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9826,7 +7469,7 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9854,7 +7497,7 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9863,9 +7506,6 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9880,13 +7520,12 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9911,7 +7550,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9939,7 +7578,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9949,9 +7588,6 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9971,7 +7607,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9981,9 +7617,6 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9995,13 +7628,12 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10026,7 +7658,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10054,7 +7686,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10063,9 +7695,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10090,7 +7719,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10109,7 +7738,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10128,7 +7757,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10137,9 +7766,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10162,7 +7788,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10171,9 +7797,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10196,7 +7819,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10215,7 +7838,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10226,13 +7849,12 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10257,7 +7879,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10285,7 +7907,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10295,9 +7917,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10309,13 +7928,12 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10340,7 +7958,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10368,7 +7986,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10387,7 +8005,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10407,7 +8025,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinStartTs |= uint64(b&0x7F) << shift + m.MinStartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10418,13 +8036,12 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10449,7 +8066,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10477,7 +8094,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= uint64(b&0x7F) << shift + m.SafeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10496,7 +8113,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10515,7 +8132,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingFrontAppliedIndex |= uint64(b&0x7F) << shift + m.PendingFrontAppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10534,7 +8151,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingFrontTs |= uint64(b&0x7F) << shift + m.PendingFrontTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10553,7 +8170,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingBackAppliedIndex |= uint64(b&0x7F) << shift + m.PendingBackAppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10572,7 +8189,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingBackTs |= uint64(b&0x7F) << shift + m.PendingBackTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10591,7 +8208,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10611,7 +8228,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastUpdateSafeTsMs |= uint64(b&0x7F) << shift + m.DurationToLastUpdateSafeTsMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10630,7 +8247,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastConsumeLeaderMs |= uint64(b&0x7F) << shift + m.DurationToLastConsumeLeaderMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10649,7 +8266,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10669,7 +8286,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.ResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10688,7 +8305,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolverTrackedIndex |= uint64(b&0x7F) << shift + m.ResolverTrackedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10707,7 +8324,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10727,7 +8344,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10747,7 +8364,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10757,9 +8374,6 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDebugpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10779,7 +8393,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumLocks |= uint64(b&0x7F) << shift + m.NumLocks |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10798,7 +8412,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumTransactions |= uint64(b&0x7F) << shift + m.NumTransactions |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10817,7 +8431,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadStateTs |= uint64(b&0x7F) << shift + m.ReadStateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10836,7 +8450,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadStateApplyIndex |= uint64(b&0x7F) << shift + m.ReadStateApplyIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10855,7 +8469,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10867,13 +8481,12 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10886,7 +8499,6 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { func skipDebugpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -10918,8 +8530,10 @@ func skipDebugpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -10936,34 +8550,203 @@ func skipDebugpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthDebugpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDebugpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDebugpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipDebugpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthDebugpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthDebugpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDebugpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDebugpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDebugpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDebugpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("debugpb.proto", fileDescriptorDebugpb) } + +var fileDescriptorDebugpb = []byte{ + // 2294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0x4b, 0x73, 0xdb, 0xc8, + 0xf1, 0x17, 0x28, 0x4a, 0xa4, 0x9a, 0x22, 0x09, 0x8d, 0x64, 0x89, 0x82, 0x57, 0xb2, 0x0c, 0xaf, + 0x6c, 0xad, 0xff, 0xf5, 0x57, 0x36, 0x5a, 0xa7, 0x9c, 0xd4, 0xe6, 0x51, 0x12, 0x45, 0x69, 0x19, + 0x49, 0x96, 0x16, 0xa4, 0x55, 0xe5, 0x13, 0x0a, 0x04, 0x86, 0x34, 0x96, 0x20, 0x86, 0xc1, 0x0c, + 0x59, 0x96, 0x0f, 0x39, 0xe6, 0xbc, 0xc7, 0x54, 0xe5, 0x0b, 0xec, 0x25, 0xd7, 0x7c, 0x86, 0x1c, + 0x73, 0xcc, 0x31, 0xe5, 0x5c, 0x93, 0x63, 0xee, 0xa9, 0x79, 0x00, 0x04, 0x5f, 0xb6, 0x36, 0x27, + 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 0xd5, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x39, + 0xce, 0x9d, 0x89, 0x18, 0x00, 0x00, +} diff --git a/pkg/diagnosticspb/diagnosticspb.pb.go b/pkg/diagnosticspb/diagnosticspb.pb.go index 7154e397d..4e8b0a5a1 100644 --- a/pkg/diagnosticspb/diagnosticspb.pb.go +++ b/pkg/diagnosticspb/diagnosticspb.pb.go @@ -1,20 +1,36 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: diagnosticspb.proto +/* +Package diagnosticspb is a generated protocol buffer package. + +It is generated from these files: + + diagnosticspb.proto + +It has these top-level messages: + + SearchLogRequest + SearchLogResponse + LogMessage + ServerInfoRequest + ServerInfoPair + ServerInfoItem + ServerInfoResponse +*/ package diagnosticspb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +42,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type LogLevel int32 @@ -49,7 +65,6 @@ var LogLevel_name = map[int32]string{ 5: "Critical", 6: "Error", } - var LogLevel_value = map[string]int32{ "UNKNOWN": 0, "Debug": 1, @@ -63,10 +78,7 @@ var LogLevel_value = map[string]int32{ func (x LogLevel) String() string { return proto.EnumName(LogLevel_name, int32(x)) } - -func (LogLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{0} -} +func (LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{0} } type ServerInfoType int32 @@ -83,7 +95,6 @@ var ServerInfoType_name = map[int32]string{ 2: "SystemInfo", 3: "LoadInfo", } - var ServerInfoType_value = map[string]int32{ "All": 0, "HardwareInfo": 1, @@ -94,10 +105,7 @@ var ServerInfoType_value = map[string]int32{ func (x ServerInfoType) String() string { return proto.EnumName(ServerInfoType_name, int32(x)) } - -func (ServerInfoType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{1} -} +func (ServerInfoType) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{1} } type SearchLogRequest_Target int32 @@ -110,7 +118,6 @@ var SearchLogRequest_Target_name = map[int32]string{ 0: "Normal", 1: "Slow", } - var SearchLogRequest_Target_value = map[string]int32{ "Normal": 0, "Slow": 1, @@ -119,57 +126,25 @@ var SearchLogRequest_Target_value = map[string]int32{ func (x SearchLogRequest_Target) String() string { return proto.EnumName(SearchLogRequest_Target_name, int32(x)) } - func (SearchLogRequest_Target) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{0, 0} + return fileDescriptorDiagnosticspb, []int{0, 0} } type SearchLogRequest struct { StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - Levels []LogLevel `protobuf:"varint,3,rep,packed,name=levels,proto3,enum=diagnosticspb.LogLevel" json:"levels,omitempty"` + Levels []LogLevel `protobuf:"varint,3,rep,packed,name=levels,enum=diagnosticspb.LogLevel" json:"levels,omitempty"` // We use a string array to represent multiple CNF pattern sceniaor like: // SELECT * FROM t WHERE c LIKE '%s%' and c REGEXP '.*a.*' because // Golang and Rust don't support perl-like (?=re1)(?=re2) - Patterns []string `protobuf:"bytes,4,rep,name=patterns,proto3" json:"patterns,omitempty"` - Target SearchLogRequest_Target `protobuf:"varint,5,opt,name=target,proto3,enum=diagnosticspb.SearchLogRequest_Target" json:"target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchLogRequest) Reset() { *m = SearchLogRequest{} } -func (m *SearchLogRequest) String() string { return proto.CompactTextString(m) } -func (*SearchLogRequest) ProtoMessage() {} -func (*SearchLogRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{0} -} -func (m *SearchLogRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SearchLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SearchLogRequest.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 *SearchLogRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchLogRequest.Merge(m, src) -} -func (m *SearchLogRequest) XXX_Size() int { - return m.Size() -} -func (m *SearchLogRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SearchLogRequest.DiscardUnknown(m) + Patterns []string `protobuf:"bytes,4,rep,name=patterns" json:"patterns,omitempty"` + Target SearchLogRequest_Target `protobuf:"varint,5,opt,name=target,proto3,enum=diagnosticspb.SearchLogRequest_Target" json:"target,omitempty"` } -var xxx_messageInfo_SearchLogRequest proto.InternalMessageInfo +func (m *SearchLogRequest) Reset() { *m = SearchLogRequest{} } +func (m *SearchLogRequest) String() string { return proto.CompactTextString(m) } +func (*SearchLogRequest) ProtoMessage() {} +func (*SearchLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{0} } func (m *SearchLogRequest) GetStartTime() int64 { if m != nil { @@ -207,44 +182,13 @@ func (m *SearchLogRequest) GetTarget() SearchLogRequest_Target { } type SearchLogResponse struct { - Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchLogResponse) Reset() { *m = SearchLogResponse{} } -func (m *SearchLogResponse) String() string { return proto.CompactTextString(m) } -func (*SearchLogResponse) ProtoMessage() {} -func (*SearchLogResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{1} -} -func (m *SearchLogResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SearchLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SearchLogResponse.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 *SearchLogResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchLogResponse.Merge(m, src) -} -func (m *SearchLogResponse) XXX_Size() int { - return m.Size() -} -func (m *SearchLogResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SearchLogResponse.DiscardUnknown(m) + Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages" json:"messages,omitempty"` } -var xxx_messageInfo_SearchLogResponse proto.InternalMessageInfo +func (m *SearchLogResponse) Reset() { *m = SearchLogResponse{} } +func (m *SearchLogResponse) String() string { return proto.CompactTextString(m) } +func (*SearchLogResponse) ProtoMessage() {} +func (*SearchLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{1} } func (m *SearchLogResponse) GetMessages() []*LogMessage { if m != nil { @@ -254,46 +198,15 @@ func (m *SearchLogResponse) GetMessages() []*LogMessage { } type LogMessage struct { - Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` - Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=diagnosticspb.LogLevel" json:"level,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogMessage) Reset() { *m = LogMessage{} } -func (m *LogMessage) String() string { return proto.CompactTextString(m) } -func (*LogMessage) ProtoMessage() {} -func (*LogMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{2} -} -func (m *LogMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogMessage.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 *LogMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogMessage.Merge(m, src) -} -func (m *LogMessage) XXX_Size() int { - return m.Size() -} -func (m *LogMessage) XXX_DiscardUnknown() { - xxx_messageInfo_LogMessage.DiscardUnknown(m) + Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=diagnosticspb.LogLevel" json:"level,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_LogMessage proto.InternalMessageInfo +func (m *LogMessage) Reset() { *m = LogMessage{} } +func (m *LogMessage) String() string { return proto.CompactTextString(m) } +func (*LogMessage) ProtoMessage() {} +func (*LogMessage) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{2} } func (m *LogMessage) GetTime() int64 { if m != nil { @@ -317,44 +230,13 @@ func (m *LogMessage) GetMessage() string { } type ServerInfoRequest struct { - Tp ServerInfoType `protobuf:"varint,1,opt,name=tp,proto3,enum=diagnosticspb.ServerInfoType" json:"tp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } -func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } -func (*ServerInfoRequest) ProtoMessage() {} -func (*ServerInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{3} -} -func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServerInfoRequest.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 *ServerInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoRequest.Merge(m, src) -} -func (m *ServerInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *ServerInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoRequest.DiscardUnknown(m) + Tp ServerInfoType `protobuf:"varint,1,opt,name=tp,proto3,enum=diagnosticspb.ServerInfoType" json:"tp,omitempty"` } -var xxx_messageInfo_ServerInfoRequest proto.InternalMessageInfo +func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } +func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } +func (*ServerInfoRequest) ProtoMessage() {} +func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{3} } func (m *ServerInfoRequest) GetTp() ServerInfoType { if m != nil { @@ -364,45 +246,14 @@ func (m *ServerInfoRequest) GetTp() ServerInfoType { } type ServerInfoPair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerInfoPair) Reset() { *m = ServerInfoPair{} } -func (m *ServerInfoPair) String() string { return proto.CompactTextString(m) } -func (*ServerInfoPair) ProtoMessage() {} -func (*ServerInfoPair) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{4} -} -func (m *ServerInfoPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerInfoPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServerInfoPair.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 *ServerInfoPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoPair.Merge(m, src) -} -func (m *ServerInfoPair) XXX_Size() int { - return m.Size() -} -func (m *ServerInfoPair) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoPair.DiscardUnknown(m) + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_ServerInfoPair proto.InternalMessageInfo +func (m *ServerInfoPair) Reset() { *m = ServerInfoPair{} } +func (m *ServerInfoPair) String() string { return proto.CompactTextString(m) } +func (*ServerInfoPair) ProtoMessage() {} +func (*ServerInfoPair) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{4} } func (m *ServerInfoPair) GetKey() string { if m != nil { @@ -432,44 +283,13 @@ type ServerInfoItem struct { // ServerInfoPair { key = "writebytes", value = "1k"}, // ] // } - Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerInfoItem) Reset() { *m = ServerInfoItem{} } -func (m *ServerInfoItem) String() string { return proto.CompactTextString(m) } -func (*ServerInfoItem) ProtoMessage() {} -func (*ServerInfoItem) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{5} -} -func (m *ServerInfoItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServerInfoItem.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 *ServerInfoItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoItem.Merge(m, src) -} -func (m *ServerInfoItem) XXX_Size() int { - return m.Size() -} -func (m *ServerInfoItem) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoItem.DiscardUnknown(m) + Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` } -var xxx_messageInfo_ServerInfoItem proto.InternalMessageInfo +func (m *ServerInfoItem) Reset() { *m = ServerInfoItem{} } +func (m *ServerInfoItem) String() string { return proto.CompactTextString(m) } +func (*ServerInfoItem) ProtoMessage() {} +func (*ServerInfoItem) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{5} } func (m *ServerInfoItem) GetTp() string { if m != nil { @@ -493,44 +313,13 @@ func (m *ServerInfoItem) GetPairs() []*ServerInfoPair { } type ServerInfoResponse struct { - Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } -func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse) ProtoMessage() {} -func (*ServerInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b3c45b810c39272a, []int{6} -} -func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServerInfoResponse.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 *ServerInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerInfoResponse.Merge(m, src) -} -func (m *ServerInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *ServerInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerInfoResponse.DiscardUnknown(m) + Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` } -var xxx_messageInfo_ServerInfoResponse proto.InternalMessageInfo +func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } +func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } +func (*ServerInfoResponse) ProtoMessage() {} +func (*ServerInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{6} } func (m *ServerInfoResponse) GetItems() []*ServerInfoItem { if m != nil { @@ -540,9 +329,6 @@ func (m *ServerInfoResponse) GetItems() []*ServerInfoItem { } func init() { - proto.RegisterEnum("diagnosticspb.LogLevel", LogLevel_name, LogLevel_value) - proto.RegisterEnum("diagnosticspb.ServerInfoType", ServerInfoType_name, ServerInfoType_value) - proto.RegisterEnum("diagnosticspb.SearchLogRequest_Target", SearchLogRequest_Target_name, SearchLogRequest_Target_value) proto.RegisterType((*SearchLogRequest)(nil), "diagnosticspb.SearchLogRequest") proto.RegisterType((*SearchLogResponse)(nil), "diagnosticspb.SearchLogResponse") proto.RegisterType((*LogMessage)(nil), "diagnosticspb.LogMessage") @@ -550,52 +336,9 @@ func init() { proto.RegisterType((*ServerInfoPair)(nil), "diagnosticspb.ServerInfoPair") proto.RegisterType((*ServerInfoItem)(nil), "diagnosticspb.ServerInfoItem") proto.RegisterType((*ServerInfoResponse)(nil), "diagnosticspb.ServerInfoResponse") -} - -func init() { proto.RegisterFile("diagnosticspb.proto", fileDescriptor_b3c45b810c39272a) } - -var fileDescriptor_b3c45b810c39272a = []byte{ - // 640 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, - 0x10, 0xce, 0xc6, 0x71, 0x62, 0x4f, 0xfa, 0xe7, 0x37, 0x4b, 0x25, 0xdc, 0x48, 0x0d, 0xc6, 0x87, - 0x2a, 0xaa, 0xd4, 0x14, 0xa5, 0x42, 0xe2, 0x84, 0x44, 0x29, 0x12, 0x81, 0x12, 0x90, 0x13, 0x54, - 0x89, 0x4b, 0xb5, 0x4d, 0xb6, 0x66, 0x55, 0xdb, 0x6b, 0x76, 0x37, 0xa9, 0xfa, 0x26, 0x3c, 0x02, - 0x8f, 0xc0, 0x23, 0x70, 0xe4, 0xc8, 0x11, 0x95, 0xa7, 0xe0, 0x86, 0x76, 0x1d, 0xb7, 0x69, 0xab, - 0x96, 0x93, 0x67, 0x67, 0xbe, 0xfd, 0xf6, 0x9b, 0x6f, 0x46, 0x86, 0xfb, 0x53, 0x46, 0xe2, 0x8c, - 0x4b, 0xc5, 0x26, 0x32, 0x3f, 0xea, 0xe5, 0x82, 0x2b, 0x8e, 0xff, 0xbb, 0x92, 0x6c, 0xaf, 0xc6, - 0x3c, 0xe6, 0xa6, 0xb2, 0xad, 0xa3, 0x02, 0xd4, 0xfe, 0x5f, 0xcc, 0xa4, 0x32, 0x61, 0x91, 0x08, - 0xff, 0x20, 0xf0, 0x46, 0x94, 0x88, 0xc9, 0xa7, 0x7d, 0x1e, 0x47, 0xf4, 0xf3, 0x8c, 0x4a, 0x85, - 0xd7, 0x01, 0xa4, 0x22, 0x42, 0x1d, 0x2a, 0x96, 0x52, 0x1f, 0x05, 0xa8, 0x6b, 0x45, 0xae, 0xc9, - 0x8c, 0x59, 0x4a, 0xf1, 0x1a, 0x38, 0x34, 0x9b, 0x16, 0xc5, 0xaa, 0x29, 0x36, 0x68, 0x36, 0x35, - 0xa5, 0x6d, 0xa8, 0x27, 0x74, 0x4e, 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0x83, 0x47, 0x00, 0xd2, 0x6c, 0xe8, 0x61, 0xc2, 0x63, 0xfc, 0xf0, 0x1f, 0xfb, 0xdf, - 0x0e, 0x6e, 0x07, 0x14, 0xe6, 0x85, 0x95, 0xc7, 0x08, 0x8f, 0xa1, 0x29, 0x8d, 0xde, 0x43, 0x96, - 0x1d, 0x73, 0x1c, 0xdc, 0x6a, 0x60, 0x49, 0xfb, 0xe8, 0x0e, 0x44, 0xc9, 0xbb, 0xbb, 0xf1, 0xf3, - 0xab, 0x83, 0xbe, 0x9f, 0x77, 0xd0, 0x8f, 0xf3, 0x0e, 0xfa, 0x75, 0xde, 0x41, 0x5f, 0x7e, 0x77, - 0x2a, 0xe0, 0x71, 0x11, 0xf7, 0x14, 0x3b, 0x99, 0xf7, 0x4e, 0xe6, 0xe6, 0x87, 0x73, 0x54, 0x37, - 0x9f, 0x9d, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xba, 0x18, 0xc8, 0xc4, 0x04, 0x00, 0x00, + proto.RegisterEnum("diagnosticspb.LogLevel", LogLevel_name, LogLevel_value) + proto.RegisterEnum("diagnosticspb.ServerInfoType", ServerInfoType_name, ServerInfoType_value) + proto.RegisterEnum("diagnosticspb.SearchLogRequest_Target", SearchLogRequest_Target_name, SearchLogRequest_Target_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -606,9 +349,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// DiagnosticsClient is the client API for Diagnostics service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Diagnostics service + type DiagnosticsClient interface { // Searchs log in the target node SearchLog(ctx context.Context, in *SearchLogRequest, opts ...grpc.CallOption) (Diagnostics_SearchLogClient, error) @@ -625,7 +367,7 @@ func NewDiagnosticsClient(cc *grpc.ClientConn) DiagnosticsClient { } func (c *diagnosticsClient) SearchLog(ctx context.Context, in *SearchLogRequest, opts ...grpc.CallOption) (Diagnostics_SearchLogClient, error) { - stream, err := c.cc.NewStream(ctx, &_Diagnostics_serviceDesc.Streams[0], "/diagnosticspb.Diagnostics/search_log", opts...) + stream, err := grpc.NewClientStream(ctx, &_Diagnostics_serviceDesc.Streams[0], c.cc, "/diagnosticspb.Diagnostics/search_log", opts...) if err != nil { return nil, err } @@ -658,14 +400,15 @@ func (x *diagnosticsSearchLogClient) Recv() (*SearchLogResponse, error) { func (c *diagnosticsClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { out := new(ServerInfoResponse) - err := c.cc.Invoke(ctx, "/diagnosticspb.Diagnostics/server_info", in, out, opts...) + err := grpc.Invoke(ctx, "/diagnosticspb.Diagnostics/server_info", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// DiagnosticsServer is the server API for Diagnostics service. +// Server API for Diagnostics service + type DiagnosticsServer interface { // Searchs log in the target node SearchLog(*SearchLogRequest, Diagnostics_SearchLogServer) error @@ -673,17 +416,6 @@ type DiagnosticsServer interface { ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) } -// UnimplementedDiagnosticsServer can be embedded to have forward compatible implementations. -type UnimplementedDiagnosticsServer struct { -} - -func (*UnimplementedDiagnosticsServer) SearchLog(req *SearchLogRequest, srv Diagnostics_SearchLogServer) error { - return status.Errorf(codes.Unimplemented, "method SearchLog not implemented") -} -func (*UnimplementedDiagnosticsServer) ServerInfo(ctx context.Context, req *ServerInfoRequest) (*ServerInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") -} - func RegisterDiagnosticsServer(s *grpc.Server, srv DiagnosticsServer) { s.RegisterService(&_Diagnostics_serviceDesc, srv) } @@ -749,7 +481,7 @@ var _Diagnostics_serviceDesc = grpc.ServiceDesc{ func (m *SearchLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -757,32 +489,19 @@ func (m *SearchLogRequest) Marshal() (dAtA []byte, err error) { } func (m *SearchLogRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SearchLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Target != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Target)) - i-- - dAtA[i] = 0x28 + if m.StartTime != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.StartTime)) } - if len(m.Patterns) > 0 { - for iNdEx := len(m.Patterns) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Patterns[iNdEx]) - copy(dAtA[i:], m.Patterns[iNdEx]) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Patterns[iNdEx]))) - i-- - dAtA[i] = 0x22 - } + if m.EndTime != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.EndTime)) } if len(m.Levels) > 0 { dAtA2 := make([]byte, len(m.Levels)*10) @@ -796,29 +515,38 @@ func (m *SearchLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(j1)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(j1)) + i += copy(dAtA[i:], dAtA2[:j1]) } - if m.EndTime != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.EndTime)) - i-- - dAtA[i] = 0x10 + if len(m.Patterns) > 0 { + for _, s := range m.Patterns { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - if m.StartTime != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.StartTime)) - i-- - dAtA[i] = 0x8 + if m.Target != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Target)) } - return len(dAtA) - i, nil + return i, nil } func (m *SearchLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -826,40 +554,29 @@ func (m *SearchLogResponse) Marshal() (dAtA []byte, err error) { } func (m *SearchLogResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SearchLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Messages) > 0 { - for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Messages { dAtA[i] = 0xa + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *LogMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -867,43 +584,33 @@ func (m *LogMessage) Marshal() (dAtA []byte, err error) { } func (m *LogMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a + if m.Time != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Time)) } if m.Level != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Level)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Level)) } - if m.Time != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Time)) - i-- - dAtA[i] = 0x8 + if len(m.Message) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - return len(dAtA) - i, nil + return i, nil } func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -911,31 +618,22 @@ func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Tp != 0 { - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Tp)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Tp)) } - return len(dAtA) - i, nil + return i, nil } func (m *ServerInfoPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -943,40 +641,29 @@ func (m *ServerInfoPair) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerInfoPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ServerInfoItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -984,54 +671,41 @@ func (m *ServerInfoItem) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerInfoItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if len(m.Tp) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) + i += copy(dAtA[i:], m.Tp) } if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.Tp) > 0 { - i -= len(m.Tp) - copy(dAtA[i:], m.Tp) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) - i-- - dAtA[i] = 0xa + if len(m.Pairs) > 0 { + for _, msg := range m.Pairs { + dAtA[i] = 0x1a + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1039,51 +713,35 @@ func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Items { dAtA[i] = 0xa + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func encodeVarintDiagnosticspb(dAtA []byte, offset int, v uint64) int { - offset -= sovDiagnosticspb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *SearchLogRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTime != 0 { @@ -1108,16 +766,10 @@ func (m *SearchLogRequest) Size() (n int) { if m.Target != 0 { n += 1 + sovDiagnosticspb(uint64(m.Target)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SearchLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Messages) > 0 { @@ -1126,16 +778,10 @@ func (m *SearchLogResponse) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LogMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Time != 0 { @@ -1148,31 +794,19 @@ func (m *LogMessage) Size() (n int) { if l > 0 { n += 1 + l + sovDiagnosticspb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ServerInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Tp != 0 { n += 1 + sovDiagnosticspb(uint64(m.Tp)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ServerInfoPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1183,16 +817,10 @@ func (m *ServerInfoPair) Size() (n int) { if l > 0 { n += 1 + l + sovDiagnosticspb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ServerInfoItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Tp) @@ -1209,16 +837,10 @@ func (m *ServerInfoItem) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ServerInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Items) > 0 { @@ -1227,14 +849,18 @@ func (m *ServerInfoResponse) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovDiagnosticspb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozDiagnosticspb(x uint64) (n int) { return sovDiagnosticspb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1254,7 +880,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1282,7 +908,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTime |= int64(b&0x7F) << shift + m.StartTime |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1301,7 +927,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTime |= int64(b&0x7F) << shift + m.EndTime |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1318,7 +944,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= LogLevel(b&0x7F) << shift + v |= (LogLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -1335,7 +961,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1344,16 +970,9 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } - var elementCount int - if elementCount != 0 && len(m.Levels) == 0 { - m.Levels = make([]LogLevel, 0, elementCount) - } for iNdEx < postIndex { var v LogLevel for shift := uint(0); ; shift += 7 { @@ -1365,7 +984,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= LogLevel(b&0x7F) << shift + v |= (LogLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -1389,7 +1008,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1399,9 +1018,6 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1421,7 +1037,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Target |= SearchLogRequest_Target(b&0x7F) << shift + m.Target |= (SearchLogRequest_Target(b) & 0x7F) << shift if b < 0x80 { break } @@ -1432,13 +1048,12 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1463,7 +1078,7 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1491,7 +1106,7 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1500,9 +1115,6 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1517,13 +1129,12 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1548,7 +1159,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1576,7 +1187,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Time |= int64(b&0x7F) << shift + m.Time |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1595,7 +1206,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Level |= LogLevel(b&0x7F) << shift + m.Level |= (LogLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -1614,7 +1225,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1624,9 +1235,6 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1638,13 +1246,12 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1669,7 +1276,7 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1697,7 +1304,7 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= ServerInfoType(b&0x7F) << shift + m.Tp |= (ServerInfoType(b) & 0x7F) << shift if b < 0x80 { break } @@ -1708,13 +1315,12 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1739,7 +1345,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1767,7 +1373,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1777,9 +1383,6 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1799,7 +1402,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1809,9 +1412,6 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1823,13 +1423,12 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1854,7 +1453,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1882,7 +1481,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1892,9 +1491,6 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1914,7 +1510,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1924,9 +1520,6 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1946,7 +1539,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1955,9 +1548,6 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1972,13 +1562,12 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2003,7 +1592,7 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2031,7 +1620,7 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2040,9 +1629,6 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDiagnosticspb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2057,13 +1643,12 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2076,7 +1661,6 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { func skipDiagnosticspb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2108,8 +1692,10 @@ func skipDiagnosticspb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2126,34 +1712,99 @@ func skipDiagnosticspb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthDiagnosticspb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDiagnosticspb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDiagnosticspb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipDiagnosticspb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthDiagnosticspb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthDiagnosticspb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDiagnosticspb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDiagnosticspb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDiagnosticspb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDiagnosticspb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("diagnosticspb.proto", fileDescriptorDiagnosticspb) } + +var fileDescriptorDiagnosticspb = []byte{ + // 640 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0xce, 0xc6, 0x71, 0x62, 0x4f, 0xfa, 0xe7, 0x37, 0x4b, 0x25, 0xdc, 0x48, 0x0d, 0xc6, 0x87, + 0x2a, 0xaa, 0xd4, 0x14, 0xa5, 0x42, 0xe2, 0x84, 0x44, 0x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b, 0xbb, 0xf1, 0xf3, + 0xab, 0x83, 0xbe, 0x9f, 0x77, 0xd0, 0x8f, 0xf3, 0x0e, 0xfa, 0x75, 0xde, 0x41, 0x5f, 0x7e, 0x77, + 0x2a, 0xe0, 0x71, 0x11, 0xf7, 0x14, 0x3b, 0x99, 0xf7, 0x4e, 0xe6, 0xe6, 0x87, 0x73, 0x54, 0x37, + 0x9f, 0x9d, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xba, 0x18, 0xc8, 0xc4, 0x04, 0x00, 0x00, +} diff --git a/pkg/disaggregated/disaggregated.pb.go b/pkg/disaggregated/disaggregated.pb.go index 322243880..749245d63 100644 --- a/pkg/disaggregated/disaggregated.pb.go +++ b/pkg/disaggregated/disaggregated.pb.go @@ -1,16 +1,49 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: disaggregated.proto +/* +Package disaggregated is a generated protocol buffer package. + +It is generated from these files: + + disaggregated.proto + +It has these top-level messages: + + S3LockResult + Success + NotOwner + Conflict + TryAddLockRequest + TryAddLockResponse + TryMarkDeleteRequest + TryMarkDeleteResponse + GetDisaggConfigRequest + DisaggS3Config + GetDisaggConfigResponse + DisaggTaskMeta + DisaggReadError + EstablishDisaggTaskError + ErrorRegion + ErrorLocked + ErrorOther + EstablishDisaggTaskRequest + EstablishDisaggTaskResponse + CancelDisaggTaskRequest + CancelDisaggTaskResponse + FetchDisaggPagesRequest + PagesPacket +*/ package disaggregated import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" ) @@ -23,51 +56,20 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type S3LockResult struct { // Types that are valid to be assigned to Error: // *S3LockResult_Success // *S3LockResult_NotOwner // *S3LockResult_Conflict - Error isS3LockResult_Error `protobuf_oneof:"error"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *S3LockResult) Reset() { *m = S3LockResult{} } -func (m *S3LockResult) String() string { return proto.CompactTextString(m) } -func (*S3LockResult) ProtoMessage() {} -func (*S3LockResult) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{0} -} -func (m *S3LockResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *S3LockResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_S3LockResult.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 *S3LockResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_S3LockResult.Merge(m, src) -} -func (m *S3LockResult) XXX_Size() int { - return m.Size() -} -func (m *S3LockResult) XXX_DiscardUnknown() { - xxx_messageInfo_S3LockResult.DiscardUnknown(m) + Error isS3LockResult_Error `protobuf_oneof:"error"` } -var xxx_messageInfo_S3LockResult proto.InternalMessageInfo +func (m *S3LockResult) Reset() { *m = S3LockResult{} } +func (m *S3LockResult) String() string { return proto.CompactTextString(m) } +func (*S3LockResult) ProtoMessage() {} +func (*S3LockResult) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{0} } type isS3LockResult_Error interface { isS3LockResult_Error() @@ -76,13 +78,13 @@ type isS3LockResult_Error interface { } type S3LockResult_Success struct { - Success *Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"` + Success *Success `protobuf:"bytes,1,opt,name=success,oneof"` } type S3LockResult_NotOwner struct { - NotOwner *NotOwner `protobuf:"bytes,2,opt,name=not_owner,json=notOwner,proto3,oneof" json:"not_owner,omitempty"` + NotOwner *NotOwner `protobuf:"bytes,2,opt,name=not_owner,json=notOwner,oneof"` } type S3LockResult_Conflict struct { - Conflict *Conflict `protobuf:"bytes,3,opt,name=conflict,proto3,oneof" json:"conflict,omitempty"` + Conflict *Conflict `protobuf:"bytes,3,opt,name=conflict,oneof"` } func (*S3LockResult_Success) isS3LockResult_Error() {} @@ -117,136 +119,127 @@ func (m *S3LockResult) GetConflict() *Conflict { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*S3LockResult) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*S3LockResult) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _S3LockResult_OneofMarshaler, _S3LockResult_OneofUnmarshaler, _S3LockResult_OneofSizer, []interface{}{ (*S3LockResult_Success)(nil), (*S3LockResult_NotOwner)(nil), (*S3LockResult_Conflict)(nil), } } -type Success struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Success) Reset() { *m = Success{} } -func (m *Success) String() string { return proto.CompactTextString(m) } -func (*Success) ProtoMessage() {} -func (*Success) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{1} -} -func (m *Success) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Success.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _S3LockResult_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*S3LockResult) + // error + switch x := m.Error.(type) { + case *S3LockResult_Success: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Success); err != nil { + return err + } + case *S3LockResult_NotOwner: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NotOwner); err != nil { + return err } - return b[:n], nil + case *S3LockResult_Conflict: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Conflict); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("S3LockResult.Error has unexpected type %T", x) } + return nil } -func (m *Success) XXX_Merge(src proto.Message) { - xxx_messageInfo_Success.Merge(m, src) -} -func (m *Success) XXX_Size() int { - return m.Size() + +func _S3LockResult_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*S3LockResult) + switch tag { + case 1: // error.success + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Success) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_Success{msg} + return true, err + case 2: // error.not_owner + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(NotOwner) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_NotOwner{msg} + return true, err + case 3: // error.conflict + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Conflict) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_Conflict{msg} + return true, err + default: + return false, nil + } +} + +func _S3LockResult_OneofSizer(msg proto.Message) (n int) { + m := msg.(*S3LockResult) + // error + switch x := m.Error.(type) { + case *S3LockResult_Success: + s := proto.Size(x.Success) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *S3LockResult_NotOwner: + s := proto.Size(x.NotOwner) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *S3LockResult_Conflict: + s := proto.Size(x.Conflict) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *Success) XXX_DiscardUnknown() { - xxx_messageInfo_Success.DiscardUnknown(m) + +type Success struct { } -var xxx_messageInfo_Success proto.InternalMessageInfo +func (m *Success) Reset() { *m = Success{} } +func (m *Success) String() string { return proto.CompactTextString(m) } +func (*Success) ProtoMessage() {} +func (*Success) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{1} } // Error caused by S3GC owner changed // client should retry type NotOwner struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NotOwner) Reset() { *m = NotOwner{} } -func (m *NotOwner) String() string { return proto.CompactTextString(m) } -func (*NotOwner) ProtoMessage() {} -func (*NotOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{2} -} -func (m *NotOwner) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NotOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NotOwner.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 *NotOwner) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotOwner.Merge(m, src) -} -func (m *NotOwner) XXX_Size() int { - return m.Size() -} -func (m *NotOwner) XXX_DiscardUnknown() { - xxx_messageInfo_NotOwner.DiscardUnknown(m) } -var xxx_messageInfo_NotOwner proto.InternalMessageInfo +func (m *NotOwner) Reset() { *m = NotOwner{} } +func (m *NotOwner) String() string { return proto.CompactTextString(m) } +func (*NotOwner) ProtoMessage() {} +func (*NotOwner) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{2} } // Error caused by concurrency conflict, // request cancel type Conflict struct { - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Conflict) Reset() { *m = Conflict{} } -func (m *Conflict) String() string { return proto.CompactTextString(m) } -func (*Conflict) ProtoMessage() {} -func (*Conflict) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{3} -} -func (m *Conflict) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Conflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Conflict.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 *Conflict) XXX_Merge(src proto.Message) { - xxx_messageInfo_Conflict.Merge(m, src) -} -func (m *Conflict) XXX_Size() int { - return m.Size() -} -func (m *Conflict) XXX_DiscardUnknown() { - xxx_messageInfo_Conflict.DiscardUnknown(m) + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` } -var xxx_messageInfo_Conflict proto.InternalMessageInfo +func (m *Conflict) Reset() { *m = Conflict{} } +func (m *Conflict) String() string { return proto.CompactTextString(m) } +func (*Conflict) ProtoMessage() {} +func (*Conflict) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{3} } func (m *Conflict) GetReason() string { if m != nil { @@ -261,44 +254,13 @@ type TryAddLockRequest struct { // The lock store id LockStoreId uint64 `protobuf:"varint,3,opt,name=lock_store_id,json=lockStoreId,proto3" json:"lock_store_id,omitempty"` // The upload sequence number of lock store - LockSeq uint64 `protobuf:"varint,4,opt,name=lock_seq,json=lockSeq,proto3" json:"lock_seq,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TryAddLockRequest) Reset() { *m = TryAddLockRequest{} } -func (m *TryAddLockRequest) String() string { return proto.CompactTextString(m) } -func (*TryAddLockRequest) ProtoMessage() {} -func (*TryAddLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{4} -} -func (m *TryAddLockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TryAddLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TryAddLockRequest.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 *TryAddLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TryAddLockRequest.Merge(m, src) -} -func (m *TryAddLockRequest) XXX_Size() int { - return m.Size() -} -func (m *TryAddLockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TryAddLockRequest.DiscardUnknown(m) + LockSeq uint64 `protobuf:"varint,4,opt,name=lock_seq,json=lockSeq,proto3" json:"lock_seq,omitempty"` } -var xxx_messageInfo_TryAddLockRequest proto.InternalMessageInfo +func (m *TryAddLockRequest) Reset() { *m = TryAddLockRequest{} } +func (m *TryAddLockRequest) String() string { return proto.CompactTextString(m) } +func (*TryAddLockRequest) ProtoMessage() {} +func (*TryAddLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{4} } func (m *TryAddLockRequest) GetDataFileKey() []byte { if m != nil { @@ -322,44 +284,13 @@ func (m *TryAddLockRequest) GetLockSeq() uint64 { } type TryAddLockResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TryAddLockResponse) Reset() { *m = TryAddLockResponse{} } -func (m *TryAddLockResponse) String() string { return proto.CompactTextString(m) } -func (*TryAddLockResponse) ProtoMessage() {} -func (*TryAddLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{5} -} -func (m *TryAddLockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TryAddLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TryAddLockResponse.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 *TryAddLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TryAddLockResponse.Merge(m, src) -} -func (m *TryAddLockResponse) XXX_Size() int { - return m.Size() -} -func (m *TryAddLockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TryAddLockResponse.DiscardUnknown(m) + Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` } -var xxx_messageInfo_TryAddLockResponse proto.InternalMessageInfo +func (m *TryAddLockResponse) Reset() { *m = TryAddLockResponse{} } +func (m *TryAddLockResponse) String() string { return proto.CompactTextString(m) } +func (*TryAddLockResponse) ProtoMessage() {} +func (*TryAddLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{5} } func (m *TryAddLockResponse) GetResult() *S3LockResult { if m != nil { @@ -370,44 +301,15 @@ func (m *TryAddLockResponse) GetResult() *S3LockResult { type TryMarkDeleteRequest struct { // The data file key to be marked as deleted - DataFileKey []byte `protobuf:"bytes,1,opt,name=data_file_key,json=dataFileKey,proto3" json:"data_file_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DataFileKey []byte `protobuf:"bytes,1,opt,name=data_file_key,json=dataFileKey,proto3" json:"data_file_key,omitempty"` } func (m *TryMarkDeleteRequest) Reset() { *m = TryMarkDeleteRequest{} } func (m *TryMarkDeleteRequest) String() string { return proto.CompactTextString(m) } func (*TryMarkDeleteRequest) ProtoMessage() {} func (*TryMarkDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{6} -} -func (m *TryMarkDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TryMarkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TryMarkDeleteRequest.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 fileDescriptorDisaggregated, []int{6} } -func (m *TryMarkDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TryMarkDeleteRequest.Merge(m, src) -} -func (m *TryMarkDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *TryMarkDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TryMarkDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TryMarkDeleteRequest proto.InternalMessageInfo func (m *TryMarkDeleteRequest) GetDataFileKey() []byte { if m != nil { @@ -417,45 +319,16 @@ func (m *TryMarkDeleteRequest) GetDataFileKey() []byte { } type TryMarkDeleteResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` } func (m *TryMarkDeleteResponse) Reset() { *m = TryMarkDeleteResponse{} } func (m *TryMarkDeleteResponse) String() string { return proto.CompactTextString(m) } func (*TryMarkDeleteResponse) ProtoMessage() {} func (*TryMarkDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{7} -} -func (m *TryMarkDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TryMarkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TryMarkDeleteResponse.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 *TryMarkDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TryMarkDeleteResponse.Merge(m, src) -} -func (m *TryMarkDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *TryMarkDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TryMarkDeleteResponse.DiscardUnknown(m) + return fileDescriptorDisaggregated, []int{7} } -var xxx_messageInfo_TryMarkDeleteResponse proto.InternalMessageInfo - func (m *TryMarkDeleteResponse) GetResult() *S3LockResult { if m != nil { return m.Result @@ -464,85 +337,25 @@ func (m *TryMarkDeleteResponse) GetResult() *S3LockResult { } type GetDisaggConfigRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *GetDisaggConfigRequest) Reset() { *m = GetDisaggConfigRequest{} } func (m *GetDisaggConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetDisaggConfigRequest) ProtoMessage() {} func (*GetDisaggConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{8} -} -func (m *GetDisaggConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDisaggConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDisaggConfigRequest.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 *GetDisaggConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDisaggConfigRequest.Merge(m, src) -} -func (m *GetDisaggConfigRequest) XXX_Size() int { - return m.Size() + return fileDescriptorDisaggregated, []int{8} } -func (m *GetDisaggConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDisaggConfigRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDisaggConfigRequest proto.InternalMessageInfo type DisaggS3Config struct { - Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` - Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` - Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DisaggS3Config) Reset() { *m = DisaggS3Config{} } -func (m *DisaggS3Config) String() string { return proto.CompactTextString(m) } -func (*DisaggS3Config) ProtoMessage() {} -func (*DisaggS3Config) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{9} -} -func (m *DisaggS3Config) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DisaggS3Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DisaggS3Config.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 *DisaggS3Config) XXX_Merge(src proto.Message) { - xxx_messageInfo_DisaggS3Config.Merge(m, src) -} -func (m *DisaggS3Config) XXX_Size() int { - return m.Size() -} -func (m *DisaggS3Config) XXX_DiscardUnknown() { - xxx_messageInfo_DisaggS3Config.DiscardUnknown(m) + Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` + Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` + Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } -var xxx_messageInfo_DisaggS3Config proto.InternalMessageInfo +func (m *DisaggS3Config) Reset() { *m = DisaggS3Config{} } +func (m *DisaggS3Config) String() string { return proto.CompactTextString(m) } +func (*DisaggS3Config) ProtoMessage() {} +func (*DisaggS3Config) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{9} } func (m *DisaggS3Config) GetBucket() string { if m != nil { @@ -566,45 +379,16 @@ func (m *DisaggS3Config) GetEndpoint() string { } type GetDisaggConfigResponse struct { - S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config" json:"s3_config,omitempty"` } func (m *GetDisaggConfigResponse) Reset() { *m = GetDisaggConfigResponse{} } func (m *GetDisaggConfigResponse) String() string { return proto.CompactTextString(m) } func (*GetDisaggConfigResponse) ProtoMessage() {} func (*GetDisaggConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{10} -} -func (m *GetDisaggConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDisaggConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDisaggConfigResponse.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 *GetDisaggConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDisaggConfigResponse.Merge(m, src) -} -func (m *GetDisaggConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *GetDisaggConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDisaggConfigResponse.DiscardUnknown(m) + return fileDescriptorDisaggregated, []int{10} } -var xxx_messageInfo_GetDisaggConfigResponse proto.InternalMessageInfo - func (m *GetDisaggConfigResponse) GetS3Config() *DisaggS3Config { if m != nil { return m.S3Config @@ -615,51 +399,20 @@ func (m *GetDisaggConfigResponse) GetS3Config() *DisaggS3Config { type DisaggTaskMeta struct { StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // gather_id + query_ts + server_id + local_query_id to represent a global unique query. - GatherId int64 `protobuf:"varint,9,opt,name=gather_id,json=gatherId,proto3" json:"gather_id,omitempty"` - QueryTs uint64 `protobuf:"varint,2,opt,name=query_ts,json=queryTs,proto3" json:"query_ts,omitempty"` - ServerId uint64 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - LocalQueryId uint64 `protobuf:"varint,4,opt,name=local_query_id,json=localQueryId,proto3" json:"local_query_id,omitempty"` - TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - ExecutorId string `protobuf:"bytes,6,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` - KeyspaceId uint32 `protobuf:"varint,7,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,8,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DisaggTaskMeta) Reset() { *m = DisaggTaskMeta{} } -func (m *DisaggTaskMeta) String() string { return proto.CompactTextString(m) } -func (*DisaggTaskMeta) ProtoMessage() {} -func (*DisaggTaskMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{11} -} -func (m *DisaggTaskMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DisaggTaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DisaggTaskMeta.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 *DisaggTaskMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_DisaggTaskMeta.Merge(m, src) -} -func (m *DisaggTaskMeta) XXX_Size() int { - return m.Size() -} -func (m *DisaggTaskMeta) XXX_DiscardUnknown() { - xxx_messageInfo_DisaggTaskMeta.DiscardUnknown(m) + GatherId int64 `protobuf:"varint,9,opt,name=gather_id,json=gatherId,proto3" json:"gather_id,omitempty"` + QueryTs uint64 `protobuf:"varint,2,opt,name=query_ts,json=queryTs,proto3" json:"query_ts,omitempty"` + ServerId uint64 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + LocalQueryId uint64 `protobuf:"varint,4,opt,name=local_query_id,json=localQueryId,proto3" json:"local_query_id,omitempty"` + TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + ExecutorId string `protobuf:"bytes,6,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` + KeyspaceId uint32 `protobuf:"varint,7,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,8,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` } -var xxx_messageInfo_DisaggTaskMeta proto.InternalMessageInfo +func (m *DisaggTaskMeta) Reset() { *m = DisaggTaskMeta{} } +func (m *DisaggTaskMeta) String() string { return proto.CompactTextString(m) } +func (*DisaggTaskMeta) ProtoMessage() {} +func (*DisaggTaskMeta) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{11} } func (m *DisaggTaskMeta) GetStartTs() uint64 { if m != nil { @@ -725,45 +478,14 @@ func (m *DisaggTaskMeta) GetApiVersion() kvrpcpb.APIVersion { } type DisaggReadError struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DisaggReadError) Reset() { *m = DisaggReadError{} } -func (m *DisaggReadError) String() string { return proto.CompactTextString(m) } -func (*DisaggReadError) ProtoMessage() {} -func (*DisaggReadError) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{12} -} -func (m *DisaggReadError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DisaggReadError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DisaggReadError.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 *DisaggReadError) XXX_Merge(src proto.Message) { - xxx_messageInfo_DisaggReadError.Merge(m, src) -} -func (m *DisaggReadError) XXX_Size() int { - return m.Size() -} -func (m *DisaggReadError) XXX_DiscardUnknown() { - xxx_messageInfo_DisaggReadError.DiscardUnknown(m) + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` } -var xxx_messageInfo_DisaggReadError proto.InternalMessageInfo +func (m *DisaggReadError) Reset() { *m = DisaggReadError{} } +func (m *DisaggReadError) String() string { return proto.CompactTextString(m) } +func (*DisaggReadError) ProtoMessage() {} +func (*DisaggReadError) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{12} } func (m *DisaggReadError) GetCode() int32 { if m != nil { @@ -784,44 +506,15 @@ type EstablishDisaggTaskError struct { // *EstablishDisaggTaskError_ErrorRegion // *EstablishDisaggTaskError_ErrorLocked // *EstablishDisaggTaskError_ErrorOther - Errors isEstablishDisaggTaskError_Errors `protobuf_oneof:"errors"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Errors isEstablishDisaggTaskError_Errors `protobuf_oneof:"errors"` } func (m *EstablishDisaggTaskError) Reset() { *m = EstablishDisaggTaskError{} } func (m *EstablishDisaggTaskError) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskError) ProtoMessage() {} func (*EstablishDisaggTaskError) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{13} -} -func (m *EstablishDisaggTaskError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EstablishDisaggTaskError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EstablishDisaggTaskError.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 *EstablishDisaggTaskError) XXX_Merge(src proto.Message) { - xxx_messageInfo_EstablishDisaggTaskError.Merge(m, src) -} -func (m *EstablishDisaggTaskError) XXX_Size() int { - return m.Size() + return fileDescriptorDisaggregated, []int{13} } -func (m *EstablishDisaggTaskError) XXX_DiscardUnknown() { - xxx_messageInfo_EstablishDisaggTaskError.DiscardUnknown(m) -} - -var xxx_messageInfo_EstablishDisaggTaskError proto.InternalMessageInfo type isEstablishDisaggTaskError_Errors interface { isEstablishDisaggTaskError_Errors() @@ -830,13 +523,13 @@ type isEstablishDisaggTaskError_Errors interface { } type EstablishDisaggTaskError_ErrorRegion struct { - ErrorRegion *ErrorRegion `protobuf:"bytes,1,opt,name=error_region,json=errorRegion,proto3,oneof" json:"error_region,omitempty"` + ErrorRegion *ErrorRegion `protobuf:"bytes,1,opt,name=error_region,json=errorRegion,oneof"` } type EstablishDisaggTaskError_ErrorLocked struct { - ErrorLocked *ErrorLocked `protobuf:"bytes,2,opt,name=error_locked,json=errorLocked,proto3,oneof" json:"error_locked,omitempty"` + ErrorLocked *ErrorLocked `protobuf:"bytes,2,opt,name=error_locked,json=errorLocked,oneof"` } type EstablishDisaggTaskError_ErrorOther struct { - ErrorOther *ErrorOther `protobuf:"bytes,99,opt,name=error_other,json=errorOther,proto3,oneof" json:"error_other,omitempty"` + ErrorOther *ErrorOther `protobuf:"bytes,99,opt,name=error_other,json=errorOther,oneof"` } func (*EstablishDisaggTaskError_ErrorRegion) isEstablishDisaggTaskError_Errors() {} @@ -871,56 +564,109 @@ func (m *EstablishDisaggTaskError) GetErrorOther() *ErrorOther { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*EstablishDisaggTaskError) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*EstablishDisaggTaskError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _EstablishDisaggTaskError_OneofMarshaler, _EstablishDisaggTaskError_OneofUnmarshaler, _EstablishDisaggTaskError_OneofSizer, []interface{}{ (*EstablishDisaggTaskError_ErrorRegion)(nil), (*EstablishDisaggTaskError_ErrorLocked)(nil), (*EstablishDisaggTaskError_ErrorOther)(nil), } } -type ErrorRegion struct { - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - // The read node needs to update its region cache about these regions. - RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds,proto3" json:"region_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorRegion) Reset() { *m = ErrorRegion{} } -func (m *ErrorRegion) String() string { return proto.CompactTextString(m) } -func (*ErrorRegion) ProtoMessage() {} -func (*ErrorRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{14} -} -func (m *ErrorRegion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ErrorRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ErrorRegion.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _EstablishDisaggTaskError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*EstablishDisaggTaskError) + // errors + switch x := m.Errors.(type) { + case *EstablishDisaggTaskError_ErrorRegion: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorRegion); err != nil { + return err + } + case *EstablishDisaggTaskError_ErrorLocked: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorLocked); err != nil { + return err + } + case *EstablishDisaggTaskError_ErrorOther: + _ = b.EncodeVarint(99<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorOther); err != nil { + return err } - return b[:n], nil + case nil: + default: + return fmt.Errorf("EstablishDisaggTaskError.Errors has unexpected type %T", x) } + return nil } -func (m *ErrorRegion) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorRegion.Merge(m, src) -} -func (m *ErrorRegion) XXX_Size() int { - return m.Size() + +func _EstablishDisaggTaskError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*EstablishDisaggTaskError) + switch tag { + case 1: // errors.error_region + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorRegion) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorRegion{msg} + return true, err + case 2: // errors.error_locked + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorLocked) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorLocked{msg} + return true, err + case 99: // errors.error_other + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorOther) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorOther{msg} + return true, err + default: + return false, nil + } +} + +func _EstablishDisaggTaskError_OneofSizer(msg proto.Message) (n int) { + m := msg.(*EstablishDisaggTaskError) + // errors + switch x := m.Errors.(type) { + case *EstablishDisaggTaskError_ErrorRegion: + s := proto.Size(x.ErrorRegion) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *EstablishDisaggTaskError_ErrorLocked: + s := proto.Size(x.ErrorLocked) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *EstablishDisaggTaskError_ErrorOther: + s := proto.Size(x.ErrorOther) + n += proto.SizeVarint(99<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *ErrorRegion) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorRegion.DiscardUnknown(m) + +type ErrorRegion struct { + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + // The read node needs to update its region cache about these regions. + RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds" json:"region_ids,omitempty"` } -var xxx_messageInfo_ErrorRegion proto.InternalMessageInfo +func (m *ErrorRegion) Reset() { *m = ErrorRegion{} } +func (m *ErrorRegion) String() string { return proto.CompactTextString(m) } +func (*ErrorRegion) ProtoMessage() {} +func (*ErrorRegion) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{14} } func (m *ErrorRegion) GetMsg() string { if m != nil { @@ -939,44 +685,13 @@ func (m *ErrorRegion) GetRegionIds() []uint64 { type ErrorLocked struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // The read node needs to resolve these locks. - Locked []*kvrpcpb.LockInfo `protobuf:"bytes,2,rep,name=locked,proto3" json:"locked,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorLocked) Reset() { *m = ErrorLocked{} } -func (m *ErrorLocked) String() string { return proto.CompactTextString(m) } -func (*ErrorLocked) ProtoMessage() {} -func (*ErrorLocked) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{15} -} -func (m *ErrorLocked) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ErrorLocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ErrorLocked.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 *ErrorLocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorLocked.Merge(m, src) -} -func (m *ErrorLocked) XXX_Size() int { - return m.Size() -} -func (m *ErrorLocked) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorLocked.DiscardUnknown(m) + Locked []*kvrpcpb.LockInfo `protobuf:"bytes,2,rep,name=locked" json:"locked,omitempty"` } -var xxx_messageInfo_ErrorLocked proto.InternalMessageInfo +func (m *ErrorLocked) Reset() { *m = ErrorLocked{} } +func (m *ErrorLocked) String() string { return proto.CompactTextString(m) } +func (*ErrorLocked) ProtoMessage() {} +func (*ErrorLocked) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{15} } func (m *ErrorLocked) GetMsg() string { if m != nil { @@ -993,45 +708,14 @@ func (m *ErrorLocked) GetLocked() []*kvrpcpb.LockInfo { } type ErrorOther struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorOther) Reset() { *m = ErrorOther{} } -func (m *ErrorOther) String() string { return proto.CompactTextString(m) } -func (*ErrorOther) ProtoMessage() {} -func (*ErrorOther) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{16} -} -func (m *ErrorOther) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ErrorOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ErrorOther.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 *ErrorOther) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorOther.Merge(m, src) -} -func (m *ErrorOther) XXX_Size() int { - return m.Size() -} -func (m *ErrorOther) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorOther.DiscardUnknown(m) + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` } -var xxx_messageInfo_ErrorOther proto.InternalMessageInfo +func (m *ErrorOther) Reset() { *m = ErrorOther{} } +func (m *ErrorOther) String() string { return proto.CompactTextString(m) } +func (*ErrorOther) ProtoMessage() {} +func (*ErrorOther) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{16} } func (m *ErrorOther) GetCode() int32 { if m != nil { @@ -1048,56 +732,27 @@ func (m *ErrorOther) GetMsg() string { } type EstablishDisaggTaskRequest struct { - Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // The write node needs to ensure that subsequent // FetchDisaggPagesRequest can be processed within timeout_s. // unit: seconds TimeoutS int64 `protobuf:"varint,3,opt,name=timeout_s,json=timeoutS,proto3" json:"timeout_s,omitempty"` // The key ranges, Region meta that read node need to execute TableScan - Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` SchemaVer int64 `protobuf:"varint,5,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for PartitionTableScan - TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` + TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` // The encoded TableScan/PartitionTableScan + Selection. - EncodedPlan []byte `protobuf:"bytes,7,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + EncodedPlan []byte `protobuf:"bytes,7,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` } func (m *EstablishDisaggTaskRequest) Reset() { *m = EstablishDisaggTaskRequest{} } func (m *EstablishDisaggTaskRequest) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskRequest) ProtoMessage() {} func (*EstablishDisaggTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{17} -} -func (m *EstablishDisaggTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EstablishDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EstablishDisaggTaskRequest.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 *EstablishDisaggTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EstablishDisaggTaskRequest.Merge(m, src) -} -func (m *EstablishDisaggTaskRequest) XXX_Size() int { - return m.Size() + return fileDescriptorDisaggregated, []int{17} } -func (m *EstablishDisaggTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EstablishDisaggTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_EstablishDisaggTaskRequest proto.InternalMessageInfo func (m *EstablishDisaggTaskRequest) GetMeta() *DisaggTaskMeta { if m != nil { @@ -1149,53 +804,24 @@ func (m *EstablishDisaggTaskRequest) GetEncodedPlan() []byte { } type EstablishDisaggTaskResponse struct { - Error *EstablishDisaggTaskError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *EstablishDisaggTaskError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` // Write node maintains a snapshot with a lease time. // Read node should read the delta pages // (ColumnFileInMemory and ColumnFileTiny) // along with this store_id and snapshot_id. StoreId uint64 `protobuf:"varint,3,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - SnapshotId *DisaggTaskMeta `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` + SnapshotId *DisaggTaskMeta `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId" json:"snapshot_id,omitempty"` // Serialized disaggregated tasks (per physical table) - Tables [][]byte `protobuf:"bytes,5,rep,name=tables,proto3" json:"tables,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Tables [][]byte `protobuf:"bytes,5,rep,name=tables" json:"tables,omitempty"` } func (m *EstablishDisaggTaskResponse) Reset() { *m = EstablishDisaggTaskResponse{} } func (m *EstablishDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskResponse) ProtoMessage() {} func (*EstablishDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{18} -} -func (m *EstablishDisaggTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EstablishDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EstablishDisaggTaskResponse.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 *EstablishDisaggTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EstablishDisaggTaskResponse.Merge(m, src) -} -func (m *EstablishDisaggTaskResponse) XXX_Size() int { - return m.Size() -} -func (m *EstablishDisaggTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EstablishDisaggTaskResponse.DiscardUnknown(m) + return fileDescriptorDisaggregated, []int{18} } -var xxx_messageInfo_EstablishDisaggTaskResponse proto.InternalMessageInfo - func (m *EstablishDisaggTaskResponse) GetError() *EstablishDisaggTaskError { if m != nil { return m.Error @@ -1225,44 +851,15 @@ func (m *EstablishDisaggTaskResponse) GetTables() [][]byte { } type CancelDisaggTaskRequest struct { - Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` } func (m *CancelDisaggTaskRequest) Reset() { *m = CancelDisaggTaskRequest{} } func (m *CancelDisaggTaskRequest) String() string { return proto.CompactTextString(m) } func (*CancelDisaggTaskRequest) ProtoMessage() {} func (*CancelDisaggTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{19} -} -func (m *CancelDisaggTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorDisaggregated, []int{19} } -func (m *CancelDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelDisaggTaskRequest.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 *CancelDisaggTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelDisaggTaskRequest.Merge(m, src) -} -func (m *CancelDisaggTaskRequest) XXX_Size() int { - return m.Size() -} -func (m *CancelDisaggTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelDisaggTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CancelDisaggTaskRequest proto.InternalMessageInfo func (m *CancelDisaggTaskRequest) GetMeta() *DisaggTaskMeta { if m != nil { @@ -1272,89 +869,31 @@ func (m *CancelDisaggTaskRequest) GetMeta() *DisaggTaskMeta { } type CancelDisaggTaskResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CancelDisaggTaskResponse) Reset() { *m = CancelDisaggTaskResponse{} } func (m *CancelDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*CancelDisaggTaskResponse) ProtoMessage() {} func (*CancelDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{20} -} -func (m *CancelDisaggTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelDisaggTaskResponse.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 *CancelDisaggTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelDisaggTaskResponse.Merge(m, src) -} -func (m *CancelDisaggTaskResponse) XXX_Size() int { - return m.Size() -} -func (m *CancelDisaggTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelDisaggTaskResponse.DiscardUnknown(m) + return fileDescriptorDisaggregated, []int{20} } -var xxx_messageInfo_CancelDisaggTaskResponse proto.InternalMessageInfo - type FetchDisaggPagesRequest struct { // The snapshot id to fetch pages - SnapshotId *DisaggTaskMeta `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` + SnapshotId *DisaggTaskMeta `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId" json:"snapshot_id,omitempty"` TableId int64 `protobuf:"varint,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` SegmentId uint64 `protobuf:"varint,3,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` // It must be a subset of the delta pages ids returned // in EstablishDisaggTaskResponse.segments - PageIds []uint64 `protobuf:"varint,4,rep,packed,name=page_ids,json=pageIds,proto3" json:"page_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PageIds []uint64 `protobuf:"varint,4,rep,packed,name=page_ids,json=pageIds" json:"page_ids,omitempty"` } func (m *FetchDisaggPagesRequest) Reset() { *m = FetchDisaggPagesRequest{} } func (m *FetchDisaggPagesRequest) String() string { return proto.CompactTextString(m) } func (*FetchDisaggPagesRequest) ProtoMessage() {} func (*FetchDisaggPagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{21} -} -func (m *FetchDisaggPagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FetchDisaggPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FetchDisaggPagesRequest.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 *FetchDisaggPagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchDisaggPagesRequest.Merge(m, src) -} -func (m *FetchDisaggPagesRequest) XXX_Size() int { - return m.Size() + return fileDescriptorDisaggregated, []int{21} } -func (m *FetchDisaggPagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FetchDisaggPagesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FetchDisaggPagesRequest proto.InternalMessageInfo func (m *FetchDisaggPagesRequest) GetSnapshotId() *DisaggTaskMeta { if m != nil { @@ -1385,52 +924,21 @@ func (m *FetchDisaggPagesRequest) GetPageIds() []uint64 { } type PagesPacket struct { - Error *DisaggReadError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *DisaggReadError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` // Serialized column file data // * ColumnFilePersisted alone with its schema, page data, field offsets - Pages [][]byte `protobuf:"bytes,2,rep,name=pages,proto3" json:"pages,omitempty"` + Pages [][]byte `protobuf:"bytes,2,rep,name=pages" json:"pages,omitempty"` // * ColumnFileInMemory alone with its serialized block - Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"` + Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"` // Return tipb.SelectResponse.execution_summaries in the // last packet - Summaries [][]byte `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PagesPacket) Reset() { *m = PagesPacket{} } -func (m *PagesPacket) String() string { return proto.CompactTextString(m) } -func (*PagesPacket) ProtoMessage() {} -func (*PagesPacket) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{22} -} -func (m *PagesPacket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PagesPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PagesPacket.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 *PagesPacket) XXX_Merge(src proto.Message) { - xxx_messageInfo_PagesPacket.Merge(m, src) -} -func (m *PagesPacket) XXX_Size() int { - return m.Size() -} -func (m *PagesPacket) XXX_DiscardUnknown() { - xxx_messageInfo_PagesPacket.DiscardUnknown(m) + Summaries [][]byte `protobuf:"bytes,4,rep,name=summaries" json:"summaries,omitempty"` } -var xxx_messageInfo_PagesPacket proto.InternalMessageInfo +func (m *PagesPacket) Reset() { *m = PagesPacket{} } +func (m *PagesPacket) String() string { return proto.CompactTextString(m) } +func (*PagesPacket) ProtoMessage() {} +func (*PagesPacket) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{22} } func (m *PagesPacket) GetError() *DisaggReadError { if m != nil { @@ -1485,89 +993,10 @@ func init() { proto.RegisterType((*FetchDisaggPagesRequest)(nil), "disaggregated.FetchDisaggPagesRequest") proto.RegisterType((*PagesPacket)(nil), "disaggregated.PagesPacket") } - -func init() { proto.RegisterFile("disaggregated.proto", fileDescriptor_1026192e39a9f8dc) } - -var fileDescriptor_1026192e39a9f8dc = []byte{ - // 1150 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xdc, 0x44, - 0x14, 0x8e, 0xb3, 0x9b, 0xb5, 0x7d, 0xbc, 0x29, 0xed, 0xb4, 0x34, 0x4e, 0x4a, 0x43, 0xb0, 0x90, - 0x58, 0x6e, 0x22, 0x35, 0x29, 0x20, 0x55, 0x50, 0xd4, 0x5f, 0xb2, 0x90, 0xd2, 0x30, 0x09, 0x15, - 0x77, 0xd6, 0xc4, 0x3e, 0xdd, 0x58, 0xf6, 0x7a, 0x9c, 0x99, 0xd9, 0x40, 0x9e, 0x82, 0x5b, 0x9e, - 0x82, 0x5b, 0x24, 0x78, 0x01, 0xee, 0xe0, 0x11, 0x50, 0xe1, 0x41, 0xd0, 0xfc, 0x78, 0x93, 0x6c, - 0x97, 0x9f, 0x0a, 0xae, 0xd6, 0xdf, 0x99, 0xf3, 0x9d, 0x39, 0xff, 0xb3, 0x70, 0x35, 0x2f, 0x24, - 0x1b, 0x8d, 0x04, 0x8e, 0x98, 0xc2, 0x7c, 0xb3, 0x11, 0x5c, 0x71, 0xb2, 0x7c, 0x41, 0xb8, 0x76, - 0x25, 0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0xea, 0x2c, 0xab, 0xa1, 0x93, 0x58, 0x66, 0xc3, 0x46, 0x68, 0x86, 0xb5, 0x6b, 0x86, 0xd5, - 0xd7, 0x58, 0x8f, 0xea, 0xb7, 0x1e, 0x44, 0xc6, 0xcb, 0x3d, 0x66, 0xde, 0xb6, 0xdb, 0x17, 0x8b, - 0xbb, 0x3e, 0xd7, 0xbd, 0xe9, 0xda, 0x6c, 0x6b, 0x7a, 0x0d, 0x96, 0xb4, 0x41, 0xbb, 0x0a, 0xfa, - 0xd4, 0x02, 0x5d, 0x8e, 0xec, 0x68, 0x52, 0x97, 0x7a, 0x2e, 0x4c, 0x39, 0x2c, 0x22, 0x6f, 0x40, - 0x28, 0x27, 0xe3, 0x31, 0x13, 0x05, 0x5a, 0x7f, 0xfa, 0xf4, 0x4c, 0x70, 0x3f, 0xf9, 0xf9, 0xc5, - 0xba, 0xf7, 0xeb, 0x8b, 0x75, 0xef, 0xb7, 0x17, 0xeb, 0xde, 0x77, 0xbf, 0xaf, 0x2f, 0xc0, 0x65, - 0x2e, 0x46, 0x9b, 0xaa, 0x28, 0x4f, 0x36, 0xcb, 0x13, 0xf3, 0x57, 0xf0, 0xb0, 0x67, 0x7e, 0xb6, - 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x93, 0x0b, 0x62, 0x47, 0x59, 0x0a, 0x00, 0x00, -} - func (m *S3LockResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1575,98 +1004,66 @@ func (m *S3LockResult) Marshal() (dAtA []byte, err error) { } func (m *S3LockResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *S3LockResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size := m.Error.Size() - i -= size - if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn1 } - return len(dAtA) - i, nil + return i, nil } func (m *S3LockResult_Success) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *S3LockResult_Success) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Success != nil { - { - size, err := m.Success.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Success.Size())) + n2, err := m.Success.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *S3LockResult_NotOwner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *S3LockResult_NotOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.NotOwner != nil { - { - size, err := m.NotOwner.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.NotOwner.Size())) + n3, err := m.NotOwner.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *S3LockResult_Conflict) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *S3LockResult_Conflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Conflict != nil { - { - size, err := m.Conflict.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Conflict.Size())) + n4, err := m.Conflict.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *Success) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1674,26 +1071,17 @@ func (m *Success) Marshal() (dAtA []byte, err error) { } func (m *Success) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Success) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *NotOwner) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1701,26 +1089,17 @@ func (m *NotOwner) Marshal() (dAtA []byte, err error) { } func (m *NotOwner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NotOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *Conflict) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1728,33 +1107,23 @@ func (m *Conflict) Marshal() (dAtA []byte, err error) { } func (m *Conflict) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Conflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Reason))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Reason))) + i += copy(dAtA[i:], m.Reason) } - return len(dAtA) - i, nil + return i, nil } func (m *TryAddLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1762,43 +1131,33 @@ func (m *TryAddLockRequest) Marshal() (dAtA []byte, err error) { } func (m *TryAddLockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TryAddLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.LockSeq != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockSeq)) - i-- - dAtA[i] = 0x20 + if len(m.DataFileKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) + i += copy(dAtA[i:], m.DataFileKey) } if m.LockStoreId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockStoreId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockStoreId)) } - if len(m.DataFileKey) > 0 { - i -= len(m.DataFileKey) - copy(dAtA[i:], m.DataFileKey) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) - i-- - dAtA[i] = 0xa + if m.LockSeq != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockSeq)) } - return len(dAtA) - i, nil + return i, nil } func (m *TryAddLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1806,38 +1165,27 @@ func (m *TryAddLockResponse) Marshal() (dAtA []byte, err error) { } func (m *TryAddLockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TryAddLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Result.Size())) + n5, err := m.Result.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *TryMarkDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1845,33 +1193,23 @@ func (m *TryMarkDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *TryMarkDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TryMarkDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.DataFileKey) > 0 { - i -= len(m.DataFileKey) - copy(dAtA[i:], m.DataFileKey) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) + i += copy(dAtA[i:], m.DataFileKey) } - return len(dAtA) - i, nil + return i, nil } func (m *TryMarkDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1879,38 +1217,27 @@ func (m *TryMarkDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *TryMarkDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TryMarkDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Result.Size())) + n6, err := m.Result.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *GetDisaggConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1918,26 +1245,17 @@ func (m *GetDisaggConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *GetDisaggConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDisaggConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *DisaggS3Config) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1945,47 +1263,35 @@ func (m *DisaggS3Config) Marshal() (dAtA []byte, err error) { } func (m *DisaggS3Config) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DisaggS3Config) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0x1a + if len(m.Bucket) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } if len(m.Root) > 0 { - i -= len(m.Root) - copy(dAtA[i:], m.Root) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Root))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Root))) + i += copy(dAtA[i:], m.Root) } - if len(m.Bucket) > 0 { - i -= len(m.Bucket) - copy(dAtA[i:], m.Bucket) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Bucket))) - i-- - dAtA[i] = 0xa + if len(m.Endpoint) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - return len(dAtA) - i, nil + return i, nil } func (m *GetDisaggConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1993,38 +1299,27 @@ func (m *GetDisaggConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *GetDisaggConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDisaggConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.S3Config != nil { - { - size, err := m.S3Config.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.S3Config.Size())) + n7, err := m.S3Config.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - return len(dAtA) - i, nil + return i, nil } func (m *DisaggTaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2032,73 +1327,63 @@ func (m *DisaggTaskMeta) Marshal() (dAtA []byte, err error) { } func (m *DisaggTaskMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DisaggTaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.GatherId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.GatherId)) - i-- - dAtA[i] = 0x48 + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) } - if m.ApiVersion != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x40 + if m.QueryTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.QueryTs)) } - if m.KeyspaceId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x38 + if m.ServerId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ServerId)) } - if len(m.ExecutorId) > 0 { - i -= len(m.ExecutorId) - copy(dAtA[i:], m.ExecutorId) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ExecutorId))) - i-- - dAtA[i] = 0x32 + if m.LocalQueryId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.LocalQueryId)) } if m.TaskId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TaskId)) - i-- dAtA[i] = 0x28 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TaskId)) } - if m.LocalQueryId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LocalQueryId)) - i-- - dAtA[i] = 0x20 + if len(m.ExecutorId) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ExecutorId))) + i += copy(dAtA[i:], m.ExecutorId) } - if m.ServerId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ServerId)) - i-- - dAtA[i] = 0x18 + if m.KeyspaceId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.KeyspaceId)) } - if m.QueryTs != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.QueryTs)) - i-- - dAtA[i] = 0x10 + if m.ApiVersion != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ApiVersion)) } - if m.StartTs != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.GatherId != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.GatherId)) } - return len(dAtA) - i, nil + return i, nil } func (m *DisaggReadError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2106,38 +1391,28 @@ func (m *DisaggReadError) Marshal() (dAtA []byte, err error) { } func (m *DisaggReadError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DisaggReadError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Code != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) } if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } - if m.Code != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishDisaggTaskError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2145,100 +1420,68 @@ func (m *EstablishDisaggTaskError) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Errors != nil { - { - size := m.Errors.Size() - i -= size - if _, err := m.Errors.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn8, err := m.Errors.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn8 } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishDisaggTaskError_ErrorRegion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskError_ErrorRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrorRegion != nil { - { - size, err := m.ErrorRegion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorRegion.Size())) + n9, err := m.ErrorRegion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishDisaggTaskError_ErrorLocked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskError_ErrorLocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrorLocked != nil { - { - size, err := m.ErrorLocked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorLocked.Size())) + n10, err := m.ErrorLocked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishDisaggTaskError_ErrorOther) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskError_ErrorOther) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrorOther != nil { - { - size, err := m.ErrorOther.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6 - i-- dAtA[i] = 0x9a + i++ + dAtA[i] = 0x6 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorOther.Size())) + n11, err := m.ErrorOther.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *ErrorRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2246,51 +1489,40 @@ func (m *ErrorRegion) Marshal() (dAtA []byte, err error) { } func (m *ErrorRegion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ErrorRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Msg) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } if len(m.RegionIds) > 0 { - dAtA11 := make([]byte, len(m.RegionIds)*10) - var j10 int + dAtA13 := make([]byte, len(m.RegionIds)*10) + var j12 int for _, num := range m.RegionIds { for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) + dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j10++ + j12++ } - dAtA11[j10] = uint8(num) - j10++ + dAtA13[j12] = uint8(num) + j12++ } - i -= j10 - copy(dAtA[i:], dAtA11[:j10]) - i = encodeVarintDisaggregated(dAtA, i, uint64(j10)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(j12)) + i += copy(dAtA[i:], dAtA13[:j12]) } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ErrorLocked) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2298,47 +1530,35 @@ func (m *ErrorLocked) Marshal() (dAtA []byte, err error) { } func (m *ErrorLocked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ErrorLocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Msg) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } if len(m.Locked) > 0 { - for iNdEx := len(m.Locked) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locked[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Locked { dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ErrorOther) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2346,38 +1566,28 @@ func (m *ErrorOther) Marshal() (dAtA []byte, err error) { } func (m *ErrorOther) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ErrorOther) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Code != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) } if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } - if m.Code != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishDisaggTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2385,90 +1595,73 @@ func (m *EstablishDisaggTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EncodedPlan) > 0 { - i -= len(m.EncodedPlan) - copy(dAtA[i:], m.EncodedPlan) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.EncodedPlan))) - i-- - dAtA[i] = 0x3a - } - if len(m.TableRegions) > 0 { - for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Meta.Size())) + n14, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n14 } - if m.SchemaVer != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.SchemaVer)) - i-- - dAtA[i] = 0x28 + if len(m.Address) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) + } + if m.TimeoutS != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TimeoutS)) } 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 = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0x22 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.TimeoutS != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TimeoutS)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 + if m.SchemaVer != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.SchemaVer)) } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if len(m.TableRegions) > 0 { + for _, msg := range m.TableRegions { + dAtA[i] = 0x32 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if len(m.EncodedPlan) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.EncodedPlan))) + i += copy(dAtA[i:], m.EncodedPlan) + } + return i, nil } func (m *EstablishDisaggTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2476,103 +1669,78 @@ func (m *EstablishDisaggTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishDisaggTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Tables) > 0 { - for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Tables[iNdEx]) - copy(dAtA[i:], m.Tables[iNdEx]) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Tables[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.SnapshotId != nil { - { - size, err := m.SnapshotId.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Error.Size())) + n15, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n15 } if m.StoreId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.StoreId)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) + if m.SnapshotId != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.SnapshotId.Size())) + n16, err := m.SnapshotId.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n16 } - return len(dAtA) - i, nil + if len(m.Tables) > 0 { + for _, b := range m.Tables { + dAtA[i] = 0x2a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } + } + return i, nil } func (m *CancelDisaggTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *CancelDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelDisaggTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *CancelDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Meta.Size())) + n17, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 } - return len(dAtA) - i, nil + return i, nil } func (m *CancelDisaggTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2580,26 +1748,17 @@ func (m *CancelDisaggTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *CancelDisaggTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelDisaggTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *FetchDisaggPagesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2607,66 +1766,54 @@ func (m *FetchDisaggPagesRequest) Marshal() (dAtA []byte, err error) { } func (m *FetchDisaggPagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FetchDisaggPagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.SnapshotId != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.SnapshotId.Size())) + n18, err := m.SnapshotId.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + } + if m.TableId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TableId)) + } + if m.SegmentId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.SegmentId)) } if len(m.PageIds) > 0 { - dAtA17 := make([]byte, len(m.PageIds)*10) - var j16 int + dAtA20 := make([]byte, len(m.PageIds)*10) + var j19 int for _, num := range m.PageIds { for num >= 1<<7 { - dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) + dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j16++ + j19++ } - dAtA17[j16] = uint8(num) - j16++ + dAtA20[j19] = uint8(num) + j19++ } - i -= j16 - copy(dAtA[i:], dAtA17[:j16]) - i = encodeVarintDisaggregated(dAtA, i, uint64(j16)) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(j19)) + i += copy(dAtA[i:], dAtA20[:j19]) } - if m.SegmentId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.SegmentId)) - i-- - dAtA[i] = 0x18 - } - if m.TableId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TableId)) - i-- - dAtA[i] = 0x10 - } - if m.SnapshotId != nil { - { - size, err := m.SnapshotId.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *PagesPacket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2674,91 +1821,66 @@ func (m *PagesPacket) Marshal() (dAtA []byte, err error) { } func (m *PagesPacket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PagesPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Error.Size())) + n21, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - if len(m.Summaries) > 0 { - for iNdEx := len(m.Summaries) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Summaries[iNdEx]) - copy(dAtA[i:], m.Summaries[iNdEx]) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Summaries[iNdEx]))) - i-- - dAtA[i] = 0x22 + if len(m.Pages) > 0 { + for _, b := range m.Pages { + dAtA[i] = 0x12 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } if len(m.Chunks) > 0 { - for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Chunks[iNdEx]) - copy(dAtA[i:], m.Chunks[iNdEx]) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Chunks[iNdEx]))) - i-- + for _, b := range m.Chunks { dAtA[i] = 0x1a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if len(m.Pages) > 0 { - for iNdEx := len(m.Pages) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Pages[iNdEx]) - copy(dAtA[i:], m.Pages[iNdEx]) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Pages[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) + if len(m.Summaries) > 0 { + for _, b := range m.Summaries { + dAtA[i] = 0x22 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func encodeVarintDisaggregated(dAtA []byte, offset int, v uint64) int { - offset -= sovDisaggregated(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *S3LockResult) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { n += m.Error.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *S3LockResult_Success) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Success != nil { @@ -2768,9 +1890,6 @@ func (m *S3LockResult_Success) Size() (n int) { return n } func (m *S3LockResult_NotOwner) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotOwner != nil { @@ -2780,9 +1899,6 @@ func (m *S3LockResult_NotOwner) Size() (n int) { return n } func (m *S3LockResult_Conflict) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Conflict != nil { @@ -2792,49 +1908,28 @@ func (m *S3LockResult_Conflict) Size() (n int) { return n } func (m *Success) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *NotOwner) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Conflict) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TryAddLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.DataFileKey) @@ -2847,76 +1942,46 @@ func (m *TryAddLockRequest) Size() (n int) { if m.LockSeq != 0 { n += 1 + sovDisaggregated(uint64(m.LockSeq)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TryAddLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Result != nil { l = m.Result.Size() n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TryMarkDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.DataFileKey) if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TryMarkDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Result != nil { l = m.Result.Size() n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetDisaggConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DisaggS3Config) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Bucket) @@ -2931,32 +1996,20 @@ func (m *DisaggS3Config) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetDisaggConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.S3Config != nil { l = m.S3Config.Size() n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DisaggTaskMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -2987,16 +2040,10 @@ func (m *DisaggTaskMeta) Size() (n int) { if m.GatherId != 0 { n += 1 + sovDisaggregated(uint64(m.GatherId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DisaggReadError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -3006,31 +2053,19 @@ func (m *DisaggReadError) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EstablishDisaggTaskError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Errors != nil { n += m.Errors.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EstablishDisaggTaskError_ErrorRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrorRegion != nil { @@ -3040,9 +2075,6 @@ func (m *EstablishDisaggTaskError_ErrorRegion) Size() (n int) { return n } func (m *EstablishDisaggTaskError_ErrorLocked) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrorLocked != nil { @@ -3052,9 +2084,6 @@ func (m *EstablishDisaggTaskError_ErrorLocked) Size() (n int) { return n } func (m *EstablishDisaggTaskError_ErrorOther) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrorOther != nil { @@ -3064,9 +2093,6 @@ func (m *EstablishDisaggTaskError_ErrorOther) Size() (n int) { return n } func (m *ErrorRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -3080,16 +2106,10 @@ func (m *ErrorRegion) Size() (n int) { } n += 1 + sovDisaggregated(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ErrorLocked) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -3102,16 +2122,10 @@ func (m *ErrorLocked) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ErrorOther) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -3121,16 +2135,10 @@ func (m *ErrorOther) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EstablishDisaggTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -3163,16 +2171,10 @@ func (m *EstablishDisaggTaskRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EstablishDisaggTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3192,44 +2194,26 @@ func (m *EstablishDisaggTaskResponse) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CancelDisaggTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { l = m.Meta.Size() n += 1 + l + sovDisaggregated(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CancelDisaggTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FetchDisaggPagesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SnapshotId != nil { @@ -3249,16 +2233,10 @@ func (m *FetchDisaggPagesRequest) Size() (n int) { } n += 1 + sovDisaggregated(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PagesPacket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3283,14 +2261,18 @@ func (m *PagesPacket) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovDisaggregated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozDisaggregated(x uint64) (n int) { return sovDisaggregated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3310,7 +2292,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3338,7 +2320,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3347,9 +2329,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3373,7 +2352,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3382,9 +2361,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3408,7 +2384,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3417,9 +2393,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3435,13 +2408,12 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3466,7 +2438,7 @@ func (m *Success) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3486,13 +2458,12 @@ func (m *Success) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3517,7 +2488,7 @@ func (m *NotOwner) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3537,13 +2508,12 @@ func (m *NotOwner) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3568,7 +2538,7 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3596,7 +2566,7 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3606,9 +2576,6 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3620,13 +2587,12 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3651,7 +2617,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3679,7 +2645,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3688,9 +2654,6 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3713,7 +2676,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockStoreId |= uint64(b&0x7F) << shift + m.LockStoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3732,7 +2695,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockSeq |= uint64(b&0x7F) << shift + m.LockSeq |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3743,13 +2706,12 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3774,7 +2736,7 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3802,7 +2764,7 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3811,9 +2773,6 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3830,13 +2789,12 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3861,7 +2819,7 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3889,7 +2847,7 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3898,9 +2856,6 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3915,13 +2870,12 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3946,7 +2900,7 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3974,7 +2928,7 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3983,9 +2937,6 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4002,13 +2953,12 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4033,7 +2983,7 @@ func (m *GetDisaggConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4053,13 +3003,12 @@ func (m *GetDisaggConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4084,7 +3033,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4112,7 +3061,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4122,9 +3071,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4144,7 +3090,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4154,9 +3100,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4176,7 +3119,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4186,9 +3129,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4200,13 +3140,12 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4231,7 +3170,7 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4259,7 +3198,7 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4268,9 +3207,6 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4287,13 +3223,12 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4318,7 +3253,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4346,7 +3281,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4365,7 +3300,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.QueryTs |= uint64(b&0x7F) << shift + m.QueryTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4384,7 +3319,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ServerId |= uint64(b&0x7F) << shift + m.ServerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4403,7 +3338,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LocalQueryId |= uint64(b&0x7F) << shift + m.LocalQueryId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4422,7 +3357,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= int64(b&0x7F) << shift + m.TaskId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4441,7 +3376,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4451,9 +3386,6 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4473,7 +3405,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -4492,7 +3424,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -4511,7 +3443,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GatherId |= int64(b&0x7F) << shift + m.GatherId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4522,13 +3454,12 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4553,7 +3484,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4581,7 +3512,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= int32(b&0x7F) << shift + m.Code |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -4600,7 +3531,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4610,9 +3541,6 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4624,13 +3552,12 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4655,7 +3582,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4683,7 +3610,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4692,9 +3619,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4718,7 +3642,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4727,9 +3651,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4753,7 +3674,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4762,9 +3683,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4780,13 +3698,12 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4811,7 +3728,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4839,7 +3756,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4849,9 +3766,6 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4869,7 +3783,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4886,7 +3800,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4895,23 +3809,9 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } 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.RegionIds) == 0 { - m.RegionIds = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -4923,7 +3823,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4939,13 +3839,12 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4970,7 +3869,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4998,7 +3897,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5008,9 +3907,6 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5030,7 +3926,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5039,9 +3935,6 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5056,13 +3949,12 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5087,7 +3979,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5115,7 +4007,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= int32(b&0x7F) << shift + m.Code |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -5134,7 +4026,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5144,9 +4036,6 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5158,13 +4047,12 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5189,7 +4077,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5217,7 +4105,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5226,9 +4114,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5253,7 +4138,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5263,9 +4148,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5285,7 +4167,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimeoutS |= int64(b&0x7F) << shift + m.TimeoutS |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5304,7 +4186,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5313,9 +4195,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5338,7 +4217,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= int64(b&0x7F) << shift + m.SchemaVer |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5357,7 +4236,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5366,9 +4245,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5391,7 +4267,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5400,9 +4276,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5417,13 +4290,12 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5448,7 +4320,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5476,7 +4348,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5485,9 +4357,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5512,7 +4381,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5531,7 +4400,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5540,9 +4409,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5567,7 +4433,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5576,9 +4442,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5591,13 +4454,12 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5622,7 +4484,7 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5650,7 +4512,7 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5659,9 +4521,6 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5678,13 +4537,12 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5709,7 +4567,7 @@ func (m *CancelDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5729,13 +4587,12 @@ func (m *CancelDisaggTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5760,7 +4617,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5788,7 +4645,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5797,9 +4654,6 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5824,7 +4678,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= int64(b&0x7F) << shift + m.TableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5843,7 +4697,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SegmentId |= uint64(b&0x7F) << shift + m.SegmentId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5860,7 +4714,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5877,7 +4731,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5886,23 +4740,9 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } 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.PageIds) == 0 { - m.PageIds = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -5914,7 +4754,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5930,13 +4770,12 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5961,7 +4800,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5989,7 +4828,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5998,9 +4837,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6025,7 +4861,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6034,9 +4870,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6057,7 +4890,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6066,9 +4899,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6089,7 +4919,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6098,9 +4928,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6113,13 +4940,12 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6132,7 +4958,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { func skipDisaggregated(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -6164,8 +4989,10 @@ func skipDisaggregated(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -6182,34 +5009,132 @@ func skipDisaggregated(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthDisaggregated } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDisaggregated + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDisaggregated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipDisaggregated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthDisaggregated - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthDisaggregated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDisaggregated = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDisaggregated = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDisaggregated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisaggregated = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("disaggregated.proto", fileDescriptorDisaggregated) } + +var fileDescriptorDisaggregated = []byte{ + // 1153 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xce, 0xc6, 0x8e, 0xbd, 0x3e, 0x76, 0x4a, 0x3b, 0x2d, 0xcd, 0x26, 0xa5, 0x21, 0xac, 0x90, + 0x30, 0x37, 0x91, 0x9a, 0x14, 0x90, 0x2a, 0x28, 0xea, 0x2f, 0x59, 0x48, 0x69, 0x98, 0x84, 0x8a, + 0xbb, 0xd5, 0x64, 0xe7, 0xd4, 0x59, 0xed, 0x7a, 0x67, 0x33, 0x33, 0x0e, 0xe4, 0x29, 0xb8, 0xe5, + 0x29, 0xb8, 0x45, 0x82, 0x17, 0xe0, 0x0e, 0x1e, 0x01, 0x15, 0x1e, 0x04, 0xcd, 0xcf, 0xda, 0x89, + 0x1b, 0x7e, 0x2a, 0xb8, 0xf2, 0x7e, 0xe7, 0x6f, 0xce, 0xf9, 0xce, 0x39, 0x33, 0x86, 0xab, 0x3c,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, 0xaa, + 0xd5, 0xad, 0x42, 0xe8, 0x5a, 0x9f, 0xbb, 0xab, 0xa1, 0x45, 0xbb, 0x16, 0x27, 0xdc, 0x0e, 0x0d, + 0x8e, 0xc6, 0x58, 0xe9, 0x19, 0xab, 0x3d, 0x2f, 0x71, 0x9e, 0x35, 0x1b, 0xa1, 0x5d, 0xd6, 0xb6, + 0x5d, 0xd6, 0xae, 0xc1, 0x66, 0x55, 0xbf, 0x0d, 0xa0, 0x6f, 0xb3, 0xdc, 0x63, 0xf6, 0x6d, 0xbb, + 0x7d, 0xbe, 0xb9, 0xeb, 0x17, 0xa6, 0x37, 0xbd, 0x36, 0x9b, 0x9e, 0x5e, 0x83, 0x25, 0x13, 0xd0, + 0x5d, 0x05, 0x03, 0xea, 0x80, 0x69, 0x47, 0x76, 0x34, 0xa9, 0x0a, 0xb3, 0x17, 0xb6, 0x1d, 0x0e, + 0x91, 0x37, 0xa0, 0xa7, 0x26, 0xe3, 0x31, 0x93, 0x39, 0xba, 0x7c, 0x06, 0x74, 0x26, 0xb8, 0x1f, + 0xff, 0xfc, 0x62, 0x3d, 0xf8, 0xf5, 0xc5, 0x7a, 0xf0, 0xdb, 0x8b, 0xf5, 0xe0, 0xbb, 0xdf, 0xd7, + 0x17, 0xe0, 0xb2, 0x90, 0xa3, 0x4d, 0x9d, 0x17, 0x27, 0x9b, 0xc5, 0x89, 0xfd, 0x2b, 0x78, 0xd8, + 0xb1, 0x3f, 0xdb, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xb2, 0x79, 0x0d, 0x59, 0x0a, 0x00, + 0x00, +} diff --git a/pkg/disk_usage/disk_usage.pb.go b/pkg/disk_usage/disk_usage.pb.go index 1e50033b9..b2065fb25 100644 --- a/pkg/disk_usage/disk_usage.pb.go +++ b/pkg/disk_usage/disk_usage.pb.go @@ -1,6 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: disk_usage.proto +/* +Package disk_usage is a generated protocol buffer package. + +It is generated from these files: + + disk_usage.proto + +It has these top-level messages: +*/ package disk_usage import ( @@ -19,7 +28,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DiskUsage int32 @@ -34,7 +43,6 @@ var DiskUsage_name = map[int32]string{ 1: "AlmostFull", 2: "AlreadyFull", } - var DiskUsage_value = map[string]int32{ "Normal": 0, "AlmostFull": 1, @@ -44,18 +52,15 @@ var DiskUsage_value = map[string]int32{ func (x DiskUsage) String() string { return proto.EnumName(DiskUsage_name, int32(x)) } - -func (DiskUsage) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_82acb53abfd87223, []int{0} -} +func (DiskUsage) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiskUsage, []int{0} } func init() { proto.RegisterEnum("disk_usage.DiskUsage", DiskUsage_name, DiskUsage_value) } -func init() { proto.RegisterFile("disk_usage.proto", fileDescriptor_82acb53abfd87223) } +func init() { proto.RegisterFile("disk_usage.proto", fileDescriptorDiskUsage) } -var fileDescriptor_82acb53abfd87223 = []byte{ +var fileDescriptorDiskUsage = []byte{ // 151 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xc9, 0x2c, 0xce, 0x8e, 0x2f, 0x2d, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88, diff --git a/pkg/encryptionpb/encryptionpb.pb.go b/pkg/encryptionpb/encryptionpb.pb.go index 24ab078e2..22646fea6 100644 --- a/pkg/encryptionpb/encryptionpb.pb.go +++ b/pkg/encryptionpb/encryptionpb.pb.go @@ -1,13 +1,32 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: encryptionpb.proto +/* +Package encryptionpb is a generated protocol buffer package. + +It is generated from these files: + + encryptionpb.proto + +It has these top-level messages: + + EncryptionMeta + FileInfo + FileDictionary + DataKey + KeyDictionary + MasterKey + MasterKeyPlaintext + MasterKeyFile + MasterKeyKms + EncryptedContent +*/ package encryptionpb import ( "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" @@ -22,7 +41,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type EncryptionMethod int32 @@ -43,7 +62,6 @@ var EncryptionMethod_name = map[int32]string{ 4: "AES256_CTR", 5: "SM4_CTR", } - var EncryptionMethod_value = map[string]int32{ "UNKNOWN": 0, "PLAINTEXT": 1, @@ -56,54 +74,20 @@ var EncryptionMethod_value = map[string]int32{ func (x EncryptionMethod) String() string { return proto.EnumName(EncryptionMethod_name, int32(x)) } - -func (EncryptionMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{0} -} +func (EncryptionMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{0} } // General encryption metadata for any data type. type EncryptionMeta struct { // ID of the key used to encrypt the data. KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // Initialization vector (IV) of the data. - Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EncryptionMeta) Reset() { *m = EncryptionMeta{} } -func (m *EncryptionMeta) String() string { return proto.CompactTextString(m) } -func (*EncryptionMeta) ProtoMessage() {} -func (*EncryptionMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{0} -} -func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EncryptionMeta.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 *EncryptionMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptionMeta.Merge(m, src) -} -func (m *EncryptionMeta) XXX_Size() int { - return m.Size() -} -func (m *EncryptionMeta) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptionMeta.DiscardUnknown(m) + Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` } -var xxx_messageInfo_EncryptionMeta proto.InternalMessageInfo +func (m *EncryptionMeta) Reset() { *m = EncryptionMeta{} } +func (m *EncryptionMeta) String() string { return proto.CompactTextString(m) } +func (*EncryptionMeta) ProtoMessage() {} +func (*EncryptionMeta) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{0} } func (m *EncryptionMeta) GetKeyId() uint64 { if m != nil { @@ -126,44 +110,13 @@ type FileInfo struct { // Initialization vector (IV) of the file. Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` // Method of encryption algorithm used to encrypted the file. - Method EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileInfo) Reset() { *m = FileInfo{} } -func (m *FileInfo) String() string { return proto.CompactTextString(m) } -func (*FileInfo) ProtoMessage() {} -func (*FileInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{1} -} -func (m *FileInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FileInfo.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 *FileInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileInfo.Merge(m, src) -} -func (m *FileInfo) XXX_Size() int { - return m.Size() -} -func (m *FileInfo) XXX_DiscardUnknown() { - xxx_messageInfo_FileInfo.DiscardUnknown(m) + Method EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` } -var xxx_messageInfo_FileInfo proto.InternalMessageInfo +func (m *FileInfo) Reset() { *m = FileInfo{} } +func (m *FileInfo) String() string { return proto.CompactTextString(m) } +func (*FileInfo) ProtoMessage() {} +func (*FileInfo) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{1} } func (m *FileInfo) GetKeyId() uint64 { if m != nil { @@ -188,44 +141,13 @@ func (m *FileInfo) GetMethod() EncryptionMethod { type FileDictionary struct { // A map of file name to file info. - Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileDictionary) Reset() { *m = FileDictionary{} } -func (m *FileDictionary) String() string { return proto.CompactTextString(m) } -func (*FileDictionary) ProtoMessage() {} -func (*FileDictionary) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{2} -} -func (m *FileDictionary) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FileDictionary.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 *FileDictionary) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileDictionary.Merge(m, src) -} -func (m *FileDictionary) XXX_Size() int { - return m.Size() -} -func (m *FileDictionary) XXX_DiscardUnknown() { - xxx_messageInfo_FileDictionary.DiscardUnknown(m) + Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` } -var xxx_messageInfo_FileDictionary proto.InternalMessageInfo +func (m *FileDictionary) Reset() { *m = FileDictionary{} } +func (m *FileDictionary) String() string { return proto.CompactTextString(m) } +func (*FileDictionary) ProtoMessage() {} +func (*FileDictionary) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{2} } func (m *FileDictionary) GetFiles() map[string]*FileInfo { if m != nil { @@ -243,44 +165,13 @@ type DataKey struct { // Creation time of the key. CreationTime uint64 `protobuf:"varint,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // A flag for the key have ever been exposed. - WasExposed bool `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataKey) Reset() { *m = DataKey{} } -func (m *DataKey) String() string { return proto.CompactTextString(m) } -func (*DataKey) ProtoMessage() {} -func (*DataKey) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{3} -} -func (m *DataKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataKey.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 *DataKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataKey.Merge(m, src) -} -func (m *DataKey) XXX_Size() int { - return m.Size() -} -func (m *DataKey) XXX_DiscardUnknown() { - xxx_messageInfo_DataKey.DiscardUnknown(m) + WasExposed bool `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"` } -var xxx_messageInfo_DataKey proto.InternalMessageInfo +func (m *DataKey) Reset() { *m = DataKey{} } +func (m *DataKey) String() string { return proto.CompactTextString(m) } +func (*DataKey) ProtoMessage() {} +func (*DataKey) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{3} } func (m *DataKey) GetKey() []byte { if m != nil { @@ -312,46 +203,15 @@ func (m *DataKey) GetWasExposed() bool { type KeyDictionary struct { // A map of key ID to dat key. - Keys map[uint64]*DataKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Keys map[uint64]*DataKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` // ID of a key currently in use. - CurrentKeyId uint64 `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyDictionary) Reset() { *m = KeyDictionary{} } -func (m *KeyDictionary) String() string { return proto.CompactTextString(m) } -func (*KeyDictionary) ProtoMessage() {} -func (*KeyDictionary) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{4} -} -func (m *KeyDictionary) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyDictionary.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 *KeyDictionary) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyDictionary.Merge(m, src) -} -func (m *KeyDictionary) XXX_Size() int { - return m.Size() -} -func (m *KeyDictionary) XXX_DiscardUnknown() { - xxx_messageInfo_KeyDictionary.DiscardUnknown(m) + CurrentKeyId uint64 `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"` } -var xxx_messageInfo_KeyDictionary proto.InternalMessageInfo +func (m *KeyDictionary) Reset() { *m = KeyDictionary{} } +func (m *KeyDictionary) String() string { return proto.CompactTextString(m) } +func (*KeyDictionary) ProtoMessage() {} +func (*KeyDictionary) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{4} } func (m *KeyDictionary) GetKeys() map[uint64]*DataKey { if m != nil { @@ -373,44 +233,13 @@ type MasterKey struct { // *MasterKey_Plaintext // *MasterKey_File // *MasterKey_Kms - Backend isMasterKey_Backend `protobuf_oneof:"backend"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKey) Reset() { *m = MasterKey{} } -func (m *MasterKey) String() string { return proto.CompactTextString(m) } -func (*MasterKey) ProtoMessage() {} -func (*MasterKey) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{5} -} -func (m *MasterKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKey.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 *MasterKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKey.Merge(m, src) -} -func (m *MasterKey) XXX_Size() int { - return m.Size() -} -func (m *MasterKey) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKey.DiscardUnknown(m) + Backend isMasterKey_Backend `protobuf_oneof:"backend"` } -var xxx_messageInfo_MasterKey proto.InternalMessageInfo +func (m *MasterKey) Reset() { *m = MasterKey{} } +func (m *MasterKey) String() string { return proto.CompactTextString(m) } +func (*MasterKey) ProtoMessage() {} +func (*MasterKey) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{5} } type isMasterKey_Backend interface { isMasterKey_Backend() @@ -419,13 +248,13 @@ type isMasterKey_Backend interface { } type MasterKey_Plaintext struct { - Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,proto3,oneof" json:"plaintext,omitempty"` + Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,oneof"` } type MasterKey_File struct { - File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,proto3,oneof" json:"file,omitempty"` + File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,oneof"` } type MasterKey_Kms struct { - Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,proto3,oneof" json:"kms,omitempty"` + Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,oneof"` } func (*MasterKey_Plaintext) isMasterKey_Backend() {} @@ -460,97 +289,119 @@ func (m *MasterKey) GetKms() *MasterKeyKms { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*MasterKey) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*MasterKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _MasterKey_OneofMarshaler, _MasterKey_OneofUnmarshaler, _MasterKey_OneofSizer, []interface{}{ (*MasterKey_Plaintext)(nil), (*MasterKey_File)(nil), (*MasterKey_Kms)(nil), } } -// MasterKeyPlaintext indicates content is stored as plaintext. -type MasterKeyPlaintext struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKeyPlaintext) Reset() { *m = MasterKeyPlaintext{} } -func (m *MasterKeyPlaintext) String() string { return proto.CompactTextString(m) } -func (*MasterKeyPlaintext) ProtoMessage() {} -func (*MasterKeyPlaintext) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{6} -} -func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKeyPlaintext.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _MasterKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*MasterKey) + // backend + switch x := m.Backend.(type) { + case *MasterKey_Plaintext: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Plaintext); err != nil { + return err } - return b[:n], nil + case *MasterKey_File: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.File); err != nil { + return err + } + case *MasterKey_Kms: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Kms); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("MasterKey.Backend has unexpected type %T", x) } + return nil } -func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyPlaintext.Merge(m, src) -} -func (m *MasterKeyPlaintext) XXX_Size() int { - return m.Size() + +func _MasterKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*MasterKey) + switch tag { + case 1: // backend.plaintext + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyPlaintext) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_Plaintext{msg} + return true, err + case 2: // backend.file + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyFile) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_File{msg} + return true, err + case 3: // backend.kms + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyKms) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_Kms{msg} + return true, err + default: + return false, nil + } +} + +func _MasterKey_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MasterKey) + // backend + switch x := m.Backend.(type) { + case *MasterKey_Plaintext: + s := proto.Size(x.Plaintext) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *MasterKey_File: + s := proto.Size(x.File) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *MasterKey_Kms: + s := proto.Size(x.Kms) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *MasterKeyPlaintext) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKeyPlaintext.DiscardUnknown(m) + +// MasterKeyPlaintext indicates content is stored as plaintext. +type MasterKeyPlaintext struct { } -var xxx_messageInfo_MasterKeyPlaintext proto.InternalMessageInfo +func (m *MasterKeyPlaintext) Reset() { *m = MasterKeyPlaintext{} } +func (m *MasterKeyPlaintext) String() string { return proto.CompactTextString(m) } +func (*MasterKeyPlaintext) ProtoMessage() {} +func (*MasterKeyPlaintext) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{6} } // MasterKeyFile is a master key backed by a file containing encryption key in human-readable // hex format. type MasterKeyFile struct { // Local file path. - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKeyFile) Reset() { *m = MasterKeyFile{} } -func (m *MasterKeyFile) String() string { return proto.CompactTextString(m) } -func (*MasterKeyFile) ProtoMessage() {} -func (*MasterKeyFile) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{7} -} -func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKeyFile.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 *MasterKeyFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyFile.Merge(m, src) -} -func (m *MasterKeyFile) XXX_Size() int { - return m.Size() -} -func (m *MasterKeyFile) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKeyFile.DiscardUnknown(m) + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -var xxx_messageInfo_MasterKeyFile proto.InternalMessageInfo +func (m *MasterKeyFile) Reset() { *m = MasterKeyFile{} } +func (m *MasterKeyFile) String() string { return proto.CompactTextString(m) } +func (*MasterKeyFile) ProtoMessage() {} +func (*MasterKeyFile) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{7} } func (m *MasterKeyFile) GetPath() string { if m != nil { @@ -569,44 +420,13 @@ type MasterKeyKms struct { // KMS region. Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // KMS endpoint. Normally not needed. - Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKeyKms) Reset() { *m = MasterKeyKms{} } -func (m *MasterKeyKms) String() string { return proto.CompactTextString(m) } -func (*MasterKeyKms) ProtoMessage() {} -func (*MasterKeyKms) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{8} -} -func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKeyKms.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 *MasterKeyKms) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyKms.Merge(m, src) -} -func (m *MasterKeyKms) XXX_Size() int { - return m.Size() -} -func (m *MasterKeyKms) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKeyKms.DiscardUnknown(m) + Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } -var xxx_messageInfo_MasterKeyKms proto.InternalMessageInfo +func (m *MasterKeyKms) Reset() { *m = MasterKeyKms{} } +func (m *MasterKeyKms) String() string { return proto.CompactTextString(m) } +func (*MasterKeyKms) ProtoMessage() {} +func (*MasterKeyKms) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{8} } func (m *MasterKeyKms) GetVendor() string { if m != nil { @@ -640,53 +460,22 @@ type EncryptedContent struct { // Metadata of the encrypted content. // Eg. IV, method and KMS key ID // It is preferred to define new fields for extra metadata than using this metadata map. - Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Encrypted content. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Master key used to encrypt the content. - MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"` + MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey" json:"master_key,omitempty"` // Initilization vector (IV) used. Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` // Encrypted data key generated by KMS and used to actually encrypt data. // Valid only when KMS is used. - CiphertextKey []byte `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EncryptedContent) Reset() { *m = EncryptedContent{} } -func (m *EncryptedContent) String() string { return proto.CompactTextString(m) } -func (*EncryptedContent) ProtoMessage() {} -func (*EncryptedContent) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{9} -} -func (m *EncryptedContent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EncryptedContent.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 *EncryptedContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedContent.Merge(m, src) -} -func (m *EncryptedContent) XXX_Size() int { - return m.Size() -} -func (m *EncryptedContent) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedContent.DiscardUnknown(m) + CiphertextKey []byte `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"` } -var xxx_messageInfo_EncryptedContent proto.InternalMessageInfo +func (m *EncryptedContent) Reset() { *m = EncryptedContent{} } +func (m *EncryptedContent) String() string { return proto.CompactTextString(m) } +func (*EncryptedContent) ProtoMessage() {} +func (*EncryptedContent) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{9} } func (m *EncryptedContent) GetMetadata() map[string][]byte { if m != nil { @@ -724,80 +513,22 @@ func (m *EncryptedContent) GetCiphertextKey() []byte { } func init() { - proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) proto.RegisterType((*EncryptionMeta)(nil), "encryptionpb.EncryptionMeta") proto.RegisterType((*FileInfo)(nil), "encryptionpb.FileInfo") proto.RegisterType((*FileDictionary)(nil), "encryptionpb.FileDictionary") - proto.RegisterMapType((map[string]*FileInfo)(nil), "encryptionpb.FileDictionary.FilesEntry") proto.RegisterType((*DataKey)(nil), "encryptionpb.DataKey") proto.RegisterType((*KeyDictionary)(nil), "encryptionpb.KeyDictionary") - proto.RegisterMapType((map[uint64]*DataKey)(nil), "encryptionpb.KeyDictionary.KeysEntry") proto.RegisterType((*MasterKey)(nil), "encryptionpb.MasterKey") proto.RegisterType((*MasterKeyPlaintext)(nil), "encryptionpb.MasterKeyPlaintext") proto.RegisterType((*MasterKeyFile)(nil), "encryptionpb.MasterKeyFile") proto.RegisterType((*MasterKeyKms)(nil), "encryptionpb.MasterKeyKms") proto.RegisterType((*EncryptedContent)(nil), "encryptionpb.EncryptedContent") - proto.RegisterMapType((map[string][]byte)(nil), "encryptionpb.EncryptedContent.MetadataEntry") -} - -func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptor_a483860494a778a2) } - -var fileDescriptor_a483860494a778a2 = []byte{ - // 768 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, - 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, - 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c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, 0x25, 0xe5, 0xb7, 0x74, 0xa5, 0x34, 0x99, 0x41, 0xbf, - 0x6b, 0x53, 0x2f, 0x50, 0xa3, 0xac, 0xc6, 0x29, 0xc0, 0x2a, 0x88, 0x6b, 0x90, 0x35, 0x49, 0xc0, - 0x7a, 0x97, 0xd4, 0x70, 0x89, 0xb7, 0x21, 0xb7, 0xd0, 0xe6, 0x97, 0x84, 0x35, 0x5f, 0x52, 0x36, - 0x6e, 0x97, 0x0f, 0xcf, 0xad, 0x46, 0xa4, 0xff, 0x84, 0x3d, 0x24, 0xbf, 0x42, 0x50, 0x38, 0xd6, - 0xa8, 0xd6, 0x27, 0xa9, 0x7a, 0xe5, 0xa8, 0xde, 0xea, 0xe4, 0xc2, 0xf7, 0x9c, 0x1c, 0x6f, 0x42, - 0x65, 0xe2, 0x11, 0x2d, 0xdc, 0x19, 0x53, 0xc3, 0x22, 0x4c, 0x38, 0x51, 0x2d, 0x2f, 0x83, 0x23, - 0xc3, 0x22, 0xf8, 0x67, 0x28, 0x5d, 0x69, 0xfe, 0x98, 0x5c, 0xbb, 0x8e, 0x4f, 0xf4, 0xba, 0xd8, - 0x42, 0xed, 0xa2, 0x0a, 0x57, 0x9a, 0xdf, 0x8d, 0x22, 0xf2, 0x7b, 0x04, 0x95, 0x3e, 0x09, 0x12, - 0xf2, 0xed, 0x83, 0x68, 0x92, 0x60, 0xa9, 0xde, 0x56, 0xba, 0x9b, 0x14, 0x35, 0x44, 0x5c, 0x3b, - 0x96, 0x82, 0x7f, 0x81, 0xea, 0xe4, 0xd2, 0xf3, 0x88, 0x4d, 0xc7, 0xfc, 0xce, 0x05, 0xde, 0x53, - 0x14, 0xed, 0x87, 0x57, 0xdf, 0x18, 0x82, 0x14, 0x27, 0x26, 0xf5, 0x10, 0x23, 0x3d, 0xfe, 0x48, - 0xeb, 0xbb, 0x9e, 0x6e, 0x80, 0xeb, 0x98, 0x94, 0xf7, 0x1d, 0x02, 0x69, 0xa0, 0xf9, 0x94, 0x78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, 0xde, 0x05, 0xb0, 0xd8, 0x59, 0x43, 0x67, 0x71, 0xa1, 0x7f, - 0xbc, 0x47, 0x68, 0x55, 0xb2, 0x62, 0x3b, 0x44, 0x73, 0x46, 0x8c, 0xe7, 0xcc, 0x16, 0x54, 0x27, - 0x86, 0x3b, 0x23, 0x5e, 0x28, 0x33, 0xab, 0x95, 0x63, 0x7b, 0x95, 0x55, 0xb4, 0x4f, 0x82, 0xc6, - 0xff, 0x50, 0x49, 0xf5, 0x78, 0xc7, 0x1c, 0x58, 0x4b, 0xfa, 0xb4, 0x9c, 0x30, 0xe4, 0xef, 0x66, - 0xac, 0x51, 0xfc, 0x6a, 0x71, 0x09, 0x0a, 0x4f, 0x87, 0xfd, 0xe1, 0x93, 0x67, 0xc3, 0x5a, 0x06, - 0x57, 0x40, 0x3a, 0x7d, 0x7c, 0x70, 0x32, 0x1c, 0x75, 0x9f, 0x8f, 0x6a, 0x08, 0x57, 0x01, 0x0e, - 0xba, 0x67, 0x3b, 0xca, 0xde, 0xf8, 0x68, 0xa4, 0xd6, 0x84, 0x25, 0xde, 0x57, 0x18, 0xce, 0x72, - 0xac, 0xfc, 0xb3, 0xcb, 0xb0, 0x18, 0xd6, 0x3a, 0x1b, 0xfc, 0xcd, 0x40, 0xee, 0xf0, 0xd7, 0x4f, - 0x6f, 0x8b, 0xe8, 0xc3, 0x4d, 0x13, 0x7d, 0xbc, 0x69, 0xa2, 0xcf, 0x37, 0x4d, 0xf4, 0xf2, 0x4b, - 0x33, 0x03, 0x35, 0xc7, 0x9b, 0x76, 0xa8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, - 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, + proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) } - func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -805,38 +536,28 @@ func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) { } func (m *EncryptionMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EncryptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.KeyId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) } if len(m.Iv) > 0 { - i -= len(m.Iv) - copy(dAtA[i:], m.Iv) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) + i += copy(dAtA[i:], m.Iv) } - if m.KeyId != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *FileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -844,43 +565,33 @@ func (m *FileInfo) Marshal() (dAtA []byte, err error) { } func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Method != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) - i-- - dAtA[i] = 0x18 + if m.KeyId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) } if len(m.Iv) > 0 { - i -= len(m.Iv) - copy(dAtA[i:], m.Iv) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) + i += copy(dAtA[i:], m.Iv) } - if m.KeyId != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) - i-- - dAtA[i] = 0x8 + if m.Method != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) } - return len(dAtA) - i, nil + return i, nil } func (m *FileDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -888,52 +599,45 @@ func (m *FileDictionary) Marshal() (dAtA []byte, err error) { } func (m *FileDictionary) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Files) > 0 { - for k := range m.Files { + for k, _ := range m.Files { + dAtA[i] = 0xa + i++ v := m.Files[k] - baseI := i + msgSize := 0 if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + msgSize = v.Size() + msgSize += 1 + sovEncryptionpb(uint64(msgSize)) } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) - i-- + mapSize := 1 + len(k) + sovEncryptionpb(uint64(len(k))) + msgSize + i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(v.Size())) + n1, err := v.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + } } } - return len(dAtA) - i, nil + return i, nil } func (m *DataKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -941,53 +645,43 @@ func (m *DataKey) Marshal() (dAtA []byte, err error) { } func (m *DataKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if m.Method != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) + } + if m.CreationTime != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CreationTime)) } if m.WasExposed { - i-- + dAtA[i] = 0x20 + i++ if m.WasExposed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.CreationTime != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CreationTime)) - i-- - dAtA[i] = 0x18 - } - if m.Method != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) - i-- - dAtA[i] = 0x10 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *KeyDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -995,55 +689,49 @@ func (m *KeyDictionary) Marshal() (dAtA []byte, err error) { } func (m *KeyDictionary) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CurrentKeyId != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CurrentKeyId)) - i-- - dAtA[i] = 0x10 - } if len(m.Keys) > 0 { - for k := range m.Keys { + for k, _ := range m.Keys { + dAtA[i] = 0xa + i++ v := m.Keys[k] - baseI := i + msgSize := 0 if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + msgSize = v.Size() + msgSize += 1 + sovEncryptionpb(uint64(msgSize)) } - i = encodeVarintEncryptionpb(dAtA, i, uint64(k)) - i-- + mapSize := 1 + sovEncryptionpb(uint64(k)) + msgSize + i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) dAtA[i] = 0x8 - i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(k)) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(v.Size())) + n2, err := v.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } } } - return len(dAtA) - i, nil + if m.CurrentKeyId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CurrentKeyId)) + } + return i, nil } func (m *MasterKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1051,98 +739,66 @@ func (m *MasterKey) Marshal() (dAtA []byte, err error) { } func (m *MasterKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Backend != nil { - { - size := m.Backend.Size() - i -= size - if _, err := m.Backend.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn3, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn3 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Plaintext != nil { - { - size, err := m.Plaintext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Plaintext.Size())) + n4, err := m.Plaintext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.File != nil { - { - size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.File.Size())) + n5, err := m.File.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Kms != nil { - { - size, err := m.Kms.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Kms.Size())) + n6, err := m.Kms.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1150,26 +806,17 @@ func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyPlaintext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1177,33 +824,23 @@ func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Path))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1211,54 +848,41 @@ func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Vendor) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Vendor))) + i += copy(dAtA[i:], m.Vendor) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0x22 + if len(m.KeyId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) + i += copy(dAtA[i:], m.KeyId) } if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Vendor) > 0 { - i -= len(m.Vendor) - copy(dAtA[i:], m.Vendor) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Vendor))) - i-- - dAtA[i] = 0xa + if len(m.Endpoint) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - return len(dAtA) - i, nil + return i, nil } func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1266,91 +890,74 @@ func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { } func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CiphertextKey) > 0 { - i -= len(m.CiphertextKey) - copy(dAtA[i:], m.CiphertextKey) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) - i-- - dAtA[i] = 0x2a - } - if len(m.Iv) > 0 { - i -= len(m.Iv) - copy(dAtA[i:], m.Iv) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i-- - dAtA[i] = 0x22 - } - if m.MasterKey != nil { - { - size, err := m.MasterKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Metadata) > 0 { + for k, _ := range m.Metadata { + dAtA[i] = 0xa + i++ + v := m.Metadata[k] + byteSize := 0 + if len(v) > 0 { + byteSize = 1 + len(v) + sovEncryptionpb(uint64(len(v))) + } + mapSize := 1 + len(k) + sovEncryptionpb(uint64(len(k))) + byteSize + i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if len(v) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x1a } if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Content))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) } - if len(m.Metadata) > 0 { - for k := range m.Metadata { - v := m.Metadata[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.MasterKey != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.MasterKey.Size())) + n7, err := m.MasterKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n7 + } + if len(m.Iv) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) + i += copy(dAtA[i:], m.Iv) } - return len(dAtA) - i, nil + if len(m.CiphertextKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) + i += copy(dAtA[i:], m.CiphertextKey) + } + return i, nil } func encodeVarintEncryptionpb(dAtA []byte, offset int, v uint64) int { - offset -= sovEncryptionpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *EncryptionMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyId != 0 { @@ -1360,16 +967,10 @@ func (m *EncryptionMeta) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FileInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyId != 0 { @@ -1382,16 +983,10 @@ func (m *FileInfo) Size() (n int) { if m.Method != 0 { n += 1 + sovEncryptionpb(uint64(m.Method)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FileDictionary) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Files) > 0 { @@ -1407,16 +1002,10 @@ func (m *FileDictionary) Size() (n int) { n += mapEntrySize + 1 + sovEncryptionpb(uint64(mapEntrySize)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DataKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1432,16 +1021,10 @@ func (m *DataKey) Size() (n int) { if m.WasExposed { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyDictionary) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Keys) > 0 { @@ -1460,31 +1043,19 @@ func (m *KeyDictionary) Size() (n int) { if m.CurrentKeyId != 0 { n += 1 + sovEncryptionpb(uint64(m.CurrentKeyId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MasterKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Backend != nil { n += m.Backend.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MasterKey_Plaintext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Plaintext != nil { @@ -1494,9 +1065,6 @@ func (m *MasterKey_Plaintext) Size() (n int) { return n } func (m *MasterKey_File) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.File != nil { @@ -1506,9 +1074,6 @@ func (m *MasterKey_File) Size() (n int) { return n } func (m *MasterKey_Kms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Kms != nil { @@ -1518,37 +1083,22 @@ func (m *MasterKey_Kms) Size() (n int) { return n } func (m *MasterKeyPlaintext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MasterKeyFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MasterKeyKms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Vendor) @@ -1567,16 +1117,10 @@ func (m *MasterKeyKms) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EncryptedContent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Metadata) > 0 { @@ -1607,14 +1151,18 @@ func (m *EncryptedContent) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovEncryptionpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozEncryptionpb(x uint64) (n int) { return sovEncryptionpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1634,7 +1182,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1662,7 +1210,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= uint64(b&0x7F) << shift + m.KeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1681,7 +1229,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1690,9 +1238,6 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1707,13 +1252,12 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1738,7 +1282,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1766,7 +1310,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= uint64(b&0x7F) << shift + m.KeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1785,7 +1329,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1794,9 +1338,6 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1819,7 +1360,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= EncryptionMethod(b&0x7F) << shift + m.Method |= (EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -1830,13 +1371,12 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1861,7 +1401,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1889,7 +1429,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1898,9 +1438,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1921,7 +1458,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1938,7 +1475,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1948,9 +1485,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1967,7 +1501,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1976,7 +1510,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -1993,7 +1527,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2010,13 +1544,12 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2041,7 +1574,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2069,7 +1602,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2078,9 +1611,6 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2103,7 +1633,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= EncryptionMethod(b&0x7F) << shift + m.Method |= (EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -2122,7 +1652,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreationTime |= uint64(b&0x7F) << shift + m.CreationTime |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2141,7 +1671,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2153,13 +1683,12 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2184,7 +1713,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2212,7 +1741,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2221,9 +1750,6 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2244,7 +1770,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2260,7 +1786,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapkey |= uint64(b&0x7F) << shift + mapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2276,7 +1802,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2285,7 +1811,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -2302,7 +1828,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2327,7 +1853,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentKeyId |= uint64(b&0x7F) << shift + m.CurrentKeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2338,13 +1864,12 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2369,7 +1894,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2397,7 +1922,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2406,9 +1931,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2432,7 +1954,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2441,9 +1963,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2467,7 +1986,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2476,9 +1995,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2494,13 +2010,12 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2525,7 +2040,7 @@ func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2545,13 +2060,12 @@ func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2576,7 +2090,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2604,7 +2118,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2614,9 +2128,6 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2628,13 +2139,12 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2659,7 +2169,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2687,7 +2197,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2697,9 +2207,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2719,7 +2226,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2729,9 +2236,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2751,7 +2255,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2761,9 +2265,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2783,7 +2284,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2793,9 +2294,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2807,13 +2305,12 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2838,7 +2335,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2866,7 +2363,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2875,9 +2372,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2898,7 +2392,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2915,7 +2409,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2925,9 +2419,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2944,7 +2435,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift + mapbyteLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2954,9 +2445,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -2969,7 +2457,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2994,7 +2482,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3003,9 +2491,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3028,7 +2513,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3037,9 +2522,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3064,7 +2546,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3073,9 +2555,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3098,7 +2577,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3107,9 +2586,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3124,13 +2600,12 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3143,7 +2618,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { func skipEncryptionpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3175,8 +2649,10 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3193,34 +2669,107 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthEncryptionpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEncryptionpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEncryptionpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipEncryptionpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthEncryptionpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptorEncryptionpb) } + +var fileDescriptorEncryptionpb = []byte{ + // 768 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, + 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, + 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c, + 0x5a, 0x41, 0xb2, 0x13, 0x68, 0x71, 0x2c, 0x11, 0x14, 0x1f, 0x21, 0xc7, 0xb2, 0xf9, 0x27, 0xc9, + 0x32, 0x59, 0xe5, 0x1f, 0xb2, 0xc9, 0x32, 0xcb, 0x2c, 0xb3, 0x0c, 0x9c, 0x1f, 0x09, 0x38, 0x1c, + 0x51, 0x24, 0x6c, 0x03, 0xc9, 0x8a, 0x73, 0xee, 0x9c, 0x7b, 0x79, 0xe7, 0xcc, 0x99, 0x0b, 0x98, + 0xd8, 0x13, 0x2f, 0x70, 0xa9, 0xe1, 0xd8, 0xee, 0x79, 0xc7, 0xf5, 0x1c, 0xea, 0xe0, 0x72, 0x32, + 0xd6, 0x58, 0x9b, 0x3a, 0x53, 0x87, 0x6d, 0xfc, 0x19, 0xae, 0x22, 0x4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0xc9, 0x9b, 0x50, 0x49, 0xfd, + 0x09, 0x63, 0x10, 0x5d, 0x8d, 0xce, 0xb8, 0x11, 0xd9, 0x5a, 0x7e, 0x01, 0xe5, 0x64, 0x71, 0xbc, + 0x01, 0xf9, 0x05, 0xb1, 0x75, 0xc7, 0xe3, 0x2c, 0x8e, 0x12, 0x4f, 0x50, 0x60, 0x71, 0xfe, 0x04, + 0x37, 0x20, 0xef, 0x91, 0xa9, 0xe1, 0xd8, 0xac, 0x6f, 0x49, 0xe5, 0x08, 0x37, 0xa0, 0x48, 0x6c, + 0xdd, 0x75, 0x0c, 0x9b, 0x32, 0xc3, 0x48, 0x6a, 0x8c, 0xe5, 0x37, 0x02, 0xd4, 0xb8, 0x23, 0x89, + 0x7e, 0xe4, 0xd8, 0x94, 0xd8, 0x14, 0xf7, 0xa0, 0x68, 0x11, 0xaa, 0xe9, 0x1a, 0xd5, 0xb8, 0x6b, + 0xb6, 0xef, 0xf4, 0x70, 0x9c, 0xd1, 0x19, 0x70, 0x7a, 0x64, 0x9e, 0x38, 0x1b, 0xd7, 0xa1, 0x30, + 0x89, 0x28, 0x7c, 0x34, 0x2c, 0x21, 0xde, 0x05, 0xb0, 0xd8, 0x59, 0x43, 0x67, 0x71, 0xa1, 0x7f, + 0xbc, 0x47, 0x68, 0x55, 0xb2, 0x62, 0x3b, 0x44, 0x73, 0x46, 0x8c, 0xe7, 0xcc, 0x16, 0x54, 0x27, + 0x86, 0x3b, 0x23, 0x5e, 0x28, 0x33, 0xab, 0x95, 0x63, 0x7b, 0x95, 0x55, 0xb4, 0x4f, 0x82, 0xc6, + 0xff, 0x50, 0x49, 0xf5, 0x78, 0xc7, 0x1c, 0x58, 0x4b, 0xfa, 0xb4, 0x9c, 0x30, 0xe4, 0xef, 0x66, + 0xac, 0x51, 0xfc, 0x6a, 0x71, 0x09, 0x0a, 0x4f, 0x87, 0xfd, 0xe1, 0x93, 0x67, 0xc3, 0x5a, 0x06, + 0x57, 0x40, 0x3a, 0x7d, 0x7c, 0x70, 0x32, 0x1c, 0x75, 0x9f, 0x8f, 0x6a, 0x08, 0x57, 0x01, 0x0e, + 0xba, 0x67, 0x3b, 0xca, 0xde, 0xf8, 0x68, 0xa4, 0xd6, 0x84, 0x25, 0xde, 0x57, 0x18, 0xce, 0x72, + 0xac, 0xfc, 0xb3, 0xcb, 0xb0, 0x18, 0xd6, 0x3a, 0x1b, 0xfc, 0xcd, 0x40, 0xee, 0xf0, 0xd7, 0x4f, + 0x6f, 0x8b, 0xe8, 0xc3, 0x4d, 0x13, 0x7d, 0xbc, 0x69, 0xa2, 0xcf, 0x37, 0x4d, 0xf4, 0xf2, 0x4b, + 0x33, 0x03, 0x35, 0xc7, 0x9b, 0x76, 0xa8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, + 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, +} diff --git a/pkg/enginepb/enginepb.pb.go b/pkg/enginepb/enginepb.pb.go index 5dd72599b..2678883d0 100644 --- a/pkg/enginepb/enginepb.pb.go +++ b/pkg/enginepb/enginepb.pb.go @@ -1,22 +1,43 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: enginepb.proto +/* +Package enginepb is a generated protocol buffer package. + +It is generated from these files: + + enginepb.proto + +It has these top-level messages: + + CommandRequestHeader + CommandRequest + CommandRequestBatch + CommandResponseHeader + CommandResponse + CommandResponseBatch + SnapshotState + SnapshotData + SnapshotRequest + SnapshotDone +*/ package enginepb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" metapb "github.com/pingcap/kvproto/pkg/metapb" + raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -28,7 +49,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type CommandRequestHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` @@ -39,44 +60,13 @@ type CommandRequestHeader struct { // Destroy the region. Destroy bool `protobuf:"varint,5,opt,name=destroy,proto3" json:"destroy,omitempty"` // Additional information for the request. - Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandRequestHeader) Reset() { *m = CommandRequestHeader{} } -func (m *CommandRequestHeader) String() string { return proto.CompactTextString(m) } -func (*CommandRequestHeader) ProtoMessage() {} -func (*CommandRequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{0} -} -func (m *CommandRequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandRequestHeader.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 *CommandRequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandRequestHeader.Merge(m, src) -} -func (m *CommandRequestHeader) XXX_Size() int { - return m.Size() -} -func (m *CommandRequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_CommandRequestHeader.DiscardUnknown(m) + Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` } -var xxx_messageInfo_CommandRequestHeader proto.InternalMessageInfo +func (m *CommandRequestHeader) Reset() { *m = CommandRequestHeader{} } +func (m *CommandRequestHeader) String() string { return proto.CompactTextString(m) } +func (*CommandRequestHeader) ProtoMessage() {} +func (*CommandRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{0} } func (m *CommandRequestHeader) GetRegionId() uint64 { if m != nil { @@ -121,50 +111,19 @@ func (m *CommandRequestHeader) GetContext() []byte { } type CommandRequest struct { - Header *CommandRequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *CommandRequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // kv put / delete - Requests []*raft_cmdpb.Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + Requests []*raft_cmdpb.Request `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"` // region metadata manipulation command. - AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` + AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` // region metadata manipulation result. - AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,4,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandRequest) Reset() { *m = CommandRequest{} } -func (m *CommandRequest) String() string { return proto.CompactTextString(m) } -func (*CommandRequest) ProtoMessage() {} -func (*CommandRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{1} -} -func (m *CommandRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandRequest.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 *CommandRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandRequest.Merge(m, src) -} -func (m *CommandRequest) XXX_Size() int { - return m.Size() -} -func (m *CommandRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommandRequest.DiscardUnknown(m) + AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,4,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` } -var xxx_messageInfo_CommandRequest proto.InternalMessageInfo +func (m *CommandRequest) Reset() { *m = CommandRequest{} } +func (m *CommandRequest) String() string { return proto.CompactTextString(m) } +func (*CommandRequest) ProtoMessage() {} +func (*CommandRequest) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{1} } func (m *CommandRequest) GetHeader() *CommandRequestHeader { if m != nil { @@ -195,44 +154,13 @@ func (m *CommandRequest) GetAdminResponse() *raft_cmdpb.AdminResponse { } type CommandRequestBatch struct { - Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandRequestBatch) Reset() { *m = CommandRequestBatch{} } -func (m *CommandRequestBatch) String() string { return proto.CompactTextString(m) } -func (*CommandRequestBatch) ProtoMessage() {} -func (*CommandRequestBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{2} -} -func (m *CommandRequestBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandRequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandRequestBatch.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 *CommandRequestBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandRequestBatch.Merge(m, src) -} -func (m *CommandRequestBatch) XXX_Size() int { - return m.Size() -} -func (m *CommandRequestBatch) XXX_DiscardUnknown() { - xxx_messageInfo_CommandRequestBatch.DiscardUnknown(m) + Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` } -var xxx_messageInfo_CommandRequestBatch proto.InternalMessageInfo +func (m *CommandRequestBatch) Reset() { *m = CommandRequestBatch{} } +func (m *CommandRequestBatch) String() string { return proto.CompactTextString(m) } +func (*CommandRequestBatch) ProtoMessage() {} +func (*CommandRequestBatch) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{2} } func (m *CommandRequestBatch) GetRequests() []*CommandRequest { if m != nil { @@ -244,44 +172,13 @@ func (m *CommandRequestBatch) GetRequests() []*CommandRequest { type CommandResponseHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Region is destroyed. - Destroyed bool `protobuf:"varint,2,opt,name=destroyed,proto3" json:"destroyed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandResponseHeader) Reset() { *m = CommandResponseHeader{} } -func (m *CommandResponseHeader) String() string { return proto.CompactTextString(m) } -func (*CommandResponseHeader) ProtoMessage() {} -func (*CommandResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{3} -} -func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandResponseHeader.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 *CommandResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandResponseHeader.Merge(m, src) -} -func (m *CommandResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *CommandResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_CommandResponseHeader.DiscardUnknown(m) + Destroyed bool `protobuf:"varint,2,opt,name=destroyed,proto3" json:"destroyed,omitempty"` } -var xxx_messageInfo_CommandResponseHeader proto.InternalMessageInfo +func (m *CommandResponseHeader) Reset() { *m = CommandResponseHeader{} } +func (m *CommandResponseHeader) String() string { return proto.CompactTextString(m) } +func (*CommandResponseHeader) ProtoMessage() {} +func (*CommandResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{3} } func (m *CommandResponseHeader) GetRegionId() uint64 { if m != nil { @@ -298,46 +195,15 @@ func (m *CommandResponseHeader) GetDestroyed() bool { } type CommandResponse struct { - Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` - AppliedTerm uint64 `protobuf:"varint,3,opt,name=applied_term,json=appliedTerm,proto3" json:"applied_term,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandResponse) Reset() { *m = CommandResponse{} } -func (m *CommandResponse) String() string { return proto.CompactTextString(m) } -func (*CommandResponse) ProtoMessage() {} -func (*CommandResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{4} -} -func (m *CommandResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandResponse.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 *CommandResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandResponse.Merge(m, src) -} -func (m *CommandResponse) XXX_Size() int { - return m.Size() -} -func (m *CommandResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommandResponse.DiscardUnknown(m) + Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` + AppliedTerm uint64 `protobuf:"varint,3,opt,name=applied_term,json=appliedTerm,proto3" json:"applied_term,omitempty"` } -var xxx_messageInfo_CommandResponse proto.InternalMessageInfo +func (m *CommandResponse) Reset() { *m = CommandResponse{} } +func (m *CommandResponse) String() string { return proto.CompactTextString(m) } +func (*CommandResponse) ProtoMessage() {} +func (*CommandResponse) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{4} } func (m *CommandResponse) GetHeader() *CommandResponseHeader { if m != nil { @@ -361,44 +227,13 @@ func (m *CommandResponse) GetAppliedTerm() uint64 { } type CommandResponseBatch struct { - Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommandResponseBatch) Reset() { *m = CommandResponseBatch{} } -func (m *CommandResponseBatch) String() string { return proto.CompactTextString(m) } -func (*CommandResponseBatch) ProtoMessage() {} -func (*CommandResponseBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{5} -} -func (m *CommandResponseBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandResponseBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandResponseBatch.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 *CommandResponseBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandResponseBatch.Merge(m, src) -} -func (m *CommandResponseBatch) XXX_Size() int { - return m.Size() -} -func (m *CommandResponseBatch) XXX_DiscardUnknown() { - xxx_messageInfo_CommandResponseBatch.DiscardUnknown(m) + Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"` } -var xxx_messageInfo_CommandResponseBatch proto.InternalMessageInfo +func (m *CommandResponseBatch) Reset() { *m = CommandResponseBatch{} } +func (m *CommandResponseBatch) String() string { return proto.CompactTextString(m) } +func (*CommandResponseBatch) ProtoMessage() {} +func (*CommandResponseBatch) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{5} } func (m *CommandResponseBatch) GetResponses() []*CommandResponse { if m != nil { @@ -408,46 +243,15 @@ func (m *CommandResponseBatch) GetResponses() []*CommandResponse { } type SnapshotState struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` - ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotState) Reset() { *m = SnapshotState{} } -func (m *SnapshotState) String() string { return proto.CompactTextString(m) } -func (*SnapshotState) ProtoMessage() {} -func (*SnapshotState) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{6} -} -func (m *SnapshotState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotState.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 *SnapshotState) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotState.Merge(m, src) -} -func (m *SnapshotState) XXX_Size() int { - return m.Size() -} -func (m *SnapshotState) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotState.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` + ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` } -var xxx_messageInfo_SnapshotState proto.InternalMessageInfo +func (m *SnapshotState) Reset() { *m = SnapshotState{} } +func (m *SnapshotState) String() string { return proto.CompactTextString(m) } +func (*SnapshotState) ProtoMessage() {} +func (*SnapshotState) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{6} } func (m *SnapshotState) GetRegion() *metapb.Region { if m != nil { @@ -471,46 +275,15 @@ func (m *SnapshotState) GetApplyState() *raft_serverpb.RaftApplyState { } type SnapshotData struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Checksum uint32 `protobuf:"varint,2,opt,name=checksum,proto3" json:"checksum,omitempty"` - Data []*raft_serverpb.KeyValue `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotData) Reset() { *m = SnapshotData{} } -func (m *SnapshotData) String() string { return proto.CompactTextString(m) } -func (*SnapshotData) ProtoMessage() {} -func (*SnapshotData) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{7} -} -func (m *SnapshotData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotData.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 *SnapshotData) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotData.Merge(m, src) -} -func (m *SnapshotData) XXX_Size() int { - return m.Size() -} -func (m *SnapshotData) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotData.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Checksum uint32 `protobuf:"varint,2,opt,name=checksum,proto3" json:"checksum,omitempty"` + Data []*raft_serverpb.KeyValue `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"` } -var xxx_messageInfo_SnapshotData proto.InternalMessageInfo +func (m *SnapshotData) Reset() { *m = SnapshotData{} } +func (m *SnapshotData) String() string { return proto.CompactTextString(m) } +func (*SnapshotData) ProtoMessage() {} +func (*SnapshotData) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{7} } func (m *SnapshotData) GetCf() string { if m != nil { @@ -537,44 +310,13 @@ type SnapshotRequest struct { // Types that are valid to be assigned to Chunk: // *SnapshotRequest_State // *SnapshotRequest_Data - Chunk isSnapshotRequest_Chunk `protobuf_oneof:"chunk"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } -func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*SnapshotRequest) ProtoMessage() {} -func (*SnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{8} -} -func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotRequest.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 *SnapshotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotRequest.Merge(m, src) -} -func (m *SnapshotRequest) XXX_Size() int { - return m.Size() -} -func (m *SnapshotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotRequest.DiscardUnknown(m) + Chunk isSnapshotRequest_Chunk `protobuf_oneof:"chunk"` } -var xxx_messageInfo_SnapshotRequest proto.InternalMessageInfo +func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } +func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*SnapshotRequest) ProtoMessage() {} +func (*SnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{8} } type isSnapshotRequest_Chunk interface { isSnapshotRequest_Chunk() @@ -583,10 +325,10 @@ type isSnapshotRequest_Chunk interface { } type SnapshotRequest_State struct { - State *SnapshotState `protobuf:"bytes,1,opt,name=state,proto3,oneof" json:"state,omitempty"` + State *SnapshotState `protobuf:"bytes,1,opt,name=state,oneof"` } type SnapshotRequest_Data struct { - Data *SnapshotData `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` + Data *SnapshotData `protobuf:"bytes,2,opt,name=data,oneof"` } func (*SnapshotRequest_State) isSnapshotRequest_Chunk() {} @@ -613,52 +355,87 @@ func (m *SnapshotRequest) GetData() *SnapshotData { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*SnapshotRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*SnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _SnapshotRequest_OneofMarshaler, _SnapshotRequest_OneofUnmarshaler, _SnapshotRequest_OneofSizer, []interface{}{ (*SnapshotRequest_State)(nil), (*SnapshotRequest_Data)(nil), } } -type SnapshotDone struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotDone) Reset() { *m = SnapshotDone{} } -func (m *SnapshotDone) String() string { return proto.CompactTextString(m) } -func (*SnapshotDone) ProtoMessage() {} -func (*SnapshotDone) Descriptor() ([]byte, []int) { - return fileDescriptor_33e98a233b10c1b5, []int{9} -} -func (m *SnapshotDone) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotDone.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _SnapshotRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*SnapshotRequest) + // chunk + switch x := m.Chunk.(type) { + case *SnapshotRequest_State: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.State); err != nil { + return err } - return b[:n], nil + case *SnapshotRequest_Data: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Data); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("SnapshotRequest.Chunk has unexpected type %T", x) } + return nil } -func (m *SnapshotDone) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotDone.Merge(m, src) -} -func (m *SnapshotDone) XXX_Size() int { - return m.Size() + +func _SnapshotRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*SnapshotRequest) + switch tag { + case 1: // chunk.state + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SnapshotState) + err := b.DecodeMessage(msg) + m.Chunk = &SnapshotRequest_State{msg} + return true, err + case 2: // chunk.data + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SnapshotData) + err := b.DecodeMessage(msg) + m.Chunk = &SnapshotRequest_Data{msg} + return true, err + default: + return false, nil + } +} + +func _SnapshotRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*SnapshotRequest) + // chunk + switch x := m.Chunk.(type) { + case *SnapshotRequest_State: + s := proto.Size(x.State) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *SnapshotRequest_Data: + s := proto.Size(x.Data) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *SnapshotDone) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotDone.DiscardUnknown(m) + +type SnapshotDone struct { } -var xxx_messageInfo_SnapshotDone proto.InternalMessageInfo +func (m *SnapshotDone) Reset() { *m = SnapshotDone{} } +func (m *SnapshotDone) String() string { return proto.CompactTextString(m) } +func (*SnapshotDone) ProtoMessage() {} +func (*SnapshotDone) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{9} } func init() { proto.RegisterType((*CommandRequestHeader)(nil), "enginepb.CommandRequestHeader") @@ -673,55 +450,6 @@ func init() { proto.RegisterType((*SnapshotDone)(nil), "enginepb.SnapshotDone") } -func init() { proto.RegisterFile("enginepb.proto", fileDescriptor_33e98a233b10c1b5) } - -var fileDescriptor_33e98a233b10c1b5 = []byte{ - // 681 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xcd, 0xe4, 0xaf, 0xe9, 0x75, 0x92, 0xf6, 0x9b, 0xf6, 0xa3, 0x4e, 0xa0, 0x21, 0x78, 0x81, - 0x22, 0x81, 0x52, 0x14, 0x10, 0x5d, 0x81, 0x68, 0xf9, 0x51, 0x51, 0x91, 0x40, 0x53, 0x84, 0xd8, - 0x45, 0x53, 0xfb, 0xe6, 0x47, 0xad, 0x7f, 0xb0, 0x27, 0xa8, 0x79, 0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6f, 0x4f, 0x2d, - 0x7a, 0x77, 0xd5, 0x87, 0x22, 0xdb, 0xcd, 0xd6, 0xca, 0xa5, 0xcb, 0xbe, 0x95, 0xeb, 0x90, 0x7b, - 0x84, 0xbe, 0x80, 0x9a, 0x8a, 0x5c, 0x4f, 0xa6, 0x8d, 0xab, 0x72, 0xf5, 0xb5, 0xcd, 0x65, 0x4e, - 0x7c, 0x0f, 0xe3, 0x9b, 0x0e, 0x37, 0xbf, 0x5f, 0xb6, 0xc8, 0x8f, 0xcb, 0x16, 0xf9, 0x79, 0xd9, - 0x22, 0x9f, 0x7e, 0xb5, 0x72, 0xa7, 0x65, 0xf9, 0x1f, 0x7d, 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x9d, 0xc9, 0x50, 0xee, 0xf4, 0x05, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -730,9 +458,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// EngineClient is the client API for Engine service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Engine service + type EngineClient interface { ApplyCommandBatch(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplyCommandBatchClient, error) ApplySnapshot(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplySnapshotClient, error) @@ -747,7 +474,7 @@ func NewEngineClient(cc *grpc.ClientConn) EngineClient { } func (c *engineClient) ApplyCommandBatch(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplyCommandBatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_Engine_serviceDesc.Streams[0], "/enginepb.Engine/ApplyCommandBatch", opts...) + stream, err := grpc.NewClientStream(ctx, &_Engine_serviceDesc.Streams[0], c.cc, "/enginepb.Engine/ApplyCommandBatch", opts...) if err != nil { return nil, err } @@ -778,7 +505,7 @@ func (x *engineApplyCommandBatchClient) Recv() (*CommandResponseBatch, error) { } func (c *engineClient) ApplySnapshot(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplySnapshotClient, error) { - stream, err := c.cc.NewStream(ctx, &_Engine_serviceDesc.Streams[1], "/enginepb.Engine/ApplySnapshot", opts...) + stream, err := grpc.NewClientStream(ctx, &_Engine_serviceDesc.Streams[1], c.cc, "/enginepb.Engine/ApplySnapshot", opts...) if err != nil { return nil, err } @@ -811,23 +538,13 @@ func (x *engineApplySnapshotClient) CloseAndRecv() (*SnapshotDone, error) { return m, nil } -// EngineServer is the server API for Engine service. +// Server API for Engine service + type EngineServer interface { ApplyCommandBatch(Engine_ApplyCommandBatchServer) error ApplySnapshot(Engine_ApplySnapshotServer) error } -// UnimplementedEngineServer can be embedded to have forward compatible implementations. -type UnimplementedEngineServer struct { -} - -func (*UnimplementedEngineServer) ApplyCommandBatch(srv Engine_ApplyCommandBatchServer) error { - return status.Errorf(codes.Unimplemented, "method ApplyCommandBatch not implemented") -} -func (*UnimplementedEngineServer) ApplySnapshot(srv Engine_ApplySnapshotServer) error { - return status.Errorf(codes.Unimplemented, "method ApplySnapshot not implemented") -} - func RegisterEngineServer(s *grpc.Server, srv EngineServer) { s.RegisterService(&_Engine_serviceDesc, srv) } @@ -907,7 +624,7 @@ var _Engine_serviceDesc = grpc.ServiceDesc{ func (m *CommandRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -915,68 +632,58 @@ func (m *CommandRequestHeader) Marshal() (dAtA []byte, err error) { } func (m *CommandRequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandRequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x32 + if m.Index != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Index)) } - if m.Destroy { - i-- - if m.Destroy { + if m.Term != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Term)) + } + if m.SyncLog { + dAtA[i] = 0x20 + i++ + if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 + i++ } - if m.SyncLog { - i-- - if m.SyncLog { + if m.Destroy { + dAtA[i] = 0x28 + i++ + if m.Destroy { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 + i++ } - if m.Term != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x18 - } - if m.Index != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x10 - } - if m.RegionId != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if len(m.Context) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func (m *CommandRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -984,76 +691,59 @@ func (m *CommandRequest) Marshal() (dAtA []byte, err error) { } func (m *CommandRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Header.Size())) + n1, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.AdminResponse != nil { - { - size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0x12 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 } if m.AdminRequest != nil { - { - size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.AdminRequest.Size())) + n2, err := m.AdminRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n2 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) + if m.AdminResponse != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.AdminResponse.Size())) + n3, err := m.AdminResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *CommandRequestBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1061,40 +751,29 @@ func (m *CommandRequestBatch) Marshal() (dAtA []byte, err error) { } func (m *CommandRequestBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandRequestBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Requests { dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *CommandResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1102,41 +781,32 @@ func (m *CommandResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *CommandResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) } if m.Destroyed { - i-- + dAtA[i] = 0x10 + i++ if m.Destroyed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.RegionId != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *CommandResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1144,55 +814,42 @@ func (m *CommandResponse) Marshal() (dAtA []byte, err error) { } func (m *CommandResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AppliedTerm != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.AppliedTerm)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Header.Size())) + n4, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } if m.ApplyState != nil { - { - size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(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 = encodeVarintEnginepb(dAtA, i, uint64(size)) + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.ApplyState.Size())) + n5, err := m.ApplyState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n5 } - return len(dAtA) - i, nil + if m.AppliedTerm != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.AppliedTerm)) + } + return i, nil } func (m *CommandResponseBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1200,40 +857,29 @@ func (m *CommandResponseBatch) Marshal() (dAtA []byte, err error) { } func (m *CommandResponseBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandResponseBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Responses) > 0 { - for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Responses { dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1241,62 +887,47 @@ func (m *SnapshotState) Marshal() (dAtA []byte, err error) { } func (m *SnapshotState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ApplyState != nil { - { - size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) + if m.Region != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Region.Size())) + n6, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n6 } if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Peer.Size())) + n7, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) + if m.ApplyState != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.ApplyState.Size())) + n8, err := m.ApplyState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1304,52 +935,40 @@ func (m *SnapshotData) Marshal() (dAtA []byte, err error) { } func (m *SnapshotData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Data) > 0 { - for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if m.Checksum != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa + if len(m.Data) > 0 { + for _, msg := range m.Data { + dAtA[i] = 0x1a + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1357,77 +976,52 @@ func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { } func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Chunk != nil { - { - size := m.Chunk.Size() - i -= size - if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn9, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn9 } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotRequest_State) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotRequest_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.State != nil { - { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.State.Size())) + n10, err := m.State.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotRequest_Data) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotRequest_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEnginepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Data.Size())) + n11, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotDone) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1435,37 +1029,23 @@ func (m *SnapshotDone) Marshal() (dAtA []byte, err error) { } func (m *SnapshotDone) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotDone) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func encodeVarintEnginepb(dAtA []byte, offset int, v uint64) int { - offset -= sovEnginepb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *CommandRequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1487,16 +1067,10 @@ func (m *CommandRequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovEnginepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommandRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1517,16 +1091,10 @@ func (m *CommandRequest) Size() (n int) { l = m.AdminResponse.Size() n += 1 + l + sovEnginepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommandRequestBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -1535,16 +1103,10 @@ func (m *CommandRequestBatch) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommandResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1553,16 +1115,10 @@ func (m *CommandResponseHeader) Size() (n int) { if m.Destroyed { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommandResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1576,16 +1132,10 @@ func (m *CommandResponse) Size() (n int) { if m.AppliedTerm != 0 { n += 1 + sovEnginepb(uint64(m.AppliedTerm)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommandResponseBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Responses) > 0 { @@ -1594,16 +1144,10 @@ func (m *CommandResponseBatch) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -1618,16 +1162,10 @@ func (m *SnapshotState) Size() (n int) { l = m.ApplyState.Size() n += 1 + l + sovEnginepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotData) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -1643,31 +1181,19 @@ func (m *SnapshotData) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotRequest_State) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != nil { @@ -1677,9 +1203,6 @@ func (m *SnapshotRequest_State) Size() (n int) { return n } func (m *SnapshotRequest_Data) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Data != nil { @@ -1689,19 +1212,20 @@ func (m *SnapshotRequest_Data) Size() (n int) { return n } func (m *SnapshotDone) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovEnginepb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozEnginepb(x uint64) (n int) { return sovEnginepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1721,7 +1245,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1749,7 +1273,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1768,7 +1292,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1787,7 +1311,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1806,7 +1330,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1826,7 +1350,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1846,7 +1370,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1855,9 +1379,6 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1872,13 +1393,12 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1903,7 +1423,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1931,7 +1451,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1940,9 +1460,6 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1967,7 +1484,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1976,9 +1493,6 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2001,7 +1515,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2010,9 +1524,6 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2037,7 +1548,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2046,9 +1557,6 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2065,13 +1573,12 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2096,7 +1603,7 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2124,7 +1631,7 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2133,9 +1640,6 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2150,13 +1654,12 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2181,7 +1684,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2209,7 +1712,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2228,7 +1731,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2240,13 +1743,12 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2271,7 +1773,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2299,7 +1801,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2308,9 +1810,6 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2335,7 +1834,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2344,9 +1843,6 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2371,7 +1867,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedTerm |= uint64(b&0x7F) << shift + m.AppliedTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2382,13 +1878,12 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2413,7 +1908,7 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2441,7 +1936,7 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2450,9 +1945,6 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2467,13 +1959,12 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2498,7 +1989,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2526,7 +2017,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2535,9 +2026,6 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2562,7 +2050,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2571,9 +2059,6 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2598,7 +2083,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2607,9 +2092,6 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2626,13 +2108,12 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2657,7 +2138,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2685,7 +2166,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2695,9 +2176,6 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2717,7 +2195,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= uint32(b&0x7F) << shift + m.Checksum |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2736,7 +2214,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2745,9 +2223,6 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2762,13 +2237,12 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2793,7 +2267,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2821,7 +2295,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2830,9 +2304,6 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2856,7 +2327,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2865,9 +2336,6 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEnginepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2883,13 +2351,12 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2914,7 +2381,7 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2934,13 +2401,12 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2953,7 +2419,6 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { func skipEnginepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2985,8 +2450,10 @@ func skipEnginepb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3003,34 +2470,102 @@ func skipEnginepb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthEnginepb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEnginepb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEnginepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipEnginepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthEnginepb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthEnginepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEnginepb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEnginepb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEnginepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEnginepb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("enginepb.proto", fileDescriptorEnginepb) } + +var fileDescriptorEnginepb = []byte{ + // 681 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xcd, 0xe4, 0xaf, 0xe9, 0x75, 0x92, 0xf6, 0x9b, 0xf6, 0xa3, 0x4e, 0xa0, 0x21, 0x78, 0x81, + 0x22, 0x81, 0x52, 0x14, 0x10, 0x5d, 0x81, 0x68, 0xf9, 0x51, 0x51, 0x91, 0x40, 0x53, 0x84, 0xd8, + 0x45, 0x53, 0xfb, 0xe6, 0x47, 0xad, 0x7f, 0xb0, 0x27, 0xa8, 0x79, 0x13, 0x78, 0x05, 0x04, 0xef, + 0xc1, 0x92, 0x47, 0x40, 0xe5, 0x2d, 0x58, 0x21, 0xcf, 0x8c, 0x1d, 0x27, 0x4d, 0x24, 0xd8, 0xe5, + 0x9e, 0x7b, 0x66, 0xee, 0x39, 0xe7, 0x8e, 0x03, 0x75, 0xf4, 0x86, 0x63, 0x0f, 0x83, 0xd3, 0x6e, + 0x10, 0xfa, 0xc2, 0xa7, 0x95, 0xa4, 0x6e, 0x56, 0x5d, 0x14, 0x3c, 0x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b, 0x16, 0xf9, 0x79, 0xd9, + 0x22, 0x9f, 0x7e, 0xb5, 0x72, 0xa7, 0x65, 0xf9, 0x1f, 0x7d, 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x9d, 0xc9, 0x50, 0xee, 0xf4, 0x05, 0x00, 0x00, +} diff --git a/pkg/eraftpb/eraftpb.pb.go b/pkg/eraftpb/eraftpb.pb.go index 7ee953267..0fbd39a35 100644 --- a/pkg/eraftpb/eraftpb.pb.go +++ b/pkg/eraftpb/eraftpb.pb.go @@ -1,13 +1,31 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: eraftpb.proto +/* +Package eraftpb is a generated protocol buffer package. + +It is generated from these files: + + eraftpb.proto + +It has these top-level messages: + + Entry + SnapshotMetadata + Snapshot + Message + HardState + ConfState + ConfChange + ConfChangeSingle + ConfChangeV2 +*/ package eraftpb import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -21,7 +39,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type EntryType int32 @@ -36,7 +54,6 @@ var EntryType_name = map[int32]string{ 1: "EntryConfChange", 2: "EntryConfChangeV2", } - var EntryType_value = map[string]int32{ "EntryNormal": 0, "EntryConfChange": 1, @@ -46,10 +63,7 @@ var EntryType_value = map[string]int32{ func (x EntryType) String() string { return proto.EnumName(EntryType_name, int32(x)) } - -func (EntryType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{0} -} +func (EntryType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{0} } type MessageType int32 @@ -96,7 +110,6 @@ var MessageType_name = map[int32]string{ 17: "MsgRequestPreVote", 18: "MsgRequestPreVoteResponse", } - var MessageType_value = map[string]int32{ "MsgHup": 0, "MsgBeat": 1, @@ -122,10 +135,7 @@ var MessageType_value = map[string]int32{ func (x MessageType) String() string { return proto.EnumName(MessageType_name, int32(x)) } - -func (MessageType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{1} -} +func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{1} } type ConfChangeTransition int32 @@ -152,7 +162,6 @@ var ConfChangeTransition_name = map[int32]string{ 1: "Implicit", 2: "Explicit", } - var ConfChangeTransition_value = map[string]int32{ "Auto": 0, "Implicit": 1, @@ -162,10 +171,7 @@ var ConfChangeTransition_value = map[string]int32{ func (x ConfChangeTransition) String() string { return proto.EnumName(ConfChangeTransition_name, int32(x)) } - -func (ConfChangeTransition) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{2} -} +func (ConfChangeTransition) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{2} } type ConfChangeType int32 @@ -180,7 +186,6 @@ var ConfChangeType_name = map[int32]string{ 1: "RemoveNode", 2: "AddLearnerNode", } - var ConfChangeType_value = map[string]int32{ "AddNode": 0, "RemoveNode": 1, @@ -190,10 +195,7 @@ var ConfChangeType_value = map[string]int32{ func (x ConfChangeType) String() string { return proto.EnumName(ConfChangeType_name, int32(x)) } - -func (ConfChangeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{3} -} +func (ConfChangeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{3} } // The entry is a type of change that needs to be applied. It contains two data fields. // While the fields are built into the model; their usage is determined by the entry_type. @@ -213,44 +215,13 @@ type Entry struct { Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` // Deprecated! It is kept for backward compatibility. // TODO: remove it in the next major release. - SyncLog bool `protobuf:"varint,5,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Entry) Reset() { *m = Entry{} } -func (m *Entry) String() string { return proto.CompactTextString(m) } -func (*Entry) ProtoMessage() {} -func (*Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{0} -} -func (m *Entry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Entry.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 *Entry) XXX_Merge(src proto.Message) { - xxx_messageInfo_Entry.Merge(m, src) -} -func (m *Entry) XXX_Size() int { - return m.Size() -} -func (m *Entry) XXX_DiscardUnknown() { - xxx_messageInfo_Entry.DiscardUnknown(m) + SyncLog bool `protobuf:"varint,5,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` } -var xxx_messageInfo_Entry proto.InternalMessageInfo +func (m *Entry) Reset() { *m = Entry{} } +func (m *Entry) String() string { return proto.CompactTextString(m) } +func (*Entry) ProtoMessage() {} +func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{0} } func (m *Entry) GetEntryType() EntryType { if m != nil { @@ -296,48 +267,17 @@ func (m *Entry) GetSyncLog() bool { type SnapshotMetadata struct { // The current `ConfState`. - ConfState *ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState,proto3" json:"conf_state,omitempty"` + ConfState *ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState" json:"conf_state,omitempty"` // The applied index. Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // The term of the applied index. - Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotMetadata) Reset() { *m = SnapshotMetadata{} } -func (m *SnapshotMetadata) String() string { return proto.CompactTextString(m) } -func (*SnapshotMetadata) ProtoMessage() {} -func (*SnapshotMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{1} -} -func (m *SnapshotMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotMetadata.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 *SnapshotMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotMetadata.Merge(m, src) -} -func (m *SnapshotMetadata) XXX_Size() int { - return m.Size() -} -func (m *SnapshotMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotMetadata.DiscardUnknown(m) + Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` } -var xxx_messageInfo_SnapshotMetadata proto.InternalMessageInfo +func (m *SnapshotMetadata) Reset() { *m = SnapshotMetadata{} } +func (m *SnapshotMetadata) String() string { return proto.CompactTextString(m) } +func (*SnapshotMetadata) ProtoMessage() {} +func (*SnapshotMetadata) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{1} } func (m *SnapshotMetadata) GetConfState() *ConfState { if m != nil { @@ -361,45 +301,14 @@ func (m *SnapshotMetadata) GetTerm() uint64 { } type Snapshot struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Metadata *SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Snapshot) Reset() { *m = Snapshot{} } -func (m *Snapshot) String() string { return proto.CompactTextString(m) } -func (*Snapshot) ProtoMessage() {} -func (*Snapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{2} -} -func (m *Snapshot) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Snapshot.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 *Snapshot) XXX_Merge(src proto.Message) { - xxx_messageInfo_Snapshot.Merge(m, src) -} -func (m *Snapshot) XXX_Size() int { - return m.Size() -} -func (m *Snapshot) XXX_DiscardUnknown() { - xxx_messageInfo_Snapshot.DiscardUnknown(m) + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Metadata *SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"` } -var xxx_messageInfo_Snapshot proto.InternalMessageInfo +func (m *Snapshot) Reset() { *m = Snapshot{} } +func (m *Snapshot) String() string { return proto.CompactTextString(m) } +func (*Snapshot) ProtoMessage() {} +func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{2} } func (m *Snapshot) GetData() []byte { if m != nil { @@ -422,9 +331,9 @@ type Message struct { Term uint64 `protobuf:"varint,4,opt,name=term,proto3" json:"term,omitempty"` LogTerm uint64 `protobuf:"varint,5,opt,name=log_term,json=logTerm,proto3" json:"log_term,omitempty"` Index uint64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` - Entries []*Entry `protobuf:"bytes,7,rep,name=entries,proto3" json:"entries,omitempty"` + Entries []*Entry `protobuf:"bytes,7,rep,name=entries" json:"entries,omitempty"` Commit uint64 `protobuf:"varint,8,opt,name=commit,proto3" json:"commit,omitempty"` - Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` + Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot" json:"snapshot,omitempty"` RequestSnapshot uint64 `protobuf:"varint,13,opt,name=request_snapshot,json=requestSnapshot,proto3" json:"request_snapshot,omitempty"` Reject bool `protobuf:"varint,10,opt,name=reject,proto3" json:"reject,omitempty"` RejectHint uint64 `protobuf:"varint,11,opt,name=reject_hint,json=rejectHint,proto3" json:"reject_hint,omitempty"` @@ -435,44 +344,13 @@ type Message struct { // set if the priority is larger than 0. This change is not a fully // compatible change, but it makes minimal impact that only new priority // is not recognized by the old nodes during rolling update. - Priority int64 `protobuf:"varint,15,opt,name=priority,proto3" json:"priority,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{3} -} -func (m *Message) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Message.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 *Message) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message.Merge(m, src) -} -func (m *Message) XXX_Size() int { - return m.Size() -} -func (m *Message) XXX_DiscardUnknown() { - xxx_messageInfo_Message.DiscardUnknown(m) + Priority int64 `protobuf:"varint,15,opt,name=priority,proto3" json:"priority,omitempty"` } -var xxx_messageInfo_Message proto.InternalMessageInfo +func (m *Message) Reset() { *m = Message{} } +func (m *Message) String() string { return proto.CompactTextString(m) } +func (*Message) ProtoMessage() {} +func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{3} } func (m *Message) GetMsgType() MessageType { if m != nil { @@ -580,46 +458,15 @@ func (m *Message) GetPriority() int64 { } type HardState struct { - Term uint64 `protobuf:"varint,1,opt,name=term,proto3" json:"term,omitempty"` - Vote uint64 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"` - Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HardState) Reset() { *m = HardState{} } -func (m *HardState) String() string { return proto.CompactTextString(m) } -func (*HardState) ProtoMessage() {} -func (*HardState) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{4} -} -func (m *HardState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HardState.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 *HardState) XXX_Merge(src proto.Message) { - xxx_messageInfo_HardState.Merge(m, src) -} -func (m *HardState) XXX_Size() int { - return m.Size() -} -func (m *HardState) XXX_DiscardUnknown() { - xxx_messageInfo_HardState.DiscardUnknown(m) + Term uint64 `protobuf:"varint,1,opt,name=term,proto3" json:"term,omitempty"` + Vote uint64 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"` + Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` } -var xxx_messageInfo_HardState proto.InternalMessageInfo +func (m *HardState) Reset() { *m = HardState{} } +func (m *HardState) String() string { return proto.CompactTextString(m) } +func (*HardState) ProtoMessage() {} +func (*HardState) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{4} } func (m *HardState) GetTerm() uint64 { if m != nil { @@ -643,54 +490,23 @@ func (m *HardState) GetCommit() uint64 { } type ConfState struct { - Voters []uint64 `protobuf:"varint,1,rep,packed,name=voters,proto3" json:"voters,omitempty"` - Learners []uint64 `protobuf:"varint,2,rep,packed,name=learners,proto3" json:"learners,omitempty"` + Voters []uint64 `protobuf:"varint,1,rep,packed,name=voters" json:"voters,omitempty"` + Learners []uint64 `protobuf:"varint,2,rep,packed,name=learners" json:"learners,omitempty"` // The voters in the outgoing config. If not empty the node is in joint consensus. - VotersOutgoing []uint64 `protobuf:"varint,3,rep,packed,name=voters_outgoing,json=votersOutgoing,proto3" json:"voters_outgoing,omitempty"` + VotersOutgoing []uint64 `protobuf:"varint,3,rep,packed,name=voters_outgoing,json=votersOutgoing" json:"voters_outgoing,omitempty"` // The nodes that will become learners when the outgoing config is removed. // These nodes are necessarily currently in nodes_joint (or they would have // been added to the incoming config right away). - LearnersNext []uint64 `protobuf:"varint,4,rep,packed,name=learners_next,json=learnersNext,proto3" json:"learners_next,omitempty"` + LearnersNext []uint64 `protobuf:"varint,4,rep,packed,name=learners_next,json=learnersNext" json:"learners_next,omitempty"` // If set, the config is joint and Raft will automatically transition into // the final config (i.e. remove the outgoing config) when this is safe. - AutoLeave bool `protobuf:"varint,5,opt,name=auto_leave,json=autoLeave,proto3" json:"auto_leave,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfState) Reset() { *m = ConfState{} } -func (m *ConfState) String() string { return proto.CompactTextString(m) } -func (*ConfState) ProtoMessage() {} -func (*ConfState) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{5} -} -func (m *ConfState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfState.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 *ConfState) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfState.Merge(m, src) -} -func (m *ConfState) XXX_Size() int { - return m.Size() -} -func (m *ConfState) XXX_DiscardUnknown() { - xxx_messageInfo_ConfState.DiscardUnknown(m) + AutoLeave bool `protobuf:"varint,5,opt,name=auto_leave,json=autoLeave,proto3" json:"auto_leave,omitempty"` } -var xxx_messageInfo_ConfState proto.InternalMessageInfo +func (m *ConfState) Reset() { *m = ConfState{} } +func (m *ConfState) String() string { return proto.CompactTextString(m) } +func (*ConfState) ProtoMessage() {} +func (*ConfState) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{5} } func (m *ConfState) GetVoters() []uint64 { if m != nil { @@ -728,47 +544,16 @@ func (m *ConfState) GetAutoLeave() bool { } type ConfChange struct { - ChangeType ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - NodeId uint64 `protobuf:"varint,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - Context []byte `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfChange) Reset() { *m = ConfChange{} } -func (m *ConfChange) String() string { return proto.CompactTextString(m) } -func (*ConfChange) ProtoMessage() {} -func (*ConfChange) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{6} -} -func (m *ConfChange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfChange.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 *ConfChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfChange.Merge(m, src) -} -func (m *ConfChange) XXX_Size() int { - return m.Size() -} -func (m *ConfChange) XXX_DiscardUnknown() { - xxx_messageInfo_ConfChange.DiscardUnknown(m) + ChangeType ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + NodeId uint64 `protobuf:"varint,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Context []byte `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -var xxx_messageInfo_ConfChange proto.InternalMessageInfo +func (m *ConfChange) Reset() { *m = ConfChange{} } +func (m *ConfChange) String() string { return proto.CompactTextString(m) } +func (*ConfChange) ProtoMessage() {} +func (*ConfChange) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{6} } func (m *ConfChange) GetChangeType() ConfChangeType { if m != nil { @@ -801,45 +586,14 @@ func (m *ConfChange) GetId() uint64 { // ConfChangeSingle is an individual configuration change operation. Multiple // such operations can be carried out atomically via a ConfChangeV2. type ConfChangeSingle struct { - ChangeType ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfChangeSingle) Reset() { *m = ConfChangeSingle{} } -func (m *ConfChangeSingle) String() string { return proto.CompactTextString(m) } -func (*ConfChangeSingle) ProtoMessage() {} -func (*ConfChangeSingle) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{7} -} -func (m *ConfChangeSingle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfChangeSingle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfChangeSingle.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 *ConfChangeSingle) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfChangeSingle.Merge(m, src) -} -func (m *ConfChangeSingle) XXX_Size() int { - return m.Size() -} -func (m *ConfChangeSingle) XXX_DiscardUnknown() { - xxx_messageInfo_ConfChangeSingle.DiscardUnknown(m) + ChangeType ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` } -var xxx_messageInfo_ConfChangeSingle proto.InternalMessageInfo +func (m *ConfChangeSingle) Reset() { *m = ConfChangeSingle{} } +func (m *ConfChangeSingle) String() string { return proto.CompactTextString(m) } +func (*ConfChangeSingle) ProtoMessage() {} +func (*ConfChangeSingle) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{7} } func (m *ConfChangeSingle) GetChangeType() ConfChangeType { if m != nil { @@ -888,46 +642,15 @@ func (m *ConfChangeSingle) GetNodeId() uint64 { // // [1]: https://github.com/ongardie/dissertation/blob/master/online-trim.pdf type ConfChangeV2 struct { - Transition ConfChangeTransition `protobuf:"varint,1,opt,name=transition,proto3,enum=eraftpb.ConfChangeTransition" json:"transition,omitempty"` - Changes []*ConfChangeSingle `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"` - Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConfChangeV2) Reset() { *m = ConfChangeV2{} } -func (m *ConfChangeV2) String() string { return proto.CompactTextString(m) } -func (*ConfChangeV2) ProtoMessage() {} -func (*ConfChangeV2) Descriptor() ([]byte, []int) { - return fileDescriptor_acd9f78e51523dd8, []int{8} -} -func (m *ConfChangeV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfChangeV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ConfChangeV2.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 *ConfChangeV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfChangeV2.Merge(m, src) -} -func (m *ConfChangeV2) XXX_Size() int { - return m.Size() -} -func (m *ConfChangeV2) XXX_DiscardUnknown() { - xxx_messageInfo_ConfChangeV2.DiscardUnknown(m) + Transition ConfChangeTransition `protobuf:"varint,1,opt,name=transition,proto3,enum=eraftpb.ConfChangeTransition" json:"transition,omitempty"` + Changes []*ConfChangeSingle `protobuf:"bytes,2,rep,name=changes" json:"changes,omitempty"` + Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` } -var xxx_messageInfo_ConfChangeV2 proto.InternalMessageInfo +func (m *ConfChangeV2) Reset() { *m = ConfChangeV2{} } +func (m *ConfChangeV2) String() string { return proto.CompactTextString(m) } +func (*ConfChangeV2) ProtoMessage() {} +func (*ConfChangeV2) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{8} } func (m *ConfChangeV2) GetTransition() ConfChangeTransition { if m != nil { @@ -951,10 +674,6 @@ func (m *ConfChangeV2) GetContext() []byte { } func init() { - proto.RegisterEnum("eraftpb.EntryType", EntryType_name, EntryType_value) - proto.RegisterEnum("eraftpb.MessageType", MessageType_name, MessageType_value) - proto.RegisterEnum("eraftpb.ConfChangeTransition", ConfChangeTransition_name, ConfChangeTransition_value) - proto.RegisterEnum("eraftpb.ConfChangeType", ConfChangeType_name, ConfChangeType_value) proto.RegisterType((*Entry)(nil), "eraftpb.Entry") proto.RegisterType((*SnapshotMetadata)(nil), "eraftpb.SnapshotMetadata") proto.RegisterType((*Snapshot)(nil), "eraftpb.Snapshot") @@ -964,83 +683,15 @@ func init() { proto.RegisterType((*ConfChange)(nil), "eraftpb.ConfChange") proto.RegisterType((*ConfChangeSingle)(nil), "eraftpb.ConfChangeSingle") proto.RegisterType((*ConfChangeV2)(nil), "eraftpb.ConfChangeV2") + proto.RegisterEnum("eraftpb.EntryType", EntryType_name, EntryType_value) + proto.RegisterEnum("eraftpb.MessageType", MessageType_name, MessageType_value) + proto.RegisterEnum("eraftpb.ConfChangeTransition", ConfChangeTransition_name, ConfChangeTransition_value) + proto.RegisterEnum("eraftpb.ConfChangeType", ConfChangeType_name, ConfChangeType_value) } - -func init() { proto.RegisterFile("eraftpb.proto", fileDescriptor_acd9f78e51523dd8) } - -var fileDescriptor_acd9f78e51523dd8 = []byte{ - // 1035 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xe4, 0x44, - 0x10, 0x8e, 0x3d, 0x93, 0xb1, 0xa7, 0xe6, 0xaf, 0xd3, 0x1b, 0xb2, 0xce, 0x4a, 0x09, 0xa3, 0xe1, - 0xc0, 0x10, 0x89, 0x5d, 0x6d, 0x56, 0x48, 0x1c, 0xe0, 0x90, 0x8d, 0x56, 0x4a, 0x44, 0x26, 0x04, - 0x27, 0x9b, 0xab, 0xe5, 0xd8, 0x15, 0xc7, 0x30, 0x76, 0x9b, 0xee, 0x9e, 0x90, 0x3c, 0x02, 0x12, - 0x0f, 0xc0, 0x81, 0x47, 0x80, 0xf7, 0xe0, 0xc8, 0x1b, 0x80, 0xc2, 0x8b, 0xa0, 0x6e, 0xb7, 0x3d, - 0x9e, 0x64, 0x4f, 0xdc, 0xaa, 0xbe, 0xfe, 0xaa, 0xfa, 0xab, 0x1f, 0xb7, 0x0c, 0x03, 0xe4, 0xe1, - 0xb5, 0x2c, 0xae, 0x5e, 0x16, 0x9c, 0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38, 0x4f, 0xf3, 0x64, 0xfe, 0x44, 0x90, 0xf5, 0xbf, - 0x04, 0xd9, 0x4d, 0x41, 0x93, 0xdf, 0x2c, 0xe8, 0x2f, 0xe3, 0x2e, 0xf7, 0xe9, 0xd7, 0x00, 0x92, - 0x87, 0xb9, 0x48, 0x65, 0xca, 0x72, 0x73, 0xc5, 0xce, 0x87, 0xae, 0xa8, 0x49, 0x7e, 0x23, 0x80, - 0xbe, 0x01, 0xa7, 0xbc, 0xb6, 0x1c, 0x65, 0xf3, 0x59, 0x79, 0x5c, 0x8e, 0x5f, 0x31, 0x9b, 0x5d, - 0x69, 0xad, 0x74, 0x65, 0xef, 0x08, 0xba, 0xf5, 0x13, 0x4e, 0x47, 0xd0, 0xd3, 0xce, 0x29, 0xe3, - 0x59, 0x38, 0x27, 0x6b, 0xf4, 0x19, 0x8c, 0x34, 0xb0, 0xcc, 0x4c, 0x2c, 0xfa, 0x11, 0x6c, 0x3c, - 0x02, 0x2f, 0xf7, 0x89, 0xbd, 0xf7, 0x4b, 0x0b, 0x7a, 0x8d, 0x57, 0x89, 0x02, 0x74, 0x66, 0x22, - 0x39, 0x5a, 0x14, 0x64, 0x8d, 0xf6, 0xc0, 0x99, 0x89, 0xe4, 0x2d, 0x86, 0x92, 0x58, 0x74, 0x08, - 0x30, 0x13, 0xc9, 0x19, 0x67, 0x05, 0x13, 0x48, 0x6c, 0x3a, 0x80, 0xee, 0x4c, 0x24, 0x07, 0x45, - 0x81, 0x79, 0x4c, 0x5a, 0x2a, 0x7d, 0xed, 0xfa, 0x28, 0x0a, 0x96, 0x0b, 0x24, 0x6d, 0x4a, 0x61, - 0x38, 0x13, 0x89, 0x5f, 0x7e, 0xec, 0x97, 0x4c, 0x22, 0x59, 0xa7, 0x2f, 0x60, 0x6b, 0x15, 0xab, - 0xf9, 0x1d, 0x55, 0xcb, 0x4c, 0x24, 0xd5, 0xab, 0x40, 0x1c, 0x4a, 0xa0, 0xaf, 0xf4, 0x60, 0xc8, -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 0x77, 0xed, 0xaa, 0xa3, 0xff, 0x31, 0xde, 0xfc, 0x17, 0x00, - 0x00, 0xff, 0xff, 0x07, 0x70, 0x92, 0xd9, 0x74, 0x08, 0x00, 0x00, -} - func (m *Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1048,65 +699,54 @@ func (m *Entry) Marshal() (dAtA []byte, err error) { } func (m *Entry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.EntryType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.EntryType)) } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x32 + if m.Term != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + } + if m.Index != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) + } + if len(m.Data) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } if m.SyncLog { - i-- + dAtA[i] = 0x28 + i++ if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x22 - } - if m.Index != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x18 + i++ } - if m.Term != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x10 - } - if m.EntryType != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.EntryType)) - i-- - dAtA[i] = 0x8 + if len(m.Context) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1114,48 +754,37 @@ func (m *SnapshotMetadata) Marshal() (dAtA []byte, err error) { } func (m *SnapshotMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Term != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x18 + if m.ConfState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.ConfState.Size())) + n1, err := m.ConfState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if m.Index != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) } - if m.ConfState != nil { - { - size, err := m.ConfState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEraftpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Term != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) } - return len(dAtA) - i, nil + return i, nil } func (m *Snapshot) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1163,45 +792,33 @@ func (m *Snapshot) Marshal() (dAtA []byte, err error) { } func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Data) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEraftpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Metadata.Size())) + n2, err := m.Metadata.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *Message) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1209,124 +826,110 @@ func (m *Message) Marshal() (dAtA []byte, err error) { } func (m *Message) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Priority != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x78 + if m.MsgType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.MsgType)) } - if m.DeprecatedPriority != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.DeprecatedPriority)) - i-- - dAtA[i] = 0x70 + if m.To != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.To)) } - if m.RequestSnapshot != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.RequestSnapshot)) - i-- - dAtA[i] = 0x68 + if m.From != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.From)) } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x62 + if m.Term != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) } - if m.RejectHint != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.RejectHint)) - i-- - dAtA[i] = 0x58 + if m.LogTerm != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.LogTerm)) } - if m.Reject { - i-- - if m.Reject { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 + if m.Index != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) } - if m.Snapshot != nil { - { - size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x3a + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintEraftpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x4a } if m.Commit != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) } - if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEraftpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a + if m.Snapshot != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Snapshot.Size())) + n3, err := m.Snapshot.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n3 } - if m.Index != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x30 + if m.Reject { + dAtA[i] = 0x50 + i++ + if m.Reject { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.LogTerm != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.LogTerm)) - i-- - dAtA[i] = 0x28 + if m.RejectHint != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.RejectHint)) } - if m.Term != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x20 + if len(m.Context) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - if m.From != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.From)) - i-- - dAtA[i] = 0x18 + if m.RequestSnapshot != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.RequestSnapshot)) } - if m.To != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.To)) - i-- - dAtA[i] = 0x10 + if m.DeprecatedPriority != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.DeprecatedPriority)) } - if m.MsgType != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.MsgType)) - i-- - dAtA[i] = 0x8 + if m.Priority != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Priority)) } - return len(dAtA) - i, nil + return i, nil } func (m *HardState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1334,41 +937,32 @@ func (m *HardState) Marshal() (dAtA []byte, err error) { } func (m *HardState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HardState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Commit != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) - i-- - dAtA[i] = 0x18 + if m.Term != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) } if m.Vote != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Vote)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Vote)) } - if m.Term != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x8 + if m.Commit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) } - return len(dAtA) - i, nil + return i, nil } func (m *ConfState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1376,33 +970,14 @@ func (m *ConfState) Marshal() (dAtA []byte, err error) { } func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AutoLeave { - i-- - if m.AutoLeave { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.LearnersNext) > 0 { - dAtA5 := make([]byte, len(m.LearnersNext)*10) + if len(m.Voters) > 0 { + dAtA5 := make([]byte, len(m.Voters)*10) var j4 int - for _, num := range m.LearnersNext { + for _, num := range m.Voters { for num >= 1<<7 { dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1411,16 +986,15 @@ func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA5[j4] = uint8(num) j4++ } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) + dAtA[i] = 0xa + i++ i = encodeVarintEraftpb(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x22 + i += copy(dAtA[i:], dAtA5[:j4]) } - if len(m.VotersOutgoing) > 0 { - dAtA7 := make([]byte, len(m.VotersOutgoing)*10) + if len(m.Learners) > 0 { + dAtA7 := make([]byte, len(m.Learners)*10) var j6 int - for _, num := range m.VotersOutgoing { + for _, num := range m.Learners { for num >= 1<<7 { dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1429,16 +1003,15 @@ func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA7[j6] = uint8(num) j6++ } - i -= j6 - copy(dAtA[i:], dAtA7[:j6]) + dAtA[i] = 0x12 + i++ i = encodeVarintEraftpb(dAtA, i, uint64(j6)) - i-- - dAtA[i] = 0x1a + i += copy(dAtA[i:], dAtA7[:j6]) } - if len(m.Learners) > 0 { - dAtA9 := make([]byte, len(m.Learners)*10) + if len(m.VotersOutgoing) > 0 { + dAtA9 := make([]byte, len(m.VotersOutgoing)*10) var j8 int - for _, num := range m.Learners { + for _, num := range m.VotersOutgoing { for num >= 1<<7 { dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1447,16 +1020,15 @@ func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA9[j8] = uint8(num) j8++ } - i -= j8 - copy(dAtA[i:], dAtA9[:j8]) + dAtA[i] = 0x1a + i++ i = encodeVarintEraftpb(dAtA, i, uint64(j8)) - i-- - dAtA[i] = 0x12 + i += copy(dAtA[i:], dAtA9[:j8]) } - if len(m.Voters) > 0 { - dAtA11 := make([]byte, len(m.Voters)*10) + if len(m.LearnersNext) > 0 { + dAtA11 := make([]byte, len(m.LearnersNext)*10) var j10 int - for _, num := range m.Voters { + for _, num := range m.LearnersNext { for num >= 1<<7 { dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1465,19 +1037,28 @@ func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA11[j10] = uint8(num) j10++ } - i -= j10 - copy(dAtA[i:], dAtA11[:j10]) + dAtA[i] = 0x22 + i++ i = encodeVarintEraftpb(dAtA, i, uint64(j10)) - i-- - dAtA[i] = 0xa + i += copy(dAtA[i:], dAtA11[:j10]) } - return len(dAtA) - i, nil + if m.AutoLeave { + dAtA[i] = 0x28 + i++ + if m.AutoLeave { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil } func (m *ConfChange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1485,48 +1066,38 @@ func (m *ConfChange) Marshal() (dAtA []byte, err error) { } func (m *ConfChange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Id)) } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x22 + if m.ChangeType != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) } if m.NodeId != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) } - if m.ChangeType != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if len(m.Context) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func (m *ConfChangeSingle) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1534,36 +1105,27 @@ func (m *ConfChangeSingle) Marshal() (dAtA []byte, err error) { } func (m *ConfChangeSingle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfChangeSingle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ChangeType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) } if m.NodeId != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) } - if m.ChangeType != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ConfChangeV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1571,63 +1133,46 @@ func (m *ConfChangeV2) Marshal() (dAtA []byte, err error) { } func (m *ConfChangeV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfChangeV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x1a + if m.Transition != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(m.Transition)) } 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 = encodeVarintEraftpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Changes { dAtA[i] = 0x12 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.Transition != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Transition)) - i-- - dAtA[i] = 0x8 + if len(m.Context) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintEraftpb(dAtA []byte, offset int, v uint64) int { - offset -= sovEraftpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *Entry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.EntryType != 0 { @@ -1650,16 +1195,10 @@ func (m *Entry) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotMetadata) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ConfState != nil { @@ -1672,16 +1211,10 @@ func (m *SnapshotMetadata) Size() (n int) { if m.Term != 0 { n += 1 + sovEraftpb(uint64(m.Term)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Snapshot) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Data) @@ -1692,16 +1225,10 @@ func (m *Snapshot) Size() (n int) { l = m.Metadata.Size() n += 1 + l + sovEraftpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Message) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MsgType != 0 { @@ -1754,16 +1281,10 @@ func (m *Message) Size() (n int) { if m.Priority != 0 { n += 1 + sovEraftpb(uint64(m.Priority)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *HardState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Term != 0 { @@ -1775,16 +1296,10 @@ func (m *HardState) Size() (n int) { if m.Commit != 0 { n += 1 + sovEraftpb(uint64(m.Commit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Voters) > 0 { @@ -1818,16 +1333,10 @@ func (m *ConfState) Size() (n int) { if m.AutoLeave { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfChange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1843,16 +1352,10 @@ func (m *ConfChange) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfChangeSingle) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ChangeType != 0 { @@ -1861,16 +1364,10 @@ func (m *ConfChangeSingle) Size() (n int) { if m.NodeId != 0 { n += 1 + sovEraftpb(uint64(m.NodeId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ConfChangeV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Transition != 0 { @@ -1886,14 +1383,18 @@ func (m *ConfChangeV2) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovEraftpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozEraftpb(x uint64) (n int) { return sovEraftpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1913,7 +1414,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1941,7 +1442,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EntryType |= EntryType(b&0x7F) << shift + m.EntryType |= (EntryType(b) & 0x7F) << shift if b < 0x80 { break } @@ -1960,7 +1461,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1979,7 +1480,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1998,7 +1499,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2007,9 +1508,6 @@ func (m *Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2032,7 +1530,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2052,7 +1550,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2061,9 +1559,6 @@ func (m *Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2078,13 +1573,12 @@ func (m *Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2109,7 +1603,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2137,7 +1631,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2146,9 +1640,6 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2173,7 +1664,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2192,7 +1683,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2203,13 +1694,12 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2234,7 +1724,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2262,7 +1752,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2271,9 +1761,6 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2296,7 +1783,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2305,9 +1792,6 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2324,13 +1808,12 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2355,7 +1838,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2383,7 +1866,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MsgType |= MessageType(b&0x7F) << shift + m.MsgType |= (MessageType(b) & 0x7F) << shift if b < 0x80 { break } @@ -2402,7 +1885,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.To |= uint64(b&0x7F) << shift + m.To |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2421,7 +1904,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.From |= uint64(b&0x7F) << shift + m.From |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2440,7 +1923,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2459,7 +1942,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogTerm |= uint64(b&0x7F) << shift + m.LogTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2478,7 +1961,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2497,7 +1980,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2506,9 +1989,6 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2531,7 +2011,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2550,7 +2030,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2559,9 +2039,6 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2586,7 +2063,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2606,7 +2083,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectHint |= uint64(b&0x7F) << shift + m.RejectHint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2625,7 +2102,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2634,9 +2111,6 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2659,7 +2133,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestSnapshot |= uint64(b&0x7F) << shift + m.RequestSnapshot |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2678,7 +2152,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeprecatedPriority |= uint64(b&0x7F) << shift + m.DeprecatedPriority |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2697,7 +2171,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= int64(b&0x7F) << shift + m.Priority |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2708,13 +2182,12 @@ func (m *Message) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2739,7 +2212,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2767,7 +2240,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2786,7 +2259,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= uint64(b&0x7F) << shift + m.Vote |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2805,7 +2278,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2816,13 +2289,12 @@ func (m *HardState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2847,7 +2319,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2873,7 +2345,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2890,7 +2362,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2899,23 +2371,9 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } 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.Voters) == 0 { - m.Voters = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2927,7 +2385,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2949,7 +2407,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2966,7 +2424,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2975,23 +2433,9 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } 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.Learners) == 0 { - m.Learners = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3003,7 +2447,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3025,7 +2469,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3042,7 +2486,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3051,23 +2495,9 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } 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.VotersOutgoing) == 0 { - m.VotersOutgoing = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3079,7 +2509,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3101,7 +2531,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3118,7 +2548,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3127,23 +2557,9 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } 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.LearnersNext) == 0 { - m.LearnersNext = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3155,7 +2571,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3179,7 +2595,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3191,13 +2607,12 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3222,7 +2637,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3250,7 +2665,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3269,7 +2684,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= ConfChangeType(b&0x7F) << shift + m.ChangeType |= (ConfChangeType(b) & 0x7F) << shift if b < 0x80 { break } @@ -3288,7 +2703,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeId |= uint64(b&0x7F) << shift + m.NodeId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3307,7 +2722,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3316,9 +2731,6 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3333,13 +2745,12 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3364,7 +2775,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3392,7 +2803,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= ConfChangeType(b&0x7F) << shift + m.ChangeType |= (ConfChangeType(b) & 0x7F) << shift if b < 0x80 { break } @@ -3411,7 +2822,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeId |= uint64(b&0x7F) << shift + m.NodeId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3422,13 +2833,12 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3453,7 +2863,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3481,7 +2891,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Transition |= ConfChangeTransition(b&0x7F) << shift + m.Transition |= (ConfChangeTransition(b) & 0x7F) << shift if b < 0x80 { break } @@ -3500,7 +2910,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3509,9 +2919,6 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3534,7 +2941,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3543,9 +2950,6 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEraftpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3560,13 +2964,12 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3579,7 +2982,6 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { func skipEraftpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3611,8 +3013,10 @@ func skipEraftpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3629,34 +3033,124 @@ func skipEraftpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthEraftpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEraftpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEraftpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipEraftpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthEraftpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthEraftpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEraftpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEraftpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEraftpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEraftpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("eraftpb.proto", fileDescriptorEraftpb) } + +var fileDescriptorEraftpb = []byte{ + // 1035 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xdc, 0x44, + 0x14, 0x8e, 0xed, 0xcd, 0xda, 0x7b, 0xf6, 0x6f, 0x32, 0x0d, 0xad, 0x53, 0xa9, 0x61, 0xb5, 0x5c, + 0xb0, 0x44, 0xa2, 0x55, 0x53, 0x21, 0x71, 0x01, 0x17, 0x69, 0x55, 0x29, 0x11, 0xd9, 0x10, 0x9c, + 0x34, 0xb7, 0x96, 0x63, 0x9f, 0x38, 0x86, 0xb5, 0xc7, 0xcc, 0xcc, 0x86, 0xe4, 0x11, 0x90, 0x78, + 0x00, 0x2e, 0x78, 0x04, 0x78, 0x0f, 0x2e, 0x79, 0x03, 0x50, 0x78, 0x11, 0x34, 0xe3, 0xb1, 0xd7, + 0x9b, 0xf6, 0x8a, 0xbb, 0x73, 0xbe, 0xf9, 0xce, 0x99, 0xef, 0xfc, 0x78, 0x64, 0x18, 0x22, 0x8f, + 0xae, 0x64, 0x79, 0xf9, 0xbc, 0xe4, 0x4c, 0x32, 0xea, 0x1a, 0x77, 0xfa, 0x87, 0x05, 0x9b, 0x6f, + 0x0b, 0xc9, 0xef, 0xe8, 0x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0x00, 0xff, 0xff, 0x69, 0x98, 0x9c, 0x4f, 0x74, 0x08, 0x00, 0x00, +} diff --git a/pkg/errorpb/errorpb.pb.go b/pkg/errorpb/errorpb.pb.go index 77f14962c..46b13f50b 100644 --- a/pkg/errorpb/errorpb.pb.go +++ b/pkg/errorpb/errorpb.pb.go @@ -1,17 +1,48 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: errorpb.proto +/* +Package errorpb is a generated protocol buffer package. + +It is generated from these files: + + errorpb.proto + +It has these top-level messages: + + NotLeader + IsWitness + BucketVersionNotMatch + DiskFull + StoreNotMatch + RegionNotFound + RegionNotInitialized + KeyNotInRegion + EpochNotMatch + ServerIsBusy + StaleCommand + RaftEntryTooLarge + MaxTimestampNotSynced + ReadIndexNotReady + ProposalInMergingMode + DataIsNotReady + RecoveryInProgress + FlashbackInProgress + FlashbackNotPrepared + MismatchPeerId + Error +*/ package errorpb import ( "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" metapb "github.com/pingcap/kvproto/pkg/metapb" + + _ "github.com/gogo/protobuf/gogoproto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -23,7 +54,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // NotLeader is the error variant that tells a request be handle by raft leader // is sent to raft follower or learner. @@ -31,44 +62,13 @@ type NotLeader struct { // The requested region ID RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Region leader of the requested region - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NotLeader) Reset() { *m = NotLeader{} } -func (m *NotLeader) String() string { return proto.CompactTextString(m) } -func (*NotLeader) ProtoMessage() {} -func (*NotLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{0} -} -func (m *NotLeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NotLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NotLeader.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 *NotLeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotLeader.Merge(m, src) -} -func (m *NotLeader) XXX_Size() int { - return m.Size() -} -func (m *NotLeader) XXX_DiscardUnknown() { - xxx_messageInfo_NotLeader.DiscardUnknown(m) + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` } -var xxx_messageInfo_NotLeader proto.InternalMessageInfo +func (m *NotLeader) Reset() { *m = NotLeader{} } +func (m *NotLeader) String() string { return proto.CompactTextString(m) } +func (*NotLeader) ProtoMessage() {} +func (*NotLeader) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{0} } func (m *NotLeader) GetRegionId() uint64 { if m != nil { @@ -88,44 +88,13 @@ func (m *NotLeader) GetLeader() *metapb.Peer { // which should be forbidden and retry. type IsWitness struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsWitness) Reset() { *m = IsWitness{} } -func (m *IsWitness) String() string { return proto.CompactTextString(m) } -func (*IsWitness) ProtoMessage() {} -func (*IsWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{1} -} -func (m *IsWitness) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsWitness.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 *IsWitness) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsWitness.Merge(m, src) -} -func (m *IsWitness) XXX_Size() int { - return m.Size() -} -func (m *IsWitness) XXX_DiscardUnknown() { - xxx_messageInfo_IsWitness.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_IsWitness proto.InternalMessageInfo +func (m *IsWitness) Reset() { *m = IsWitness{} } +func (m *IsWitness) String() string { return proto.CompactTextString(m) } +func (*IsWitness) ProtoMessage() {} +func (*IsWitness) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{1} } func (m *IsWitness) GetRegionId() uint64 { if m != nil { @@ -137,45 +106,14 @@ func (m *IsWitness) GetRegionId() uint64 { // BucketVersionNotMatch is the error variant that tells the request buckets version is not match. // client should update the buckets version and retry. type BucketVersionNotMatch struct { - Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BucketVersionNotMatch) Reset() { *m = BucketVersionNotMatch{} } -func (m *BucketVersionNotMatch) String() string { return proto.CompactTextString(m) } -func (*BucketVersionNotMatch) ProtoMessage() {} -func (*BucketVersionNotMatch) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{2} -} -func (m *BucketVersionNotMatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BucketVersionNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketVersionNotMatch.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 *BucketVersionNotMatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketVersionNotMatch.Merge(m, src) -} -func (m *BucketVersionNotMatch) XXX_Size() int { - return m.Size() -} -func (m *BucketVersionNotMatch) XXX_DiscardUnknown() { - xxx_messageInfo_BucketVersionNotMatch.DiscardUnknown(m) + Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` } -var xxx_messageInfo_BucketVersionNotMatch proto.InternalMessageInfo +func (m *BucketVersionNotMatch) Reset() { *m = BucketVersionNotMatch{} } +func (m *BucketVersionNotMatch) String() string { return proto.CompactTextString(m) } +func (*BucketVersionNotMatch) ProtoMessage() {} +func (*BucketVersionNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{2} } func (m *BucketVersionNotMatch) GetVersion() uint64 { if m != nil { @@ -193,46 +131,15 @@ func (m *BucketVersionNotMatch) GetKeys() [][]byte { type DiskFull struct { // The requested store ID - StoreId []uint64 `protobuf:"varint,1,rep,packed,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + StoreId []uint64 `protobuf:"varint,1,rep,packed,name=store_id,json=storeId" json:"store_id,omitempty"` // The detailed info - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DiskFull) Reset() { *m = DiskFull{} } -func (m *DiskFull) String() string { return proto.CompactTextString(m) } -func (*DiskFull) ProtoMessage() {} -func (*DiskFull) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{3} -} -func (m *DiskFull) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DiskFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DiskFull.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 *DiskFull) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiskFull.Merge(m, src) -} -func (m *DiskFull) XXX_Size() int { - return m.Size() -} -func (m *DiskFull) XXX_DiscardUnknown() { - xxx_messageInfo_DiskFull.DiscardUnknown(m) + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` } -var xxx_messageInfo_DiskFull proto.InternalMessageInfo +func (m *DiskFull) Reset() { *m = DiskFull{} } +func (m *DiskFull) String() string { return proto.CompactTextString(m) } +func (*DiskFull) ProtoMessage() {} +func (*DiskFull) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{3} } func (m *DiskFull) GetStoreId() []uint64 { if m != nil { @@ -254,44 +161,13 @@ type StoreNotMatch struct { // Store id in request RequestStoreId uint64 `protobuf:"varint,1,opt,name=request_store_id,json=requestStoreId,proto3" json:"request_store_id,omitempty"` // Actual store id - ActualStoreId uint64 `protobuf:"varint,2,opt,name=actual_store_id,json=actualStoreId,proto3" json:"actual_store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreNotMatch) Reset() { *m = StoreNotMatch{} } -func (m *StoreNotMatch) String() string { return proto.CompactTextString(m) } -func (*StoreNotMatch) ProtoMessage() {} -func (*StoreNotMatch) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{4} -} -func (m *StoreNotMatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreNotMatch.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 *StoreNotMatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreNotMatch.Merge(m, src) -} -func (m *StoreNotMatch) XXX_Size() int { - return m.Size() -} -func (m *StoreNotMatch) XXX_DiscardUnknown() { - xxx_messageInfo_StoreNotMatch.DiscardUnknown(m) + ActualStoreId uint64 `protobuf:"varint,2,opt,name=actual_store_id,json=actualStoreId,proto3" json:"actual_store_id,omitempty"` } -var xxx_messageInfo_StoreNotMatch proto.InternalMessageInfo +func (m *StoreNotMatch) Reset() { *m = StoreNotMatch{} } +func (m *StoreNotMatch) String() string { return proto.CompactTextString(m) } +func (*StoreNotMatch) ProtoMessage() {} +func (*StoreNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{4} } func (m *StoreNotMatch) GetRequestStoreId() uint64 { if m != nil { @@ -311,44 +187,13 @@ func (m *StoreNotMatch) GetActualStoreId() uint64 { // matches the requested region ID. type RegionNotFound struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionNotFound) Reset() { *m = RegionNotFound{} } -func (m *RegionNotFound) String() string { return proto.CompactTextString(m) } -func (*RegionNotFound) ProtoMessage() {} -func (*RegionNotFound) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{5} -} -func (m *RegionNotFound) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionNotFound.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 *RegionNotFound) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionNotFound.Merge(m, src) -} -func (m *RegionNotFound) XXX_Size() int { - return m.Size() -} -func (m *RegionNotFound) XXX_DiscardUnknown() { - xxx_messageInfo_RegionNotFound.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_RegionNotFound proto.InternalMessageInfo +func (m *RegionNotFound) Reset() { *m = RegionNotFound{} } +func (m *RegionNotFound) String() string { return proto.CompactTextString(m) } +func (*RegionNotFound) ProtoMessage() {} +func (*RegionNotFound) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{5} } func (m *RegionNotFound) GetRegionId() uint64 { if m != nil { @@ -361,44 +206,13 @@ func (m *RegionNotFound) GetRegionId() uint64 { // matchesthe request region ID. type RegionNotInitialized struct { // The request region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionNotInitialized) Reset() { *m = RegionNotInitialized{} } -func (m *RegionNotInitialized) String() string { return proto.CompactTextString(m) } -func (*RegionNotInitialized) ProtoMessage() {} -func (*RegionNotInitialized) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{6} -} -func (m *RegionNotInitialized) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionNotInitialized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionNotInitialized.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 *RegionNotInitialized) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionNotInitialized.Merge(m, src) -} -func (m *RegionNotInitialized) XXX_Size() int { - return m.Size() -} -func (m *RegionNotInitialized) XXX_DiscardUnknown() { - xxx_messageInfo_RegionNotInitialized.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_RegionNotInitialized proto.InternalMessageInfo +func (m *RegionNotInitialized) Reset() { *m = RegionNotInitialized{} } +func (m *RegionNotInitialized) String() string { return proto.CompactTextString(m) } +func (*RegionNotInitialized) ProtoMessage() {} +func (*RegionNotInitialized) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{6} } func (m *RegionNotInitialized) GetRegionId() uint64 { if m != nil { @@ -417,44 +231,13 @@ type KeyNotInRegion struct { // Start key of the requested region StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` // Snd key of the requested region - EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyNotInRegion) Reset() { *m = KeyNotInRegion{} } -func (m *KeyNotInRegion) String() string { return proto.CompactTextString(m) } -func (*KeyNotInRegion) ProtoMessage() {} -func (*KeyNotInRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{7} -} -func (m *KeyNotInRegion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyNotInRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyNotInRegion.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 *KeyNotInRegion) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyNotInRegion.Merge(m, src) -} -func (m *KeyNotInRegion) XXX_Size() int { - return m.Size() -} -func (m *KeyNotInRegion) XXX_DiscardUnknown() { - xxx_messageInfo_KeyNotInRegion.DiscardUnknown(m) + EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } -var xxx_messageInfo_KeyNotInRegion proto.InternalMessageInfo +func (m *KeyNotInRegion) Reset() { *m = KeyNotInRegion{} } +func (m *KeyNotInRegion) String() string { return proto.CompactTextString(m) } +func (*KeyNotInRegion) ProtoMessage() {} +func (*KeyNotInRegion) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{7} } func (m *KeyNotInRegion) GetKey() []byte { if m != nil { @@ -489,44 +272,13 @@ func (m *KeyNotInRegion) GetEndKey() []byte { // Hence, a command is based on a stale version of a region. type EpochNotMatch struct { // Available regions that may be siblings of the requested one. - CurrentRegions []*metapb.Region `protobuf:"bytes,1,rep,name=current_regions,json=currentRegions,proto3" json:"current_regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EpochNotMatch) Reset() { *m = EpochNotMatch{} } -func (m *EpochNotMatch) String() string { return proto.CompactTextString(m) } -func (*EpochNotMatch) ProtoMessage() {} -func (*EpochNotMatch) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{8} -} -func (m *EpochNotMatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochNotMatch.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 *EpochNotMatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochNotMatch.Merge(m, src) -} -func (m *EpochNotMatch) XXX_Size() int { - return m.Size() -} -func (m *EpochNotMatch) XXX_DiscardUnknown() { - xxx_messageInfo_EpochNotMatch.DiscardUnknown(m) + CurrentRegions []*metapb.Region `protobuf:"bytes,1,rep,name=current_regions,json=currentRegions" json:"current_regions,omitempty"` } -var xxx_messageInfo_EpochNotMatch proto.InternalMessageInfo +func (m *EpochNotMatch) Reset() { *m = EpochNotMatch{} } +func (m *EpochNotMatch) String() string { return proto.CompactTextString(m) } +func (*EpochNotMatch) ProtoMessage() {} +func (*EpochNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{8} } func (m *EpochNotMatch) GetCurrentRegions() []*metapb.Region { if m != nil { @@ -542,44 +294,13 @@ type ServerIsBusy struct { BackoffMs uint64 `protobuf:"varint,2,opt,name=backoff_ms,json=backoffMs,proto3" json:"backoff_ms,omitempty"` EstimatedWaitMs uint32 `protobuf:"varint,3,opt,name=estimated_wait_ms,json=estimatedWaitMs,proto3" json:"estimated_wait_ms,omitempty"` // Current applied_index at the leader, may be used in replica read. - AppliedIndex uint64 `protobuf:"varint,4,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerIsBusy) Reset() { *m = ServerIsBusy{} } -func (m *ServerIsBusy) String() string { return proto.CompactTextString(m) } -func (*ServerIsBusy) ProtoMessage() {} -func (*ServerIsBusy) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{9} -} -func (m *ServerIsBusy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerIsBusy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServerIsBusy.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 *ServerIsBusy) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerIsBusy.Merge(m, src) -} -func (m *ServerIsBusy) XXX_Size() int { - return m.Size() -} -func (m *ServerIsBusy) XXX_DiscardUnknown() { - xxx_messageInfo_ServerIsBusy.DiscardUnknown(m) + AppliedIndex uint64 `protobuf:"varint,4,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` } -var xxx_messageInfo_ServerIsBusy proto.InternalMessageInfo +func (m *ServerIsBusy) Reset() { *m = ServerIsBusy{} } +func (m *ServerIsBusy) String() string { return proto.CompactTextString(m) } +func (*ServerIsBusy) ProtoMessage() {} +func (*ServerIsBusy) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{9} } func (m *ServerIsBusy) GetReason() string { if m != nil { @@ -613,43 +334,12 @@ func (m *ServerIsBusy) GetAppliedIndex() uint64 { // the current request term is lower than current raft term. // This can be retried at most time. type StaleCommand struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StaleCommand) Reset() { *m = StaleCommand{} } -func (m *StaleCommand) String() string { return proto.CompactTextString(m) } -func (*StaleCommand) ProtoMessage() {} -func (*StaleCommand) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{10} -} -func (m *StaleCommand) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StaleCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StaleCommand.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 *StaleCommand) XXX_Merge(src proto.Message) { - xxx_messageInfo_StaleCommand.Merge(m, src) -} -func (m *StaleCommand) XXX_Size() int { - return m.Size() -} -func (m *StaleCommand) XXX_DiscardUnknown() { - xxx_messageInfo_StaleCommand.DiscardUnknown(m) } -var xxx_messageInfo_StaleCommand proto.InternalMessageInfo +func (m *StaleCommand) Reset() { *m = StaleCommand{} } +func (m *StaleCommand) String() string { return proto.CompactTextString(m) } +func (*StaleCommand) ProtoMessage() {} +func (*StaleCommand) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{10} } // RaftEntryTooLarge is the error variant that tells the request is too large to be serialized to a // reasonable small raft entry. @@ -658,44 +348,13 @@ type RaftEntryTooLarge struct { // The requested region ID RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Size of the raft entry - EntrySize uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize,proto3" json:"entry_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftEntryTooLarge) Reset() { *m = RaftEntryTooLarge{} } -func (m *RaftEntryTooLarge) String() string { return proto.CompactTextString(m) } -func (*RaftEntryTooLarge) ProtoMessage() {} -func (*RaftEntryTooLarge) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{11} -} -func (m *RaftEntryTooLarge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftEntryTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftEntryTooLarge.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 *RaftEntryTooLarge) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftEntryTooLarge.Merge(m, src) -} -func (m *RaftEntryTooLarge) XXX_Size() int { - return m.Size() -} -func (m *RaftEntryTooLarge) XXX_DiscardUnknown() { - xxx_messageInfo_RaftEntryTooLarge.DiscardUnknown(m) + EntrySize uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize,proto3" json:"entry_size,omitempty"` } -var xxx_messageInfo_RaftEntryTooLarge proto.InternalMessageInfo +func (m *RaftEntryTooLarge) Reset() { *m = RaftEntryTooLarge{} } +func (m *RaftEntryTooLarge) String() string { return proto.CompactTextString(m) } +func (*RaftEntryTooLarge) ProtoMessage() {} +func (*RaftEntryTooLarge) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{11} } func (m *RaftEntryTooLarge) GetRegionId() uint64 { if m != nil { @@ -716,43 +375,12 @@ func (m *RaftEntryTooLarge) GetEntrySize() uint64 { // the prewrite of an async commit transaction cannot succeed. The client can backoff and // resend the request. type MaxTimestampNotSynced struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MaxTimestampNotSynced) Reset() { *m = MaxTimestampNotSynced{} } -func (m *MaxTimestampNotSynced) String() string { return proto.CompactTextString(m) } -func (*MaxTimestampNotSynced) ProtoMessage() {} -func (*MaxTimestampNotSynced) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{12} -} -func (m *MaxTimestampNotSynced) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MaxTimestampNotSynced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MaxTimestampNotSynced.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 *MaxTimestampNotSynced) XXX_Merge(src proto.Message) { - xxx_messageInfo_MaxTimestampNotSynced.Merge(m, src) -} -func (m *MaxTimestampNotSynced) XXX_Size() int { - return m.Size() -} -func (m *MaxTimestampNotSynced) XXX_DiscardUnknown() { - xxx_messageInfo_MaxTimestampNotSynced.DiscardUnknown(m) } -var xxx_messageInfo_MaxTimestampNotSynced proto.InternalMessageInfo +func (m *MaxTimestampNotSynced) Reset() { *m = MaxTimestampNotSynced{} } +func (m *MaxTimestampNotSynced) String() string { return proto.CompactTextString(m) } +func (*MaxTimestampNotSynced) ProtoMessage() {} +func (*MaxTimestampNotSynced) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{12} } // ReadIndexNotReady is the error variant that tells the read index request is not ready, that is, // the current region is in a status that not ready to serve the read index request. For example, @@ -762,44 +390,13 @@ type ReadIndexNotReady struct { // The reason why the region is not ready to serve read index request Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // The requested region ID - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadIndexNotReady) Reset() { *m = ReadIndexNotReady{} } -func (m *ReadIndexNotReady) String() string { return proto.CompactTextString(m) } -func (*ReadIndexNotReady) ProtoMessage() {} -func (*ReadIndexNotReady) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{13} -} -func (m *ReadIndexNotReady) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadIndexNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadIndexNotReady.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 *ReadIndexNotReady) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadIndexNotReady.Merge(m, src) -} -func (m *ReadIndexNotReady) XXX_Size() int { - return m.Size() -} -func (m *ReadIndexNotReady) XXX_DiscardUnknown() { - xxx_messageInfo_ReadIndexNotReady.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_ReadIndexNotReady proto.InternalMessageInfo +func (m *ReadIndexNotReady) Reset() { *m = ReadIndexNotReady{} } +func (m *ReadIndexNotReady) String() string { return proto.CompactTextString(m) } +func (*ReadIndexNotReady) ProtoMessage() {} +func (*ReadIndexNotReady) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{13} } func (m *ReadIndexNotReady) GetReason() string { if m != nil { @@ -820,44 +417,13 @@ func (m *ReadIndexNotReady) GetRegionId() uint64 { // This can be retried at most time. type ProposalInMergingMode struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProposalInMergingMode) Reset() { *m = ProposalInMergingMode{} } -func (m *ProposalInMergingMode) String() string { return proto.CompactTextString(m) } -func (*ProposalInMergingMode) ProtoMessage() {} -func (*ProposalInMergingMode) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{14} -} -func (m *ProposalInMergingMode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ProposalInMergingMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ProposalInMergingMode.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 *ProposalInMergingMode) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProposalInMergingMode.Merge(m, src) -} -func (m *ProposalInMergingMode) XXX_Size() int { - return m.Size() -} -func (m *ProposalInMergingMode) XXX_DiscardUnknown() { - xxx_messageInfo_ProposalInMergingMode.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_ProposalInMergingMode proto.InternalMessageInfo +func (m *ProposalInMergingMode) Reset() { *m = ProposalInMergingMode{} } +func (m *ProposalInMergingMode) String() string { return proto.CompactTextString(m) } +func (*ProposalInMergingMode) ProtoMessage() {} +func (*ProposalInMergingMode) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{14} } func (m *ProposalInMergingMode) GetRegionId() uint64 { if m != nil { @@ -868,46 +434,15 @@ func (m *ProposalInMergingMode) GetRegionId() uint64 { type DataIsNotReady struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - SafeTs uint64 `protobuf:"varint,3,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataIsNotReady) Reset() { *m = DataIsNotReady{} } -func (m *DataIsNotReady) String() string { return proto.CompactTextString(m) } -func (*DataIsNotReady) ProtoMessage() {} -func (*DataIsNotReady) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{15} -} -func (m *DataIsNotReady) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataIsNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataIsNotReady.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 *DataIsNotReady) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataIsNotReady.Merge(m, src) -} -func (m *DataIsNotReady) XXX_Size() int { - return m.Size() -} -func (m *DataIsNotReady) XXX_DiscardUnknown() { - xxx_messageInfo_DataIsNotReady.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + SafeTs uint64 `protobuf:"varint,3,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` } -var xxx_messageInfo_DataIsNotReady proto.InternalMessageInfo +func (m *DataIsNotReady) Reset() { *m = DataIsNotReady{} } +func (m *DataIsNotReady) String() string { return proto.CompactTextString(m) } +func (*DataIsNotReady) ProtoMessage() {} +func (*DataIsNotReady) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{15} } func (m *DataIsNotReady) GetRegionId() uint64 { if m != nil { @@ -932,44 +467,13 @@ func (m *DataIsNotReady) GetSafeTs() uint64 { type RecoveryInProgress struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RecoveryInProgress) Reset() { *m = RecoveryInProgress{} } -func (m *RecoveryInProgress) String() string { return proto.CompactTextString(m) } -func (*RecoveryInProgress) ProtoMessage() {} -func (*RecoveryInProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{16} -} -func (m *RecoveryInProgress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoveryInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoveryInProgress.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 *RecoveryInProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoveryInProgress.Merge(m, src) -} -func (m *RecoveryInProgress) XXX_Size() int { - return m.Size() -} -func (m *RecoveryInProgress) XXX_DiscardUnknown() { - xxx_messageInfo_RecoveryInProgress.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_RecoveryInProgress proto.InternalMessageInfo +func (m *RecoveryInProgress) Reset() { *m = RecoveryInProgress{} } +func (m *RecoveryInProgress) String() string { return proto.CompactTextString(m) } +func (*RecoveryInProgress) ProtoMessage() {} +func (*RecoveryInProgress) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{16} } func (m *RecoveryInProgress) GetRegionId() uint64 { if m != nil { @@ -980,45 +484,14 @@ func (m *RecoveryInProgress) GetRegionId() uint64 { type FlashbackInProgress struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FlashbackStartTs uint64 `protobuf:"varint,2,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlashbackInProgress) Reset() { *m = FlashbackInProgress{} } -func (m *FlashbackInProgress) String() string { return proto.CompactTextString(m) } -func (*FlashbackInProgress) ProtoMessage() {} -func (*FlashbackInProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{17} -} -func (m *FlashbackInProgress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlashbackInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackInProgress.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 *FlashbackInProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackInProgress.Merge(m, src) -} -func (m *FlashbackInProgress) XXX_Size() int { - return m.Size() -} -func (m *FlashbackInProgress) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackInProgress.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + FlashbackStartTs uint64 `protobuf:"varint,2,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` } -var xxx_messageInfo_FlashbackInProgress proto.InternalMessageInfo +func (m *FlashbackInProgress) Reset() { *m = FlashbackInProgress{} } +func (m *FlashbackInProgress) String() string { return proto.CompactTextString(m) } +func (*FlashbackInProgress) ProtoMessage() {} +func (*FlashbackInProgress) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{17} } func (m *FlashbackInProgress) GetRegionId() uint64 { if m != nil { @@ -1036,44 +509,13 @@ func (m *FlashbackInProgress) GetFlashbackStartTs() uint64 { type FlashbackNotPrepared struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlashbackNotPrepared) Reset() { *m = FlashbackNotPrepared{} } -func (m *FlashbackNotPrepared) String() string { return proto.CompactTextString(m) } -func (*FlashbackNotPrepared) ProtoMessage() {} -func (*FlashbackNotPrepared) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{18} -} -func (m *FlashbackNotPrepared) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlashbackNotPrepared) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackNotPrepared.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 *FlashbackNotPrepared) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackNotPrepared.Merge(m, src) -} -func (m *FlashbackNotPrepared) XXX_Size() int { - return m.Size() -} -func (m *FlashbackNotPrepared) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackNotPrepared.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_FlashbackNotPrepared proto.InternalMessageInfo +func (m *FlashbackNotPrepared) Reset() { *m = FlashbackNotPrepared{} } +func (m *FlashbackNotPrepared) String() string { return proto.CompactTextString(m) } +func (*FlashbackNotPrepared) ProtoMessage() {} +func (*FlashbackNotPrepared) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{18} } func (m *FlashbackNotPrepared) GetRegionId() uint64 { if m != nil { @@ -1085,45 +527,14 @@ func (m *FlashbackNotPrepared) GetRegionId() uint64 { // MismatchPeerId is the error variant that tells the request is sent to wrong peer. // Client receives this error should reload the region info and retry. type MismatchPeerId struct { - RequestPeerId uint64 `protobuf:"varint,1,opt,name=request_peer_id,json=requestPeerId,proto3" json:"request_peer_id,omitempty"` - StorePeerId uint64 `protobuf:"varint,2,opt,name=store_peer_id,json=storePeerId,proto3" json:"store_peer_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MismatchPeerId) Reset() { *m = MismatchPeerId{} } -func (m *MismatchPeerId) String() string { return proto.CompactTextString(m) } -func (*MismatchPeerId) ProtoMessage() {} -func (*MismatchPeerId) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{19} -} -func (m *MismatchPeerId) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MismatchPeerId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MismatchPeerId.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 *MismatchPeerId) XXX_Merge(src proto.Message) { - xxx_messageInfo_MismatchPeerId.Merge(m, src) -} -func (m *MismatchPeerId) XXX_Size() int { - return m.Size() -} -func (m *MismatchPeerId) XXX_DiscardUnknown() { - xxx_messageInfo_MismatchPeerId.DiscardUnknown(m) + RequestPeerId uint64 `protobuf:"varint,1,opt,name=request_peer_id,json=requestPeerId,proto3" json:"request_peer_id,omitempty"` + StorePeerId uint64 `protobuf:"varint,2,opt,name=store_peer_id,json=storePeerId,proto3" json:"store_peer_id,omitempty"` } -var xxx_messageInfo_MismatchPeerId proto.InternalMessageInfo +func (m *MismatchPeerId) Reset() { *m = MismatchPeerId{} } +func (m *MismatchPeerId) String() string { return proto.CompactTextString(m) } +func (*MismatchPeerId) ProtoMessage() {} +func (*MismatchPeerId) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{19} } func (m *MismatchPeerId) GetRequestPeerId() uint64 { if m != nil { @@ -1143,72 +554,41 @@ func (m *MismatchPeerId) GetStorePeerId() uint64 { type Error struct { // The error message Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - NotLeader *NotLeader `protobuf:"bytes,2,opt,name=not_leader,json=notLeader,proto3" json:"not_leader,omitempty"` - RegionNotFound *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found,json=regionNotFound,proto3" json:"region_not_found,omitempty"` - KeyNotInRegion *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region,json=keyNotInRegion,proto3" json:"key_not_in_region,omitempty"` - EpochNotMatch *EpochNotMatch `protobuf:"bytes,5,opt,name=epoch_not_match,json=epochNotMatch,proto3" json:"epoch_not_match,omitempty"` - ServerIsBusy *ServerIsBusy `protobuf:"bytes,6,opt,name=server_is_busy,json=serverIsBusy,proto3" json:"server_is_busy,omitempty"` - StaleCommand *StaleCommand `protobuf:"bytes,7,opt,name=stale_command,json=staleCommand,proto3" json:"stale_command,omitempty"` - StoreNotMatch *StoreNotMatch `protobuf:"bytes,8,opt,name=store_not_match,json=storeNotMatch,proto3" json:"store_not_match,omitempty"` - RaftEntryTooLarge *RaftEntryTooLarge `protobuf:"bytes,9,opt,name=raft_entry_too_large,json=raftEntryTooLarge,proto3" json:"raft_entry_too_large,omitempty"` - MaxTimestampNotSynced *MaxTimestampNotSynced `protobuf:"bytes,10,opt,name=max_timestamp_not_synced,json=maxTimestampNotSynced,proto3" json:"max_timestamp_not_synced,omitempty"` - ReadIndexNotReady *ReadIndexNotReady `protobuf:"bytes,11,opt,name=read_index_not_ready,json=readIndexNotReady,proto3" json:"read_index_not_ready,omitempty"` - ProposalInMergingMode *ProposalInMergingMode `protobuf:"bytes,12,opt,name=proposal_in_merging_mode,json=proposalInMergingMode,proto3" json:"proposal_in_merging_mode,omitempty"` - DataIsNotReady *DataIsNotReady `protobuf:"bytes,13,opt,name=data_is_not_ready,json=dataIsNotReady,proto3" json:"data_is_not_ready,omitempty"` - RegionNotInitialized *RegionNotInitialized `protobuf:"bytes,14,opt,name=region_not_initialized,json=regionNotInitialized,proto3" json:"region_not_initialized,omitempty"` - DiskFull *DiskFull `protobuf:"bytes,15,opt,name=disk_full,json=diskFull,proto3" json:"disk_full,omitempty"` + NotLeader *NotLeader `protobuf:"bytes,2,opt,name=not_leader,json=notLeader" json:"not_leader,omitempty"` + RegionNotFound *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found,json=regionNotFound" json:"region_not_found,omitempty"` + KeyNotInRegion *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region,json=keyNotInRegion" json:"key_not_in_region,omitempty"` + EpochNotMatch *EpochNotMatch `protobuf:"bytes,5,opt,name=epoch_not_match,json=epochNotMatch" json:"epoch_not_match,omitempty"` + ServerIsBusy *ServerIsBusy `protobuf:"bytes,6,opt,name=server_is_busy,json=serverIsBusy" json:"server_is_busy,omitempty"` + StaleCommand *StaleCommand `protobuf:"bytes,7,opt,name=stale_command,json=staleCommand" json:"stale_command,omitempty"` + StoreNotMatch *StoreNotMatch `protobuf:"bytes,8,opt,name=store_not_match,json=storeNotMatch" json:"store_not_match,omitempty"` + RaftEntryTooLarge *RaftEntryTooLarge `protobuf:"bytes,9,opt,name=raft_entry_too_large,json=raftEntryTooLarge" json:"raft_entry_too_large,omitempty"` + MaxTimestampNotSynced *MaxTimestampNotSynced `protobuf:"bytes,10,opt,name=max_timestamp_not_synced,json=maxTimestampNotSynced" json:"max_timestamp_not_synced,omitempty"` + ReadIndexNotReady *ReadIndexNotReady `protobuf:"bytes,11,opt,name=read_index_not_ready,json=readIndexNotReady" json:"read_index_not_ready,omitempty"` + ProposalInMergingMode *ProposalInMergingMode `protobuf:"bytes,12,opt,name=proposal_in_merging_mode,json=proposalInMergingMode" json:"proposal_in_merging_mode,omitempty"` + DataIsNotReady *DataIsNotReady `protobuf:"bytes,13,opt,name=data_is_not_ready,json=dataIsNotReady" json:"data_is_not_ready,omitempty"` + RegionNotInitialized *RegionNotInitialized `protobuf:"bytes,14,opt,name=region_not_initialized,json=regionNotInitialized" json:"region_not_initialized,omitempty"` + DiskFull *DiskFull `protobuf:"bytes,15,opt,name=disk_full,json=diskFull" json:"disk_full,omitempty"` // Online recovery is still in performing, reject writes to avoid potential issues - RecoveryInProgress *RecoveryInProgress `protobuf:"bytes,16,opt,name=RecoveryInProgress,proto3" json:"RecoveryInProgress,omitempty"` + RecoveryInProgress *RecoveryInProgress `protobuf:"bytes,16,opt,name=RecoveryInProgress" json:"RecoveryInProgress,omitempty"` // Flashback is still in performing, reject any read or write to avoid potential issues. // NOTICE: this error is non-retryable, the request should fail ASAP when it meets this error. - FlashbackInProgress *FlashbackInProgress `protobuf:"bytes,17,opt,name=FlashbackInProgress,proto3" json:"FlashbackInProgress,omitempty"` + FlashbackInProgress *FlashbackInProgress `protobuf:"bytes,17,opt,name=FlashbackInProgress" json:"FlashbackInProgress,omitempty"` // If the second phase flashback request is sent to a region that is not prepared for the flashback, // this error will be returned. // NOTICE: this error is non-retryable, the client should retry the first phase flashback request when it meets this error. - FlashbackNotPrepared *FlashbackNotPrepared `protobuf:"bytes,18,opt,name=FlashbackNotPrepared,proto3" json:"FlashbackNotPrepared,omitempty"` + FlashbackNotPrepared *FlashbackNotPrepared `protobuf:"bytes,18,opt,name=FlashbackNotPrepared" json:"FlashbackNotPrepared,omitempty"` // IsWitness is the error variant that tells a request be handle by witness // which should be forbidden and retry. - IsWitness *IsWitness `protobuf:"bytes,19,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` - MismatchPeerId *MismatchPeerId `protobuf:"bytes,20,opt,name=mismatch_peer_id,json=mismatchPeerId,proto3" json:"mismatch_peer_id,omitempty"` + IsWitness *IsWitness `protobuf:"bytes,19,opt,name=is_witness,json=isWitness" json:"is_witness,omitempty"` + MismatchPeerId *MismatchPeerId `protobuf:"bytes,20,opt,name=mismatch_peer_id,json=mismatchPeerId" json:"mismatch_peer_id,omitempty"` // BucketVersionNotMatch is the error variant that tells the request buckets version is not match. - BucketVersionNotMatch *BucketVersionNotMatch `protobuf:"bytes,21,opt,name=bucket_version_not_match,json=bucketVersionNotMatch,proto3" json:"bucket_version_not_match,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_390aa86757fd1154, []int{20} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + BucketVersionNotMatch *BucketVersionNotMatch `protobuf:"bytes,21,opt,name=bucket_version_not_match,json=bucketVersionNotMatch" json:"bucket_version_not_match,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{20} } func (m *Error) GetMessage() string { if m != nil { @@ -1380,94 +760,10 @@ func init() { proto.RegisterType((*MismatchPeerId)(nil), "errorpb.MismatchPeerId") proto.RegisterType((*Error)(nil), "errorpb.Error") } - -func init() { proto.RegisterFile("errorpb.proto", fileDescriptor_390aa86757fd1154) } - -var fileDescriptor_390aa86757fd1154 = []byte{ - // 1228 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xe1, 0x6e, 0x1b, 0x45, - 0x10, 0x80, 0x71, 0x92, 0x3a, 0xf6, 0xd8, 0x3e, 0xc7, 0xd7, 0xb8, 0x39, 0x5a, 0x1a, 0x55, 0x07, - 0xaa, 0x22, 0x04, 0x41, 0x6d, 0x91, 0x90, 0x40, 0x20, 0x35, 0x34, 0x55, 0xad, 0xd4, 0x26, 0xac, - 0x23, 0xf2, 0x07, 0xe9, 0xd8, 0xf8, 0xc6, 0xee, 0xca, 0x77, 0xb7, 0x66, 0x77, 0x9d, 0xd6, 0x7d, - 0x10, 0xc4, 0x23, 0xf0, 0x02, 0xbc, 0x03, 0x3f, 0xf9, 0xc9, 0x4f, 0x54, 0x5e, 0x04, 0xed, 0xee, - 0xf9, 0xec, 0xbb, 0x1e, 0x2e, 0xbf, 0x6e, 0x67, 0x76, 0x66, 0x76, 0x76, 0x67, 0xe7, 0xbb, 0x85, - 0x16, 0x0a, 0xc1, 0xc5, 0xec, 0xea, 0x78, 0x26, 0xb8, 0xe2, 0xee, 0x6e, 0x2a, 0xde, 0x6e, 0xc6, - 0xa8, 0xe8, 0x52, 0x7d, 0x7b, 0x7f, 0xc2, 0x27, 0xdc, 0x0c, 0x3f, 0xd3, 0xa3, 0x54, 0xdb, 0x16, - 0x73, 0xa9, 0xcc, 0xd0, 0x2a, 0xfc, 0x01, 0xd4, 0x07, 0x5c, 0x3d, 0x47, 0x1a, 0xa2, 0x70, 0xef, - 0x40, 0x5d, 0xe0, 0x84, 0xf1, 0x24, 0x60, 0xa1, 0x57, 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4f, 0x98, 0xb3, 0x32, 0x26, 0x7a, 0x7b, 0xc6, - 0xf1, 0xce, 0x5a, 0x02, 0x45, 0x13, 0x52, 0x86, 0xd2, 0x41, 0x29, 0x2d, 0xbd, 0x8e, 0x89, 0xf6, - 0x41, 0x16, 0xad, 0xc4, 0x86, 0x94, 0x62, 0xf6, 0xfb, 0x72, 0x36, 0x7a, 0x6e, 0xe1, 0x7c, 0xca, - 0x8c, 0x48, 0x39, 0x56, 0x1f, 0x00, 0x30, 0x19, 0xbc, 0xb4, 0x0f, 0x46, 0xef, 0x66, 0x81, 0x5b, - 0xd9, 0x53, 0x92, 0xd4, 0x59, 0xf6, 0xaa, 0x7c, 0x0c, 0x7b, 0x71, 0x0a, 0xdb, 0x8c, 0x9a, 0xfb, - 0x85, 0x52, 0xe7, 0x69, 0x4c, 0x9c, 0x38, 0x4f, 0xe7, 0x4b, 0xf0, 0xae, 0xcc, 0xdb, 0x33, 0x48, - 0x9f, 0x96, 0x6b, 0x3d, 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, - 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, - 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, - 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, -} - func (m *NotLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1475,43 +771,32 @@ func (m *NotLeader) Marshal() (dAtA []byte, err error) { } func (m *NotLeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NotLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.Leader.Size())) + n1, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *IsWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1519,31 +804,22 @@ func (m *IsWitness) Marshal() (dAtA []byte, err error) { } func (m *IsWitness) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *BucketVersionNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1551,40 +827,30 @@ func (m *BucketVersionNotMatch) Marshal() (dAtA []byte, err error) { } func (m *BucketVersionNotMatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketVersionNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Version != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.Version)) } 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 = encodeVarintErrorpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Version != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *DiskFull) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1592,26 +858,10 @@ func (m *DiskFull) Marshal() (dAtA []byte, err error) { } func (m *DiskFull) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DiskFull) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - } if len(m.StoreId) > 0 { dAtA3 := make([]byte, len(m.StoreId)*10) var j2 int @@ -1624,19 +874,24 @@ func (m *DiskFull) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA3[j2] = uint8(num) j2++ } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintErrorpb(dAtA, i, uint64(j2)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(j2)) + i += copy(dAtA[i:], dAtA3[:j2]) } - return len(dAtA) - i, nil + if len(m.Reason) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i += copy(dAtA[i:], m.Reason) + } + return i, nil } func (m *StoreNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1644,36 +899,27 @@ func (m *StoreNotMatch) Marshal() (dAtA []byte, err error) { } func (m *StoreNotMatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RequestStoreId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestStoreId)) } if m.ActualStoreId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.ActualStoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.ActualStoreId)) } - if m.RequestStoreId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestStoreId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RegionNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1681,31 +927,22 @@ func (m *RegionNotFound) Marshal() (dAtA []byte, err error) { } func (m *RegionNotFound) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionNotInitialized) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1713,31 +950,22 @@ func (m *RegionNotInitialized) Marshal() (dAtA []byte, err error) { } func (m *RegionNotInitialized) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionNotInitialized) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *KeyNotInRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1745,52 +973,40 @@ func (m *KeyNotInRegion) Marshal() (dAtA []byte, err error) { } func (m *KeyNotInRegion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyNotInRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x22 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if len(m.EndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *EpochNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1798,40 +1014,29 @@ func (m *EpochNotMatch) Marshal() (dAtA []byte, err error) { } func (m *EpochNotMatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.CurrentRegions) > 0 { - for iNdEx := len(m.CurrentRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrentRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.CurrentRegions { dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *ServerIsBusy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1839,48 +1044,38 @@ func (m *ServerIsBusy) Marshal() (dAtA []byte, err error) { } func (m *ServerIsBusy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerIsBusy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Reason) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i += copy(dAtA[i:], m.Reason) } - if m.AppliedIndex != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x20 + if m.BackoffMs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.BackoffMs)) } if m.EstimatedWaitMs != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.EstimatedWaitMs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.EstimatedWaitMs)) } - if m.BackoffMs != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.BackoffMs)) - i-- - dAtA[i] = 0x10 - } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa + if m.AppliedIndex != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.AppliedIndex)) } - return len(dAtA) - i, nil + return i, nil } func (m *StaleCommand) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1888,26 +1083,17 @@ func (m *StaleCommand) Marshal() (dAtA []byte, err error) { } func (m *StaleCommand) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StaleCommand) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1915,36 +1101,27 @@ func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error) { } func (m *RaftEntryTooLarge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftEntryTooLarge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } if m.EntrySize != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.EntrySize)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.EntrySize)) } - if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *MaxTimestampNotSynced) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1952,26 +1129,17 @@ func (m *MaxTimestampNotSynced) Marshal() (dAtA []byte, err error) { } func (m *MaxTimestampNotSynced) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MaxTimestampNotSynced) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ReadIndexNotReady) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1979,38 +1147,28 @@ func (m *ReadIndexNotReady) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexNotReady) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadIndexNotReady) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Reason) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i += copy(dAtA[i:], m.Reason) } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - if len(m.Reason) > 0 { - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ProposalInMergingMode) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2018,31 +1176,22 @@ func (m *ProposalInMergingMode) Marshal() (dAtA []byte, err error) { } func (m *ProposalInMergingMode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ProposalInMergingMode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *DataIsNotReady) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2050,41 +1199,32 @@ func (m *DataIsNotReady) Marshal() (dAtA []byte, err error) { } func (m *DataIsNotReady) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataIsNotReady) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SafeTs != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.SafeTs)) - i-- - dAtA[i] = 0x18 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } if m.PeerId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.PeerId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.PeerId)) } - if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.SafeTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.SafeTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *RecoveryInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2092,31 +1232,22 @@ func (m *RecoveryInProgress) Marshal() (dAtA []byte, err error) { } func (m *RecoveryInProgress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoveryInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2124,36 +1255,27 @@ func (m *FlashbackInProgress) Marshal() (dAtA []byte, err error) { } func (m *FlashbackInProgress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } if m.FlashbackStartTs != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackStartTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackStartTs)) } - if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackNotPrepared) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2161,31 +1283,22 @@ func (m *FlashbackNotPrepared) Marshal() (dAtA []byte, err error) { } func (m *FlashbackNotPrepared) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackNotPrepared) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *MismatchPeerId) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2193,36 +1306,27 @@ func (m *MismatchPeerId) Marshal() (dAtA []byte, err error) { } func (m *MismatchPeerId) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MismatchPeerId) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RequestPeerId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestPeerId)) } if m.StorePeerId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.StorePeerId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.StorePeerId)) } - if m.RequestPeerId != 0 { - i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestPeerId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2230,296 +1334,241 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Message) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.BucketVersionNotMatch != nil { - { - size, err := m.BucketVersionNotMatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.NotLeader != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.NotLeader.Size())) + n4, err := m.NotLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa + i += n4 } - if m.MismatchPeerId != nil { - { - size, err := m.MismatchPeerId.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.RegionNotFound != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionNotFound.Size())) + n5, err := m.RegionNotFound.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 + i += n5 } - if m.IsWitness != nil { - { - size, err := m.IsWitness.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.KeyNotInRegion != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.KeyNotInRegion.Size())) + n6, err := m.KeyNotInRegion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + i += n6 } - if m.FlashbackNotPrepared != nil { - { - size, err := m.FlashbackNotPrepared.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.EpochNotMatch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.EpochNotMatch.Size())) + n7, err := m.EpochNotMatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 + i += n7 } - if m.FlashbackInProgress != nil { - { - size, err := m.FlashbackInProgress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.ServerIsBusy != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.ServerIsBusy.Size())) + n8, err := m.ServerIsBusy.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + i += n8 } - if m.RecoveryInProgress != nil { - { - size, err := m.RecoveryInProgress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.StaleCommand != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.StaleCommand.Size())) + n9, err := m.StaleCommand.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n9 } - if m.DiskFull != nil { - { - size, err := m.DiskFull.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.StoreNotMatch != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.StoreNotMatch.Size())) + n10, err := m.StoreNotMatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x7a + i += n10 } - if m.RegionNotInitialized != nil { - { - size, err := m.RegionNotInitialized.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.RaftEntryTooLarge != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RaftEntryTooLarge.Size())) + n11, err := m.RaftEntryTooLarge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x72 + i += n11 } - if m.DataIsNotReady != nil { - { - size, err := m.DataIsNotReady.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.MaxTimestampNotSynced != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.MaxTimestampNotSynced.Size())) + n12, err := m.MaxTimestampNotSynced.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6a + i += n12 } - if m.ProposalInMergingMode != nil { - { - size, err := m.ProposalInMergingMode.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.ReadIndexNotReady != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.ReadIndexNotReady.Size())) + n13, err := m.ReadIndexNotReady.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x62 + i += n13 } - if m.ReadIndexNotReady != nil { - { - size, err := m.ReadIndexNotReady.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.ProposalInMergingMode != nil { + dAtA[i] = 0x62 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.ProposalInMergingMode.Size())) + n14, err := m.ProposalInMergingMode.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n14 } - if m.MaxTimestampNotSynced != nil { - { - size, err := m.MaxTimestampNotSynced.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.DataIsNotReady != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.DataIsNotReady.Size())) + n15, err := m.DataIsNotReady.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n15 } - if m.RaftEntryTooLarge != nil { - { - size, err := m.RaftEntryTooLarge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.RegionNotInitialized != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionNotInitialized.Size())) + n16, err := m.RegionNotInitialized.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n16 } - if m.StoreNotMatch != nil { - { - size, err := m.StoreNotMatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.DiskFull != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.DiskFull.Size())) + n17, err := m.DiskFull.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n17 } - if m.StaleCommand != nil { - { - size, err := m.StaleCommand.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.RecoveryInProgress != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.RecoveryInProgress.Size())) + n18, err := m.RecoveryInProgress.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n18 } - if m.ServerIsBusy != nil { - { - size, err := m.ServerIsBusy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.FlashbackInProgress != nil { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackInProgress.Size())) + n19, err := m.FlashbackInProgress.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n19 } - if m.EpochNotMatch != nil { - { - size, err := m.EpochNotMatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.FlashbackNotPrepared != nil { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackNotPrepared.Size())) + n20, err := m.FlashbackNotPrepared.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n20 } - if m.KeyNotInRegion != nil { - { - size, err := m.KeyNotInRegion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.IsWitness != nil { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.IsWitness.Size())) + n21, err := m.IsWitness.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n21 } - if m.RegionNotFound != nil { - { - size, err := m.RegionNotFound.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.MismatchPeerId != nil { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.MismatchPeerId.Size())) + n22, err := m.MismatchPeerId.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n22 } - if m.NotLeader != nil { - { - size, err := m.NotLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintErrorpb(dAtA, i, uint64(size)) + if m.BucketVersionNotMatch != nil { + dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.BucketVersionNotMatch.Size())) + n23, err := m.BucketVersionNotMatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa + i += n23 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintErrorpb(dAtA []byte, offset int, v uint64) int { - offset -= sovErrorpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *NotLeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2529,31 +1578,19 @@ func (m *NotLeader) Size() (n int) { l = m.Leader.Size() n += 1 + l + sovErrorpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BucketVersionNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != 0 { @@ -2565,16 +1602,10 @@ func (m *BucketVersionNotMatch) Size() (n int) { n += 1 + l + sovErrorpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DiskFull) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.StoreId) > 0 { @@ -2588,16 +1619,10 @@ func (m *DiskFull) Size() (n int) { if l > 0 { n += 1 + l + sovErrorpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RequestStoreId != 0 { @@ -2606,46 +1631,28 @@ func (m *StoreNotMatch) Size() (n int) { if m.ActualStoreId != 0 { n += 1 + sovErrorpb(uint64(m.ActualStoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionNotInitialized) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyNotInRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -2663,16 +1670,10 @@ func (m *KeyNotInRegion) Size() (n int) { if l > 0 { n += 1 + l + sovErrorpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EpochNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.CurrentRegions) > 0 { @@ -2681,16 +1682,10 @@ func (m *EpochNotMatch) Size() (n int) { n += 1 + l + sovErrorpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ServerIsBusy) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) @@ -2706,28 +1701,16 @@ func (m *ServerIsBusy) Size() (n int) { if m.AppliedIndex != 0 { n += 1 + sovErrorpb(uint64(m.AppliedIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StaleCommand) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftEntryTooLarge) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2736,28 +1719,16 @@ func (m *RaftEntryTooLarge) Size() (n int) { if m.EntrySize != 0 { n += 1 + sovErrorpb(uint64(m.EntrySize)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MaxTimestampNotSynced) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadIndexNotReady) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) @@ -2767,31 +1738,19 @@ func (m *ReadIndexNotReady) Size() (n int) { if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ProposalInMergingMode) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DataIsNotReady) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2803,31 +1762,19 @@ func (m *DataIsNotReady) Size() (n int) { if m.SafeTs != 0 { n += 1 + sovErrorpb(uint64(m.SafeTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoveryInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2836,31 +1783,19 @@ func (m *FlashbackInProgress) Size() (n int) { if m.FlashbackStartTs != 0 { n += 1 + sovErrorpb(uint64(m.FlashbackStartTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackNotPrepared) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MismatchPeerId) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RequestPeerId != 0 { @@ -2869,16 +1804,10 @@ func (m *MismatchPeerId) Size() (n int) { if m.StorePeerId != 0 { n += 1 + sovErrorpb(uint64(m.StorePeerId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) @@ -2965,14 +1894,18 @@ func (m *Error) Size() (n int) { l = m.BucketVersionNotMatch.Size() n += 2 + l + sovErrorpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovErrorpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozErrorpb(x uint64) (n int) { return sovErrorpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2992,7 +1925,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3020,7 +1953,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3039,7 +1972,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3048,9 +1981,6 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3067,13 +1997,12 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3098,7 +2027,7 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3126,7 +2055,7 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3137,13 +2066,12 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3168,7 +2096,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3196,7 +2124,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3215,7 +2143,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3224,9 +2152,6 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3239,13 +2164,12 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3270,7 +2194,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3296,7 +2220,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3313,7 +2237,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3322,23 +2246,9 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } 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.StoreId) == 0 { - m.StoreId = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3350,7 +2260,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3374,7 +2284,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3384,9 +2294,6 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3398,13 +2305,12 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3429,7 +2335,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3457,7 +2363,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestStoreId |= uint64(b&0x7F) << shift + m.RequestStoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3476,7 +2382,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActualStoreId |= uint64(b&0x7F) << shift + m.ActualStoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3487,13 +2393,12 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3518,7 +2423,7 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3546,7 +2451,7 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3557,13 +2462,12 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3588,7 +2492,7 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3616,7 +2520,7 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3627,13 +2531,12 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3658,7 +2561,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3686,7 +2589,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3695,9 +2598,6 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3720,7 +2620,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3739,7 +2639,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3748,9 +2648,6 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3773,7 +2670,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3782,9 +2679,6 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3799,13 +2693,12 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3830,7 +2723,7 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3858,7 +2751,7 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3867,9 +2760,6 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3884,13 +2774,12 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3915,7 +2804,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3943,7 +2832,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3953,9 +2842,6 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3975,7 +2861,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BackoffMs |= uint64(b&0x7F) << shift + m.BackoffMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3994,7 +2880,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EstimatedWaitMs |= uint32(b&0x7F) << shift + m.EstimatedWaitMs |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -4013,7 +2899,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4024,13 +2910,12 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4055,7 +2940,7 @@ func (m *StaleCommand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4075,13 +2960,12 @@ func (m *StaleCommand) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4106,7 +2990,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4134,7 +3018,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4153,7 +3037,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EntrySize |= uint64(b&0x7F) << shift + m.EntrySize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4164,13 +3048,12 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4195,7 +3078,7 @@ func (m *MaxTimestampNotSynced) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4215,13 +3098,12 @@ func (m *MaxTimestampNotSynced) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4246,7 +3128,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4274,7 +3156,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4284,9 +3166,6 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4306,7 +3185,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4317,13 +3196,12 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4348,7 +3226,7 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4376,7 +3254,7 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4387,13 +3265,12 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4418,7 +3295,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4446,7 +3323,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4465,7 +3342,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + m.PeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4484,7 +3361,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= uint64(b&0x7F) << shift + m.SafeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4495,13 +3372,12 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4526,7 +3402,7 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4554,7 +3430,7 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4565,13 +3441,12 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4596,7 +3471,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4624,7 +3499,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4643,7 +3518,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FlashbackStartTs |= uint64(b&0x7F) << shift + m.FlashbackStartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4654,13 +3529,12 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4685,7 +3559,7 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4713,7 +3587,7 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4724,13 +3598,12 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4755,7 +3628,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4783,7 +3656,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestPeerId |= uint64(b&0x7F) << shift + m.RequestPeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4802,7 +3675,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StorePeerId |= uint64(b&0x7F) << shift + m.StorePeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4813,13 +3686,12 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4844,7 +3716,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4872,7 +3744,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4882,9 +3754,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4904,7 +3773,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4913,9 +3782,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4940,7 +3806,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4949,9 +3815,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4976,7 +3839,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4985,9 +3848,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5012,7 +3872,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5021,9 +3881,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5048,7 +3905,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5057,9 +3914,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5084,7 +3938,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5093,9 +3947,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5120,7 +3971,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5129,9 +3980,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5156,7 +4004,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5165,9 +4013,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5192,7 +4037,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5201,9 +4046,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5228,7 +4070,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5237,9 +4079,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5264,7 +4103,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5273,9 +4112,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5300,7 +4136,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5309,9 +4145,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5336,7 +4169,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5345,9 +4178,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5372,7 +4202,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5381,9 +4211,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5408,7 +4235,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5417,9 +4244,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5444,7 +4268,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5453,9 +4277,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5480,7 +4301,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5489,9 +4310,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5516,7 +4334,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5525,9 +4343,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5552,7 +4367,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5561,9 +4376,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5588,7 +4400,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5597,9 +4409,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthErrorpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5616,13 +4425,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5635,7 +4443,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { func skipErrorpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -5667,8 +4474,10 @@ func skipErrorpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -5685,34 +4494,136 @@ func skipErrorpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthErrorpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupErrorpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowErrorpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipErrorpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthErrorpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthErrorpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowErrorpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupErrorpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthErrorpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowErrorpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("errorpb.proto", fileDescriptorErrorpb) } + +var fileDescriptorErrorpb = []byte{ + // 1228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xe1, 0x6e, 0x1b, 0x45, + 0x10, 0x80, 0x71, 0x92, 0x3a, 0xf6, 0xd8, 0x3e, 0xc7, 0xd7, 0xb8, 0x39, 0x5a, 0x1a, 0x55, 0x07, + 0xaa, 0x22, 0x04, 0x41, 0x6d, 0x91, 0x90, 0x40, 0x20, 0x35, 0x34, 0x55, 0xad, 0xd4, 0x26, 0xac, + 0x23, 0xf2, 0x07, 0xe9, 0xd8, 0xf8, 0xc6, 0xee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b, 0x33, 0x48, + 0x9f, 0x96, 0x6b, 0x3d, 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, + 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, + 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, + 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, +} diff --git a/pkg/gcpb/gcpb.pb.go b/pkg/gcpb/gcpb.pb.go index de95856f5..7ea7a0557 100644 --- a/pkg/gcpb/gcpb.pb.go +++ b/pkg/gcpb/gcpb.pb.go @@ -1,20 +1,41 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: gcpb.proto +/* +Package gcpb is a generated protocol buffer package. + +It is generated from these files: + + gcpb.proto + +It has these top-level messages: + + RequestHeader + ResponseHeader + Error + KeySpace + ListKeySpacesRequest + ListKeySpacesResponse + GetMinServiceSafePointRequest + GetMinServiceSafePointResponse + UpdateGCSafePointRequest + UpdateGCSafePointResponse + UpdateServiceSafePointRequest + UpdateServiceSafePointResponse +*/ package gcpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +47,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -47,7 +68,6 @@ var ErrorType_name = map[int32]string{ 3: "REVISION_MISMATCH", 4: "SAFEPOINT_ROLLBACK", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -59,53 +79,19 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } - -func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{0} -} +func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{0} } type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // sender_id is the ID of the sender server, also member ID or etcd ID. - SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{0} -} -func (m *RequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestHeader.Merge(m, src) -} -func (m *RequestHeader) XXX_Size() int { - return m.Size() -} -func (m *RequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RequestHeader.DiscardUnknown(m) + SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` } -var xxx_messageInfo_RequestHeader proto.InternalMessageInfo +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{0} } func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -123,45 +109,14 @@ func (m *RequestHeader) GetSenderId() uint64 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{1} -} -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) -} -func (m *ResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{1} } func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -178,45 +133,14 @@ func (m *ResponseHeader) GetError() *Error { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=gcpb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{2} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=gcpb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{2} } func (m *Error) GetType() ErrorType { if m != nil { @@ -233,45 +157,14 @@ func (m *Error) GetMessage() string { } type KeySpace struct { - SpaceId []byte `protobuf:"bytes,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeySpace) Reset() { *m = KeySpace{} } -func (m *KeySpace) String() string { return proto.CompactTextString(m) } -func (*KeySpace) ProtoMessage() {} -func (*KeySpace) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{3} -} -func (m *KeySpace) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeySpace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeySpace.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 *KeySpace) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeySpace.Merge(m, src) -} -func (m *KeySpace) XXX_Size() int { - return m.Size() -} -func (m *KeySpace) XXX_DiscardUnknown() { - xxx_messageInfo_KeySpace.DiscardUnknown(m) + SpaceId []byte `protobuf:"bytes,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` } -var xxx_messageInfo_KeySpace proto.InternalMessageInfo +func (m *KeySpace) Reset() { *m = KeySpace{} } +func (m *KeySpace) String() string { return proto.CompactTextString(m) } +func (*KeySpace) ProtoMessage() {} +func (*KeySpace) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{3} } func (m *KeySpace) GetSpaceId() []byte { if m != nil { @@ -288,46 +181,15 @@ func (m *KeySpace) GetGcSafePoint() uint64 { } type ListKeySpacesRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // set with_gc_safe_point to true to also receive gc safe point for each key space - WithGcSafePoint bool `protobuf:"varint,2,opt,name=with_gc_safe_point,json=withGcSafePoint,proto3" json:"with_gc_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListKeySpacesRequest) Reset() { *m = ListKeySpacesRequest{} } -func (m *ListKeySpacesRequest) String() string { return proto.CompactTextString(m) } -func (*ListKeySpacesRequest) ProtoMessage() {} -func (*ListKeySpacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{4} -} -func (m *ListKeySpacesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListKeySpacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListKeySpacesRequest.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 *ListKeySpacesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListKeySpacesRequest.Merge(m, src) -} -func (m *ListKeySpacesRequest) XXX_Size() int { - return m.Size() -} -func (m *ListKeySpacesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListKeySpacesRequest.DiscardUnknown(m) + WithGcSafePoint bool `protobuf:"varint,2,opt,name=with_gc_safe_point,json=withGcSafePoint,proto3" json:"with_gc_safe_point,omitempty"` } -var xxx_messageInfo_ListKeySpacesRequest proto.InternalMessageInfo +func (m *ListKeySpacesRequest) Reset() { *m = ListKeySpacesRequest{} } +func (m *ListKeySpacesRequest) String() string { return proto.CompactTextString(m) } +func (*ListKeySpacesRequest) ProtoMessage() {} +func (*ListKeySpacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{4} } func (m *ListKeySpacesRequest) GetHeader() *RequestHeader { if m != nil { @@ -344,45 +206,14 @@ func (m *ListKeySpacesRequest) GetWithGcSafePoint() bool { } type ListKeySpacesResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeySpaces []*KeySpace `protobuf:"bytes,2,rep,name=key_spaces,json=keySpaces,proto3" json:"key_spaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListKeySpacesResponse) Reset() { *m = ListKeySpacesResponse{} } -func (m *ListKeySpacesResponse) String() string { return proto.CompactTextString(m) } -func (*ListKeySpacesResponse) ProtoMessage() {} -func (*ListKeySpacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{5} -} -func (m *ListKeySpacesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListKeySpacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListKeySpacesResponse.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 *ListKeySpacesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListKeySpacesResponse.Merge(m, src) -} -func (m *ListKeySpacesResponse) XXX_Size() int { - return m.Size() -} -func (m *ListKeySpacesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListKeySpacesResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + KeySpaces []*KeySpace `protobuf:"bytes,2,rep,name=key_spaces,json=keySpaces" json:"key_spaces,omitempty"` } -var xxx_messageInfo_ListKeySpacesResponse proto.InternalMessageInfo +func (m *ListKeySpacesResponse) Reset() { *m = ListKeySpacesResponse{} } +func (m *ListKeySpacesResponse) String() string { return proto.CompactTextString(m) } +func (*ListKeySpacesResponse) ProtoMessage() {} +func (*ListKeySpacesResponse) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{5} } func (m *ListKeySpacesResponse) GetHeader() *ResponseHeader { if m != nil { @@ -399,45 +230,16 @@ func (m *ListKeySpacesResponse) GetKeySpaces() []*KeySpace { } type GetMinServiceSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` } func (m *GetMinServiceSafePointRequest) Reset() { *m = GetMinServiceSafePointRequest{} } func (m *GetMinServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointRequest) ProtoMessage() {} func (*GetMinServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{6} -} -func (m *GetMinServiceSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMinServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMinServiceSafePointRequest.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 *GetMinServiceSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinServiceSafePointRequest.Merge(m, src) -} -func (m *GetMinServiceSafePointRequest) XXX_Size() int { - return m.Size() + return fileDescriptorGcpb, []int{6} } -func (m *GetMinServiceSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinServiceSafePointRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetMinServiceSafePointRequest proto.InternalMessageInfo func (m *GetMinServiceSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -454,48 +256,19 @@ func (m *GetMinServiceSafePointRequest) GetSpaceId() []byte { } type GetMinServiceSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` // revision here is to safeguard the validity of the obtained min, // preventing cases where new services register their safe points after min is obtained by gc worker - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` } func (m *GetMinServiceSafePointResponse) Reset() { *m = GetMinServiceSafePointResponse{} } func (m *GetMinServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointResponse) ProtoMessage() {} func (*GetMinServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{7} -} -func (m *GetMinServiceSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMinServiceSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMinServiceSafePointResponse.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 *GetMinServiceSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinServiceSafePointResponse.Merge(m, src) -} -func (m *GetMinServiceSafePointResponse) XXX_Size() int { - return m.Size() + return fileDescriptorGcpb, []int{7} } -func (m *GetMinServiceSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinServiceSafePointResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetMinServiceSafePointResponse proto.InternalMessageInfo func (m *GetMinServiceSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -519,49 +292,18 @@ func (m *GetMinServiceSafePointResponse) GetRevision() int64 { } type UpdateGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` // here client need to provide the revision obtained from GetMinServiceSafePoint, // so server can check if it's still valid - Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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_b5e0ef170d88dab2, []int{8} -} -func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointRequest.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 *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointRequest.Merge(m, src) -} -func (m *UpdateGCSafePointRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateGCSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointRequest.DiscardUnknown(m) + Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_UpdateGCSafePointRequest proto.InternalMessageInfo +func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } +func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointRequest) ProtoMessage() {} +func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{8} } func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -592,48 +334,17 @@ func (m *UpdateGCSafePointRequest) GetRevision() int64 { } type UpdateGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // update will be successful if revision is valid and new safepoint > old safe point // if failed, previously obtained min might be incorrect, should retry from GetMinServiceSafePoint - Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` - NewSafePoint uint64 `protobuf:"varint,3,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } -func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointResponse) ProtoMessage() {} -func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{9} -} -func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointResponse.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 *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointResponse.Merge(m, src) -} -func (m *UpdateGCSafePointResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateGCSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointResponse.DiscardUnknown(m) + Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + NewSafePoint uint64 `protobuf:"varint,3,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` } -var xxx_messageInfo_UpdateGCSafePointResponse proto.InternalMessageInfo +func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } +func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointResponse) ProtoMessage() {} +func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{9} } func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -657,52 +368,23 @@ func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { } type UpdateServiceSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` ServiceId []byte `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // safe point will be set to expire on (PD Server time + TTL) // pass in a ttl < 0 to remove target safe point // pass in MAX_INT64 to set a safe point that never expire - TTL int64 `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"` - SafePoint uint64 `protobuf:"varint,5,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TTL int64 `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"` + SafePoint uint64 `protobuf:"varint,5,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } func (m *UpdateServiceSafePointRequest) Reset() { *m = UpdateServiceSafePointRequest{} } func (m *UpdateServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointRequest) ProtoMessage() {} func (*UpdateServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{10} -} -func (m *UpdateServiceSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceSafePointRequest.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 *UpdateServiceSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceSafePointRequest.Merge(m, src) -} -func (m *UpdateServiceSafePointRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateServiceSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceSafePointRequest.DiscardUnknown(m) + return fileDescriptorGcpb, []int{10} } -var xxx_messageInfo_UpdateServiceSafePointRequest proto.InternalMessageInfo - func (m *UpdateServiceSafePointRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -739,51 +421,22 @@ func (m *UpdateServiceSafePointRequest) GetSafePoint() uint64 { } type UpdateServiceSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // update will be successful if ttl < 0 (a removal request) // or if new safe point >= old safe point and new safe point >= gc safe point - Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` - GcSafePoint uint64 `protobuf:"varint,3,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` - OldSafePoint uint64 `protobuf:"varint,4,opt,name=old_safe_point,json=oldSafePoint,proto3" json:"old_safe_point,omitempty"` - NewSafePoint uint64 `protobuf:"varint,5,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + GcSafePoint uint64 `protobuf:"varint,3,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + OldSafePoint uint64 `protobuf:"varint,4,opt,name=old_safe_point,json=oldSafePoint,proto3" json:"old_safe_point,omitempty"` + NewSafePoint uint64 `protobuf:"varint,5,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` } func (m *UpdateServiceSafePointResponse) Reset() { *m = UpdateServiceSafePointResponse{} } func (m *UpdateServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointResponse) ProtoMessage() {} func (*UpdateServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{11} -} -func (m *UpdateServiceSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateServiceSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceSafePointResponse.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 *UpdateServiceSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceSafePointResponse.Merge(m, src) -} -func (m *UpdateServiceSafePointResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateServiceSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceSafePointResponse.DiscardUnknown(m) + return fileDescriptorGcpb, []int{11} } -var xxx_messageInfo_UpdateServiceSafePointResponse proto.InternalMessageInfo - func (m *UpdateServiceSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -820,7 +473,6 @@ func (m *UpdateServiceSafePointResponse) GetNewSafePoint() uint64 { } func init() { - proto.RegisterEnum("gcpb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "gcpb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "gcpb.ResponseHeader") proto.RegisterType((*Error)(nil), "gcpb.Error") @@ -833,59 +485,7 @@ func init() { proto.RegisterType((*UpdateGCSafePointResponse)(nil), "gcpb.UpdateGCSafePointResponse") proto.RegisterType((*UpdateServiceSafePointRequest)(nil), "gcpb.UpdateServiceSafePointRequest") proto.RegisterType((*UpdateServiceSafePointResponse)(nil), "gcpb.UpdateServiceSafePointResponse") -} - -func init() { proto.RegisterFile("gcpb.proto", fileDescriptor_b5e0ef170d88dab2) } - -var fileDescriptor_b5e0ef170d88dab2 = []byte{ - // 750 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, - 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, - 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, - 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, - 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, - 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0x00, 0x2c, 0xc3, - 0xbd, 0x2c, 0xb8, 0x9e, 0xe3, 0x3b, 0x28, 0x16, 0xac, 0xb3, 0x69, 0xcb, 0xb1, 0x1c, 0x1a, 0x78, - 0x11, 0xac, 0x18, 0x96, 0xdd, 0xf0, 0x7a, 0xc4, 0xa7, 0x4b, 0x16, 0x90, 0x6a, 0xb0, 0xae, 0xe2, - 0x77, 0x3d, 0x4c, 0xfc, 0x53, 0xdc, 0x36, 0xb1, 0x87, 0x72, 0x00, 0xc6, 0x4d, 0x8f, 0xf8, 0xd8, - 0xd3, 0x6d, 0x33, 0xc3, 0xed, 0x71, 0x87, 0x31, 0x55, 0x18, 0x46, 0x64, 0x13, 0xed, 0x82, 0x40, - 0x70, 0xd7, 0x64, 0x68, 0x94, 0xa2, 0x09, 0x16, 0x90, 0x4d, 0x49, 0x85, 0x94, 0x8a, 0x89, 0xeb, - 0x74, 0x09, 0xfe, 0xbb, 0x6c, 0xff, 0x43, 0x1c, 0x7b, 0x9e, 0xe3, 0xd1, 0x4c, 0xc9, 0x62, 0xb2, - 0x40, 0xcb, 0xa8, 0x04, 0x21, 0x95, 0x21, 0x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26, 0x9d, 0x23, 0x08, 0x00, 0x00, + proto.RegisterEnum("gcpb.ErrorType", ErrorType_name, ErrorType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -896,9 +496,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// GCClient is the client API for GC service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for GC service + type GCClient interface { ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, opts ...grpc.CallOption) (*ListKeySpacesResponse, error) GetMinServiceSafePoint(ctx context.Context, in *GetMinServiceSafePointRequest, opts ...grpc.CallOption) (*GetMinServiceSafePointResponse, error) @@ -916,7 +515,7 @@ func NewGCClient(cc *grpc.ClientConn) GCClient { func (c *gCClient) ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, opts ...grpc.CallOption) (*ListKeySpacesResponse, error) { out := new(ListKeySpacesResponse) - err := c.cc.Invoke(ctx, "/gcpb.GC/ListKeySpaces", in, out, opts...) + err := grpc.Invoke(ctx, "/gcpb.GC/ListKeySpaces", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -925,7 +524,7 @@ func (c *gCClient) ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, func (c *gCClient) GetMinServiceSafePoint(ctx context.Context, in *GetMinServiceSafePointRequest, opts ...grpc.CallOption) (*GetMinServiceSafePointResponse, error) { out := new(GetMinServiceSafePointResponse) - err := c.cc.Invoke(ctx, "/gcpb.GC/GetMinServiceSafePoint", in, out, opts...) + err := grpc.Invoke(ctx, "/gcpb.GC/GetMinServiceSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -934,7 +533,7 @@ func (c *gCClient) GetMinServiceSafePoint(ctx context.Context, in *GetMinService func (c *gCClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) { out := new(UpdateGCSafePointResponse) - err := c.cc.Invoke(ctx, "/gcpb.GC/UpdateGCSafePoint", in, out, opts...) + err := grpc.Invoke(ctx, "/gcpb.GC/UpdateGCSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -943,14 +542,15 @@ func (c *gCClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointR func (c *gCClient) UpdateServiceSafePoint(ctx context.Context, in *UpdateServiceSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceSafePointResponse, error) { out := new(UpdateServiceSafePointResponse) - err := c.cc.Invoke(ctx, "/gcpb.GC/UpdateServiceSafePoint", in, out, opts...) + err := grpc.Invoke(ctx, "/gcpb.GC/UpdateServiceSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// GCServer is the server API for GC service. +// Server API for GC service + type GCServer interface { ListKeySpaces(context.Context, *ListKeySpacesRequest) (*ListKeySpacesResponse, error) GetMinServiceSafePoint(context.Context, *GetMinServiceSafePointRequest) (*GetMinServiceSafePointResponse, error) @@ -958,23 +558,6 @@ type GCServer interface { UpdateServiceSafePoint(context.Context, *UpdateServiceSafePointRequest) (*UpdateServiceSafePointResponse, error) } -// UnimplementedGCServer can be embedded to have forward compatible implementations. -type UnimplementedGCServer struct { -} - -func (*UnimplementedGCServer) ListKeySpaces(ctx context.Context, req *ListKeySpacesRequest) (*ListKeySpacesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListKeySpaces not implemented") -} -func (*UnimplementedGCServer) GetMinServiceSafePoint(ctx context.Context, req *GetMinServiceSafePointRequest) (*GetMinServiceSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMinServiceSafePoint not implemented") -} -func (*UnimplementedGCServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") -} -func (*UnimplementedGCServer) UpdateServiceSafePoint(ctx context.Context, req *UpdateServiceSafePointRequest) (*UpdateServiceSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePoint not implemented") -} - func RegisterGCServer(s *grpc.Server, srv GCServer) { s.RegisterService(&_GC_serviceDesc, srv) } @@ -1079,7 +662,7 @@ var _GC_serviceDesc = grpc.ServiceDesc{ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1087,36 +670,27 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) } if m.SenderId != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.SenderId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.SenderId)) } - if m.ClusterId != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1124,43 +698,32 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Error.Size())) + n1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.ClusterId != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1168,38 +731,28 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Type)) } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Type != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *KeySpace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1207,38 +760,28 @@ func (m *KeySpace) Marshal() (dAtA []byte, err error) { } func (m *KeySpace) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeySpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.SpaceId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i += copy(dAtA[i:], m.SpaceId) } if m.GcSafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) } - if len(m.SpaceId) > 0 { - i -= len(m.SpaceId) - copy(dAtA[i:], m.SpaceId) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ListKeySpacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1246,48 +789,37 @@ func (m *ListKeySpacesRequest) Marshal() (dAtA []byte, err error) { } func (m *ListKeySpacesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListKeySpacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.WithGcSafePoint { - i-- + dAtA[i] = 0x10 + i++ if m.WithGcSafePoint { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ListKeySpacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1295,52 +827,39 @@ func (m *ListKeySpacesResponse) Marshal() (dAtA []byte, err error) { } func (m *ListKeySpacesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListKeySpacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n3, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } if len(m.KeySpaces) > 0 { - for iNdEx := len(m.KeySpaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.KeySpaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.KeySpaces { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintGcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetMinServiceSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1348,45 +867,33 @@ func (m *GetMinServiceSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMinServiceSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMinServiceSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n4, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } if len(m.SpaceId) > 0 { - i -= len(m.SpaceId) - copy(dAtA[i:], m.SpaceId) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i += copy(dAtA[i:], m.SpaceId) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetMinServiceSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1394,48 +901,37 @@ func (m *GetMinServiceSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMinServiceSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMinServiceSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } if m.SafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1443,55 +939,43 @@ func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x20 - } - if m.SafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } if len(m.SpaceId) > 0 { - i -= len(m.SpaceId) - copy(dAtA[i:], m.SpaceId) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i += copy(dAtA[i:], m.SpaceId) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.SafePoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) + } + if m.Revision != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1499,53 +983,42 @@ func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.NewSafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n7, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if m.Succeeded { - i-- + dAtA[i] = 0x10 + i++ if m.Succeeded { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.NewSafePoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateServiceSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1553,62 +1026,49 @@ func (m *UpdateServiceSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x28 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n8, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - if m.TTL != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.TTL)) - i-- - dAtA[i] = 0x20 + if len(m.SpaceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i += copy(dAtA[i:], m.SpaceId) } if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.ServiceId))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintGcpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } - if len(m.SpaceId) > 0 { - i -= len(m.SpaceId) - copy(dAtA[i:], m.SpaceId) - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i-- - dAtA[i] = 0x12 + if m.TTL != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.TTL)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.SafePoint != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateServiceSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1616,74 +1076,58 @@ func (m *UpdateServiceSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.NewSafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) - i-- - dAtA[i] = 0x28 - } - if m.OldSafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.OldSafePoint)) - i-- - dAtA[i] = 0x20 - } - if m.GcSafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n9, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } if m.Succeeded { - i-- + dAtA[i] = 0x10 + i++ if m.Succeeded { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.GcSafePoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) + } + if m.OldSafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.OldSafePoint)) } - return len(dAtA) - i, nil + if m.NewSafePoint != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + } + return i, nil } func encodeVarintGcpb(dAtA []byte, offset int, v uint64) int { - offset -= sovGcpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1692,16 +1136,10 @@ func (m *RequestHeader) Size() (n int) { if m.SenderId != 0 { n += 1 + sovGcpb(uint64(m.SenderId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1711,16 +1149,10 @@ func (m *ResponseHeader) Size() (n int) { l = m.Error.Size() n += 1 + l + sovGcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -1730,16 +1162,10 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovGcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeySpace) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.SpaceId) @@ -1749,16 +1175,10 @@ func (m *KeySpace) Size() (n int) { if m.GcSafePoint != 0 { n += 1 + sovGcpb(uint64(m.GcSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListKeySpacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1768,16 +1188,10 @@ func (m *ListKeySpacesRequest) Size() (n int) { if m.WithGcSafePoint { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListKeySpacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1790,16 +1204,10 @@ func (m *ListKeySpacesResponse) Size() (n int) { n += 1 + l + sovGcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMinServiceSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1810,16 +1218,10 @@ func (m *GetMinServiceSafePointRequest) Size() (n int) { if l > 0 { n += 1 + l + sovGcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMinServiceSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1832,16 +1234,10 @@ func (m *GetMinServiceSafePointResponse) Size() (n int) { if m.Revision != 0 { n += 1 + sovGcpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1858,16 +1254,10 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { if m.Revision != 0 { n += 1 + sovGcpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1880,16 +1270,10 @@ func (m *UpdateGCSafePointResponse) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovGcpb(uint64(m.NewSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1910,16 +1294,10 @@ func (m *UpdateServiceSafePointRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovGcpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1938,14 +1316,18 @@ func (m *UpdateServiceSafePointResponse) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovGcpb(uint64(m.NewSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovGcpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozGcpb(x uint64) (n int) { return sovGcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1965,7 +1347,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1993,7 +1375,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2012,7 +1394,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= uint64(b&0x7F) << shift + m.SenderId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2023,13 +1405,12 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2054,7 +1435,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2082,7 +1463,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2101,7 +1482,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2110,9 +1491,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2129,13 +1507,12 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2160,7 +1537,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2188,7 +1565,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ErrorType(b&0x7F) << shift + m.Type |= (ErrorType(b) & 0x7F) << shift if b < 0x80 { break } @@ -2207,7 +1584,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2217,9 +1594,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2231,13 +1605,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2262,7 +1635,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2290,7 +1663,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2299,9 +1672,6 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2324,7 +1694,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcSafePoint |= uint64(b&0x7F) << shift + m.GcSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2335,13 +1705,12 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2366,7 +1735,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2394,7 +1763,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2403,9 +1772,6 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2430,7 +1796,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2442,13 +1808,12 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2473,7 +1838,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2501,7 +1866,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2510,9 +1875,6 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2537,7 +1899,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2546,9 +1908,6 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2563,13 +1922,12 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2594,7 +1952,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2622,7 +1980,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2631,9 +1989,6 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2658,7 +2013,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2667,9 +2022,6 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2684,13 +2036,12 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2715,7 +2066,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2743,7 +2094,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2752,9 +2103,6 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2779,7 +2127,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2798,7 +2146,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2809,13 +2157,12 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2840,7 +2187,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2868,7 +2215,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2877,9 +2224,6 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2904,7 +2248,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2913,9 +2257,6 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2938,7 +2279,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2957,7 +2298,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2968,13 +2309,12 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2999,7 +2339,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3027,7 +2367,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3036,9 +2376,6 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3063,7 +2400,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3083,7 +2420,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= uint64(b&0x7F) << shift + m.NewSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3094,13 +2431,12 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3125,7 +2461,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3153,7 +2489,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3162,9 +2498,6 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3189,7 +2522,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3198,9 +2531,6 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3223,7 +2553,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3232,9 +2562,6 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3257,7 +2584,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TTL |= int64(b&0x7F) << shift + m.TTL |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3276,7 +2603,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3287,13 +2614,12 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3318,7 +2644,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3346,7 +2672,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3355,9 +2681,6 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3382,7 +2705,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3402,7 +2725,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcSafePoint |= uint64(b&0x7F) << shift + m.GcSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3421,7 +2744,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OldSafePoint |= uint64(b&0x7F) << shift + m.OldSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3440,7 +2763,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= uint64(b&0x7F) << shift + m.NewSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3451,13 +2774,12 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3470,7 +2792,6 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { func skipGcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3502,8 +2823,10 @@ func skipGcpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3520,34 +2843,106 @@ func skipGcpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthGcpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGcpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGcpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGcpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthGcpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthGcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGcpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGcpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthGcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGcpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("gcpb.proto", fileDescriptorGcpb) } + +var fileDescriptorGcpb = []byte{ + // 750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, + 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, + 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, + 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, + 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, + 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0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x99, 0xdd, 0x9d, 0x8b, 0x31, 0x4f, 0xa5, 0x08, 0xc2, 0xb0, 0x3d, 0x7f, 0x1a, 0xa0, 0x7d, + 0x76, 0x71, 0xe9, 0x54, 0xca, 0x1e, 0x2c, 0x3f, 0x34, 0xa2, 0xb9, 0x80, 0xcd, 0x99, 0x0f, 0x09, + 0xe5, 0xd9, 0xe5, 0x45, 0x13, 0x20, 0xfb, 0xdf, 0x42, 0x7c, 0x5c, 0xfe, 0xfc, 0xb6, 0x0a, 0xe5, + 0x2f, 0xfd, 0x5c, 0x42, 0xf9, 0xcb, 0x3b, 0x53, 0x8a, 0x1c, 0x3f, 0xf9, 0xfe, 0x39, 0xc1, 0x7d, + 0xbd, 0xcb, 0x73, 0xdf, 0xee, 0xf2, 0xdc, 0xcf, 0xbb, 0x3c, 0xf7, 0xf1, 0x57, 0x3e, 0x02, 0xa2, + 0xe3, 0x59, 0x05, 0xdf, 0xee, 0xf4, 0x0b, 0x9d, 0x3e, 0xfd, 0x87, 0xbf, 0x5c, 0xa1, 0x3f, 0x2f, + 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x66, 0xde, 0x26, 0x9d, 0x23, 0x08, 0x00, 0x00, +} diff --git a/pkg/import_kvpb/import_kvpb.pb.go b/pkg/import_kvpb/import_kvpb.pb.go index e10404263..fcb341ee2 100644 --- a/pkg/import_kvpb/import_kvpb.pb.go +++ b/pkg/import_kvpb/import_kvpb.pb.go @@ -1,21 +1,55 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: import_kvpb.proto +/* +Package import_kvpb is a generated protocol buffer package. + +It is generated from these files: + + import_kvpb.proto + +It has these top-level messages: + + SwitchModeRequest + SwitchModeResponse + OpenEngineRequest + OpenEngineResponse + WriteHead + Mutation + WriteBatch + WriteEngineRequest + KVPair + WriteEngineV3Request + WriteEngineResponse + CloseEngineRequest + CloseEngineResponse + ImportEngineRequest + ImportEngineResponse + CleanupEngineRequest + CleanupEngineResponse + CompactClusterRequest + CompactClusterResponse + GetVersionRequest + GetVersionResponse + GetMetricsRequest + GetMetricsResponse + Error +*/ package import_kvpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,7 +61,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Mutation_OP int32 @@ -38,7 +72,6 @@ const ( var Mutation_OP_name = map[int32]string{ 0: "Put", } - var Mutation_OP_value = map[string]int32{ "Put": 0, } @@ -46,51 +79,17 @@ var Mutation_OP_value = map[string]int32{ func (x Mutation_OP) String() string { return proto.EnumName(Mutation_OP_name, int32(x)) } - -func (Mutation_OP) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{5, 0} -} +func (Mutation_OP) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{5, 0} } type SwitchModeRequest struct { - PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` - Request *import_sstpb.SwitchModeRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } -func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchModeRequest) ProtoMessage() {} -func (*SwitchModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{0} -} -func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchModeRequest.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 *SwitchModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchModeRequest.Merge(m, src) -} -func (m *SwitchModeRequest) XXX_Size() int { - return m.Size() -} -func (m *SwitchModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchModeRequest.DiscardUnknown(m) + PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + Request *import_sstpb.SwitchModeRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` } -var xxx_messageInfo_SwitchModeRequest proto.InternalMessageInfo +func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } +func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchModeRequest) ProtoMessage() {} +func (*SwitchModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{0} } func (m *SwitchModeRequest) GetPdAddr() string { if m != nil { @@ -107,84 +106,22 @@ func (m *SwitchModeRequest) GetRequest() *import_sstpb.SwitchModeRequest { } type SwitchModeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } -func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchModeResponse) ProtoMessage() {} -func (*SwitchModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{1} -} -func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchModeResponse.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 *SwitchModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchModeResponse.Merge(m, src) -} -func (m *SwitchModeResponse) XXX_Size() int { - return m.Size() -} -func (m *SwitchModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchModeResponse.DiscardUnknown(m) } -var xxx_messageInfo_SwitchModeResponse proto.InternalMessageInfo +func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } +func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchModeResponse) ProtoMessage() {} +func (*SwitchModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{1} } type OpenEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - KeyPrefix []byte `protobuf:"bytes,2,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OpenEngineRequest) Reset() { *m = OpenEngineRequest{} } -func (m *OpenEngineRequest) String() string { return proto.CompactTextString(m) } -func (*OpenEngineRequest) ProtoMessage() {} -func (*OpenEngineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{2} -} -func (m *OpenEngineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OpenEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OpenEngineRequest.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 *OpenEngineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OpenEngineRequest.Merge(m, src) -} -func (m *OpenEngineRequest) XXX_Size() int { - return m.Size() -} -func (m *OpenEngineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OpenEngineRequest.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + KeyPrefix []byte `protobuf:"bytes,2,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"` } -var xxx_messageInfo_OpenEngineRequest proto.InternalMessageInfo +func (m *OpenEngineRequest) Reset() { *m = OpenEngineRequest{} } +func (m *OpenEngineRequest) String() string { return proto.CompactTextString(m) } +func (*OpenEngineRequest) ProtoMessage() {} +func (*OpenEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{2} } func (m *OpenEngineRequest) GetUuid() []byte { if m != nil { @@ -201,83 +138,21 @@ func (m *OpenEngineRequest) GetKeyPrefix() []byte { } type OpenEngineResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OpenEngineResponse) Reset() { *m = OpenEngineResponse{} } -func (m *OpenEngineResponse) String() string { return proto.CompactTextString(m) } -func (*OpenEngineResponse) ProtoMessage() {} -func (*OpenEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{3} -} -func (m *OpenEngineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OpenEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OpenEngineResponse.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 *OpenEngineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OpenEngineResponse.Merge(m, src) -} -func (m *OpenEngineResponse) XXX_Size() int { - return m.Size() -} -func (m *OpenEngineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OpenEngineResponse.DiscardUnknown(m) } -var xxx_messageInfo_OpenEngineResponse proto.InternalMessageInfo +func (m *OpenEngineResponse) Reset() { *m = OpenEngineResponse{} } +func (m *OpenEngineResponse) String() string { return proto.CompactTextString(m) } +func (*OpenEngineResponse) ProtoMessage() {} +func (*OpenEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{3} } type WriteHead struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteHead) Reset() { *m = WriteHead{} } -func (m *WriteHead) String() string { return proto.CompactTextString(m) } -func (*WriteHead) ProtoMessage() {} -func (*WriteHead) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{4} -} -func (m *WriteHead) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteHead.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 *WriteHead) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteHead.Merge(m, src) -} -func (m *WriteHead) XXX_Size() int { - return m.Size() -} -func (m *WriteHead) XXX_DiscardUnknown() { - xxx_messageInfo_WriteHead.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` } -var xxx_messageInfo_WriteHead proto.InternalMessageInfo +func (m *WriteHead) Reset() { *m = WriteHead{} } +func (m *WriteHead) String() string { return proto.CompactTextString(m) } +func (*WriteHead) ProtoMessage() {} +func (*WriteHead) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{4} } func (m *WriteHead) GetUuid() []byte { if m != nil { @@ -287,46 +162,15 @@ func (m *WriteHead) GetUuid() []byte { } type Mutation struct { - Op Mutation_OP `protobuf:"varint,1,opt,name=op,proto3,enum=import_kvpb.Mutation_OP" json:"op,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Mutation) Reset() { *m = Mutation{} } -func (m *Mutation) String() string { return proto.CompactTextString(m) } -func (*Mutation) ProtoMessage() {} -func (*Mutation) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{5} -} -func (m *Mutation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Mutation.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 *Mutation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Mutation.Merge(m, src) -} -func (m *Mutation) XXX_Size() int { - return m.Size() -} -func (m *Mutation) XXX_DiscardUnknown() { - xxx_messageInfo_Mutation.DiscardUnknown(m) + Op Mutation_OP `protobuf:"varint,1,opt,name=op,proto3,enum=import_kvpb.Mutation_OP" json:"op,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_Mutation proto.InternalMessageInfo +func (m *Mutation) Reset() { *m = Mutation{} } +func (m *Mutation) String() string { return proto.CompactTextString(m) } +func (*Mutation) ProtoMessage() {} +func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{5} } func (m *Mutation) GetOp() Mutation_OP { if m != nil { @@ -350,45 +194,14 @@ func (m *Mutation) GetValue() []byte { } type WriteBatch struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteBatch) Reset() { *m = WriteBatch{} } -func (m *WriteBatch) String() string { return proto.CompactTextString(m) } -func (*WriteBatch) ProtoMessage() {} -func (*WriteBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{6} -} -func (m *WriteBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteBatch.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 *WriteBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteBatch.Merge(m, src) -} -func (m *WriteBatch) XXX_Size() int { - return m.Size() -} -func (m *WriteBatch) XXX_DiscardUnknown() { - xxx_messageInfo_WriteBatch.DiscardUnknown(m) + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` } -var xxx_messageInfo_WriteBatch proto.InternalMessageInfo +func (m *WriteBatch) Reset() { *m = WriteBatch{} } +func (m *WriteBatch) String() string { return proto.CompactTextString(m) } +func (*WriteBatch) ProtoMessage() {} +func (*WriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{6} } func (m *WriteBatch) GetCommitTs() uint64 { if m != nil { @@ -408,44 +221,13 @@ type WriteEngineRequest struct { // Types that are valid to be assigned to Chunk: // *WriteEngineRequest_Head // *WriteEngineRequest_Batch - Chunk isWriteEngineRequest_Chunk `protobuf_oneof:"chunk"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteEngineRequest) Reset() { *m = WriteEngineRequest{} } -func (m *WriteEngineRequest) String() string { return proto.CompactTextString(m) } -func (*WriteEngineRequest) ProtoMessage() {} -func (*WriteEngineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{7} -} -func (m *WriteEngineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteEngineRequest.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 *WriteEngineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteEngineRequest.Merge(m, src) -} -func (m *WriteEngineRequest) XXX_Size() int { - return m.Size() -} -func (m *WriteEngineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteEngineRequest.DiscardUnknown(m) + Chunk isWriteEngineRequest_Chunk `protobuf_oneof:"chunk"` } -var xxx_messageInfo_WriteEngineRequest proto.InternalMessageInfo +func (m *WriteEngineRequest) Reset() { *m = WriteEngineRequest{} } +func (m *WriteEngineRequest) String() string { return proto.CompactTextString(m) } +func (*WriteEngineRequest) ProtoMessage() {} +func (*WriteEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{7} } type isWriteEngineRequest_Chunk interface { isWriteEngineRequest_Chunk() @@ -454,10 +236,10 @@ type isWriteEngineRequest_Chunk interface { } type WriteEngineRequest_Head struct { - Head *WriteHead `protobuf:"bytes,1,opt,name=head,proto3,oneof" json:"head,omitempty"` + Head *WriteHead `protobuf:"bytes,1,opt,name=head,oneof"` } type WriteEngineRequest_Batch struct { - Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` + Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` } func (*WriteEngineRequest_Head) isWriteEngineRequest_Chunk() {} @@ -484,54 +266,89 @@ func (m *WriteEngineRequest) GetBatch() *WriteBatch { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*WriteEngineRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*WriteEngineRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _WriteEngineRequest_OneofMarshaler, _WriteEngineRequest_OneofUnmarshaler, _WriteEngineRequest_OneofSizer, []interface{}{ (*WriteEngineRequest_Head)(nil), (*WriteEngineRequest_Batch)(nil), } } -type KVPair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KVPair) Reset() { *m = KVPair{} } -func (m *KVPair) String() string { return proto.CompactTextString(m) } -func (*KVPair) ProtoMessage() {} -func (*KVPair) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{8} -} -func (m *KVPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KVPair.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _WriteEngineRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WriteEngineRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteEngineRequest_Head: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Head); err != nil { + return err + } + case *WriteEngineRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err } - return b[:n], nil + case nil: + default: + return fmt.Errorf("WriteEngineRequest.Chunk has unexpected type %T", x) } + return nil } -func (m *KVPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVPair.Merge(m, src) -} -func (m *KVPair) XXX_Size() int { - return m.Size() + +func _WriteEngineRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WriteEngineRequest) + switch tag { + case 1: // chunk.head + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteHead) + err := b.DecodeMessage(msg) + m.Chunk = &WriteEngineRequest_Head{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &WriteEngineRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _WriteEngineRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WriteEngineRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteEngineRequest_Head: + s := proto.Size(x.Head) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *WriteEngineRequest_Batch: + s := proto.Size(x.Batch) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *KVPair) XXX_DiscardUnknown() { - xxx_messageInfo_KVPair.DiscardUnknown(m) + +type KVPair struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_KVPair proto.InternalMessageInfo +func (m *KVPair) Reset() { *m = KVPair{} } +func (m *KVPair) String() string { return proto.CompactTextString(m) } +func (*KVPair) ProtoMessage() {} +func (*KVPair) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{8} } func (m *KVPair) GetKey() []byte { if m != nil { @@ -548,46 +365,15 @@ func (m *KVPair) GetValue() []byte { } type WriteEngineV3Request struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Pairs []*KVPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteEngineV3Request) Reset() { *m = WriteEngineV3Request{} } -func (m *WriteEngineV3Request) String() string { return proto.CompactTextString(m) } -func (*WriteEngineV3Request) ProtoMessage() {} -func (*WriteEngineV3Request) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{9} -} -func (m *WriteEngineV3Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteEngineV3Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteEngineV3Request.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 *WriteEngineV3Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteEngineV3Request.Merge(m, src) -} -func (m *WriteEngineV3Request) XXX_Size() int { - return m.Size() -} -func (m *WriteEngineV3Request) XXX_DiscardUnknown() { - xxx_messageInfo_WriteEngineV3Request.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Pairs []*KVPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` } -var xxx_messageInfo_WriteEngineV3Request proto.InternalMessageInfo +func (m *WriteEngineV3Request) Reset() { *m = WriteEngineV3Request{} } +func (m *WriteEngineV3Request) String() string { return proto.CompactTextString(m) } +func (*WriteEngineV3Request) ProtoMessage() {} +func (*WriteEngineV3Request) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{9} } func (m *WriteEngineV3Request) GetUuid() []byte { if m != nil { @@ -611,44 +397,13 @@ func (m *WriteEngineV3Request) GetPairs() []*KVPair { } type WriteEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteEngineResponse) Reset() { *m = WriteEngineResponse{} } -func (m *WriteEngineResponse) String() string { return proto.CompactTextString(m) } -func (*WriteEngineResponse) ProtoMessage() {} -func (*WriteEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{10} -} -func (m *WriteEngineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteEngineResponse.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 *WriteEngineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteEngineResponse.Merge(m, src) -} -func (m *WriteEngineResponse) XXX_Size() int { - return m.Size() -} -func (m *WriteEngineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteEngineResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_WriteEngineResponse proto.InternalMessageInfo +func (m *WriteEngineResponse) Reset() { *m = WriteEngineResponse{} } +func (m *WriteEngineResponse) String() string { return proto.CompactTextString(m) } +func (*WriteEngineResponse) ProtoMessage() {} +func (*WriteEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{10} } func (m *WriteEngineResponse) GetError() *Error { if m != nil { @@ -658,44 +413,13 @@ func (m *WriteEngineResponse) GetError() *Error { } type CloseEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloseEngineRequest) Reset() { *m = CloseEngineRequest{} } -func (m *CloseEngineRequest) String() string { return proto.CompactTextString(m) } -func (*CloseEngineRequest) ProtoMessage() {} -func (*CloseEngineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{11} -} -func (m *CloseEngineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseEngineRequest.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 *CloseEngineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseEngineRequest.Merge(m, src) -} -func (m *CloseEngineRequest) XXX_Size() int { - return m.Size() -} -func (m *CloseEngineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CloseEngineRequest.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` } -var xxx_messageInfo_CloseEngineRequest proto.InternalMessageInfo +func (m *CloseEngineRequest) Reset() { *m = CloseEngineRequest{} } +func (m *CloseEngineRequest) String() string { return proto.CompactTextString(m) } +func (*CloseEngineRequest) ProtoMessage() {} +func (*CloseEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{11} } func (m *CloseEngineRequest) GetUuid() []byte { if m != nil { @@ -705,44 +429,13 @@ func (m *CloseEngineRequest) GetUuid() []byte { } type CloseEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloseEngineResponse) Reset() { *m = CloseEngineResponse{} } -func (m *CloseEngineResponse) String() string { return proto.CompactTextString(m) } -func (*CloseEngineResponse) ProtoMessage() {} -func (*CloseEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{12} -} -func (m *CloseEngineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CloseEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CloseEngineResponse.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 *CloseEngineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloseEngineResponse.Merge(m, src) -} -func (m *CloseEngineResponse) XXX_Size() int { - return m.Size() -} -func (m *CloseEngineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CloseEngineResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_CloseEngineResponse proto.InternalMessageInfo +func (m *CloseEngineResponse) Reset() { *m = CloseEngineResponse{} } +func (m *CloseEngineResponse) String() string { return proto.CompactTextString(m) } +func (*CloseEngineResponse) ProtoMessage() {} +func (*CloseEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{12} } func (m *CloseEngineResponse) GetError() *Error { if m != nil { @@ -752,45 +445,14 @@ func (m *CloseEngineResponse) GetError() *Error { } type ImportEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - PdAddr string `protobuf:"bytes,2,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportEngineRequest) Reset() { *m = ImportEngineRequest{} } -func (m *ImportEngineRequest) String() string { return proto.CompactTextString(m) } -func (*ImportEngineRequest) ProtoMessage() {} -func (*ImportEngineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{13} -} -func (m *ImportEngineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImportEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImportEngineRequest.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 *ImportEngineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportEngineRequest.Merge(m, src) -} -func (m *ImportEngineRequest) XXX_Size() int { - return m.Size() -} -func (m *ImportEngineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ImportEngineRequest.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + PdAddr string `protobuf:"bytes,2,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` } -var xxx_messageInfo_ImportEngineRequest proto.InternalMessageInfo +func (m *ImportEngineRequest) Reset() { *m = ImportEngineRequest{} } +func (m *ImportEngineRequest) String() string { return proto.CompactTextString(m) } +func (*ImportEngineRequest) ProtoMessage() {} +func (*ImportEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{13} } func (m *ImportEngineRequest) GetUuid() []byte { if m != nil { @@ -807,83 +469,21 @@ func (m *ImportEngineRequest) GetPdAddr() string { } type ImportEngineResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportEngineResponse) Reset() { *m = ImportEngineResponse{} } -func (m *ImportEngineResponse) String() string { return proto.CompactTextString(m) } -func (*ImportEngineResponse) ProtoMessage() {} -func (*ImportEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{14} -} -func (m *ImportEngineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImportEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImportEngineResponse.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 *ImportEngineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportEngineResponse.Merge(m, src) -} -func (m *ImportEngineResponse) XXX_Size() int { - return m.Size() -} -func (m *ImportEngineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ImportEngineResponse.DiscardUnknown(m) } -var xxx_messageInfo_ImportEngineResponse proto.InternalMessageInfo +func (m *ImportEngineResponse) Reset() { *m = ImportEngineResponse{} } +func (m *ImportEngineResponse) String() string { return proto.CompactTextString(m) } +func (*ImportEngineResponse) ProtoMessage() {} +func (*ImportEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{14} } type CleanupEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CleanupEngineRequest) Reset() { *m = CleanupEngineRequest{} } -func (m *CleanupEngineRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupEngineRequest) ProtoMessage() {} -func (*CleanupEngineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{15} -} -func (m *CleanupEngineRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupEngineRequest.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 *CleanupEngineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupEngineRequest.Merge(m, src) -} -func (m *CleanupEngineRequest) XXX_Size() int { - return m.Size() -} -func (m *CleanupEngineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupEngineRequest.DiscardUnknown(m) + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` } -var xxx_messageInfo_CleanupEngineRequest proto.InternalMessageInfo +func (m *CleanupEngineRequest) Reset() { *m = CleanupEngineRequest{} } +func (m *CleanupEngineRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupEngineRequest) ProtoMessage() {} +func (*CleanupEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{15} } func (m *CleanupEngineRequest) GetUuid() []byte { if m != nil { @@ -893,84 +493,26 @@ func (m *CleanupEngineRequest) GetUuid() []byte { } type CleanupEngineResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CleanupEngineResponse) Reset() { *m = CleanupEngineResponse{} } func (m *CleanupEngineResponse) String() string { return proto.CompactTextString(m) } func (*CleanupEngineResponse) ProtoMessage() {} func (*CleanupEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{16} -} -func (m *CleanupEngineResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupEngineResponse.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 *CleanupEngineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupEngineResponse.Merge(m, src) -} -func (m *CleanupEngineResponse) XXX_Size() int { - return m.Size() + return fileDescriptorImportKvpb, []int{16} } -func (m *CleanupEngineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupEngineResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CleanupEngineResponse proto.InternalMessageInfo type CompactClusterRequest struct { - PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` - Request *import_sstpb.CompactRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + Request *import_sstpb.CompactRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` } func (m *CompactClusterRequest) Reset() { *m = CompactClusterRequest{} } func (m *CompactClusterRequest) String() string { return proto.CompactTextString(m) } func (*CompactClusterRequest) ProtoMessage() {} func (*CompactClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{17} -} -func (m *CompactClusterRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorImportKvpb, []int{17} } -func (m *CompactClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactClusterRequest.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 *CompactClusterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactClusterRequest.Merge(m, src) -} -func (m *CompactClusterRequest) XXX_Size() int { - return m.Size() -} -func (m *CompactClusterRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CompactClusterRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CompactClusterRequest proto.InternalMessageInfo func (m *CompactClusterRequest) GetPdAddr() string { if m != nil { @@ -987,123 +529,32 @@ func (m *CompactClusterRequest) GetRequest() *import_sstpb.CompactRequest { } type CompactClusterResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CompactClusterResponse) Reset() { *m = CompactClusterResponse{} } func (m *CompactClusterResponse) String() string { return proto.CompactTextString(m) } func (*CompactClusterResponse) ProtoMessage() {} func (*CompactClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{18} -} -func (m *CompactClusterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactClusterResponse.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 *CompactClusterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactClusterResponse.Merge(m, src) -} -func (m *CompactClusterResponse) XXX_Size() int { - return m.Size() + return fileDescriptorImportKvpb, []int{18} } -func (m *CompactClusterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CompactClusterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CompactClusterResponse proto.InternalMessageInfo type GetVersionRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } -func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*GetVersionRequest) ProtoMessage() {} -func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{19} -} -func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetVersionRequest.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 *GetVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionRequest.Merge(m, src) -} -func (m *GetVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *GetVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo +func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } +func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } +func (*GetVersionRequest) ProtoMessage() {} +func (*GetVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{19} } type GetVersionResponse struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } -func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } -func (*GetVersionResponse) ProtoMessage() {} -func (*GetVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{20} -} -func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetVersionResponse.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 *GetVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionResponse.Merge(m, src) -} -func (m *GetVersionResponse) XXX_Size() int { - return m.Size() -} -func (m *GetVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` } -var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo +func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } +func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*GetVersionResponse) ProtoMessage() {} +func (*GetVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{20} } func (m *GetVersionResponse) GetVersion() string { if m != nil { @@ -1120,83 +571,21 @@ func (m *GetVersionResponse) GetCommit() string { } type GetMetricsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } -func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*GetMetricsRequest) ProtoMessage() {} -func (*GetMetricsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{21} -} -func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMetricsRequest.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 *GetMetricsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsRequest.Merge(m, src) -} -func (m *GetMetricsRequest) XXX_Size() int { - return m.Size() -} -func (m *GetMetricsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetMetricsRequest proto.InternalMessageInfo +func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } +func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*GetMetricsRequest) ProtoMessage() {} +func (*GetMetricsRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{21} } type GetMetricsResponse struct { - Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } -func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*GetMetricsResponse) ProtoMessage() {} -func (*GetMetricsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{22} -} -func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMetricsResponse.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 *GetMetricsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMetricsResponse.Merge(m, src) -} -func (m *GetMetricsResponse) XXX_Size() int { - return m.Size() -} -func (m *GetMetricsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMetricsResponse.DiscardUnknown(m) + Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` } -var xxx_messageInfo_GetMetricsResponse proto.InternalMessageInfo +func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } +func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*GetMetricsResponse) ProtoMessage() {} +func (*GetMetricsResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{22} } func (m *GetMetricsResponse) GetPrometheus() string { if m != nil { @@ -1210,44 +599,13 @@ type Error struct { // restarts while the client is writing or closing. An unclosed engine will // be removed on server restart, so the client should not continue but // restart the previous job in that case. - EngineNotFound *Error_EngineNotFound `protobuf:"bytes,1,opt,name=engine_not_found,json=engineNotFound,proto3" json:"engine_not_found,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{23} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + EngineNotFound *Error_EngineNotFound `protobuf:"bytes,1,opt,name=engine_not_found,json=engineNotFound" json:"engine_not_found,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{23} } func (m *Error) GetEngineNotFound() *Error_EngineNotFound { if m != nil { @@ -1257,44 +615,15 @@ func (m *Error) GetEngineNotFound() *Error_EngineNotFound { } type Error_EngineNotFound struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` } func (m *Error_EngineNotFound) Reset() { *m = Error_EngineNotFound{} } func (m *Error_EngineNotFound) String() string { return proto.CompactTextString(m) } func (*Error_EngineNotFound) ProtoMessage() {} func (*Error_EngineNotFound) Descriptor() ([]byte, []int) { - return fileDescriptor_638ccc00b4358d93, []int{23, 0} -} -func (m *Error_EngineNotFound) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error_EngineNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error_EngineNotFound.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 fileDescriptorImportKvpb, []int{23, 0} } -func (m *Error_EngineNotFound) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error_EngineNotFound.Merge(m, src) -} -func (m *Error_EngineNotFound) XXX_Size() int { - return m.Size() -} -func (m *Error_EngineNotFound) XXX_DiscardUnknown() { - xxx_messageInfo_Error_EngineNotFound.DiscardUnknown(m) -} - -var xxx_messageInfo_Error_EngineNotFound proto.InternalMessageInfo func (m *Error_EngineNotFound) GetUuid() []byte { if m != nil { @@ -1304,7 +633,6 @@ func (m *Error_EngineNotFound) GetUuid() []byte { } func init() { - proto.RegisterEnum("import_kvpb.Mutation_OP", Mutation_OP_name, Mutation_OP_value) proto.RegisterType((*SwitchModeRequest)(nil), "import_kvpb.SwitchModeRequest") proto.RegisterType((*SwitchModeResponse)(nil), "import_kvpb.SwitchModeResponse") proto.RegisterType((*OpenEngineRequest)(nil), "import_kvpb.OpenEngineRequest") @@ -1330,68 +658,7 @@ func init() { proto.RegisterType((*GetMetricsResponse)(nil), "import_kvpb.GetMetricsResponse") proto.RegisterType((*Error)(nil), "import_kvpb.Error") proto.RegisterType((*Error_EngineNotFound)(nil), "import_kvpb.Error.EngineNotFound") -} - -func init() { proto.RegisterFile("import_kvpb.proto", fileDescriptor_638ccc00b4358d93) } - -var fileDescriptor_638ccc00b4358d93 = []byte{ - // 884 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xd1, 0x6e, 0xf3, 0x34, - 0x18, 0x4d, 0xd2, 0xb5, 0x5d, 0xbf, 0x6e, 0x63, 0xf3, 0xba, 0x2d, 0x2a, 0xd0, 0x6d, 0x01, 0xa1, - 0x82, 0x50, 0x7f, 0xd4, 0x21, 0x24, 0xae, 0x10, 0xad, 0xfe, 0x31, 0x34, 0x8d, 0x56, 0xe1, 0xa7, - 0x20, 0x21, 0x51, 0x65, 0x8d, 0xd7, 0x46, 0x69, 0xe3, 0xe0, 0x38, 0x85, 0x21, 0x1e, 0x84, 0x47, - 0xe0, 0x51, 0xb8, 0xe4, 0x92, 0x2b, 0x84, 0xc6, 0x8b, 0xa0, 0x38, 0x4e, 0x1b, 0x27, 0x59, 0xcb, - 0x7f, 0x35, 0xfb, 0xf3, 0xc9, 0xf9, 0xbe, 0x1e, 0xfb, 0x1c, 0x0d, 0x8e, 0x9c, 0x85, 0x4f, 0x28, - 0x1b, 0xbb, 0x4b, 0xff, 0xbe, 0xe3, 0x53, 0xc2, 0x08, 0xaa, 0xa7, 0x4a, 0x4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x55, 0xff, 0x78, 0x6a, 0xa9, 0x7f, 0x3e, 0xb5, 0xd4, 0x7f, 0x9e, 0x5a, - 0xea, 0x6f, 0xff, 0xb6, 0x14, 0x38, 0x24, 0x74, 0xda, 0x61, 0x8e, 0xbb, 0xec, 0xb8, 0x4b, 0xfe, - 0xcf, 0xd6, 0x7d, 0x85, 0xff, 0xb9, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4a, 0x28, 0xa0, - 0xd0, 0x09, 0x00, 0x00, + proto.RegisterEnum("import_kvpb.Mutation_OP", Mutation_OP_name, Mutation_OP_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1402,9 +669,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ImportKVClient is the client API for ImportKV service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ImportKV service + type ImportKVClient interface { // Switch the target cluster to normal/import mode. SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) @@ -1438,7 +704,7 @@ func NewImportKVClient(cc *grpc.ClientConn) ImportKVClient { func (c *importKVClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) { out := new(SwitchModeResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/SwitchMode", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/SwitchMode", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1447,7 +713,7 @@ func (c *importKVClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, func (c *importKVClient) OpenEngine(ctx context.Context, in *OpenEngineRequest, opts ...grpc.CallOption) (*OpenEngineResponse, error) { out := new(OpenEngineResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/OpenEngine", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/OpenEngine", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1455,7 +721,7 @@ func (c *importKVClient) OpenEngine(ctx context.Context, in *OpenEngineRequest, } func (c *importKVClient) WriteEngine(ctx context.Context, opts ...grpc.CallOption) (ImportKV_WriteEngineClient, error) { - stream, err := c.cc.NewStream(ctx, &_ImportKV_serviceDesc.Streams[0], "/import_kvpb.ImportKV/WriteEngine", opts...) + stream, err := grpc.NewClientStream(ctx, &_ImportKV_serviceDesc.Streams[0], c.cc, "/import_kvpb.ImportKV/WriteEngine", opts...) if err != nil { return nil, err } @@ -1490,7 +756,7 @@ func (x *importKVWriteEngineClient) CloseAndRecv() (*WriteEngineResponse, error) func (c *importKVClient) WriteEngineV3(ctx context.Context, in *WriteEngineV3Request, opts ...grpc.CallOption) (*WriteEngineResponse, error) { out := new(WriteEngineResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/WriteEngineV3", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/WriteEngineV3", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1499,7 +765,7 @@ func (c *importKVClient) WriteEngineV3(ctx context.Context, in *WriteEngineV3Req func (c *importKVClient) CloseEngine(ctx context.Context, in *CloseEngineRequest, opts ...grpc.CallOption) (*CloseEngineResponse, error) { out := new(CloseEngineResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CloseEngine", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CloseEngine", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1508,7 +774,7 @@ func (c *importKVClient) CloseEngine(ctx context.Context, in *CloseEngineRequest func (c *importKVClient) ImportEngine(ctx context.Context, in *ImportEngineRequest, opts ...grpc.CallOption) (*ImportEngineResponse, error) { out := new(ImportEngineResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/ImportEngine", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/ImportEngine", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1517,7 +783,7 @@ func (c *importKVClient) ImportEngine(ctx context.Context, in *ImportEngineReque func (c *importKVClient) CleanupEngine(ctx context.Context, in *CleanupEngineRequest, opts ...grpc.CallOption) (*CleanupEngineResponse, error) { out := new(CleanupEngineResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CleanupEngine", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CleanupEngine", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1526,7 +792,7 @@ func (c *importKVClient) CleanupEngine(ctx context.Context, in *CleanupEngineReq func (c *importKVClient) CompactCluster(ctx context.Context, in *CompactClusterRequest, opts ...grpc.CallOption) (*CompactClusterResponse, error) { out := new(CompactClusterResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CompactCluster", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CompactCluster", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1535,7 +801,7 @@ func (c *importKVClient) CompactCluster(ctx context.Context, in *CompactClusterR func (c *importKVClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) { out := new(GetVersionResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/GetVersion", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/GetVersion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1544,14 +810,15 @@ func (c *importKVClient) GetVersion(ctx context.Context, in *GetVersionRequest, func (c *importKVClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { out := new(GetMetricsResponse) - err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/GetMetrics", in, out, opts...) + err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/GetMetrics", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// ImportKVServer is the server API for ImportKV service. +// Server API for ImportKV service + type ImportKVServer interface { // Switch the target cluster to normal/import mode. SwitchMode(context.Context, *SwitchModeRequest) (*SwitchModeResponse, error) @@ -1575,41 +842,6 @@ type ImportKVServer interface { GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) } -// UnimplementedImportKVServer can be embedded to have forward compatible implementations. -type UnimplementedImportKVServer struct { -} - -func (*UnimplementedImportKVServer) SwitchMode(ctx context.Context, req *SwitchModeRequest) (*SwitchModeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SwitchMode not implemented") -} -func (*UnimplementedImportKVServer) OpenEngine(ctx context.Context, req *OpenEngineRequest) (*OpenEngineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenEngine not implemented") -} -func (*UnimplementedImportKVServer) WriteEngine(srv ImportKV_WriteEngineServer) error { - return status.Errorf(codes.Unimplemented, "method WriteEngine not implemented") -} -func (*UnimplementedImportKVServer) WriteEngineV3(ctx context.Context, req *WriteEngineV3Request) (*WriteEngineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WriteEngineV3 not implemented") -} -func (*UnimplementedImportKVServer) CloseEngine(ctx context.Context, req *CloseEngineRequest) (*CloseEngineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseEngine not implemented") -} -func (*UnimplementedImportKVServer) ImportEngine(ctx context.Context, req *ImportEngineRequest) (*ImportEngineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ImportEngine not implemented") -} -func (*UnimplementedImportKVServer) CleanupEngine(ctx context.Context, req *CleanupEngineRequest) (*CleanupEngineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CleanupEngine not implemented") -} -func (*UnimplementedImportKVServer) CompactCluster(ctx context.Context, req *CompactClusterRequest) (*CompactClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CompactCluster not implemented") -} -func (*UnimplementedImportKVServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") -} -func (*UnimplementedImportKVServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") -} - func RegisterImportKVServer(s *grpc.Server, srv ImportKVServer) { s.RegisterService(&_ImportKV_serviceDesc, srv) } @@ -1856,7 +1088,7 @@ var _ImportKV_serviceDesc = grpc.ServiceDesc{ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1864,45 +1096,33 @@ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.PdAddr) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) + i += copy(dAtA[i:], m.PdAddr) } if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Request.Size())) + n1, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if len(m.PdAddr) > 0 { - i -= len(m.PdAddr) - copy(dAtA[i:], m.PdAddr) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1910,26 +1130,17 @@ func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *OpenEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1937,40 +1148,29 @@ func (m *OpenEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *OpenEngineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OpenEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Uuid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } if len(m.KeyPrefix) > 0 { - i -= len(m.KeyPrefix) - copy(dAtA[i:], m.KeyPrefix) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.KeyPrefix))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.KeyPrefix))) + i += copy(dAtA[i:], m.KeyPrefix) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *OpenEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1978,26 +1178,17 @@ func (m *OpenEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *OpenEngineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OpenEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *WriteHead) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2005,33 +1196,23 @@ func (m *WriteHead) Marshal() (dAtA []byte, err error) { } func (m *WriteHead) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteHead) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - return len(dAtA) - i, nil + return i, nil } func (m *Mutation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2039,45 +1220,34 @@ func (m *Mutation) Marshal() (dAtA []byte, err error) { } func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a + if m.Op != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Op)) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Op != 0 { - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x8 + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - return len(dAtA) - i, nil + return i, nil } func (m *WriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2085,45 +1255,34 @@ func (m *WriteBatch) Marshal() (dAtA []byte, err error) { } func (m *WriteBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CommitTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) } if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Mutations { dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.CommitTs != 0 { - i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *WriteEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2131,77 +1290,52 @@ func (m *WriteEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Chunk != nil { - { - size := m.Chunk.Size() - i -= size - if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn2, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn2 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteEngineRequest_Head) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteEngineRequest_Head) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Head != nil { - { - size, err := m.Head.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Head.Size())) + n3, err := m.Head.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteEngineRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteEngineRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Batch != nil { - { - size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Batch.Size())) + n4, err := m.Batch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *KVPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2209,40 +1343,29 @@ func (m *KVPair) Marshal() (dAtA []byte, err error) { } func (m *KVPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KVPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *WriteEngineV3Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2250,52 +1373,40 @@ func (m *WriteEngineV3Request) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineV3Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteEngineV3Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if len(m.Uuid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } if m.CommitTs != 0 { - i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa + if len(m.Pairs) > 0 { + for _, msg := range m.Pairs { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *WriteEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2303,38 +1414,27 @@ func (m *WriteEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Error.Size())) + n5, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *CloseEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2342,33 +1442,23 @@ func (m *CloseEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *CloseEngineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - return len(dAtA) - i, nil + return i, nil } func (m *CloseEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2376,38 +1466,27 @@ func (m *CloseEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *CloseEngineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CloseEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Error.Size())) + n6, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *ImportEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2415,40 +1494,29 @@ func (m *ImportEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *ImportEngineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImportEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Uuid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } if len(m.PdAddr) > 0 { - i -= len(m.PdAddr) - copy(dAtA[i:], m.PdAddr) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) + i += copy(dAtA[i:], m.PdAddr) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *ImportEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2456,26 +1524,17 @@ func (m *ImportEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *ImportEngineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImportEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CleanupEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2483,33 +1542,23 @@ func (m *CleanupEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupEngineRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - return len(dAtA) - i, nil + return i, nil } func (m *CleanupEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2517,26 +1566,17 @@ func (m *CleanupEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupEngineResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactClusterRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2544,45 +1584,33 @@ func (m *CompactClusterRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactClusterRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactClusterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.PdAddr) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) + i += copy(dAtA[i:], m.PdAddr) } if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Request.Size())) + n7, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - if len(m.PdAddr) > 0 { - i -= len(m.PdAddr) - copy(dAtA[i:], m.PdAddr) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactClusterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2590,26 +1618,17 @@ func (m *CompactClusterResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactClusterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactClusterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2617,26 +1636,17 @@ func (m *GetVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *GetVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2644,40 +1654,29 @@ func (m *GetVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *GetVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Version) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Version))) + i += copy(dAtA[i:], m.Version) } if len(m.Commit) > 0 { - i -= len(m.Commit) - copy(dAtA[i:], m.Commit) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Commit))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Commit))) + i += copy(dAtA[i:], m.Commit) } - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2685,26 +1684,17 @@ func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2712,33 +1702,23 @@ func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Prometheus) > 0 { - i -= len(m.Prometheus) - copy(dAtA[i:], m.Prometheus) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Prometheus))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Prometheus))) + i += copy(dAtA[i:], m.Prometheus) } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2746,38 +1726,27 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.EngineNotFound != nil { - { - size, err := m.EngineNotFound.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportKvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.EngineNotFound.Size())) + n8, err := m.EngineNotFound.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *Error_EngineNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2785,44 +1754,29 @@ func (m *Error_EngineNotFound) Marshal() (dAtA []byte, err error) { } func (m *Error_EngineNotFound) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error_EngineNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintImportKvpb(dAtA []byte, offset int, v uint64) int { - offset -= sovImportKvpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *SwitchModeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.PdAddr) @@ -2833,28 +1787,16 @@ func (m *SwitchModeRequest) Size() (n int) { l = m.Request.Size() n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SwitchModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *OpenEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -2865,44 +1807,26 @@ func (m *OpenEngineRequest) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *OpenEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteHead) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Mutation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Op != 0 { @@ -2916,16 +1840,10 @@ func (m *Mutation) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { @@ -2937,31 +1855,19 @@ func (m *WriteBatch) Size() (n int) { n += 1 + l + sovImportKvpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteEngineRequest_Head) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Head != nil { @@ -2971,9 +1877,6 @@ func (m *WriteEngineRequest_Head) Size() (n int) { return n } func (m *WriteEngineRequest_Batch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Batch != nil { @@ -2983,9 +1886,6 @@ func (m *WriteEngineRequest_Batch) Size() (n int) { return n } func (m *KVPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -2996,16 +1896,10 @@ func (m *KVPair) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteEngineV3Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3021,64 +1915,40 @@ func (m *WriteEngineV3Request) Size() (n int) { n += 1 + l + sovImportKvpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CloseEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CloseEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ImportEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3089,56 +1959,32 @@ func (m *ImportEngineRequest) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ImportEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactClusterRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.PdAddr) @@ -3149,40 +1995,22 @@ func (m *CompactClusterRequest) Size() (n int) { l = m.Request.Size() n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactClusterResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Version) @@ -3193,74 +2021,54 @@ func (m *GetVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMetricsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMetricsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prometheus) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.EngineNotFound != nil { l = m.EngineNotFound.Size() n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error_EngineNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovImportKvpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozImportKvpb(x uint64) (n int) { return sovImportKvpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3280,7 +2088,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3308,7 +2116,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3318,9 +2126,6 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3340,7 +2145,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3349,9 +2154,6 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3368,13 +2170,12 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3399,7 +2200,7 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3419,13 +2220,12 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3450,7 +2250,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3478,7 +2278,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3487,9 +2287,6 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3512,7 +2309,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3521,9 +2318,6 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3538,13 +2332,12 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3569,7 +2362,7 @@ func (m *OpenEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3589,13 +2382,12 @@ func (m *OpenEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3620,7 +2412,7 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3648,7 +2440,7 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3657,9 +2449,6 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3674,13 +2463,12 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3705,7 +2493,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3733,7 +2521,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= Mutation_OP(b&0x7F) << shift + m.Op |= (Mutation_OP(b) & 0x7F) << shift if b < 0x80 { break } @@ -3752,7 +2540,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3761,9 +2549,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3786,7 +2571,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3795,9 +2580,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3812,13 +2594,12 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3843,7 +2624,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3871,7 +2652,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3890,7 +2671,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3899,9 +2680,6 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3916,13 +2694,12 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3947,7 +2724,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3975,7 +2752,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3984,9 +2761,6 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4010,7 +2784,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4019,9 +2793,6 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4037,13 +2808,12 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4068,7 +2838,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4096,7 +2866,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4105,9 +2875,6 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4130,7 +2897,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4139,9 +2906,6 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4156,13 +2920,12 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4187,7 +2950,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4215,7 +2978,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4224,9 +2987,6 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4249,7 +3009,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4268,7 +3028,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4277,9 +3037,6 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4294,13 +3051,12 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4325,7 +3081,7 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4353,7 +3109,7 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4362,9 +3118,6 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4381,13 +3134,12 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4412,7 +3164,7 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4440,7 +3192,7 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4449,9 +3201,6 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4466,13 +3215,12 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4497,7 +3245,7 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4525,7 +3273,7 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4534,9 +3282,6 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4553,13 +3298,12 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4584,7 +3328,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4612,7 +3356,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4621,9 +3365,6 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4646,7 +3387,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4656,9 +3397,6 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4670,13 +3408,12 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4701,7 +3438,7 @@ func (m *ImportEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4721,13 +3458,12 @@ func (m *ImportEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4752,7 +3488,7 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4780,7 +3516,7 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4789,9 +3525,6 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4806,13 +3539,12 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4837,7 +3569,7 @@ func (m *CleanupEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4857,13 +3589,12 @@ func (m *CleanupEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4888,7 +3619,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4916,7 +3647,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4926,9 +3657,6 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4948,7 +3676,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4957,9 +3685,6 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4976,13 +3701,12 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5007,7 +3731,7 @@ func (m *CompactClusterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5027,13 +3751,12 @@ func (m *CompactClusterResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5058,7 +3781,7 @@ func (m *GetVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5078,13 +3801,12 @@ func (m *GetVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5109,7 +3831,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5137,7 +3859,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5147,9 +3869,6 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5169,7 +3888,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5179,9 +3898,6 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5193,13 +3909,12 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5224,7 +3939,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5244,13 +3959,12 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5275,7 +3989,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5303,7 +4017,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5313,9 +4027,6 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5327,13 +4038,12 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5358,7 +4068,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5386,7 +4096,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5395,9 +4105,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5414,13 +4121,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5445,7 +4151,7 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5473,7 +4179,7 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5482,9 +4188,6 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportKvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5499,13 +4202,12 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5518,7 +4220,6 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { func skipImportKvpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -5550,8 +4251,10 @@ func skipImportKvpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -5568,34 +4271,115 @@ func skipImportKvpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthImportKvpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupImportKvpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowImportKvpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipImportKvpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthImportKvpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthImportKvpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowImportKvpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupImportKvpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthImportKvpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowImportKvpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("import_kvpb.proto", fileDescriptorImportKvpb) } + +var fileDescriptorImportKvpb = []byte{ + // 884 bytes of a gzipped FileDescript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x45, 0x23, 0xd8, 0x97, 0xd2, 0x06, 0x5d, 0x3e, 0xf7, + 0xd9, 0x2a, 0x89, 0xfe, 0x0f, 0x33, 0x32, 0xa1, 0x9e, 0xb2, 0x79, 0x66, 0xda, 0x7c, 0x54, 0x64, + 0x38, 0x0b, 0x12, 0xc2, 0x50, 0xd0, 0x37, 0xb0, 0x97, 0x76, 0x2d, 0x92, 0xbf, 0x29, 0x08, 0x85, + 0xe6, 0xe5, 0x06, 0xc4, 0x8a, 0xf6, 0x3b, 0xd8, 0x97, 0x8c, 0x9c, 0x91, 0xa0, 0x28, 0x10, 0x9a, + 0xc6, 0x26, 0xc8, 0x8a, 0xf9, 0x7b, 0x38, 0x90, 0xfd, 0x89, 0x32, 0xdf, 0x15, 0xc5, 0x44, 0xf3, + 0x9d, 0x8d, 0x98, 0xf4, 0x03, 0x5b, 0xbb, 0x39, 0xf3, 0xc0, 0x72, 0xde, 0xcf, 0x3c, 0xb0, 0x7c, + 0x0c, 0xac, 0x08, 0x85, 0x83, 0xf3, 0x84, 0xb2, 0xdf, 0xf3, 0x84, 0x19, 0xeb, 0x1b, 0x4a, 0xef, + 0xbd, 0xbf, 0x7e, 0xdf, 0x55, 0xff, 0x78, 0x6a, 0xa9, 0x7f, 0x3e, 0xb5, 0xd4, 0x7f, 0x9e, 0x5a, + 0xea, 0x6f, 0xff, 0xb6, 0x14, 0x38, 0x24, 0x74, 0xda, 0x61, 0x8e, 0xbb, 0xec, 0xb8, 0x4b, 0xfe, + 0xcf, 0xd6, 0x7d, 0x85, 0xff, 0xb9, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4a, 0x28, 0xa0, + 0xd0, 0x09, 0x00, 0x00, +} diff --git a/pkg/import_sstpb/import_sstpb.pb.go b/pkg/import_sstpb/import_sstpb.pb.go index 21eaaa35c..eef6c8196 100644 --- a/pkg/import_sstpb/import_sstpb.pb.go +++ b/pkg/import_sstpb/import_sstpb.pb.go @@ -1,24 +1,71 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: import_sstpb.proto +/* +Package import_sstpb is a generated protocol buffer package. + +It is generated from these files: + + import_sstpb.proto + +It has these top-level messages: + + SwitchModeRequest + SwitchModeResponse + GetModeRequest + GetModeResponse + Range + SSTMeta + RewriteRule + UploadRequest + UploadResponse + IngestRequest + MultiIngestRequest + IngestResponse + CompactRequest + CompactResponse + DownloadRequest + Error + DownloadResponse + SetDownloadSpeedLimitRequest + SetDownloadSpeedLimitResponse + Pair + WriteBatch + WriteRequest + WriteResponse + RawWriteBatch + RawWriteRequest + RawWriteResponse + DuplicateDetectRequest + KvPair + DuplicateDetectResponse + KVMeta + ApplyRequest + ApplyResponse + ClearRequest + ClearResponse +*/ package import_sstpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - brpb "github.com/pingcap/kvproto/pkg/brpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - metapb "github.com/pingcap/kvproto/pkg/metapb" + + _ "github.com/gogo/protobuf/gogoproto" + + backup "github.com/pingcap/kvproto/pkg/brpb" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -30,7 +77,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type SwitchMode int32 @@ -43,7 +90,6 @@ var SwitchMode_name = map[int32]string{ 0: "Normal", 1: "Import", } - var SwitchMode_value = map[string]int32{ "Normal": 0, "Import": 1, @@ -52,10 +98,7 @@ var SwitchMode_value = map[string]int32{ func (x SwitchMode) String() string { return proto.EnumName(SwitchMode_name, int32(x)) } - -func (SwitchMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{0} -} +func (SwitchMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{0} } type DownloadRequestType int32 @@ -70,7 +113,6 @@ var DownloadRequestType_name = map[int32]string{ 0: "Legacy", 1: "Keyspace", } - var DownloadRequestType_value = map[string]int32{ "Legacy": 0, "Keyspace": 1, @@ -79,9 +121,8 @@ var DownloadRequestType_value = map[string]int32{ func (x DownloadRequestType) String() string { return proto.EnumName(DownloadRequestType_name, int32(x)) } - func (DownloadRequestType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{1} + return fileDescriptorImportSstpb, []int{1} } type Pair_OP int32 @@ -95,7 +136,6 @@ var Pair_OP_name = map[int32]string{ 0: "Put", 1: "Delete", } - var Pair_OP_value = map[string]int32{ "Put": 0, "Delete": 1, @@ -104,51 +144,17 @@ var Pair_OP_value = map[string]int32{ func (x Pair_OP) String() string { return proto.EnumName(Pair_OP_name, int32(x)) } - -func (Pair_OP) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{19, 0} -} +func (Pair_OP) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{19, 0} } type SwitchModeRequest struct { - Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` - Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } -func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchModeRequest) ProtoMessage() {} -func (*SwitchModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{0} -} -func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchModeRequest.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 *SwitchModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchModeRequest.Merge(m, src) -} -func (m *SwitchModeRequest) XXX_Size() int { - return m.Size() -} -func (m *SwitchModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchModeRequest.DiscardUnknown(m) + Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` + Ranges []*Range `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` } -var xxx_messageInfo_SwitchModeRequest proto.InternalMessageInfo +func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } +func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchModeRequest) ProtoMessage() {} +func (*SwitchModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{0} } func (m *SwitchModeRequest) GetMode() SwitchMode { if m != nil { @@ -165,122 +171,29 @@ func (m *SwitchModeRequest) GetRanges() []*Range { } type SwitchModeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } -func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchModeResponse) ProtoMessage() {} -func (*SwitchModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{1} -} -func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchModeResponse.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 *SwitchModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchModeResponse.Merge(m, src) -} -func (m *SwitchModeResponse) XXX_Size() int { - return m.Size() -} -func (m *SwitchModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchModeResponse.DiscardUnknown(m) } -var xxx_messageInfo_SwitchModeResponse proto.InternalMessageInfo +func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } +func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchModeResponse) ProtoMessage() {} +func (*SwitchModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{1} } type GetModeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetModeRequest) Reset() { *m = GetModeRequest{} } -func (m *GetModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetModeRequest) ProtoMessage() {} -func (*GetModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{2} -} -func (m *GetModeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetModeRequest.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 *GetModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetModeRequest.Merge(m, src) -} -func (m *GetModeRequest) XXX_Size() int { - return m.Size() -} -func (m *GetModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetModeRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetModeRequest proto.InternalMessageInfo +func (m *GetModeRequest) Reset() { *m = GetModeRequest{} } +func (m *GetModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetModeRequest) ProtoMessage() {} +func (*GetModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{2} } type GetModeResponse struct { - Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetModeResponse) Reset() { *m = GetModeResponse{} } -func (m *GetModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetModeResponse) ProtoMessage() {} -func (*GetModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{3} -} -func (m *GetModeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetModeResponse.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 *GetModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetModeResponse.Merge(m, src) -} -func (m *GetModeResponse) XXX_Size() int { - return m.Size() -} -func (m *GetModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetModeResponse.DiscardUnknown(m) + Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` } -var xxx_messageInfo_GetModeResponse proto.InternalMessageInfo +func (m *GetModeResponse) Reset() { *m = GetModeResponse{} } +func (m *GetModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetModeResponse) ProtoMessage() {} +func (*GetModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{3} } func (m *GetModeResponse) GetMode() SwitchMode { if m != nil { @@ -290,45 +203,14 @@ func (m *GetModeResponse) GetMode() SwitchMode { } type Range struct { - Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Range) Reset() { *m = Range{} } -func (m *Range) String() string { return proto.CompactTextString(m) } -func (*Range) ProtoMessage() {} -func (*Range) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{4} -} -func (m *Range) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Range.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 *Range) XXX_Merge(src proto.Message) { - xxx_messageInfo_Range.Merge(m, src) -} -func (m *Range) XXX_Size() int { - return m.Size() -} -func (m *Range) XXX_DiscardUnknown() { - xxx_messageInfo_Range.DiscardUnknown(m) + Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` } -var xxx_messageInfo_Range proto.InternalMessageInfo +func (m *Range) Reset() { *m = Range{} } +func (m *Range) String() string { return proto.CompactTextString(m) } +func (*Range) ProtoMessage() {} +func (*Range) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{4} } func (m *Range) GetStart() []byte { if m != nil { @@ -346,12 +228,12 @@ func (m *Range) GetEnd() []byte { type SSTMeta struct { Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` + Range *Range `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"` Crc32 uint32 `protobuf:"varint,3,opt,name=crc32,proto3" json:"crc32,omitempty"` Length uint64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"` CfName string `protobuf:"bytes,5,opt,name=cf_name,json=cfName,proto3" json:"cf_name,omitempty"` RegionId uint64 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,7,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,7,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` EndKeyExclusive bool `protobuf:"varint,8,opt,name=end_key_exclusive,json=endKeyExclusive,proto3" json:"end_key_exclusive,omitempty"` // total_kvs and total_bytes is equivalent to PD's approximate_keys and approximate_size // set these values can save time from tikv upload keys and size to PD through Heartbeat. @@ -360,44 +242,13 @@ type SSTMeta struct { // API version implies the encode of the key and value. ApiVersion kvrpcpb.APIVersion `protobuf:"varint,11,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // cipher_iv is used to encrypt/decrypt sst - CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SSTMeta) Reset() { *m = SSTMeta{} } -func (m *SSTMeta) String() string { return proto.CompactTextString(m) } -func (*SSTMeta) ProtoMessage() {} -func (*SSTMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{5} -} -func (m *SSTMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SSTMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SSTMeta.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 *SSTMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_SSTMeta.Merge(m, src) -} -func (m *SSTMeta) XXX_Size() int { - return m.Size() -} -func (m *SSTMeta) XXX_DiscardUnknown() { - xxx_messageInfo_SSTMeta.DiscardUnknown(m) + CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` } -var xxx_messageInfo_SSTMeta proto.InternalMessageInfo +func (m *SSTMeta) Reset() { *m = SSTMeta{} } +func (m *SSTMeta) String() string { return proto.CompactTextString(m) } +func (*SSTMeta) ProtoMessage() {} +func (*SSTMeta) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{5} } func (m *SSTMeta) GetUuid() []byte { if m != nil { @@ -486,46 +337,15 @@ func (m *SSTMeta) GetCipherIv() []byte { // A rewrite rule is applied on the *encoded* keys (the internal storage // representation). type RewriteRule struct { - OldKeyPrefix []byte `protobuf:"bytes,1,opt,name=old_key_prefix,json=oldKeyPrefix,proto3" json:"old_key_prefix,omitempty"` - NewKeyPrefix []byte `protobuf:"bytes,2,opt,name=new_key_prefix,json=newKeyPrefix,proto3" json:"new_key_prefix,omitempty"` - NewTimestamp uint64 `protobuf:"varint,3,opt,name=new_timestamp,json=newTimestamp,proto3" json:"new_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RewriteRule) Reset() { *m = RewriteRule{} } -func (m *RewriteRule) String() string { return proto.CompactTextString(m) } -func (*RewriteRule) ProtoMessage() {} -func (*RewriteRule) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{6} -} -func (m *RewriteRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RewriteRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RewriteRule.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 *RewriteRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_RewriteRule.Merge(m, src) -} -func (m *RewriteRule) XXX_Size() int { - return m.Size() -} -func (m *RewriteRule) XXX_DiscardUnknown() { - xxx_messageInfo_RewriteRule.DiscardUnknown(m) + OldKeyPrefix []byte `protobuf:"bytes,1,opt,name=old_key_prefix,json=oldKeyPrefix,proto3" json:"old_key_prefix,omitempty"` + NewKeyPrefix []byte `protobuf:"bytes,2,opt,name=new_key_prefix,json=newKeyPrefix,proto3" json:"new_key_prefix,omitempty"` + NewTimestamp uint64 `protobuf:"varint,3,opt,name=new_timestamp,json=newTimestamp,proto3" json:"new_timestamp,omitempty"` } -var xxx_messageInfo_RewriteRule proto.InternalMessageInfo +func (m *RewriteRule) Reset() { *m = RewriteRule{} } +func (m *RewriteRule) String() string { return proto.CompactTextString(m) } +func (*RewriteRule) ProtoMessage() {} +func (*RewriteRule) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{6} } func (m *RewriteRule) GetOldKeyPrefix() []byte { if m != nil { @@ -552,44 +372,13 @@ type UploadRequest struct { // Types that are valid to be assigned to Chunk: // *UploadRequest_Meta // *UploadRequest_Data - Chunk isUploadRequest_Chunk `protobuf_oneof:"chunk"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UploadRequest) Reset() { *m = UploadRequest{} } -func (m *UploadRequest) String() string { return proto.CompactTextString(m) } -func (*UploadRequest) ProtoMessage() {} -func (*UploadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{7} -} -func (m *UploadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UploadRequest.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 *UploadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadRequest.Merge(m, src) -} -func (m *UploadRequest) XXX_Size() int { - return m.Size() -} -func (m *UploadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UploadRequest.DiscardUnknown(m) + Chunk isUploadRequest_Chunk `protobuf_oneof:"chunk"` } -var xxx_messageInfo_UploadRequest proto.InternalMessageInfo +func (m *UploadRequest) Reset() { *m = UploadRequest{} } +func (m *UploadRequest) String() string { return proto.CompactTextString(m) } +func (*UploadRequest) ProtoMessage() {} +func (*UploadRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{7} } type isUploadRequest_Chunk interface { isUploadRequest_Chunk() @@ -598,10 +387,10 @@ type isUploadRequest_Chunk interface { } type UploadRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` } type UploadRequest_Data struct { - Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"` } func (*UploadRequest_Meta) isUploadRequest_Chunk() {} @@ -628,93 +417,93 @@ func (m *UploadRequest) GetData() []byte { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UploadRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*UploadRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _UploadRequest_OneofMarshaler, _UploadRequest_OneofUnmarshaler, _UploadRequest_OneofSizer, []interface{}{ (*UploadRequest_Meta)(nil), (*UploadRequest_Data)(nil), } } -type UploadResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UploadResponse) Reset() { *m = UploadResponse{} } -func (m *UploadResponse) String() string { return proto.CompactTextString(m) } -func (*UploadResponse) ProtoMessage() {} -func (*UploadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{8} -} -func (m *UploadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UploadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _UploadRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*UploadRequest) + // chunk + switch x := m.Chunk.(type) { + case *UploadRequest_Meta: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Meta); err != nil { + return err } - return b[:n], nil + case *UploadRequest_Data: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + _ = b.EncodeRawBytes(x.Data) + case nil: + default: + return fmt.Errorf("UploadRequest.Chunk has unexpected type %T", x) } + return nil } -func (m *UploadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadResponse.Merge(m, src) -} -func (m *UploadResponse) XXX_Size() int { - return m.Size() + +func _UploadRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*UploadRequest) + switch tag { + case 1: // chunk.meta + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SSTMeta) + err := b.DecodeMessage(msg) + m.Chunk = &UploadRequest_Meta{msg} + return true, err + case 2: // chunk.data + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Chunk = &UploadRequest_Data{x} + return true, err + default: + return false, nil + } +} + +func _UploadRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*UploadRequest) + // chunk + switch x := m.Chunk.(type) { + case *UploadRequest_Meta: + s := proto.Size(x.Meta) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *UploadRequest_Data: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Data))) + n += len(x.Data) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *UploadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UploadResponse.DiscardUnknown(m) + +type UploadResponse struct { } -var xxx_messageInfo_UploadResponse proto.InternalMessageInfo +func (m *UploadResponse) Reset() { *m = UploadResponse{} } +func (m *UploadResponse) String() string { return proto.CompactTextString(m) } +func (*UploadResponse) ProtoMessage() {} +func (*UploadResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{8} } type IngestRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Sst *SSTMeta `protobuf:"bytes,2,opt,name=sst,proto3" json:"sst,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IngestRequest) Reset() { *m = IngestRequest{} } -func (m *IngestRequest) String() string { return proto.CompactTextString(m) } -func (*IngestRequest) ProtoMessage() {} -func (*IngestRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{9} -} -func (m *IngestRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngestRequest.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 *IngestRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngestRequest.Merge(m, src) -} -func (m *IngestRequest) XXX_Size() int { - return m.Size() -} -func (m *IngestRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IngestRequest.DiscardUnknown(m) + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Sst *SSTMeta `protobuf:"bytes,2,opt,name=sst" json:"sst,omitempty"` } -var xxx_messageInfo_IngestRequest proto.InternalMessageInfo +func (m *IngestRequest) Reset() { *m = IngestRequest{} } +func (m *IngestRequest) String() string { return proto.CompactTextString(m) } +func (*IngestRequest) ProtoMessage() {} +func (*IngestRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{9} } func (m *IngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -731,45 +520,14 @@ func (m *IngestRequest) GetSst() *SSTMeta { } type MultiIngestRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Ssts []*SSTMeta `protobuf:"bytes,2,rep,name=ssts,proto3" json:"ssts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MultiIngestRequest) Reset() { *m = MultiIngestRequest{} } -func (m *MultiIngestRequest) String() string { return proto.CompactTextString(m) } -func (*MultiIngestRequest) ProtoMessage() {} -func (*MultiIngestRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{10} -} -func (m *MultiIngestRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiIngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiIngestRequest.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 *MultiIngestRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiIngestRequest.Merge(m, src) -} -func (m *MultiIngestRequest) XXX_Size() int { - return m.Size() -} -func (m *MultiIngestRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MultiIngestRequest.DiscardUnknown(m) + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Ssts []*SSTMeta `protobuf:"bytes,2,rep,name=ssts" json:"ssts,omitempty"` } -var xxx_messageInfo_MultiIngestRequest proto.InternalMessageInfo +func (m *MultiIngestRequest) Reset() { *m = MultiIngestRequest{} } +func (m *MultiIngestRequest) String() string { return proto.CompactTextString(m) } +func (*MultiIngestRequest) ProtoMessage() {} +func (*MultiIngestRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{10} } func (m *MultiIngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -786,44 +544,13 @@ func (m *MultiIngestRequest) GetSsts() []*SSTMeta { } type IngestResponse struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IngestResponse) Reset() { *m = IngestResponse{} } -func (m *IngestResponse) String() string { return proto.CompactTextString(m) } -func (*IngestResponse) ProtoMessage() {} -func (*IngestResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{11} -} -func (m *IngestResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngestResponse.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 *IngestResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngestResponse.Merge(m, src) -} -func (m *IngestResponse) XXX_Size() int { - return m.Size() -} -func (m *IngestResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IngestResponse.DiscardUnknown(m) + Error *errorpb.Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_IngestResponse proto.InternalMessageInfo +func (m *IngestResponse) Reset() { *m = IngestResponse{} } +func (m *IngestResponse) String() string { return proto.CompactTextString(m) } +func (*IngestResponse) ProtoMessage() {} +func (*IngestResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{11} } func (m *IngestResponse) GetError() *errorpb.Error { if m != nil { @@ -836,46 +563,15 @@ type CompactRequest struct { // Compact files in the range and above the output level. // Compact all files if the range is not specified. // Compact all files to the bottommost level if the output level is -1. - Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` - OutputLevel int32 `protobuf:"varint,2,opt,name=output_level,json=outputLevel,proto3" json:"output_level,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{12} -} -func (m *CompactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactRequest.Merge(m, src) -} -func (m *CompactRequest) XXX_Size() int { - return m.Size() -} -func (m *CompactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CompactRequest.DiscardUnknown(m) + Range *Range `protobuf:"bytes,1,opt,name=range" json:"range,omitempty"` + OutputLevel int32 `protobuf:"varint,2,opt,name=output_level,json=outputLevel,proto3" json:"output_level,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_CompactRequest proto.InternalMessageInfo +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{12} } func (m *CompactRequest) GetRange() *Range { if m != nil { @@ -899,43 +595,12 @@ func (m *CompactRequest) GetContext() *kvrpcpb.Context { } type CompactResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{13} -} -func (m *CompactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactResponse.Merge(m, src) -} -func (m *CompactResponse) XXX_Size() int { - return m.Size() -} -func (m *CompactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CompactResponse.DiscardUnknown(m) } -var xxx_messageInfo_CompactResponse proto.InternalMessageInfo +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{13} } type DownloadRequest struct { // The SST meta used to identify the downloaded file. @@ -943,7 +608,7 @@ type DownloadRequest struct { // Note: the "crc32" and "cf_name" fields are ignored in this request, // and the "range" field represents the closed key range after rewrite // (as origin keys in encoded representation). - Sst SSTMeta `protobuf:"bytes,2,opt,name=sst,proto3" json:"sst"` + Sst SSTMeta `protobuf:"bytes,2,opt,name=sst" json:"sst"` // The file name of the SST file. Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` // Performs a key prefix rewrite after downloading the SST file. @@ -958,55 +623,24 @@ type DownloadRequest struct { // // You need to ensure that the keys before and after rewriting are in the // same order, otherwise the RPC request will fail. - RewriteRule RewriteRule `protobuf:"bytes,13,opt,name=rewrite_rule,json=rewriteRule,proto3" json:"rewrite_rule"` - StorageBackend *brpb.StorageBackend `protobuf:"bytes,14,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + RewriteRule RewriteRule `protobuf:"bytes,13,opt,name=rewrite_rule,json=rewriteRule" json:"rewrite_rule"` + StorageBackend *backup.StorageBackend `protobuf:"bytes,14,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` // The identity for the stroage backend. // When this field presents, the storage would be cached. // If there is a cached storage, TiKV would use it driectly. StorageCacheId string `protobuf:"bytes,17,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` IsRawKv bool `protobuf:"varint,15,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` // cipher_info is used to decrypt sst when download sst - CipherInfo *brpb.CipherInfo `protobuf:"bytes,16,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` + CipherInfo *backup.CipherInfo `protobuf:"bytes,16,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` // The type of the download request. - RequestType DownloadRequestType `protobuf:"varint,18,opt,name=request_type,json=requestType,proto3,enum=import_sstpb.DownloadRequestType" json:"request_type,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,19,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DownloadRequest) Reset() { *m = DownloadRequest{} } -func (m *DownloadRequest) String() string { return proto.CompactTextString(m) } -func (*DownloadRequest) ProtoMessage() {} -func (*DownloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{14} -} -func (m *DownloadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DownloadRequest.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 *DownloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadRequest.Merge(m, src) -} -func (m *DownloadRequest) XXX_Size() int { - return m.Size() -} -func (m *DownloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DownloadRequest.DiscardUnknown(m) + RequestType DownloadRequestType `protobuf:"varint,18,opt,name=request_type,json=requestType,proto3,enum=import_sstpb.DownloadRequestType" json:"request_type,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,19,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_DownloadRequest proto.InternalMessageInfo +func (m *DownloadRequest) Reset() { *m = DownloadRequest{} } +func (m *DownloadRequest) String() string { return proto.CompactTextString(m) } +func (*DownloadRequest) ProtoMessage() {} +func (*DownloadRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{14} } func (m *DownloadRequest) GetSst() SSTMeta { if m != nil { @@ -1029,7 +663,7 @@ func (m *DownloadRequest) GetRewriteRule() RewriteRule { return RewriteRule{} } -func (m *DownloadRequest) GetStorageBackend() *brpb.StorageBackend { +func (m *DownloadRequest) GetStorageBackend() *backup.StorageBackend { if m != nil { return m.StorageBackend } @@ -1050,7 +684,7 @@ func (m *DownloadRequest) GetIsRawKv() bool { return false } -func (m *DownloadRequest) GetCipherInfo() *brpb.CipherInfo { +func (m *DownloadRequest) GetCipherInfo() *backup.CipherInfo { if m != nil { return m.CipherInfo } @@ -1076,44 +710,13 @@ func (m *DownloadRequest) GetContext() *kvrpcpb.Context { type Error struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // We meet some internal errors of the store. - StoreError *errorpb.Error `protobuf:"bytes,2,opt,name=store_error,json=storeError,proto3" json:"store_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{15} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + StoreError *errorpb.Error `protobuf:"bytes,2,opt,name=store_error,json=storeError" json:"store_error,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{15} } func (m *Error) GetMessage() string { if m != nil { @@ -1132,54 +735,23 @@ func (m *Error) GetStoreError() *errorpb.Error { type DownloadResponse struct { // The actual key range (after rewrite) of the downloaded SST. The range is // inclusive in both ends. - Range Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range"` + Range Range `protobuf:"bytes,1,opt,name=range" json:"range"` // Whether the SST is empty. An empty SST is prohibited in TiKV, do not // ingest if this field is true. // (Deprecated, should be replaced by checking `length == 0` in the future) IsEmpty bool `protobuf:"varint,2,opt,name=is_empty,json=isEmpty,proto3" json:"is_empty,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` // The CRC32 checksum of the rewritten SST file (implementation can return // zero, indicating the CRC32 was not calculated). Crc32 uint32 `protobuf:"varint,4,opt,name=crc32,proto3" json:"crc32,omitempty"` // The actual length of the rewritten SST file. - Length uint64 `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DownloadResponse) Reset() { *m = DownloadResponse{} } -func (m *DownloadResponse) String() string { return proto.CompactTextString(m) } -func (*DownloadResponse) ProtoMessage() {} -func (*DownloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{16} -} -func (m *DownloadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DownloadResponse.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 *DownloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownloadResponse.Merge(m, src) -} -func (m *DownloadResponse) XXX_Size() int { - return m.Size() -} -func (m *DownloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DownloadResponse.DiscardUnknown(m) + Length uint64 `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"` } -var xxx_messageInfo_DownloadResponse proto.InternalMessageInfo +func (m *DownloadResponse) Reset() { *m = DownloadResponse{} } +func (m *DownloadResponse) String() string { return proto.CompactTextString(m) } +func (*DownloadResponse) ProtoMessage() {} +func (*DownloadResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{16} } func (m *DownloadResponse) GetRange() Range { if m != nil { @@ -1218,44 +790,15 @@ func (m *DownloadResponse) GetLength() uint64 { type SetDownloadSpeedLimitRequest struct { // The download speed limit (bytes/second). Set to 0 for unlimited speed. - SpeedLimit uint64 `protobuf:"varint,1,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SpeedLimit uint64 `protobuf:"varint,1,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"` } func (m *SetDownloadSpeedLimitRequest) Reset() { *m = SetDownloadSpeedLimitRequest{} } func (m *SetDownloadSpeedLimitRequest) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitRequest) ProtoMessage() {} func (*SetDownloadSpeedLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{17} -} -func (m *SetDownloadSpeedLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetDownloadSpeedLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetDownloadSpeedLimitRequest.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 fileDescriptorImportSstpb, []int{17} } -func (m *SetDownloadSpeedLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetDownloadSpeedLimitRequest.Merge(m, src) -} -func (m *SetDownloadSpeedLimitRequest) XXX_Size() int { - return m.Size() -} -func (m *SetDownloadSpeedLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetDownloadSpeedLimitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetDownloadSpeedLimitRequest proto.InternalMessageInfo func (m *SetDownloadSpeedLimitRequest) GetSpeedLimit() uint64 { if m != nil { @@ -1265,85 +808,25 @@ func (m *SetDownloadSpeedLimitRequest) GetSpeedLimit() uint64 { } type SetDownloadSpeedLimitResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *SetDownloadSpeedLimitResponse) Reset() { *m = SetDownloadSpeedLimitResponse{} } func (m *SetDownloadSpeedLimitResponse) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitResponse) ProtoMessage() {} func (*SetDownloadSpeedLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{18} -} -func (m *SetDownloadSpeedLimitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetDownloadSpeedLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetDownloadSpeedLimitResponse.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 *SetDownloadSpeedLimitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetDownloadSpeedLimitResponse.Merge(m, src) -} -func (m *SetDownloadSpeedLimitResponse) XXX_Size() int { - return m.Size() -} -func (m *SetDownloadSpeedLimitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetDownloadSpeedLimitResponse.DiscardUnknown(m) + return fileDescriptorImportSstpb, []int{18} } -var xxx_messageInfo_SetDownloadSpeedLimitResponse proto.InternalMessageInfo - type Pair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Op Pair_OP `protobuf:"varint,3,opt,name=op,proto3,enum=import_sstpb.Pair_OP" json:"op,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Pair) Reset() { *m = Pair{} } -func (m *Pair) String() string { return proto.CompactTextString(m) } -func (*Pair) ProtoMessage() {} -func (*Pair) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{19} -} -func (m *Pair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Pair.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 *Pair) XXX_Merge(src proto.Message) { - xxx_messageInfo_Pair.Merge(m, src) -} -func (m *Pair) XXX_Size() int { - return m.Size() -} -func (m *Pair) XXX_DiscardUnknown() { - xxx_messageInfo_Pair.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Op Pair_OP `protobuf:"varint,3,opt,name=op,proto3,enum=import_sstpb.Pair_OP" json:"op,omitempty"` } -var xxx_messageInfo_Pair proto.InternalMessageInfo +func (m *Pair) Reset() { *m = Pair{} } +func (m *Pair) String() string { return proto.CompactTextString(m) } +func (*Pair) ProtoMessage() {} +func (*Pair) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{19} } func (m *Pair) GetKey() []byte { if m != nil { @@ -1367,45 +850,14 @@ func (m *Pair) GetOp() Pair_OP { } type WriteBatch struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteBatch) Reset() { *m = WriteBatch{} } -func (m *WriteBatch) String() string { return proto.CompactTextString(m) } -func (*WriteBatch) ProtoMessage() {} -func (*WriteBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{20} -} -func (m *WriteBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteBatch.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 *WriteBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteBatch.Merge(m, src) -} -func (m *WriteBatch) XXX_Size() int { - return m.Size() -} -func (m *WriteBatch) XXX_DiscardUnknown() { - xxx_messageInfo_WriteBatch.DiscardUnknown(m) + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` } -var xxx_messageInfo_WriteBatch proto.InternalMessageInfo +func (m *WriteBatch) Reset() { *m = WriteBatch{} } +func (m *WriteBatch) String() string { return proto.CompactTextString(m) } +func (*WriteBatch) ProtoMessage() {} +func (*WriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{20} } func (m *WriteBatch) GetCommitTs() uint64 { if m != nil { @@ -1425,45 +877,14 @@ type WriteRequest struct { // Types that are valid to be assigned to Chunk: // *WriteRequest_Meta // *WriteRequest_Batch - Chunk isWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteRequest) Reset() { *m = WriteRequest{} } -func (m *WriteRequest) String() string { return proto.CompactTextString(m) } -func (*WriteRequest) ProtoMessage() {} -func (*WriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{21} -} -func (m *WriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteRequest.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 *WriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteRequest.Merge(m, src) -} -func (m *WriteRequest) XXX_Size() int { - return m.Size() -} -func (m *WriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteRequest.DiscardUnknown(m) + Chunk isWriteRequest_Chunk `protobuf_oneof:"chunk"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_WriteRequest proto.InternalMessageInfo +func (m *WriteRequest) Reset() { *m = WriteRequest{} } +func (m *WriteRequest) String() string { return proto.CompactTextString(m) } +func (*WriteRequest) ProtoMessage() {} +func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{21} } type isWriteRequest_Chunk interface { isWriteRequest_Chunk() @@ -1472,10 +893,10 @@ type isWriteRequest_Chunk interface { } type WriteRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` } type WriteRequest_Batch struct { - Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` + Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` } func (*WriteRequest_Meta) isWriteRequest_Chunk() {} @@ -1509,54 +930,89 @@ func (m *WriteRequest) GetContext() *kvrpcpb.Context { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*WriteRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*WriteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _WriteRequest_OneofMarshaler, _WriteRequest_OneofUnmarshaler, _WriteRequest_OneofSizer, []interface{}{ (*WriteRequest_Meta)(nil), (*WriteRequest_Batch)(nil), } } -type WriteResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteResponse) Reset() { *m = WriteResponse{} } -func (m *WriteResponse) String() string { return proto.CompactTextString(m) } -func (*WriteResponse) ProtoMessage() {} -func (*WriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{22} -} -func (m *WriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _WriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteRequest_Meta: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Meta); err != nil { + return err + } + case *WriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err } - return b[:n], nil + case nil: + default: + return fmt.Errorf("WriteRequest.Chunk has unexpected type %T", x) } + return nil } -func (m *WriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteResponse.Merge(m, src) -} -func (m *WriteResponse) XXX_Size() int { - return m.Size() + +func _WriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WriteRequest) + switch tag { + case 1: // chunk.meta + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SSTMeta) + err := b.DecodeMessage(msg) + m.Chunk = &WriteRequest_Meta{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &WriteRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _WriteRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteRequest_Meta: + s := proto.Size(x.Meta) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *WriteRequest_Batch: + s := proto.Size(x.Batch) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *WriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteResponse.DiscardUnknown(m) + +type WriteResponse struct { + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` } -var xxx_messageInfo_WriteResponse proto.InternalMessageInfo +func (m *WriteResponse) Reset() { *m = WriteResponse{} } +func (m *WriteResponse) String() string { return proto.CompactTextString(m) } +func (*WriteResponse) ProtoMessage() {} +func (*WriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{22} } func (m *WriteResponse) GetError() *Error { if m != nil { @@ -1574,50 +1030,19 @@ func (m *WriteResponse) GetMetas() []*SSTMeta { type RawWriteBatch struct { Ttl uint64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` - Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` // To be compatible with the key encoding of API V2. // This field should be generated from the client instead of the server, // since the message will be send to all the replicas of a region. // Otherwise, the underlying data generated by the server would be inconsistent which is hard to scale // for other features like MVCC over RawKV. - Ts uint64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawWriteBatch) Reset() { *m = RawWriteBatch{} } -func (m *RawWriteBatch) String() string { return proto.CompactTextString(m) } -func (*RawWriteBatch) ProtoMessage() {} -func (*RawWriteBatch) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{23} -} -func (m *RawWriteBatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawWriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawWriteBatch.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 *RawWriteBatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawWriteBatch.Merge(m, src) -} -func (m *RawWriteBatch) XXX_Size() int { - return m.Size() -} -func (m *RawWriteBatch) XXX_DiscardUnknown() { - xxx_messageInfo_RawWriteBatch.DiscardUnknown(m) + Ts uint64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` } -var xxx_messageInfo_RawWriteBatch proto.InternalMessageInfo +func (m *RawWriteBatch) Reset() { *m = RawWriteBatch{} } +func (m *RawWriteBatch) String() string { return proto.CompactTextString(m) } +func (*RawWriteBatch) ProtoMessage() {} +func (*RawWriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{23} } func (m *RawWriteBatch) GetTtl() uint64 { if m != nil { @@ -1644,45 +1069,14 @@ type RawWriteRequest struct { // Types that are valid to be assigned to Chunk: // *RawWriteRequest_Meta // *RawWriteRequest_Batch - Chunk isRawWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawWriteRequest) Reset() { *m = RawWriteRequest{} } -func (m *RawWriteRequest) String() string { return proto.CompactTextString(m) } -func (*RawWriteRequest) ProtoMessage() {} -func (*RawWriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{24} -} -func (m *RawWriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawWriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawWriteRequest.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 *RawWriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawWriteRequest.Merge(m, src) -} -func (m *RawWriteRequest) XXX_Size() int { - return m.Size() -} -func (m *RawWriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawWriteRequest.DiscardUnknown(m) + Chunk isRawWriteRequest_Chunk `protobuf_oneof:"chunk"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_RawWriteRequest proto.InternalMessageInfo +func (m *RawWriteRequest) Reset() { *m = RawWriteRequest{} } +func (m *RawWriteRequest) String() string { return proto.CompactTextString(m) } +func (*RawWriteRequest) ProtoMessage() {} +func (*RawWriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{24} } type isRawWriteRequest_Chunk interface { isRawWriteRequest_Chunk() @@ -1691,10 +1085,10 @@ type isRawWriteRequest_Chunk interface { } type RawWriteRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` } type RawWriteRequest_Batch struct { - Batch *RawWriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` + Batch *RawWriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` } func (*RawWriteRequest_Meta) isRawWriteRequest_Chunk() {} @@ -1728,54 +1122,89 @@ func (m *RawWriteRequest) GetContext() *kvrpcpb.Context { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*RawWriteRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RawWriteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _RawWriteRequest_OneofMarshaler, _RawWriteRequest_OneofUnmarshaler, _RawWriteRequest_OneofSizer, []interface{}{ (*RawWriteRequest_Meta)(nil), (*RawWriteRequest_Batch)(nil), } } -type RawWriteResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawWriteResponse) Reset() { *m = RawWriteResponse{} } -func (m *RawWriteResponse) String() string { return proto.CompactTextString(m) } -func (*RawWriteResponse) ProtoMessage() {} -func (*RawWriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{25} -} -func (m *RawWriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawWriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawWriteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _RawWriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RawWriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *RawWriteRequest_Meta: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Meta); err != nil { + return err + } + case *RawWriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err } - return b[:n], nil + case nil: + default: + return fmt.Errorf("RawWriteRequest.Chunk has unexpected type %T", x) } + return nil } -func (m *RawWriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawWriteResponse.Merge(m, src) -} -func (m *RawWriteResponse) XXX_Size() int { - return m.Size() + +func _RawWriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RawWriteRequest) + switch tag { + case 1: // chunk.meta + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SSTMeta) + err := b.DecodeMessage(msg) + m.Chunk = &RawWriteRequest_Meta{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RawWriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &RawWriteRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _RawWriteRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RawWriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *RawWriteRequest_Meta: + s := proto.Size(x.Meta) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RawWriteRequest_Batch: + s := proto.Size(x.Batch) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *RawWriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawWriteResponse.DiscardUnknown(m) + +type RawWriteResponse struct { + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` } -var xxx_messageInfo_RawWriteResponse proto.InternalMessageInfo +func (m *RawWriteResponse) Reset() { *m = RawWriteResponse{} } +func (m *RawWriteResponse) String() string { return proto.CompactTextString(m) } +func (*RawWriteResponse) ProtoMessage() {} +func (*RawWriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{25} } func (m *RawWriteResponse) GetError() *Error { if m != nil { @@ -1792,50 +1221,21 @@ func (m *RawWriteResponse) GetMetas() []*SSTMeta { } type DuplicateDetectRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // Return only the keys found by scanning, not their values. KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` // We only check the data whose timestamp is larger than `min_commit_ts`. `min_commit_ts` is exclueded. - MinCommitTs uint64 `protobuf:"varint,5,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MinCommitTs uint64 `protobuf:"varint,5,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` } func (m *DuplicateDetectRequest) Reset() { *m = DuplicateDetectRequest{} } func (m *DuplicateDetectRequest) String() string { return proto.CompactTextString(m) } func (*DuplicateDetectRequest) ProtoMessage() {} func (*DuplicateDetectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{26} -} -func (m *DuplicateDetectRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorImportSstpb, []int{26} } -func (m *DuplicateDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DuplicateDetectRequest.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 *DuplicateDetectRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DuplicateDetectRequest.Merge(m, src) -} -func (m *DuplicateDetectRequest) XXX_Size() int { - return m.Size() -} -func (m *DuplicateDetectRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DuplicateDetectRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DuplicateDetectRequest proto.InternalMessageInfo func (m *DuplicateDetectRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -1873,46 +1273,15 @@ func (m *DuplicateDetectRequest) GetMinCommitTs() uint64 { } type KvPair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KvPair) Reset() { *m = KvPair{} } -func (m *KvPair) String() string { return proto.CompactTextString(m) } -func (*KvPair) ProtoMessage() {} -func (*KvPair) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{27} -} -func (m *KvPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KvPair.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 *KvPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KvPair.Merge(m, src) -} -func (m *KvPair) XXX_Size() int { - return m.Size() -} -func (m *KvPair) XXX_DiscardUnknown() { - xxx_messageInfo_KvPair.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } -var xxx_messageInfo_KvPair proto.InternalMessageInfo +func (m *KvPair) Reset() { *m = KvPair{} } +func (m *KvPair) String() string { return proto.CompactTextString(m) } +func (*KvPair) ProtoMessage() {} +func (*KvPair) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{27} } func (m *KvPair) GetKey() []byte { if m != nil { @@ -1936,8 +1305,8 @@ func (m *KvPair) GetCommitTs() uint64 { } type DuplicateDetectResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - KeyError *Error `protobuf:"bytes,2,opt,name=key_error,json=keyError,proto3" json:"key_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + KeyError *Error `protobuf:"bytes,2,opt,name=key_error,json=keyError" json:"key_error,omitempty"` // The these keys will be in asc order (but commit time is in desc order), // and the content is just like following: // [ @@ -1948,45 +1317,16 @@ type DuplicateDetectResponse struct { // {key: "key2", value: "value22", commit_ts: 1002}, // ... // ] - Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` } func (m *DuplicateDetectResponse) Reset() { *m = DuplicateDetectResponse{} } func (m *DuplicateDetectResponse) String() string { return proto.CompactTextString(m) } func (*DuplicateDetectResponse) ProtoMessage() {} func (*DuplicateDetectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{28} -} -func (m *DuplicateDetectResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DuplicateDetectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DuplicateDetectResponse.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 *DuplicateDetectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DuplicateDetectResponse.Merge(m, src) -} -func (m *DuplicateDetectResponse) XXX_Size() int { - return m.Size() -} -func (m *DuplicateDetectResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DuplicateDetectResponse.DiscardUnknown(m) + return fileDescriptorImportSstpb, []int{28} } -var xxx_messageInfo_DuplicateDetectResponse proto.InternalMessageInfo - func (m *DuplicateDetectResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -2034,44 +1374,13 @@ type KVMeta struct { // Deprecated: this field 'start_snapshot_ts' is replaced by the field 'start_ts'. StartSnapshotTs uint64 `protobuf:"varint,9,opt,name=start_snapshot_ts,json=startSnapshotTs,proto3" json:"start_snapshot_ts,omitempty"` // the compression type for the file. - CompressionType brpb.CompressionType `protobuf:"varint,13,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KVMeta) Reset() { *m = KVMeta{} } -func (m *KVMeta) String() string { return proto.CompactTextString(m) } -func (*KVMeta) ProtoMessage() {} -func (*KVMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{29} -} -func (m *KVMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KVMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KVMeta.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 *KVMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVMeta.Merge(m, src) -} -func (m *KVMeta) XXX_Size() int { - return m.Size() -} -func (m *KVMeta) XXX_DiscardUnknown() { - xxx_messageInfo_KVMeta.DiscardUnknown(m) + CompressionType backup.CompressionType `protobuf:"varint,13,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` } -var xxx_messageInfo_KVMeta proto.InternalMessageInfo +func (m *KVMeta) Reset() { *m = KVMeta{} } +func (m *KVMeta) String() string { return proto.CompactTextString(m) } +func (*KVMeta) ProtoMessage() {} +func (*KVMeta) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{29} } func (m *KVMeta) GetName() string { if m != nil { @@ -2157,17 +1466,17 @@ func (m *KVMeta) GetStartSnapshotTs() uint64 { return 0 } -func (m *KVMeta) GetCompressionType() brpb.CompressionType { +func (m *KVMeta) GetCompressionType() backup.CompressionType { if m != nil { return m.CompressionType } - return brpb.CompressionType_UNKNOWN + return backup.CompressionType_UNKNOWN } type ApplyRequest struct { // The meta of the KV file. - Meta *KVMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - Metas []*KVMeta `protobuf:"bytes,12,rep,name=metas,proto3" json:"metas,omitempty"` + Meta *KVMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Metas []*KVMeta `protobuf:"bytes,12,rep,name=metas" json:"metas,omitempty"` // Performs a key prefix rewrite after downloading the file. // All keys in the files will be rewritten as: // @@ -2179,54 +1488,23 @@ type ApplyRequest struct { // // You need to ensure that the keys before and after rewriting are in the // same order, otherwise the RPC request will fail. - RewriteRule RewriteRule `protobuf:"bytes,2,opt,name=rewrite_rule,json=rewriteRule,proto3" json:"rewrite_rule"` - RewriteRules []*RewriteRule `protobuf:"bytes,13,rep,name=rewrite_rules,json=rewriteRules,proto3" json:"rewrite_rules,omitempty"` + RewriteRule RewriteRule `protobuf:"bytes,2,opt,name=rewrite_rule,json=rewriteRule" json:"rewrite_rule"` + RewriteRules []*RewriteRule `protobuf:"bytes,13,rep,name=rewrite_rules,json=rewriteRules" json:"rewrite_rules,omitempty"` // The identity for the stroage backend. // When this field presents, the storage would be cached. // If there is a cached storage, TiKV would use it driectly. - StorageCacheId string `protobuf:"bytes,5,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` - StorageBackend *brpb.StorageBackend `protobuf:"bytes,3,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + StorageCacheId string `protobuf:"bytes,5,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` + StorageBackend *backup.StorageBackend `protobuf:"bytes,3,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` // context represents region info and it used to build raft commands. - Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` // cipher_info is used to decrypt kv file when download file. - CipherInfo *brpb.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplyRequest) Reset() { *m = ApplyRequest{} } -func (m *ApplyRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyRequest) ProtoMessage() {} -func (*ApplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{30} -} -func (m *ApplyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplyRequest.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 *ApplyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyRequest.Merge(m, src) -} -func (m *ApplyRequest) XXX_Size() int { - return m.Size() -} -func (m *ApplyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyRequest.DiscardUnknown(m) + CipherInfo *backup.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` } -var xxx_messageInfo_ApplyRequest proto.InternalMessageInfo +func (m *ApplyRequest) Reset() { *m = ApplyRequest{} } +func (m *ApplyRequest) String() string { return proto.CompactTextString(m) } +func (*ApplyRequest) ProtoMessage() {} +func (*ApplyRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{30} } func (m *ApplyRequest) GetMeta() *KVMeta { if m != nil { @@ -2263,7 +1541,7 @@ func (m *ApplyRequest) GetStorageCacheId() string { return "" } -func (m *ApplyRequest) GetStorageBackend() *brpb.StorageBackend { +func (m *ApplyRequest) GetStorageBackend() *backup.StorageBackend { if m != nil { return m.StorageBackend } @@ -2277,7 +1555,7 @@ func (m *ApplyRequest) GetContext() *kvrpcpb.Context { return nil } -func (m *ApplyRequest) GetCipherInfo() *brpb.CipherInfo { +func (m *ApplyRequest) GetCipherInfo() *backup.CipherInfo { if m != nil { return m.CipherInfo } @@ -2287,45 +1565,14 @@ func (m *ApplyRequest) GetCipherInfo() *brpb.CipherInfo { type ApplyResponse struct { // The actual key range (after rewrite) of the downloaded file. The range is // inclusive in both ends. - Range Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplyResponse) Reset() { *m = ApplyResponse{} } -func (m *ApplyResponse) String() string { return proto.CompactTextString(m) } -func (*ApplyResponse) ProtoMessage() {} -func (*ApplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{31} -} -func (m *ApplyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplyResponse.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 *ApplyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyResponse.Merge(m, src) -} -func (m *ApplyResponse) XXX_Size() int { - return m.Size() -} -func (m *ApplyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyResponse.DiscardUnknown(m) + Range Range `protobuf:"bytes,1,opt,name=range" json:"range"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ApplyResponse proto.InternalMessageInfo +func (m *ApplyResponse) Reset() { *m = ApplyResponse{} } +func (m *ApplyResponse) String() string { return proto.CompactTextString(m) } +func (*ApplyResponse) ProtoMessage() {} +func (*ApplyResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{31} } func (m *ApplyResponse) GetRange() Range { if m != nil { @@ -2343,44 +1590,13 @@ func (m *ApplyResponse) GetError() *Error { type ClearRequest struct { // clear files in import directory with given prefix. - Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearRequest) Reset() { *m = ClearRequest{} } -func (m *ClearRequest) String() string { return proto.CompactTextString(m) } -func (*ClearRequest) ProtoMessage() {} -func (*ClearRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{32} -} -func (m *ClearRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClearRequest.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 *ClearRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearRequest.Merge(m, src) -} -func (m *ClearRequest) XXX_Size() int { - return m.Size() -} -func (m *ClearRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearRequest.DiscardUnknown(m) + Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` } -var xxx_messageInfo_ClearRequest proto.InternalMessageInfo +func (m *ClearRequest) Reset() { *m = ClearRequest{} } +func (m *ClearRequest) String() string { return proto.CompactTextString(m) } +func (*ClearRequest) ProtoMessage() {} +func (*ClearRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{32} } func (m *ClearRequest) GetPrefix() string { if m != nil { @@ -2390,44 +1606,13 @@ func (m *ClearRequest) GetPrefix() string { } type ClearResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearResponse) Reset() { *m = ClearResponse{} } -func (m *ClearResponse) String() string { return proto.CompactTextString(m) } -func (*ClearResponse) ProtoMessage() {} -func (*ClearResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{33} -} -func (m *ClearResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClearResponse.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 *ClearResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearResponse.Merge(m, src) -} -func (m *ClearResponse) XXX_Size() int { - return m.Size() -} -func (m *ClearResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ClearResponse proto.InternalMessageInfo +func (m *ClearResponse) Reset() { *m = ClearResponse{} } +func (m *ClearResponse) String() string { return proto.CompactTextString(m) } +func (*ClearResponse) ProtoMessage() {} +func (*ClearResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{33} } func (m *ClearResponse) GetError() *Error { if m != nil { @@ -2437,9 +1622,6 @@ func (m *ClearResponse) GetError() *Error { } func init() { - proto.RegisterEnum("import_sstpb.SwitchMode", SwitchMode_name, SwitchMode_value) - proto.RegisterEnum("import_sstpb.DownloadRequestType", DownloadRequestType_name, DownloadRequestType_value) - proto.RegisterEnum("import_sstpb.Pair_OP", Pair_OP_name, Pair_OP_value) proto.RegisterType((*SwitchModeRequest)(nil), "import_sstpb.SwitchModeRequest") proto.RegisterType((*SwitchModeResponse)(nil), "import_sstpb.SwitchModeResponse") proto.RegisterType((*GetModeRequest)(nil), "import_sstpb.GetModeRequest") @@ -2474,139 +1656,9 @@ func init() { proto.RegisterType((*ApplyResponse)(nil), "import_sstpb.ApplyResponse") proto.RegisterType((*ClearRequest)(nil), "import_sstpb.ClearRequest") proto.RegisterType((*ClearResponse)(nil), "import_sstpb.ClearResponse") -} - -func init() { proto.RegisterFile("import_sstpb.proto", fileDescriptor_4d076b7935cfab6b) } - -var fileDescriptor_4d076b7935cfab6b = []byte{ - // 2020 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x72, 0x1b, 0x4b, - 0xf5, 0xf7, 0xe8, 0x5b, 0x47, 0x9f, 0xe9, 0xf8, 0x3a, 0x13, 0x25, 0xb1, 0x9d, 0xf9, 0xe7, 0xde, - 0xbf, 0xe2, 0x80, 0x1d, 0x1c, 0xc8, 0x82, 0x05, 0xa9, 0xeb, 0x0f, 0x6e, 0x8c, 0xe3, 0x6b, 0x33, - 0x32, 0x61, 0xc1, 0x62, 0x6a, 0x3c, 0x6a, 0xdb, 0x83, 0x46, 0x33, 0xc3, 0x74, 0x4b, 0x8e, 0x36, - 0x3c, 0x00, 0x4f, 0x40, 0xb1, 0xa1, 0x60, 0x75, 0x8b, 0x35, 0x55, 0x14, 0x6f, 0x70, 0x97, 0xb0, - 0x63, 0x45, 0x51, 0xe1, 0x45, 0xa8, 0x3e, 0xdd, 0x23, 0xcd, 0x4c, 0xe4, 0x28, 0x76, 0xc1, 0x4a, - 0xdd, 0xa7, 0xcf, 0x9c, 0x3e, 0x7d, 0x3e, 0x7e, 0xfd, 0x6b, 0x01, 0x71, 0x87, 0x61, 0x10, 0x71, - 0x8b, 0x31, 0x1e, 0x9e, 0x6d, 0x86, 0x51, 0xc0, 0x03, 0x52, 0x4f, 0xca, 0x3a, 0xf5, 0x21, 0xe5, - 0x76, 0xbc, 0xd6, 0x69, 0xd0, 0x28, 0x0a, 0xa2, 0xd9, 0x74, 0x30, 0x8e, 0x42, 0x67, 0x3a, 0x5d, - 0xbe, 0x08, 0x2e, 0x02, 0x1c, 0x6e, 0x89, 0x91, 0x92, 0xb6, 0xa2, 0x11, 0xe3, 0x38, 0x54, 0x02, - 0x38, 0x9b, 0x5a, 0x30, 0x7c, 0xb8, 0xd3, 0xbb, 0x72, 0xb9, 0x73, 0x79, 0x14, 0xf4, 0xa9, 0x49, - 0x7f, 0x35, 0xa2, 0x8c, 0x93, 0xef, 0x40, 0x61, 0x18, 0xf4, 0xa9, 0xae, 0xad, 0x6b, 0xdd, 0xe6, - 0xb6, 0xbe, 0x99, 0x72, 0x32, 0xa1, 0x8e, 0x5a, 0xe4, 0x19, 0x94, 0x22, 0xdb, 0xbf, 0xa0, 0x4c, - 0xcf, 0xad, 0xe7, 0xbb, 0xb5, 0xed, 0xbb, 0x69, 0x7d, 0x53, 0xac, 0x99, 0x4a, 0xc5, 0x58, 0x06, - 0x92, 0xdc, 0x8f, 0x85, 0x81, 0xcf, 0xa8, 0xd1, 0x86, 0xe6, 0x57, 0x94, 0x27, 0x5c, 0x30, 0x5e, - 0x41, 0x6b, 0x2a, 0x91, 0x4a, 0x37, 0xf3, 0xca, 0xd8, 0x82, 0x22, 0xee, 0x4c, 0x96, 0xa1, 0xc8, - 0xb8, 0x1d, 0x71, 0xfc, 0xae, 0x6e, 0xca, 0x09, 0x69, 0x43, 0x9e, 0xfa, 0x7d, 0x3d, 0x87, 0x32, - 0x31, 0x34, 0xfe, 0x90, 0x87, 0x72, 0xaf, 0x77, 0x7a, 0x44, 0xb9, 0x4d, 0x08, 0x14, 0x46, 0x23, - 0xb7, 0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 0x2e, 0xb4, 0x63, 0x03, 0x8e, 0xed, 0x5c, 0x52, 0x01, 0x47, 0x77, - 0xd0, 0xc9, 0x58, 0x73, 0x57, 0x88, 0x0f, 0xfa, 0xa4, 0x03, 0x55, 0x97, 0x59, 0x91, 0x7d, 0x65, - 0x0d, 0xc6, 0x7a, 0x0b, 0x41, 0xa5, 0xec, 0x32, 0xd3, 0xbe, 0x3a, 0x1c, 0x93, 0x17, 0x50, 0x8b, - 0x1b, 0xdb, 0x3f, 0x0f, 0xf4, 0x36, 0xba, 0x40, 0x62, 0x17, 0x76, 0x65, 0x8b, 0xfb, 0xe7, 0x81, - 0x09, 0xce, 0x74, 0x4c, 0xf6, 0xc4, 0xf9, 0x31, 0x9a, 0x16, 0x9f, 0x84, 0x54, 0x27, 0x08, 0x22, - 0x8f, 0xd3, 0xe7, 0xcf, 0xc4, 0xfd, 0x74, 0x12, 0x52, 0x11, 0x81, 0xe9, 0x24, 0x99, 0xdb, 0xbb, - 0x0b, 0x72, 0xfb, 0x93, 0x42, 0xa5, 0xd2, 0xae, 0x9a, 0xf9, 0x51, 0xe4, 0x19, 0x26, 0x14, 0xb1, - 0x06, 0x89, 0x0e, 0xe5, 0x21, 0x65, 0xcc, 0x56, 0xb5, 0x56, 0x35, 0xe3, 0x29, 0xd9, 0x82, 0x9a, - 0x08, 0x01, 0xb5, 0x64, 0x09, 0xe7, 0xe6, 0x96, 0x30, 0xa0, 0x0a, 0x8e, 0x8d, 0xbf, 0x68, 0xd0, - 0x9e, 0xf9, 0xab, 0x5a, 0x60, 0x6b, 0x71, 0x25, 0xab, 0xc4, 0xaa, 0x7a, 0xbe, 0x0f, 0x15, 0x97, - 0x59, 0x74, 0x18, 0xf2, 0x09, 0xee, 0x89, 0x61, 0xde, 0x17, 0x53, 0xd1, 0x15, 0xd2, 0x97, 0xfc, - 0x3c, 0x5b, 0xc9, 0x9e, 0x9a, 0x5d, 0x53, 0x85, 0xf9, 0xd7, 0x54, 0x31, 0x79, 0x4d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xba, 0x79, 0x06, 0x45, 0xe1, 0xea, 0x02, 0xbc, 0x97, 0x3a, 0xe2, 0xca, 0x34, - 0xed, 0xab, 0x44, 0x94, 0xdb, 0x90, 0xe7, 0xdc, 0x53, 0xf1, 0x15, 0xc3, 0x4f, 0x0f, 0x2d, 0x69, - 0x42, 0x8e, 0x33, 0x75, 0x33, 0xe7, 0x38, 0x33, 0xbe, 0xd1, 0xa0, 0x15, 0x5b, 0xbf, 0x55, 0xb4, - 0x5f, 0xa4, 0xa3, 0xfd, 0x20, 0xdb, 0x79, 0x57, 0xff, 0xb5, 0x80, 0xff, 0x12, 0xda, 0x33, 0x4f, - 0xff, 0xc7, 0x31, 0xff, 0xab, 0x06, 0x2b, 0x7b, 0xa3, 0xd0, 0x73, 0x1d, 0x9b, 0xd3, 0x3d, 0xca, - 0xa9, 0x73, 0xab, 0x6b, 0xfd, 0x01, 0x54, 0x91, 0x2c, 0x0b, 0xea, 0xa4, 0x3a, 0xaf, 0x82, 0x82, - 0x43, 0x3a, 0x11, 0xac, 0x55, 0xf1, 0x48, 0x0c, 0x42, 0xdd, 0x2c, 0x49, 0xf6, 0x28, 0xb0, 0x49, - 0x50, 0xad, 0xc0, 0xf7, 0x26, 0x08, 0x2c, 0x15, 0xb3, 0x3c, 0xa0, 0x93, 0x63, 0xdf, 0x9b, 0x10, - 0x03, 0x1a, 0x43, 0xd7, 0xb7, 0x66, 0x4d, 0x26, 0x11, 0xa6, 0x36, 0x74, 0xfd, 0x5d, 0xd5, 0x67, - 0xc6, 0x11, 0x94, 0x0e, 0xc7, 0x37, 0x82, 0x81, 0x54, 0xdb, 0xe6, 0xd3, 0x6d, 0x6b, 0xfc, 0x49, - 0x83, 0x7b, 0x1f, 0x84, 0x42, 0x85, 0xff, 0x7b, 0x33, 0x0a, 0xfd, 0x11, 0x02, 0x12, 0xb3, 0x67, - 0x4c, 0xc3, 0x73, 0xa8, 0x22, 0x73, 0x4e, 0xa0, 0xfd, 0xdc, 0xac, 0x89, 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0x3b, 0xeb, 0xd7, 0x2b, 0x28, 0x82, - 0xb7, 0x44, 0x5e, 0x43, 0x59, 0xfd, 0xad, 0x43, 0x1e, 0xa6, 0xd5, 0xd3, 0xff, 0xff, 0x74, 0x1e, - 0x5d, 0xb3, 0x3a, 0xb5, 0xf4, 0x15, 0x94, 0xe4, 0x6b, 0x99, 0x64, 0x2e, 0xed, 0xd4, 0x03, 0xbd, - 0xf3, 0x70, 0xfe, 0x62, 0x6c, 0xa6, 0xab, 0x91, 0x7d, 0x28, 0xc9, 0x17, 0x69, 0xd6, 0x50, 0xea, - 0x3d, 0x9c, 0x35, 0x94, 0x7e, 0xc4, 0xca, 0x93, 0xa9, 0x37, 0x61, 0xf6, 0x64, 0xe9, 0x67, 0x6b, - 0xf6, 0x64, 0xd9, 0x87, 0xe4, 0x12, 0x89, 0xe0, 0xb3, 0xb9, 0x3c, 0x99, 0x6c, 0x64, 0x02, 0xfc, - 0x11, 0x36, 0xde, 0x79, 0xf6, 0x49, 0xba, 0xd3, 0x3d, 0x0f, 0xa1, 0x12, 0xaf, 0x93, 0x47, 0x1f, - 0x7d, 0x5d, 0x75, 0x56, 0xaf, 0x5b, 0x9e, 0x1a, 0xdb, 0x83, 0x22, 0xf2, 0x1c, 0xd2, 0x99, 0x43, - 0x5e, 0x63, 0x33, 0x0f, 0xe6, 0xae, 0x25, 0xf2, 0x72, 0x04, 0x95, 0x98, 0x30, 0x65, 0x5d, 0xca, - 0x50, 0xbe, 0xac, 0x4b, 0x59, 0x9e, 0x85, 0xe6, 0x8e, 0xa1, 0x96, 0xf8, 0x97, 0x83, 0x64, 0x8a, - 0xf5, 0xc3, 0x3f, 0x40, 0x16, 0x26, 0xfc, 0x0c, 0x5a, 0x19, 0x62, 0x41, 0x9e, 0x64, 0x42, 0x33, - 0x97, 0x82, 0x75, 0x3e, 0x5f, 0xa0, 0x15, 0xef, 0xf0, 0x5c, 0x23, 0x3b, 0x50, 0x44, 0xdc, 0xca, - 0x46, 0x32, 0x79, 0x05, 0x65, 0x23, 0x99, 0x02, 0x3a, 0x6c, 0x14, 0x40, 0x98, 0xf9, 0xb1, 0x2b, - 0x50, 0x3d, 0x63, 0x28, 0x09, 0x54, 0x59, 0x43, 0x29, 0x70, 0x32, 0x96, 0x76, 0xbe, 0xf8, 0xc7, - 0x37, 0x15, 0xed, 0xdb, 0xf7, 0xab, 0xda, 0xdf, 0xde, 0xaf, 0x6a, 0xff, 0x7a, 0xbf, 0xaa, 0xfd, - 0xf6, 0xdf, 0xab, 0x4b, 0xd0, 0x0e, 0xa2, 0x8b, 0x4d, 0xee, 0x0e, 0xc6, 0x9b, 0x83, 0x31, 0xfe, - 0xa5, 0x7c, 0x56, 0xc2, 0x9f, 0x17, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x67, 0x0e, 0xc7, - 0xdc, 0x16, 0x00, 0x00, + proto.RegisterEnum("import_sstpb.SwitchMode", SwitchMode_name, SwitchMode_value) + proto.RegisterEnum("import_sstpb.DownloadRequestType", DownloadRequestType_name, DownloadRequestType_value) + proto.RegisterEnum("import_sstpb.Pair_OP", Pair_OP_name, Pair_OP_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -2617,9 +1669,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ImportSSTClient is the client API for ImportSST service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ImportSST service + type ImportSSTClient interface { // Switch to normal/import mode. SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) @@ -2658,7 +1709,7 @@ func NewImportSSTClient(cc *grpc.ClientConn) ImportSSTClient { func (c *importSSTClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) { out := new(SwitchModeResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SwitchMode", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SwitchMode", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2667,7 +1718,7 @@ func (c *importSSTClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, func (c *importSSTClient) GetMode(ctx context.Context, in *GetModeRequest, opts ...grpc.CallOption) (*GetModeResponse, error) { out := new(GetModeResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/GetMode", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/GetMode", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2675,7 +1726,7 @@ func (c *importSSTClient) GetMode(ctx context.Context, in *GetModeRequest, opts } func (c *importSSTClient) Upload(ctx context.Context, opts ...grpc.CallOption) (ImportSST_UploadClient, error) { - stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[0], "/import_sstpb.ImportSST/Upload", opts...) + stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[0], c.cc, "/import_sstpb.ImportSST/Upload", opts...) if err != nil { return nil, err } @@ -2710,7 +1761,7 @@ func (x *importSSTUploadClient) CloseAndRecv() (*UploadResponse, error) { func (c *importSSTClient) Ingest(ctx context.Context, in *IngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) { out := new(IngestResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Ingest", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Ingest", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2719,7 +1770,7 @@ func (c *importSSTClient) Ingest(ctx context.Context, in *IngestRequest, opts .. func (c *importSSTClient) Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error) { out := new(CompactResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Compact", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Compact", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2728,7 +1779,7 @@ func (c *importSSTClient) Compact(ctx context.Context, in *CompactRequest, opts func (c *importSSTClient) SetDownloadSpeedLimit(ctx context.Context, in *SetDownloadSpeedLimitRequest, opts ...grpc.CallOption) (*SetDownloadSpeedLimitResponse, error) { out := new(SetDownloadSpeedLimitResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SetDownloadSpeedLimit", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SetDownloadSpeedLimit", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2737,7 +1788,7 @@ func (c *importSSTClient) SetDownloadSpeedLimit(ctx context.Context, in *SetDown func (c *importSSTClient) Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (*DownloadResponse, error) { out := new(DownloadResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Download", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Download", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2745,7 +1796,7 @@ func (c *importSSTClient) Download(ctx context.Context, in *DownloadRequest, opt } func (c *importSSTClient) Write(ctx context.Context, opts ...grpc.CallOption) (ImportSST_WriteClient, error) { - stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[1], "/import_sstpb.ImportSST/Write", opts...) + stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[1], c.cc, "/import_sstpb.ImportSST/Write", opts...) if err != nil { return nil, err } @@ -2779,7 +1830,7 @@ func (x *importSSTWriteClient) CloseAndRecv() (*WriteResponse, error) { } func (c *importSSTClient) RawWrite(ctx context.Context, opts ...grpc.CallOption) (ImportSST_RawWriteClient, error) { - stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[2], "/import_sstpb.ImportSST/RawWrite", opts...) + stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[2], c.cc, "/import_sstpb.ImportSST/RawWrite", opts...) if err != nil { return nil, err } @@ -2814,7 +1865,7 @@ func (x *importSSTRawWriteClient) CloseAndRecv() (*RawWriteResponse, error) { func (c *importSSTClient) MultiIngest(ctx context.Context, in *MultiIngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) { out := new(IngestResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/MultiIngest", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/MultiIngest", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2822,7 +1873,7 @@ func (c *importSSTClient) MultiIngest(ctx context.Context, in *MultiIngestReques } func (c *importSSTClient) DuplicateDetect(ctx context.Context, in *DuplicateDetectRequest, opts ...grpc.CallOption) (ImportSST_DuplicateDetectClient, error) { - stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[3], "/import_sstpb.ImportSST/DuplicateDetect", opts...) + stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[3], c.cc, "/import_sstpb.ImportSST/DuplicateDetect", opts...) if err != nil { return nil, err } @@ -2855,7 +1906,7 @@ func (x *importSSTDuplicateDetectClient) Recv() (*DuplicateDetectResponse, error func (c *importSSTClient) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) { out := new(ApplyResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Apply", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Apply", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2864,14 +1915,15 @@ func (c *importSSTClient) Apply(ctx context.Context, in *ApplyRequest, opts ...g func (c *importSSTClient) ClearFiles(ctx context.Context, in *ClearRequest, opts ...grpc.CallOption) (*ClearResponse, error) { out := new(ClearResponse) - err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/ClearFiles", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/ClearFiles", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// ImportSSTServer is the server API for ImportSST service. +// Server API for ImportSST service + type ImportSSTServer interface { // Switch to normal/import mode. SwitchMode(context.Context, *SwitchModeRequest) (*SwitchModeResponse, error) @@ -2900,50 +1952,6 @@ type ImportSSTServer interface { ClearFiles(context.Context, *ClearRequest) (*ClearResponse, error) } -// UnimplementedImportSSTServer can be embedded to have forward compatible implementations. -type UnimplementedImportSSTServer struct { -} - -func (*UnimplementedImportSSTServer) SwitchMode(ctx context.Context, req *SwitchModeRequest) (*SwitchModeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SwitchMode not implemented") -} -func (*UnimplementedImportSSTServer) GetMode(ctx context.Context, req *GetModeRequest) (*GetModeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMode not implemented") -} -func (*UnimplementedImportSSTServer) Upload(srv ImportSST_UploadServer) error { - return status.Errorf(codes.Unimplemented, "method Upload not implemented") -} -func (*UnimplementedImportSSTServer) Ingest(ctx context.Context, req *IngestRequest) (*IngestResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ingest not implemented") -} -func (*UnimplementedImportSSTServer) Compact(ctx context.Context, req *CompactRequest) (*CompactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") -} -func (*UnimplementedImportSSTServer) SetDownloadSpeedLimit(ctx context.Context, req *SetDownloadSpeedLimitRequest) (*SetDownloadSpeedLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetDownloadSpeedLimit not implemented") -} -func (*UnimplementedImportSSTServer) Download(ctx context.Context, req *DownloadRequest) (*DownloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Download not implemented") -} -func (*UnimplementedImportSSTServer) Write(srv ImportSST_WriteServer) error { - return status.Errorf(codes.Unimplemented, "method Write not implemented") -} -func (*UnimplementedImportSSTServer) RawWrite(srv ImportSST_RawWriteServer) error { - return status.Errorf(codes.Unimplemented, "method RawWrite not implemented") -} -func (*UnimplementedImportSSTServer) MultiIngest(ctx context.Context, req *MultiIngestRequest) (*IngestResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MultiIngest not implemented") -} -func (*UnimplementedImportSSTServer) DuplicateDetect(req *DuplicateDetectRequest, srv ImportSST_DuplicateDetectServer) error { - return status.Errorf(codes.Unimplemented, "method DuplicateDetect not implemented") -} -func (*UnimplementedImportSSTServer) Apply(ctx context.Context, req *ApplyRequest) (*ApplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Apply not implemented") -} -func (*UnimplementedImportSSTServer) ClearFiles(ctx context.Context, req *ClearRequest) (*ClearResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearFiles not implemented") -} - func RegisterImportSSTServer(s *grpc.Server, srv ImportSSTServer) { s.RegisterService(&_ImportSST_serviceDesc, srv) } @@ -3278,7 +2286,7 @@ var _ImportSST_serviceDesc = grpc.ServiceDesc{ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3286,45 +2294,34 @@ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Mode != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) } 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 = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Ranges { dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.Mode != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3332,26 +2329,17 @@ func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3359,26 +2347,17 @@ func (m *GetModeRequest) Marshal() (dAtA []byte, err error) { } func (m *GetModeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *GetModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3386,31 +2365,22 @@ func (m *GetModeResponse) Marshal() (dAtA []byte, err error) { } func (m *GetModeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Mode != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) } - return len(dAtA) - i, nil + return i, nil } func (m *Range) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3418,40 +2388,29 @@ func (m *Range) Marshal() (dAtA []byte, err error) { } func (m *Range) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Start) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Start))) + i += copy(dAtA[i:], m.Start) } if len(m.End) > 0 { - i -= len(m.End) - copy(dAtA[i:], m.End) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.End))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.End))) + i += copy(dAtA[i:], m.End) } - if len(m.Start) > 0 { - i -= len(m.Start) - copy(dAtA[i:], m.Start) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Start))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *SSTMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3459,111 +2418,95 @@ func (m *SSTMeta) Marshal() (dAtA []byte, err error) { } func (m *SSTMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SSTMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Uuid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - if len(m.CipherIv) > 0 { - i -= len(m.CipherIv) - copy(dAtA[i:], m.CipherIv) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CipherIv))) - i-- - dAtA[i] = 0x62 + if m.Range != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) + n1, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.ApiVersion != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x58 + if m.Crc32 != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) } - if m.TotalBytes != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalBytes)) - i-- - dAtA[i] = 0x50 + if m.Length != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) } - if m.TotalKvs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalKvs)) - i-- - dAtA[i] = 0x48 + if len(m.CfName) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CfName))) + i += copy(dAtA[i:], m.CfName) + } + if m.RegionId != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionId)) + } + if m.RegionEpoch != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n2, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.EndKeyExclusive { - i-- + dAtA[i] = 0x40 + i++ if m.EndKeyExclusive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 - } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.RegionId != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x30 - } - if len(m.CfName) > 0 { - i -= len(m.CfName) - copy(dAtA[i:], m.CfName) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CfName))) - i-- - dAtA[i] = 0x2a + i++ } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x20 + if m.TotalKvs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalKvs)) } - if m.Crc32 != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) - i-- - dAtA[i] = 0x18 + if m.TotalBytes != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalBytes)) } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.ApiVersion != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.ApiVersion)) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa + if len(m.CipherIv) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CipherIv))) + i += copy(dAtA[i:], m.CipherIv) } - return len(dAtA) - i, nil + return i, nil } func (m *RewriteRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3571,45 +2514,34 @@ func (m *RewriteRule) Marshal() (dAtA []byte, err error) { } func (m *RewriteRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RewriteRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.NewTimestamp != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) - i-- - dAtA[i] = 0x18 + if len(m.OldKeyPrefix) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.OldKeyPrefix))) + i += copy(dAtA[i:], m.OldKeyPrefix) } if len(m.NewKeyPrefix) > 0 { - i -= len(m.NewKeyPrefix) - copy(dAtA[i:], m.NewKeyPrefix) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.NewKeyPrefix))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.NewKeyPrefix))) + i += copy(dAtA[i:], m.NewKeyPrefix) } - if len(m.OldKeyPrefix) > 0 { - i -= len(m.OldKeyPrefix) - copy(dAtA[i:], m.OldKeyPrefix) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.OldKeyPrefix))) - i-- - dAtA[i] = 0xa + if m.NewTimestamp != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) } - return len(dAtA) - i, nil + return i, nil } func (m *UploadRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3617,72 +2549,48 @@ func (m *UploadRequest) Marshal() (dAtA []byte, err error) { } func (m *UploadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Chunk != nil { - { - size := m.Chunk.Size() - i -= size - if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn3, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn3 } - return len(dAtA) - i, nil + return i, nil } func (m *UploadRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UploadRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n4, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *UploadRequest_Data) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UploadRequest_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Data != nil { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Data))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - return len(dAtA) - i, nil + return i, nil } func (m *UploadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3690,26 +2598,17 @@ func (m *UploadResponse) Marshal() (dAtA []byte, err error) { } func (m *UploadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *IngestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3717,50 +2616,37 @@ func (m *IngestRequest) Marshal() (dAtA []byte, err error) { } func (m *IngestRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n5, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } if m.Sst != nil { - { - size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Sst.Size())) + n6, err := m.Sst.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *MultiIngestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3768,52 +2654,39 @@ func (m *MultiIngestRequest) Marshal() (dAtA []byte, err error) { } func (m *MultiIngestRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiIngestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n7, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if len(m.Ssts) > 0 { - for iNdEx := len(m.Ssts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ssts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Ssts { dAtA[i] = 0x12 - } - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *IngestResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3821,38 +2694,27 @@ func (m *IngestResponse) Marshal() (dAtA []byte, err error) { } func (m *IngestResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n8, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3860,55 +2722,42 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Range != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) + n9, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + } + if m.OutputLevel != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.OutputLevel)) } if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if m.OutputLevel != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.OutputLevel)) - i-- - dAtA[i] = 0x10 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n10, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3916,26 +2765,17 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *DownloadRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3943,119 +2783,98 @@ func (m *DownloadRequest) Marshal() (dAtA []byte, err error) { } func (m *DownloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DownloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Sst.Size())) + n11, err := m.Sst.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if m.RequestType != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + i += n11 + if len(m.Name) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.StorageCacheId) > 0 { - i -= len(m.StorageCacheId) - copy(dAtA[i:], m.StorageCacheId) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA[i] = 0x6a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) + n12, err := m.RewriteRule.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if m.CipherInfo != nil { - { - size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n12 + if m.StorageBackend != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) + n13, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n13 } if m.IsRawKv { - i-- + dAtA[i] = 0x78 + i++ if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x78 - } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 + i++ } - { - size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) + if m.CipherInfo != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) + n14, err := m.CipherInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n14 } - i-- - dAtA[i] = 0x6a - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x4a + if len(m.StorageCacheId) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) + i += copy(dAtA[i:], m.StorageCacheId) } - { - size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) + if m.RequestType != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) + } + if m.Context != nil { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n15, err := m.Context.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n15 } - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4063,45 +2882,33 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Message) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } if m.StoreError != nil { - { - size, err := m.StoreError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StoreError.Size())) + n16, err := m.StoreError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *DownloadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4109,68 +2916,55 @@ func (m *DownloadResponse) Marshal() (dAtA []byte, err error) { } func (m *DownloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DownloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x28 - } - if m.Crc32 != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) - i-- - dAtA[i] = 0x20 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) + n17, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n17 if m.IsEmpty { - i-- + dAtA[i] = 0x10 + i++ if m.IsEmpty { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if m.Error != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n18, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n18 } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + if m.Crc32 != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) + } + if m.Length != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + } + return i, nil } func (m *SetDownloadSpeedLimitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4178,31 +2972,22 @@ func (m *SetDownloadSpeedLimitRequest) Marshal() (dAtA []byte, err error) { } func (m *SetDownloadSpeedLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetDownloadSpeedLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.SpeedLimit != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.SpeedLimit)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.SpeedLimit)) } - return len(dAtA) - i, nil + return i, nil } func (m *SetDownloadSpeedLimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4210,26 +2995,17 @@ func (m *SetDownloadSpeedLimitResponse) Marshal() (dAtA []byte, err error) { } func (m *SetDownloadSpeedLimitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetDownloadSpeedLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *Pair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4237,45 +3013,34 @@ func (m *Pair) Marshal() (dAtA []byte, err error) { } func (m *Pair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Op != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x18 + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if m.Op != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Op)) } - return len(dAtA) - i, nil + return i, nil } func (m *WriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4283,45 +3048,34 @@ func (m *WriteBatch) Marshal() (dAtA []byte, err error) { } func (m *WriteBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CommitTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) } if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Pairs { dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.CommitTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *WriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4329,89 +3083,62 @@ func (m *WriteRequest) Marshal() (dAtA []byte, err error) { } func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Chunk != nil { + nn19, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn19 } if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if m.Chunk != nil { - { - size := m.Chunk.Size() - i -= size - if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n20, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n20 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n21, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Batch != nil { - { - size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Batch.Size())) + n22, err := m.Batch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4419,52 +3146,39 @@ func (m *WriteResponse) Marshal() (dAtA []byte, err error) { } func (m *WriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n23, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Metas { dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawWriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4472,50 +3186,39 @@ func (m *RawWriteBatch) Marshal() (dAtA []byte, err error) { } func (m *RawWriteBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawWriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ts != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ts)) - i-- - dAtA[i] = 0x18 + if m.Ttl != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ttl)) } if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Pairs { dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.Ttl != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x8 + if m.Ts != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ts)) } - return len(dAtA) - i, nil + return i, nil } func (m *RawWriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4523,89 +3226,62 @@ func (m *RawWriteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawWriteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawWriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Chunk != nil { + nn24, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn24 } if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if m.Chunk != nil { - { - size := m.Chunk.Size() - i -= size - if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n25, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n25 } - return len(dAtA) - i, nil + return i, nil } func (m *RawWriteRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawWriteRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n26, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *RawWriteRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawWriteRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Batch != nil { - { - size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Batch.Size())) + n27, err := m.Batch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } - return len(dAtA) - i, nil + return i, nil } func (m *RawWriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4613,52 +3289,39 @@ func (m *RawWriteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawWriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawWriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n28, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Metas { dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *DuplicateDetectRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4666,67 +3329,54 @@ func (m *DuplicateDetectRequest) Marshal() (dAtA []byte, err error) { } func (m *DuplicateDetectRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DuplicateDetectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MinCommitTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x28 - } - if m.KeyOnly { - i-- - if m.KeyOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n29, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + i += n29 } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + if m.KeyOnly { + dAtA[i] = 0x20 + i++ + if m.KeyOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ + } + if m.MinCommitTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.MinCommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *KvPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4734,45 +3384,34 @@ func (m *KvPair) Marshal() (dAtA []byte, err error) { } func (m *KvPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KvPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if m.CommitTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *DuplicateDetectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4780,64 +3419,49 @@ func (m *DuplicateDetectResponse) Marshal() (dAtA []byte, err error) { } func (m *DuplicateDetectResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DuplicateDetectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionError.Size())) + n30, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n30 } if m.KeyError != nil { - { - size, err := m.KeyError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.KeyError.Size())) + n31, err := m.KeyError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Pairs) > 0 { + for _, msg := range m.Pairs { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *KVMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4845,106 +3469,92 @@ func (m *KVMeta) Marshal() (dAtA []byte, err error) { } func (m *KVMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KVMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CompressionType != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x68 + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.RangeLength != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) - i-- - dAtA[i] = 0x60 + if m.Length != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) } - if m.RangeOffset != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) - i-- - dAtA[i] = 0x58 + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.StartTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x50 + if m.IsDelete { + dAtA[i] = 0x20 + i++ + if m.IsDelete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.StartSnapshotTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) - i-- - dAtA[i] = 0x48 + if m.RestoreTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) } - if len(m.Sha256) > 0 { - i -= len(m.Sha256) - copy(dAtA[i:], m.Sha256) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) - i-- - dAtA[i] = 0x42 + if len(m.StartKey) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x32 + if len(m.Sha256) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - if m.RestoreTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) - i-- - dAtA[i] = 0x28 + if m.StartSnapshotTs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) } - if m.IsDelete { - i-- - if m.IsDelete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 + if m.StartTs != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if m.RangeOffset != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x10 + if m.RangeLength != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.CompressionType != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) } - return len(dAtA) - i, nil + return i, nil } func (m *ApplyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4952,119 +3562,95 @@ func (m *ApplyRequest) Marshal() (dAtA []byte, err error) { } func (m *ApplyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.RewriteRules) > 0 { - for iNdEx := len(m.RewriteRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewriteRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n32, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n32 } - if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) + n33, err := m.RewriteRule.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 + if m.StorageBackend != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) + n34, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n34 } - if m.CipherInfo != nil { - { - size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + if m.Context != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) + n35, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n35 } if len(m.StorageCacheId) > 0 { - i -= len(m.StorageCacheId) - copy(dAtA[i:], m.StorageCacheId) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) + i += copy(dAtA[i:], m.StorageCacheId) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + if m.CipherInfo != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) + n36, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n36 } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Metas) > 0 { + for _, msg := range m.Metas { + dAtA[i] = 0x62 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + i += n } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x12 - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if len(m.RewriteRules) > 0 { + for _, msg := range m.RewriteRules { + dAtA[i] = 0x6a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ApplyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5072,48 +3658,35 @@ func (m *ApplyResponse) Marshal() (dAtA []byte, err error) { } func (m *ApplyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) + n37, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n37 if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n38, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n38 } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + return i, nil } func (m *ClearRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5121,33 +3694,23 @@ func (m *ClearRequest) Marshal() (dAtA []byte, err error) { } func (m *ClearRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClearRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Prefix))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } - return len(dAtA) - i, nil + return i, nil } func (m *ClearResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5155,49 +3718,33 @@ func (m *ClearResponse) Marshal() (dAtA []byte, err error) { } func (m *ClearResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClearResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n39, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintImportSstpb(dAtA []byte, offset int, v uint64) int { - offset -= sovImportSstpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *SwitchModeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != 0 { @@ -5209,55 +3756,31 @@ func (m *SwitchModeRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SwitchModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetModeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != 0 { n += 1 + sovImportSstpb(uint64(m.Mode)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Range) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Start) @@ -5268,16 +3791,10 @@ func (m *Range) Size() (n int) { if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SSTMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -5321,16 +3838,10 @@ func (m *SSTMeta) Size() (n int) { if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RewriteRule) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.OldKeyPrefix) @@ -5344,31 +3855,19 @@ func (m *RewriteRule) Size() (n int) { if m.NewTimestamp != 0 { n += 1 + sovImportSstpb(uint64(m.NewTimestamp)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UploadRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UploadRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -5378,9 +3877,6 @@ func (m *UploadRequest_Meta) Size() (n int) { return n } func (m *UploadRequest_Data) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Data != nil { @@ -5390,21 +3886,12 @@ func (m *UploadRequest_Data) Size() (n int) { return n } func (m *UploadResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IngestRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -5415,16 +3902,10 @@ func (m *IngestRequest) Size() (n int) { l = m.Sst.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MultiIngestRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -5437,32 +3918,20 @@ func (m *MultiIngestRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IngestResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Range != nil { @@ -5476,28 +3945,16 @@ func (m *CompactRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DownloadRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Sst.Size() @@ -5530,16 +3987,10 @@ func (m *DownloadRequest) Size() (n int) { l = m.Context.Size() n += 2 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) @@ -5550,16 +4001,10 @@ func (m *Error) Size() (n int) { l = m.StoreError.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DownloadResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Range.Size() @@ -5577,43 +4022,25 @@ func (m *DownloadResponse) Size() (n int) { if m.Length != 0 { n += 1 + sovImportSstpb(uint64(m.Length)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SetDownloadSpeedLimitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SpeedLimit != 0 { n += 1 + sovImportSstpb(uint64(m.SpeedLimit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SetDownloadSpeedLimitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Pair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -5627,16 +4054,10 @@ func (m *Pair) Size() (n int) { if m.Op != 0 { n += 1 + sovImportSstpb(uint64(m.Op)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { @@ -5648,16 +4069,10 @@ func (m *WriteBatch) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -5667,16 +4082,10 @@ func (m *WriteRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -5686,9 +4095,6 @@ func (m *WriteRequest_Meta) Size() (n int) { return n } func (m *WriteRequest_Batch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Batch != nil { @@ -5698,9 +4104,6 @@ func (m *WriteRequest_Batch) Size() (n int) { return n } func (m *WriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -5713,16 +4116,10 @@ func (m *WriteResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawWriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ttl != 0 { @@ -5737,16 +4134,10 @@ func (m *RawWriteBatch) Size() (n int) { if m.Ts != 0 { n += 1 + sovImportSstpb(uint64(m.Ts)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawWriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -5756,16 +4147,10 @@ func (m *RawWriteRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawWriteRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -5775,9 +4160,6 @@ func (m *RawWriteRequest_Meta) Size() (n int) { return n } func (m *RawWriteRequest_Batch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Batch != nil { @@ -5787,9 +4169,6 @@ func (m *RawWriteRequest_Batch) Size() (n int) { return n } func (m *RawWriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -5802,16 +4181,10 @@ func (m *RawWriteResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DuplicateDetectRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -5832,16 +4205,10 @@ func (m *DuplicateDetectRequest) Size() (n int) { if m.MinCommitTs != 0 { n += 1 + sovImportSstpb(uint64(m.MinCommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KvPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -5855,16 +4222,10 @@ func (m *KvPair) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovImportSstpb(uint64(m.CommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DuplicateDetectResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -5881,16 +4242,10 @@ func (m *DuplicateDetectResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KVMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5937,16 +4292,10 @@ func (m *KVMeta) Size() (n int) { if m.CompressionType != 0 { n += 1 + sovImportSstpb(uint64(m.CompressionType)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ApplyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -5983,16 +4332,10 @@ func (m *ApplyRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ApplyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Range.Size() @@ -6001,46 +4344,38 @@ func (m *ApplyResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ClearRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prefix) if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ClearResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovImportSstpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozImportSstpb(x uint64) (n int) { return sovImportSstpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -6060,7 +4395,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6088,7 +4423,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= SwitchMode(b&0x7F) << shift + m.Mode |= (SwitchMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -6107,7 +4442,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6116,9 +4451,6 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6133,13 +4465,12 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6164,7 +4495,7 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6184,13 +4515,12 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6215,7 +4545,7 @@ func (m *GetModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6235,13 +4565,12 @@ func (m *GetModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6266,7 +4595,7 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6294,7 +4623,7 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= SwitchMode(b&0x7F) << shift + m.Mode |= (SwitchMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -6305,13 +4634,12 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6336,7 +4664,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6364,7 +4692,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6373,9 +4701,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6398,7 +4723,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6407,9 +4732,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6424,13 +4746,12 @@ func (m *Range) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6455,7 +4776,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6483,7 +4804,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6492,9 +4813,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6517,7 +4835,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6526,9 +4844,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6553,7 +4868,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc32 |= uint32(b&0x7F) << shift + m.Crc32 |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -6572,7 +4887,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6591,7 +4906,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6601,9 +4916,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6623,7 +4935,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6642,7 +4954,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6651,9 +4963,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6678,7 +4987,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6698,7 +5007,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= uint64(b&0x7F) << shift + m.TotalKvs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6717,7 +5026,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= uint64(b&0x7F) << shift + m.TotalBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6736,7 +5045,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -6755,7 +5064,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6764,9 +5073,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6781,13 +5087,12 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6812,7 +5117,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6840,7 +5145,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6849,9 +5154,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6874,7 +5176,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6883,9 +5185,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6908,7 +5207,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewTimestamp |= uint64(b&0x7F) << shift + m.NewTimestamp |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6919,13 +5218,12 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6950,7 +5248,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6978,7 +5276,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6987,9 +5285,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7013,7 +5308,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7022,9 +5317,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7038,13 +5330,12 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7069,7 +5360,7 @@ func (m *UploadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7089,13 +5380,12 @@ func (m *UploadResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7120,7 +5410,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7148,7 +5438,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7157,9 +5447,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7184,7 +5471,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7193,9 +5480,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7212,13 +5496,12 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7243,7 +5526,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7271,7 +5554,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7280,9 +5563,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7307,7 +5587,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7316,9 +5596,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7333,13 +5610,12 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7364,7 +5640,7 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7392,7 +5668,7 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7401,9 +5677,6 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7420,13 +5693,12 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7451,7 +5723,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7479,7 +5751,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7488,9 +5760,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7515,7 +5784,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OutputLevel |= int32(b&0x7F) << shift + m.OutputLevel |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -7534,7 +5803,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7543,9 +5812,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7562,13 +5828,12 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7593,7 +5858,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7613,13 +5878,12 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7644,7 +5908,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7672,7 +5936,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7681,9 +5945,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7705,7 +5966,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7715,9 +5976,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7737,7 +5995,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7746,9 +6004,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7770,7 +6025,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7779,14 +6034,11 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } if m.StorageBackend == nil { - m.StorageBackend = &brpb.StorageBackend{} + m.StorageBackend = &backup.StorageBackend{} } if err := m.StorageBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7806,7 +6058,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7826,7 +6078,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7835,14 +6087,11 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } if m.CipherInfo == nil { - m.CipherInfo = &brpb.CipherInfo{} + m.CipherInfo = &backup.CipherInfo{} } if err := m.CipherInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7862,7 +6111,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7872,9 +6121,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7894,7 +6140,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestType |= DownloadRequestType(b&0x7F) << shift + m.RequestType |= (DownloadRequestType(b) & 0x7F) << shift if b < 0x80 { break } @@ -7913,7 +6159,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7922,9 +6168,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7941,13 +6184,12 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7972,7 +6214,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8000,7 +6242,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8010,9 +6252,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8032,7 +6271,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8041,9 +6280,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8060,13 +6296,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8091,7 +6326,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8119,7 +6354,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8128,9 +6363,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8152,7 +6384,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8172,7 +6404,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8181,9 +6413,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8208,7 +6437,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc32 |= uint32(b&0x7F) << shift + m.Crc32 |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -8227,7 +6456,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8238,13 +6467,12 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8269,7 +6497,7 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8297,7 +6525,7 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpeedLimit |= uint64(b&0x7F) << shift + m.SpeedLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8308,13 +6536,12 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8339,7 +6566,7 @@ func (m *SetDownloadSpeedLimitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8359,13 +6586,12 @@ func (m *SetDownloadSpeedLimitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8390,7 +6616,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8418,7 +6644,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8427,9 +6653,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8452,7 +6675,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8461,9 +6684,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8486,7 +6706,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= Pair_OP(b&0x7F) << shift + m.Op |= (Pair_OP(b) & 0x7F) << shift if b < 0x80 { break } @@ -8497,13 +6717,12 @@ func (m *Pair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8528,7 +6747,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8556,7 +6775,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8575,7 +6794,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8584,9 +6803,6 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8601,13 +6817,12 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8632,7 +6847,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8660,7 +6875,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8669,9 +6884,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8695,7 +6907,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8704,9 +6916,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8730,7 +6939,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8739,9 +6948,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8758,13 +6964,12 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8789,7 +6994,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8817,7 +7022,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8826,9 +7031,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8853,7 +7055,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8862,9 +7064,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8879,13 +7078,12 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8910,7 +7108,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8938,7 +7136,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8957,7 +7155,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8966,9 +7164,6 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8991,7 +7186,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= uint64(b&0x7F) << shift + m.Ts |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9002,13 +7197,12 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9033,7 +7227,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9061,7 +7255,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9070,9 +7264,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9096,7 +7287,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9105,9 +7296,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9131,7 +7319,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9140,9 +7328,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9159,13 +7344,12 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9190,7 +7374,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9218,7 +7402,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9227,9 +7411,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9254,7 +7435,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9263,9 +7444,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9280,13 +7458,12 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9311,7 +7488,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9339,7 +7516,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9348,9 +7525,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9375,7 +7549,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9384,9 +7558,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9409,7 +7580,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9418,9 +7589,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9443,7 +7611,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9463,7 +7631,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9474,13 +7642,12 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9505,7 +7672,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9533,7 +7700,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9542,9 +7709,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9567,7 +7731,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9576,9 +7740,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9601,7 +7762,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9612,13 +7773,12 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9643,7 +7803,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9671,7 +7831,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9680,9 +7840,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9707,7 +7864,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9716,9 +7873,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9743,7 +7897,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9752,9 +7906,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9769,13 +7920,12 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9800,7 +7950,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9828,7 +7978,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9838,9 +7988,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9860,7 +8007,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9879,7 +8026,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9889,9 +8036,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9911,7 +8055,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9931,7 +8075,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RestoreTs |= uint64(b&0x7F) << shift + m.RestoreTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9950,7 +8094,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9959,9 +8103,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9984,7 +8125,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9993,9 +8134,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10018,7 +8156,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10027,9 +8165,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10052,7 +8187,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartSnapshotTs |= uint64(b&0x7F) << shift + m.StartSnapshotTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10071,7 +8206,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10090,7 +8225,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeOffset |= uint64(b&0x7F) << shift + m.RangeOffset |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10109,7 +8244,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeLength |= uint64(b&0x7F) << shift + m.RangeLength |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10128,7 +8263,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= brpb.CompressionType(b&0x7F) << shift + m.CompressionType |= (backup.CompressionType(b) & 0x7F) << shift if b < 0x80 { break } @@ -10139,13 +8274,12 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10170,7 +8304,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10198,7 +8332,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10207,9 +8341,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10234,7 +8365,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10243,9 +8374,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10267,7 +8395,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10276,14 +8404,11 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } if m.StorageBackend == nil { - m.StorageBackend = &brpb.StorageBackend{} + m.StorageBackend = &backup.StorageBackend{} } if err := m.StorageBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10303,7 +8428,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10312,9 +8437,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10339,7 +8461,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10349,9 +8471,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10371,7 +8490,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10380,14 +8499,11 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } if m.CipherInfo == nil { - m.CipherInfo = &brpb.CipherInfo{} + m.CipherInfo = &backup.CipherInfo{} } if err := m.CipherInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -10407,7 +8523,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10416,9 +8532,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10441,7 +8554,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10450,9 +8563,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10467,13 +8577,12 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10498,7 +8607,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10526,7 +8635,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10535,9 +8644,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10559,7 +8665,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10568,9 +8674,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10587,13 +8690,12 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10618,7 +8720,7 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10646,7 +8748,7 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10656,9 +8758,6 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10670,13 +8769,12 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10701,7 +8799,7 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10729,7 +8827,7 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10738,9 +8836,6 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10757,13 +8852,12 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10776,7 +8870,6 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { func skipImportSstpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -10808,8 +8901,10 @@ func skipImportSstpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -10826,34 +8921,186 @@ func skipImportSstpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthImportSstpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupImportSstpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowImportSstpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipImportSstpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthImportSstpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthImportSstpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowImportSstpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupImportSstpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthImportSstpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowImportSstpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("import_sstpb.proto", fileDescriptorImportSstpb) } + +var fileDescriptorImportSstpb = []byte{ + // 2017 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x73, 0x1b, 0x49, + 0x15, 0xf7, 0xe8, 0xbf, 0x9e, 0xfe, 0xa6, 0xe3, 0x75, 0x26, 0x4a, 0x62, 0x7b, 0x87, 0xec, 0xa2, + 0x38, 0x60, 0x07, 0x07, 0x72, 0xe0, 0x40, 0x6a, 0xfd, 0x87, 0x8d, 0x71, 0xbc, 0x36, 0x23, 0x13, + 0x0e, 0x1c, 0xa6, 0xc6, 0xa3, 0xb6, 0x3d, 0x68, 0x34, 0x33, 0x4c, 0xb7, 0xe4, 0xe8, 0xc2, 0x07, + 0xe0, 0x13, 0x50, 0x5c, 0x28, 0x38, 0x6d, 0x71, 0xa6, 0x8a, 0xe2, 0x1b, 0xec, 0x11, 0x6e, 0x9c, + 0x28, 0x2a, 0x7c, 0x11, 0xaa, 0x5f, 0xf7, 0x48, 0x33, 0x13, 0x39, 0x8a, 0x5d, 0xcb, 0x49, 0xdd, + 0xaf, 0xdf, 0xbc, 0x7e, 0xfd, 0xfe, 0xfc, 0xfa, 0xd7, 0x02, 0xe2, 0x0e, 0xc3, 0x20, 0xe2, 0x16, + 0x63, 0x3c, 0x3c, 0xdb, 0x0c, 0xa3, 0x80, 0x07, 0xa4, 0x9e, 0x94, 0x75, 0xea, 0x43, 0xca, 0xed, + 0x78, 0xad, 0xd3, 0xa0, 0x51, 0x14, 0x44, 0xb3, 0xe9, 0x60, 0x1c, 0x85, 0xce, 0x74, 0xba, 0x7c, + 0x11, 0x5c, 0x04, 0x38, 0xdc, 0x12, 0x23, 0x25, 0x6d, 0x45, 0x23, 0xc6, 0x71, 0xa8, 0x04, 0x70, + 0x36, 0xb5, 0x60, 0xf8, 0x70, 0xa7, 0x77, 0xe5, 0x72, 0xe7, 0xf2, 0x28, 0xe8, 0x53, 0x93, 0xfe, + 0x66, 0x44, 0x19, 0x27, 0xdf, 0x83, 0xc2, 0x30, 0xe8, 0x53, 0x5d, 0x5b, 0xd7, 0xba, 0xcd, 0x6d, + 0x7d, 0x33, 0xe5, 0x64, 0x42, 0x1d, 0xb5, 0xc8, 0x53, 0x28, 0x45, 0xb6, 0x7f, 0x41, 0x99, 0x9e, + 0x5b, 0xcf, 0x77, 0x6b, 0xdb, 0x77, 0xd3, 0xfa, 0xa6, 0x58, 0x33, 0x95, 0x8a, 0xb1, 0x0c, 0x24, + 0xb9, 0x1f, 0x0b, 0x03, 0x9f, 0x51, 0xa3, 0x0d, 0xcd, 0x2f, 0x29, 0x4f, 0xb8, 0x60, 0xbc, 0x84, + 0xd6, 0x54, 0x22, 0x95, 0x6e, 0xe6, 0x95, 0xb1, 0x05, 0x45, 0xdc, 0x99, 0x2c, 0x43, 0x91, 0x71, + 0x3b, 0xe2, 0xf8, 0x5d, 0xdd, 0x94, 0x13, 0xd2, 0x86, 0x3c, 0xf5, 0xfb, 0x7a, 0x0e, 0x65, 0x62, + 0x68, 0xfc, 0x29, 0x0f, 0xe5, 0x5e, 0xef, 0xf4, 0x88, 0x72, 0x9b, 0x10, 0x28, 0x8c, 0x46, 0x6e, + 0x5f, 0x7d, 0x82, 0x63, 0xf2, 0x04, 0x8a, 0x78, 0x06, 0xfc,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, + 0x64, 0x82, 0x1d, 0xba, 0x6a, 0x2c, 0xf6, 0x74, 0xdc, 0xf0, 0x92, 0x46, 0x96, 0x3b, 0xd6, 0xeb, + 0x18, 0xff, 0x8a, 0x14, 0x1c, 0x8c, 0x8d, 0xdf, 0x42, 0xcd, 0xa4, 0x57, 0x91, 0xcb, 0xa9, 0x39, + 0xf2, 0x28, 0x79, 0x0c, 0xcd, 0xc0, 0x93, 0x67, 0x09, 0x23, 0x7a, 0xee, 0xbe, 0x55, 0x09, 0xab, + 0x07, 0x9e, 0x38, 0xc8, 0x09, 0xca, 0x84, 0x96, 0x4f, 0xaf, 0x92, 0x5a, 0x32, 0xeb, 0x75, 0x9f, + 0x5e, 0xcd, 0xb4, 0xbe, 0x03, 0x0d, 0xa1, 0xc5, 0xdd, 0x21, 0x65, 0xdc, 0x1e, 0x86, 0x98, 0xbb, + 0x02, 0x2a, 0x9d, 0xc6, 0x32, 0xe3, 0x57, 0xd0, 0xf8, 0x45, 0xe8, 0x05, 0x76, 0x3f, 0xee, 0x94, + 0xa7, 0x50, 0x10, 0x01, 0xc7, 0x7d, 0x6b, 0xdb, 0x9f, 0x64, 0x6a, 0x52, 0x56, 0xd3, 0xab, 0x25, + 0x13, 0x95, 0xc8, 0x32, 0x14, 0xfa, 0x36, 0xb7, 0xe5, 0xf6, 0x42, 0x2a, 0x66, 0x3b, 0x65, 0x28, + 0x3a, 0x97, 0x23, 0x7f, 0x20, 0x9a, 0x20, 0x36, 0xae, 0xda, 0xa2, 0x0f, 0x8d, 0x03, 0xd1, 0x35, + 0x3c, 0xde, 0x6e, 0x03, 0xca, 0x4e, 0xe0, 0x73, 0xfa, 0x96, 0xab, 0x1d, 0xdb, 0xd3, 0x70, 0xee, + 0x4a, 0xb9, 0x19, 0x2b, 0x90, 0xef, 0x42, 0x9e, 0x31, 0xae, 0xaa, 0x75, 0xbe, 0x67, 0xa6, 0xd0, + 0x30, 0x06, 0x40, 0x8e, 0x46, 0x1e, 0x77, 0x6f,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0xd8, 0x28, 0x80, 0x30, 0xf3, 0x53, 0xd7, 0xa3, 0x2c, 0x6b, + 0x28, 0x09, 0x54, 0x59, 0x43, 0x29, 0x70, 0x32, 0x96, 0x76, 0x3e, 0xff, 0xd7, 0xd7, 0x15, 0xed, + 0x9b, 0x77, 0xab, 0xda, 0x3f, 0xde, 0xad, 0x6a, 0xff, 0x79, 0xb7, 0xaa, 0xfd, 0xfe, 0xbf, 0xab, + 0x4b, 0xd0, 0x0e, 0xa2, 0x8b, 0x4d, 0xee, 0x0e, 0xc6, 0x9b, 0x83, 0x31, 0xfe, 0xa5, 0x7c, 0x56, + 0xc2, 0x9f, 0xe7, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x21, 0xbb, 0xea, 0x1e, 0xdc, 0x16, 0x00, + 0x00, +} diff --git a/pkg/keyspacepb/keyspacepb.pb.go b/pkg/keyspacepb/keyspacepb.pb.go index 4ac64771b..3b8fb7e3b 100644 --- a/pkg/keyspacepb/keyspacepb.pb.go +++ b/pkg/keyspacepb/keyspacepb.pb.go @@ -1,21 +1,40 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: keyspacepb.proto +/* +Package keyspacepb is a generated protocol buffer package. + +It is generated from these files: + + keyspacepb.proto + +It has these top-level messages: + + KeyspaceMeta + LoadKeyspaceRequest + LoadKeyspaceResponse + WatchKeyspacesRequest + WatchKeyspacesResponse + UpdateKeyspaceStateRequest + UpdateKeyspaceStateResponse + GetAllKeyspacesRequest + GetAllKeyspacesResponse +*/ package keyspacepb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" pdpb "github.com/pingcap/kvproto/pkg/pdpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,7 +46,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type KeyspaceState int32 @@ -44,7 +63,6 @@ var KeyspaceState_name = map[int32]string{ 2: "ARCHIVED", 3: "TOMBSTONE", } - var KeyspaceState_value = map[string]int32{ "ENABLED": 0, "DISABLED": 1, @@ -55,55 +73,21 @@ var KeyspaceState_value = map[string]int32{ func (x KeyspaceState) String() string { return proto.EnumName(KeyspaceState_name, int32(x)) } - -func (KeyspaceState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{0} -} +func (KeyspaceState) EnumDescriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{0} } type KeyspaceMeta struct { - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - StateChangedAt int64 `protobuf:"varint,5,opt,name=state_changed_at,json=stateChangedAt,proto3" json:"state_changed_at,omitempty"` - Config map[string]string `protobuf:"bytes,7,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyspaceMeta) Reset() { *m = KeyspaceMeta{} } -func (m *KeyspaceMeta) String() string { return proto.CompactTextString(m) } -func (*KeyspaceMeta) ProtoMessage() {} -func (*KeyspaceMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{0} -} -func (m *KeyspaceMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyspaceMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyspaceMeta.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 *KeyspaceMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyspaceMeta.Merge(m, src) -} -func (m *KeyspaceMeta) XXX_Size() int { - return m.Size() -} -func (m *KeyspaceMeta) XXX_DiscardUnknown() { - xxx_messageInfo_KeyspaceMeta.DiscardUnknown(m) + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + StateChangedAt int64 `protobuf:"varint,5,opt,name=state_changed_at,json=stateChangedAt,proto3" json:"state_changed_at,omitempty"` + Config map[string]string `protobuf:"bytes,7,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -var xxx_messageInfo_KeyspaceMeta proto.InternalMessageInfo +func (m *KeyspaceMeta) Reset() { *m = KeyspaceMeta{} } +func (m *KeyspaceMeta) String() string { return proto.CompactTextString(m) } +func (*KeyspaceMeta) ProtoMessage() {} +func (*KeyspaceMeta) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{0} } func (m *KeyspaceMeta) GetId() uint32 { if m != nil { @@ -148,45 +132,14 @@ func (m *KeyspaceMeta) GetConfig() map[string]string { } type LoadKeyspaceRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadKeyspaceRequest) Reset() { *m = LoadKeyspaceRequest{} } -func (m *LoadKeyspaceRequest) String() string { return proto.CompactTextString(m) } -func (*LoadKeyspaceRequest) ProtoMessage() {} -func (*LoadKeyspaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{1} -} -func (m *LoadKeyspaceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadKeyspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadKeyspaceRequest.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 *LoadKeyspaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadKeyspaceRequest.Merge(m, src) -} -func (m *LoadKeyspaceRequest) XXX_Size() int { - return m.Size() -} -func (m *LoadKeyspaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadKeyspaceRequest.DiscardUnknown(m) + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -var xxx_messageInfo_LoadKeyspaceRequest proto.InternalMessageInfo +func (m *LoadKeyspaceRequest) Reset() { *m = LoadKeyspaceRequest{} } +func (m *LoadKeyspaceRequest) String() string { return proto.CompactTextString(m) } +func (*LoadKeyspaceRequest) ProtoMessage() {} +func (*LoadKeyspaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{1} } func (m *LoadKeyspaceRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -203,45 +156,14 @@ func (m *LoadKeyspaceRequest) GetName() string { } type LoadKeyspaceResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadKeyspaceResponse) Reset() { *m = LoadKeyspaceResponse{} } -func (m *LoadKeyspaceResponse) String() string { return proto.CompactTextString(m) } -func (*LoadKeyspaceResponse) ProtoMessage() {} -func (*LoadKeyspaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{2} -} -func (m *LoadKeyspaceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadKeyspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadKeyspaceResponse.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 *LoadKeyspaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadKeyspaceResponse.Merge(m, src) -} -func (m *LoadKeyspaceResponse) XXX_Size() int { - return m.Size() -} -func (m *LoadKeyspaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadKeyspaceResponse.DiscardUnknown(m) + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` } -var xxx_messageInfo_LoadKeyspaceResponse proto.InternalMessageInfo +func (m *LoadKeyspaceResponse) Reset() { *m = LoadKeyspaceResponse{} } +func (m *LoadKeyspaceResponse) String() string { return proto.CompactTextString(m) } +func (*LoadKeyspaceResponse) ProtoMessage() {} +func (*LoadKeyspaceResponse) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{2} } func (m *LoadKeyspaceResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -258,44 +180,13 @@ func (m *LoadKeyspaceResponse) GetKeyspace() *KeyspaceMeta { } type WatchKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchKeyspacesRequest) Reset() { *m = WatchKeyspacesRequest{} } -func (m *WatchKeyspacesRequest) String() string { return proto.CompactTextString(m) } -func (*WatchKeyspacesRequest) ProtoMessage() {} -func (*WatchKeyspacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{3} -} -func (m *WatchKeyspacesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchKeyspacesRequest.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 *WatchKeyspacesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchKeyspacesRequest.Merge(m, src) -} -func (m *WatchKeyspacesRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchKeyspacesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchKeyspacesRequest.DiscardUnknown(m) + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_WatchKeyspacesRequest proto.InternalMessageInfo +func (m *WatchKeyspacesRequest) Reset() { *m = WatchKeyspacesRequest{} } +func (m *WatchKeyspacesRequest) String() string { return proto.CompactTextString(m) } +func (*WatchKeyspacesRequest) ProtoMessage() {} +func (*WatchKeyspacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{3} } func (m *WatchKeyspacesRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -305,45 +196,16 @@ func (m *WatchKeyspacesRequest) GetHeader() *pdpb.RequestHeader { } type WatchKeyspacesResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` } func (m *WatchKeyspacesResponse) Reset() { *m = WatchKeyspacesResponse{} } func (m *WatchKeyspacesResponse) String() string { return proto.CompactTextString(m) } func (*WatchKeyspacesResponse) ProtoMessage() {} func (*WatchKeyspacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{4} + return fileDescriptorKeyspacepb, []int{4} } -func (m *WatchKeyspacesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchKeyspacesResponse.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 *WatchKeyspacesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchKeyspacesResponse.Merge(m, src) -} -func (m *WatchKeyspacesResponse) XXX_Size() int { - return m.Size() -} -func (m *WatchKeyspacesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WatchKeyspacesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WatchKeyspacesResponse proto.InternalMessageInfo func (m *WatchKeyspacesResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -360,46 +222,17 @@ func (m *WatchKeyspacesResponse) GetKeyspaces() []*KeyspaceMeta { } type UpdateKeyspaceStateRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` } func (m *UpdateKeyspaceStateRequest) Reset() { *m = UpdateKeyspaceStateRequest{} } func (m *UpdateKeyspaceStateRequest) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateRequest) ProtoMessage() {} func (*UpdateKeyspaceStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{5} + return fileDescriptorKeyspacepb, []int{5} } -func (m *UpdateKeyspaceStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateKeyspaceStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateKeyspaceStateRequest.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 *UpdateKeyspaceStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateKeyspaceStateRequest.Merge(m, src) -} -func (m *UpdateKeyspaceStateRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateKeyspaceStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateKeyspaceStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateKeyspaceStateRequest proto.InternalMessageInfo func (m *UpdateKeyspaceStateRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -423,45 +256,16 @@ func (m *UpdateKeyspaceStateRequest) GetState() KeyspaceState { } type UpdateKeyspaceStateResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` } func (m *UpdateKeyspaceStateResponse) Reset() { *m = UpdateKeyspaceStateResponse{} } func (m *UpdateKeyspaceStateResponse) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateResponse) ProtoMessage() {} func (*UpdateKeyspaceStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{6} -} -func (m *UpdateKeyspaceStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateKeyspaceStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateKeyspaceStateResponse.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 fileDescriptorKeyspacepb, []int{6} } -func (m *UpdateKeyspaceStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateKeyspaceStateResponse.Merge(m, src) -} -func (m *UpdateKeyspaceStateResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateKeyspaceStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateKeyspaceStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateKeyspaceStateResponse proto.InternalMessageInfo func (m *UpdateKeyspaceStateResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -478,47 +282,18 @@ func (m *UpdateKeyspaceStateResponse) GetKeyspace() *KeyspaceMeta { } type GetAllKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - StartId uint32 `protobuf:"varint,2,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + StartId uint32 `protobuf:"varint,2,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` } func (m *GetAllKeyspacesRequest) Reset() { *m = GetAllKeyspacesRequest{} } func (m *GetAllKeyspacesRequest) String() string { return proto.CompactTextString(m) } func (*GetAllKeyspacesRequest) ProtoMessage() {} func (*GetAllKeyspacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{7} -} -func (m *GetAllKeyspacesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllKeyspacesRequest.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 *GetAllKeyspacesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllKeyspacesRequest.Merge(m, src) -} -func (m *GetAllKeyspacesRequest) XXX_Size() int { - return m.Size() -} -func (m *GetAllKeyspacesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllKeyspacesRequest.DiscardUnknown(m) + return fileDescriptorKeyspacepb, []int{7} } -var xxx_messageInfo_GetAllKeyspacesRequest proto.InternalMessageInfo - func (m *GetAllKeyspacesRequest) GetHeader() *pdpb.RequestHeader { if m != nil { return m.Header @@ -541,45 +316,16 @@ func (m *GetAllKeyspacesRequest) GetLimit() uint32 { } type GetAllKeyspacesResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` } func (m *GetAllKeyspacesResponse) Reset() { *m = GetAllKeyspacesResponse{} } func (m *GetAllKeyspacesResponse) String() string { return proto.CompactTextString(m) } func (*GetAllKeyspacesResponse) ProtoMessage() {} func (*GetAllKeyspacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{8} -} -func (m *GetAllKeyspacesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorKeyspacepb, []int{8} } -func (m *GetAllKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllKeyspacesResponse.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 *GetAllKeyspacesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllKeyspacesResponse.Merge(m, src) -} -func (m *GetAllKeyspacesResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAllKeyspacesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllKeyspacesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAllKeyspacesResponse proto.InternalMessageInfo func (m *GetAllKeyspacesResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -596,9 +342,7 @@ func (m *GetAllKeyspacesResponse) GetKeyspaces() []*KeyspaceMeta { } func init() { - proto.RegisterEnum("keyspacepb.KeyspaceState", KeyspaceState_name, KeyspaceState_value) proto.RegisterType((*KeyspaceMeta)(nil), "keyspacepb.KeyspaceMeta") - proto.RegisterMapType((map[string]string)(nil), "keyspacepb.KeyspaceMeta.ConfigEntry") proto.RegisterType((*LoadKeyspaceRequest)(nil), "keyspacepb.LoadKeyspaceRequest") proto.RegisterType((*LoadKeyspaceResponse)(nil), "keyspacepb.LoadKeyspaceResponse") proto.RegisterType((*WatchKeyspacesRequest)(nil), "keyspacepb.WatchKeyspacesRequest") @@ -607,53 +351,7 @@ func init() { proto.RegisterType((*UpdateKeyspaceStateResponse)(nil), "keyspacepb.UpdateKeyspaceStateResponse") proto.RegisterType((*GetAllKeyspacesRequest)(nil), "keyspacepb.GetAllKeyspacesRequest") proto.RegisterType((*GetAllKeyspacesResponse)(nil), "keyspacepb.GetAllKeyspacesResponse") -} - -func init() { proto.RegisterFile("keyspacepb.proto", fileDescriptor_5c5d91f3e5071166) } - -var fileDescriptor_5c5d91f3e5071166 = []byte{ - // 643 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xee, 0xda, 0xfd, 0x49, 0x26, 0x4d, 0x6a, 0x6d, 0x43, 0x71, 0x8d, 0x08, 0xc6, 0xa0, 0x62, - 0x01, 0x72, 0x51, 0x40, 0x08, 0x10, 0x97, 0xb4, 0x89, 0xda, 0x8a, 0xfe, 0x48, 0x4e, 0x29, 0x07, - 0x90, 0xaa, 0x6d, 0xbc, 0x24, 0x56, 0xd2, 0xd8, 0xd8, 0xdb, 0x48, 0xe5, 0x00, 0x42, 0xe2, 0xc4, - 0x13, 0xf0, 0x02, 0x48, 0x3c, 0x0a, 0x47, 0x8e, 0x1c, 0x51, 0x78, 0x11, 0xe4, 0xb5, 0x9d, 0x3a, - 0xc1, 0x29, 0x22, 0x48, 0x3d, 0x65, 0x66, 0xf6, 0xdb, 0x6f, 0xe7, 0x9b, 0x9f, 0x18, 0xa4, 0x36, - 0x3d, 0xf5, 0x5d, 0xd2, 0xa0, 0xee, 0x91, 0xe1, 0x7a, 0x0e, 0x73, 0x30, 0x9c, 0x45, 0x14, 0x70, - 0xad, 0x38, 0xae, 0x14, 0x9b, 0x4e, 0xd3, 0xe1, 0xe6, 0x6a, 0x60, 0x45, 0xd1, 0x05, 0xef, 0xc4, - 0x67, 0xdc, 0x0c, 0x03, 0xda, 0x17, 0x01, 0xe6, 0x9f, 0x45, 0x0c, 0x3b, 0x94, 0x11, 0x5c, 0x00, - 0xc1, 0xb6, 0x64, 0xa4, 0x22, 0x3d, 0x6f, 0x0a, 0xb6, 0x85, 0x31, 0x4c, 0x77, 0xc9, 0x31, 0x95, - 0x05, 0x15, 0xe9, 0x59, 0x93, 0xdb, 0x78, 0x15, 0x66, 0x7c, 0x46, 0x18, 0x95, 0x45, 0x15, 0xe9, - 0x85, 0xf2, 0xb2, 0x91, 0xc8, 0x2a, 0x26, 0xab, 0x07, 0x00, 0x33, 0xc4, 0xe1, 0xab, 0x00, 0x0d, - 0x8f, 0x12, 0x46, 0xad, 0x43, 0xc2, 0xe4, 0x69, 0x15, 0xe9, 0xa2, 0x99, 0x8d, 0x22, 0x15, 0x86, - 0x75, 0x90, 0x38, 0xee, 0xb0, 0xd1, 0x22, 0xdd, 0x66, 0x08, 0x9a, 0xe1, 0xa0, 0x02, 0x8f, 0xaf, - 0x87, 0xe1, 0x0a, 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0x26, 0x66, 0x5f, - 0x5b, 0xf9, 0xf1, 0x35, 0x83, 0xbe, 0xf5, 0x4b, 0xe8, 0x7b, 0xbf, 0x84, 0x7e, 0xf6, 0x4b, 0xe8, - 0xf3, 0xaf, 0xd2, 0x14, 0x48, 0x8e, 0xd7, 0x34, 0x98, 0xdd, 0xee, 0x19, 0xed, 0x1e, 0xff, 0x86, - 0x1d, 0xcd, 0xf2, 0x9f, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0x1b, 0x21, 0x95, 0x1d, - 0x07, 0x00, 0x00, + proto.RegisterEnum("keyspacepb.KeyspaceState", KeyspaceState_name, KeyspaceState_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -664,9 +362,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// KeyspaceClient is the client API for Keyspace service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Keyspace service + type KeyspaceClient interface { LoadKeyspace(ctx context.Context, in *LoadKeyspaceRequest, opts ...grpc.CallOption) (*LoadKeyspaceResponse, error) // WatchKeyspaces first return all current keyspaces' metadata as its first response. @@ -686,7 +383,7 @@ func NewKeyspaceClient(cc *grpc.ClientConn) KeyspaceClient { func (c *keyspaceClient) LoadKeyspace(ctx context.Context, in *LoadKeyspaceRequest, opts ...grpc.CallOption) (*LoadKeyspaceResponse, error) { out := new(LoadKeyspaceResponse) - err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/LoadKeyspace", in, out, opts...) + err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/LoadKeyspace", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -694,7 +391,7 @@ func (c *keyspaceClient) LoadKeyspace(ctx context.Context, in *LoadKeyspaceReque } func (c *keyspaceClient) WatchKeyspaces(ctx context.Context, in *WatchKeyspacesRequest, opts ...grpc.CallOption) (Keyspace_WatchKeyspacesClient, error) { - stream, err := c.cc.NewStream(ctx, &_Keyspace_serviceDesc.Streams[0], "/keyspacepb.Keyspace/WatchKeyspaces", opts...) + stream, err := grpc.NewClientStream(ctx, &_Keyspace_serviceDesc.Streams[0], c.cc, "/keyspacepb.Keyspace/WatchKeyspaces", opts...) if err != nil { return nil, err } @@ -727,7 +424,7 @@ func (x *keyspaceWatchKeyspacesClient) Recv() (*WatchKeyspacesResponse, error) { func (c *keyspaceClient) UpdateKeyspaceState(ctx context.Context, in *UpdateKeyspaceStateRequest, opts ...grpc.CallOption) (*UpdateKeyspaceStateResponse, error) { out := new(UpdateKeyspaceStateResponse) - err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/UpdateKeyspaceState", in, out, opts...) + err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/UpdateKeyspaceState", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -736,14 +433,15 @@ func (c *keyspaceClient) UpdateKeyspaceState(ctx context.Context, in *UpdateKeys func (c *keyspaceClient) GetAllKeyspaces(ctx context.Context, in *GetAllKeyspacesRequest, opts ...grpc.CallOption) (*GetAllKeyspacesResponse, error) { out := new(GetAllKeyspacesResponse) - err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/GetAllKeyspaces", in, out, opts...) + err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/GetAllKeyspaces", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// KeyspaceServer is the server API for Keyspace service. +// Server API for Keyspace service + type KeyspaceServer interface { LoadKeyspace(context.Context, *LoadKeyspaceRequest) (*LoadKeyspaceResponse, error) // WatchKeyspaces first return all current keyspaces' metadata as its first response. @@ -753,23 +451,6 @@ type KeyspaceServer interface { GetAllKeyspaces(context.Context, *GetAllKeyspacesRequest) (*GetAllKeyspacesResponse, error) } -// UnimplementedKeyspaceServer can be embedded to have forward compatible implementations. -type UnimplementedKeyspaceServer struct { -} - -func (*UnimplementedKeyspaceServer) LoadKeyspace(ctx context.Context, req *LoadKeyspaceRequest) (*LoadKeyspaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadKeyspace not implemented") -} -func (*UnimplementedKeyspaceServer) WatchKeyspaces(req *WatchKeyspacesRequest, srv Keyspace_WatchKeyspacesServer) error { - return status.Errorf(codes.Unimplemented, "method WatchKeyspaces not implemented") -} -func (*UnimplementedKeyspaceServer) UpdateKeyspaceState(ctx context.Context, req *UpdateKeyspaceStateRequest) (*UpdateKeyspaceStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateKeyspaceState not implemented") -} -func (*UnimplementedKeyspaceServer) GetAllKeyspaces(ctx context.Context, req *GetAllKeyspacesRequest) (*GetAllKeyspacesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllKeyspaces not implemented") -} - func RegisterKeyspaceServer(s *grpc.Server, srv KeyspaceServer) { s.RegisterService(&_Keyspace_serviceDesc, srv) } @@ -879,7 +560,7 @@ var _Keyspace_serviceDesc = grpc.ServiceDesc{ func (m *KeyspaceMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -887,72 +568,60 @@ func (m *KeyspaceMeta) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyspaceMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) } - if len(m.Config) > 0 { - for k := range m.Config { - v := m.Config[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintKeyspacepb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.StateChangedAt != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StateChangedAt)) - i-- - dAtA[i] = 0x28 + if m.State != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) } if m.CreatedAt != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.CreatedAt)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.CreatedAt)) } - if m.State != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 + if m.StateChangedAt != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StateChangedAt)) } - if m.Id != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if len(m.Config) > 0 { + for k, _ := range m.Config { + dAtA[i] = 0x3a + i++ + v := m.Config[k] + mapSize := 1 + len(k) + sovKeyspacepb(uint64(len(k))) + 1 + len(v) + sovKeyspacepb(uint64(len(v))) + i = encodeVarintKeyspacepb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } } - return len(dAtA) - i, nil + return i, nil } func (m *LoadKeyspaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -960,45 +629,33 @@ func (m *LoadKeyspaceRequest) Marshal() (dAtA []byte, err error) { } func (m *LoadKeyspaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadKeyspaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n1, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *LoadKeyspaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1006,50 +663,37 @@ func (m *LoadKeyspaceResponse) Marshal() (dAtA []byte, err error) { } func (m *LoadKeyspaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadKeyspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.Keyspace != nil { - { - size, err := m.Keyspace.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(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 = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Keyspace.Size())) + n3, err := m.Keyspace.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *WatchKeyspacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1057,38 +701,27 @@ func (m *WatchKeyspacesRequest) Marshal() (dAtA []byte, err error) { } func (m *WatchKeyspacesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchKeyspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n4, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *WatchKeyspacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1096,52 +729,39 @@ func (m *WatchKeyspacesResponse) Marshal() (dAtA []byte, err error) { } func (m *WatchKeyspacesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } if len(m.Keyspaces) > 0 { - for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Keyspaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Keyspaces { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateKeyspaceStateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1149,48 +769,37 @@ func (m *UpdateKeyspaceStateRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateKeyspaceStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateKeyspaceStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.State != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } if m.Id != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.State != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateKeyspaceStateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1198,50 +807,37 @@ func (m *UpdateKeyspaceStateResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateKeyspaceStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateKeyspaceStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n7, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if m.Keyspace != nil { - { - size, err := m.Keyspace.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(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 = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Keyspace.Size())) + n8, err := m.Keyspace.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllKeyspacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1249,48 +845,37 @@ func (m *GetAllKeyspacesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllKeyspacesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllKeyspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Limit != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n9, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } if m.StartId != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StartId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StartId)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Limit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Limit)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllKeyspacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1298,63 +883,45 @@ func (m *GetAllKeyspacesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllKeyspacesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) + n10, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } if len(m.Keyspaces) > 0 { - for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Keyspaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Keyspaces { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func encodeVarintKeyspacepb(dAtA []byte, offset int, v uint64) int { - offset -= sovKeyspacepb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *KeyspaceMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1381,16 +948,10 @@ func (m *KeyspaceMeta) Size() (n int) { n += mapEntrySize + 1 + sovKeyspacepb(uint64(mapEntrySize)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LoadKeyspaceRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1401,16 +962,10 @@ func (m *LoadKeyspaceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKeyspacepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LoadKeyspaceResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1421,32 +976,20 @@ func (m *LoadKeyspaceResponse) Size() (n int) { l = m.Keyspace.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchKeyspacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { l = m.Header.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchKeyspacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1459,16 +1002,10 @@ func (m *WatchKeyspacesResponse) Size() (n int) { n += 1 + l + sovKeyspacepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateKeyspaceStateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1481,16 +1018,10 @@ func (m *UpdateKeyspaceStateRequest) Size() (n int) { if m.State != 0 { n += 1 + sovKeyspacepb(uint64(m.State)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateKeyspaceStateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1501,16 +1032,10 @@ func (m *UpdateKeyspaceStateResponse) Size() (n int) { l = m.Keyspace.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllKeyspacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1523,16 +1048,10 @@ func (m *GetAllKeyspacesRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovKeyspacepb(uint64(m.Limit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllKeyspacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1545,14 +1064,18 @@ func (m *GetAllKeyspacesResponse) Size() (n int) { n += 1 + l + sovKeyspacepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovKeyspacepb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozKeyspacepb(x uint64) (n int) { return sovKeyspacepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1572,7 +1095,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1600,7 +1123,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint32(b&0x7F) << shift + m.Id |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1619,7 +1142,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1629,9 +1152,6 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1651,7 +1171,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= KeyspaceState(b&0x7F) << shift + m.State |= (KeyspaceState(b) & 0x7F) << shift if b < 0x80 { break } @@ -1670,7 +1190,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift + m.CreatedAt |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1689,7 +1209,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateChangedAt |= int64(b&0x7F) << shift + m.StateChangedAt |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1708,7 +1228,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1717,9 +1237,6 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1740,7 +1257,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1757,7 +1274,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1767,9 +1284,6 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthKeyspacepb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1786,7 +1300,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift + stringLenmapvalue |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1796,9 +1310,6 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthKeyspacepb - } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -1810,7 +1321,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > postIndex { @@ -1827,13 +1338,12 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1858,7 +1368,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1886,7 +1396,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1895,9 +1405,6 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1922,7 +1429,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1932,9 +1439,6 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1946,13 +1450,12 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1977,7 +1480,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2005,7 +1508,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2014,9 +1517,6 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2041,7 +1541,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2050,9 +1550,6 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2069,13 +1566,12 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2100,7 +1596,7 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2128,7 +1624,7 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2137,9 +1633,6 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2156,13 +1649,12 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2187,7 +1679,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2215,7 +1707,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2224,9 +1716,6 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2251,7 +1740,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2260,9 +1749,6 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2277,13 +1763,12 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2308,7 +1793,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2336,7 +1821,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2345,9 +1830,6 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2372,7 +1854,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint32(b&0x7F) << shift + m.Id |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2391,7 +1873,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= KeyspaceState(b&0x7F) << shift + m.State |= (KeyspaceState(b) & 0x7F) << shift if b < 0x80 { break } @@ -2402,13 +1884,12 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2433,7 +1914,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2461,7 +1942,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2470,9 +1951,6 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2497,7 +1975,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2506,9 +1984,6 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2525,13 +2000,12 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2556,7 +2030,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2584,7 +2058,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2593,9 +2067,6 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2620,7 +2091,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartId |= uint32(b&0x7F) << shift + m.StartId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2639,7 +2110,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint32(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2650,13 +2121,12 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2681,7 +2151,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2709,7 +2179,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2718,9 +2188,6 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2745,7 +2212,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2754,9 +2221,6 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKeyspacepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2771,13 +2235,12 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2790,7 +2253,6 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { func skipKeyspacepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2822,8 +2284,10 @@ func skipKeyspacepb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2840,34 +2304,100 @@ func skipKeyspacepb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthKeyspacepb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupKeyspacepb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKeyspacepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipKeyspacepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthKeyspacepb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthKeyspacepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowKeyspacepb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupKeyspacepb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthKeyspacepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKeyspacepb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("keyspacepb.proto", fileDescriptorKeyspacepb) } + +var fileDescriptorKeyspacepb = []byte{ + // 643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xee, 0xda, 0xfd, 0x49, 0x26, 0x4d, 0x6a, 0x6d, 0x43, 0x71, 0x8d, 0x08, 0xc6, 0xa0, 0x62, + 0x01, 0x72, 0x51, 0x40, 0x08, 0x10, 0x97, 0xb4, 0x89, 0xda, 0x8a, 0xfe, 0x48, 0x4e, 0x29, 0x07, + 0x90, 0xaa, 0x6d, 0xbc, 0x24, 0x56, 0xd2, 0xd8, 0xd8, 0xdb, 0x48, 0xe5, 0x00, 0x42, 0xe2, 0xc4, + 0x13, 0xf0, 0x02, 0x48, 0x3c, 0x0a, 0x47, 0x8e, 0x1c, 0x51, 0x78, 0x11, 0xe4, 0xb5, 0x9d, 0x3a, + 0xc1, 0x29, 0x22, 0x48, 0x3d, 0x65, 0x66, 0xf6, 0xdb, 0x6f, 0xe7, 0x9b, 0x9f, 0x18, 0xa4, 0x36, + 0x3d, 0xf5, 0x5d, 0xd2, 0xa0, 0xee, 0x91, 0xe1, 0x7a, 0x0e, 0x73, 0x30, 0x9c, 0x45, 0x14, 0x70, + 0xad, 0x38, 0xae, 0x14, 0x9b, 0x4e, 0xd3, 0xe1, 0xe6, 0x6a, 0x60, 0x45, 0xd1, 0x05, 0xef, 0xc4, + 0x67, 0xdc, 0x0c, 0x03, 0xda, 0x17, 0x01, 0xe6, 0x9f, 0x45, 0x0c, 0x3b, 0x94, 0x11, 0x5c, 0x00, + 0xc1, 0xb6, 0x64, 0xa4, 0x22, 0x3d, 0x6f, 0x0a, 0xb6, 0x85, 0x31, 0x4c, 0x77, 0xc9, 0x31, 0x95, + 0x05, 0x15, 0xe9, 0x59, 0x93, 0xdb, 0x78, 0x15, 0x66, 0x7c, 0x46, 0x18, 0x95, 0x45, 0x15, 0xe9, + 0x85, 0xf2, 0xb2, 0x91, 0xc8, 0x2a, 0x26, 0xab, 0x07, 0x00, 0x33, 0xc4, 0xe1, 0xab,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x79, 0x90, 0x98, 0xfa, 0x1e, 0xc2, 0x2d, 0x58, + 0x4c, 0x99, 0x41, 0xbc, 0x92, 0xbc, 0x3e, 0x7e, 0x63, 0x94, 0x5b, 0x7f, 0xc5, 0x0d, 0x64, 0xbc, + 0x82, 0x85, 0x91, 0x96, 0xe3, 0xa1, 0x24, 0xd3, 0xe7, 0x50, 0xb9, 0x71, 0x2e, 0x26, 0x66, 0x5f, + 0x5b, 0xf9, 0xf1, 0x35, 0x83, 0xbe, 0xf5, 0x4b, 0xe8, 0x7b, 0xbf, 0x84, 0x7e, 0xf6, 0x4b, 0xe8, + 0xf3, 0xaf, 0xd2, 0x14, 0x48, 0x8e, 0xd7, 0x34, 0x98, 0xdd, 0xee, 0x19, 0xed, 0x1e, 0xff, 0x86, + 0x1d, 0xcd, 0xf2, 0x9f, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0x1b, 0x21, 0x95, 0x1d, + 0x07, 0x00, 0x00, +} diff --git a/pkg/kvrpcpb/kvrpcpb.pb.go b/pkg/kvrpcpb/kvrpcpb.pb.go index cb1811415..d6b3daea0 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -1,22 +1,171 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: kvrpcpb.proto +/* +Package kvrpcpb is a generated protocol buffer package. + +It is generated from these files: + + kvrpcpb.proto + +It has these top-level messages: + + GetRequest + GetResponse + ScanRequest + ScanResponse + PrewriteRequest + PrewriteResponse + PessimisticLockRequest + PessimisticLockKeyResult + PessimisticLockResponse + PessimisticRollbackRequest + PessimisticRollbackResponse + TxnHeartBeatRequest + TxnHeartBeatResponse + CheckTxnStatusRequest + CheckTxnStatusResponse + CheckSecondaryLocksRequest + CheckSecondaryLocksResponse + CommitRequest + CommitResponse + ImportRequest + ImportResponse + CleanupRequest + CleanupResponse + BatchGetRequest + BatchGetResponse + BatchRollbackRequest + BatchRollbackResponse + ScanLockRequest + ScanLockResponse + ResolveLockRequest + ResolveLockResponse + GCRequest + GCResponse + DeleteRangeRequest + DeleteRangeResponse + PrepareFlashbackToVersionRequest + PrepareFlashbackToVersionResponse + FlashbackToVersionRequest + FlashbackToVersionResponse + RawGetRequest + RawGetResponse + RawBatchGetRequest + RawBatchGetResponse + RawPutRequest + RawPutResponse + RawBatchPutRequest + RawBatchPutResponse + RawDeleteRequest + RawDeleteResponse + RawBatchDeleteRequest + RawBatchDeleteResponse + RawScanRequest + RawScanResponse + RawDeleteRangeRequest + RawDeleteRangeResponse + RawBatchScanRequest + RawBatchScanResponse + UnsafeDestroyRangeRequest + UnsafeDestroyRangeResponse + RegisterLockObserverRequest + RegisterLockObserverResponse + CheckLockObserverRequest + CheckLockObserverResponse + RemoveLockObserverRequest + RemoveLockObserverResponse + PhysicalScanLockRequest + PhysicalScanLockResponse + SplitRegionRequest + SplitRegionResponse + ReadIndexRequest + ReadIndexResponse + MvccGetByKeyRequest + MvccGetByKeyResponse + MvccGetByStartTsRequest + MvccGetByStartTsResponse + Context + ResourceControlContext + SourceStmt + LockInfo + KeyError + WriteConflict + AlreadyExist + Deadlock + CommitTsExpired + TxnNotFound + CommitTsTooLarge + AssertionFailed + PrimaryMismatch + TimeDetail + TimeDetailV2 + ScanInfo + ScanDetail + ScanDetailV2 + ExecDetails + ExecDetailsV2 + WriteDetail + KvPair + Mutation + MvccWrite + MvccValue + MvccLock + MvccInfo + TxnInfo + KeyRange + LeaderInfo + ReadState + CheckLeaderRequest + CheckLeaderResponse + StoreSafeTSRequest + StoreSafeTSResponse + RawGetKeyTTLRequest + RawGetKeyTTLResponse + RawCASRequest + RawCASResponse + GetLockWaitInfoRequest + GetLockWaitInfoResponse + GetLockWaitHistoryRequest + GetLockWaitHistoryResponse + RawCoprocessorRequest + RawCoprocessorResponse + RawChecksumRequest + RawChecksumResponse + CompactError + CompactErrorInvalidStartKey + CompactErrorPhysicalTableNotExist + CompactErrorCompactInProgress + CompactErrorTooManyPendingTasks + CompactRequest + CompactResponse + TiFlashSystemTableRequest + TiFlashSystemTableResponse + TxnEntry + ScanTxnEntriesRequest + ScanTxnEntriesResponse +*/ package kvrpcpb import ( "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - deadlock "github.com/pingcap/kvproto/pkg/deadlock" - errorpb "github.com/pingcap/kvproto/pkg/errorpb" metapb "github.com/pingcap/kvproto/pkg/metapb" + + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + + _ "github.com/gogo/protobuf/gogoproto" + + deadlock "github.com/pingcap/kvproto/pkg/deadlock" + + tracepb "github.com/pingcap/kvproto/pkg/tracepb" + resource_manager "github.com/pingcap/kvproto/pkg/resource_manager" + github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" - tracepb "github.com/pingcap/kvproto/pkg/tracepb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -28,7 +177,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // Used to specify the behavior when a pessimistic lock request is woken up after waiting for another // lock. @@ -50,7 +199,6 @@ var PessimisticLockWakeUpMode_name = map[int32]string{ 0: "WakeUpModeNormal", 1: "WakeUpModeForceLock", } - var PessimisticLockWakeUpMode_value = map[string]int32{ "WakeUpModeNormal": 0, "WakeUpModeForceLock": 1, @@ -59,9 +207,8 @@ var PessimisticLockWakeUpMode_value = map[string]int32{ func (x PessimisticLockWakeUpMode) String() string { return proto.EnumName(PessimisticLockWakeUpMode_name, int32(x)) } - func (PessimisticLockWakeUpMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{0} + return fileDescriptorKvrpcpb, []int{0} } type PessimisticLockKeyResultType int32 @@ -77,7 +224,6 @@ var PessimisticLockKeyResultType_name = map[int32]string{ 1: "LockResultLockedWithConflict", 2: "LockResultFailed", } - var PessimisticLockKeyResultType_value = map[string]int32{ "LockResultNormal": 0, "LockResultLockedWithConflict": 1, @@ -87,9 +233,8 @@ var PessimisticLockKeyResultType_value = map[string]int32{ func (x PessimisticLockKeyResultType) String() string { return proto.EnumName(PessimisticLockKeyResultType_name, int32(x)) } - func (PessimisticLockKeyResultType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{1} + return fileDescriptorKvrpcpb, []int{1} } // The API version the server and the client is using. @@ -154,7 +299,6 @@ var APIVersion_name = map[int32]string{ 1: "V1TTL", 2: "V2", } - var APIVersion_value = map[string]int32{ "V1": 0, "V1TTL": 1, @@ -164,10 +308,7 @@ var APIVersion_value = map[string]int32{ func (x APIVersion) String() string { return proto.EnumName(APIVersion_name, int32(x)) } - -func (APIVersion) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{2} -} +func (APIVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{2} } type CommandPri int32 @@ -182,7 +323,6 @@ var CommandPri_name = map[int32]string{ 1: "Low", 2: "High", } - var CommandPri_value = map[string]int32{ "Normal": 0, "Low": 1, @@ -192,10 +332,7 @@ var CommandPri_value = map[string]int32{ func (x CommandPri) String() string { return proto.EnumName(CommandPri_name, int32(x)) } - -func (CommandPri) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{3} -} +func (CommandPri) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{3} } type IsolationLevel int32 @@ -210,7 +347,6 @@ var IsolationLevel_name = map[int32]string{ 1: "RC", 2: "RCCheckTS", } - var IsolationLevel_value = map[string]int32{ "SI": 0, "RC": 1, @@ -220,10 +356,7 @@ var IsolationLevel_value = map[string]int32{ func (x IsolationLevel) String() string { return proto.EnumName(IsolationLevel_name, int32(x)) } - -func (IsolationLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{4} -} +func (IsolationLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{4} } // Operation allowed info during each TiKV storage threshold. type DiskFullOpt int32 @@ -239,7 +372,6 @@ var DiskFullOpt_name = map[int32]string{ 1: "AllowedOnAlmostFull", 2: "AllowedOnAlreadyFull", } - var DiskFullOpt_value = map[string]int32{ "NotAllowedOnFull": 0, "AllowedOnAlmostFull": 1, @@ -249,10 +381,7 @@ var DiskFullOpt_value = map[string]int32{ func (x DiskFullOpt) String() string { return proto.EnumName(DiskFullOpt_name, int32(x)) } - -func (DiskFullOpt) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{5} -} +func (DiskFullOpt) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{5} } type Op int32 @@ -276,7 +405,6 @@ var Op_name = map[int32]string{ 5: "PessimisticLock", 6: "CheckNotExists", } - var Op_value = map[string]int32{ "Put": 0, "Del": 1, @@ -290,10 +418,7 @@ var Op_value = map[string]int32{ func (x Op) String() string { return proto.EnumName(Op_name, int32(x)) } - -func (Op) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{6} -} +func (Op) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{6} } type Assertion int32 @@ -308,7 +433,6 @@ var Assertion_name = map[int32]string{ 1: "Exist", 2: "NotExist", } - var Assertion_value = map[string]int32{ "None": 0, "Exist": 1, @@ -318,10 +442,7 @@ var Assertion_value = map[string]int32{ func (x Assertion) String() string { return proto.EnumName(Assertion_name, int32(x)) } - -func (Assertion) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{7} -} +func (Assertion) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{7} } type AssertionLevel int32 @@ -339,7 +460,6 @@ var AssertionLevel_name = map[int32]string{ 1: "Fast", 2: "Strict", } - var AssertionLevel_value = map[string]int32{ "Off": 0, "Fast": 1, @@ -349,10 +469,7 @@ var AssertionLevel_value = map[string]int32{ func (x AssertionLevel) String() string { return proto.EnumName(AssertionLevel_name, int32(x)) } - -func (AssertionLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{8} -} +func (AssertionLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{8} } type Action int32 @@ -373,7 +490,6 @@ var Action_name = map[int32]string{ 4: "TTLExpirePessimisticRollback", 5: "LockNotExistDoNothing", } - var Action_value = map[string]int32{ "NoAction": 0, "TTLExpireRollback": 1, @@ -386,10 +502,7 @@ var Action_value = map[string]int32{ func (x Action) String() string { return proto.EnumName(Action_name, int32(x)) } - -func (Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{9} -} +func (Action) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{9} } type ExtraOp int32 @@ -403,7 +516,6 @@ var ExtraOp_name = map[int32]string{ 0: "Noop", 1: "ReadOldValue", } - var ExtraOp_value = map[string]int32{ "Noop": 0, "ReadOldValue": 1, @@ -412,10 +524,7 @@ var ExtraOp_value = map[string]int32{ func (x ExtraOp) String() string { return proto.EnumName(ExtraOp_name, int32(x)) } - -func (ExtraOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{10} -} +func (ExtraOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{10} } type ChecksumAlgorithm int32 @@ -426,7 +535,6 @@ const ( var ChecksumAlgorithm_name = map[int32]string{ 0: "Crc64_Xor", } - var ChecksumAlgorithm_value = map[string]int32{ "Crc64_Xor": 0, } @@ -434,10 +542,7 @@ var ChecksumAlgorithm_value = map[string]int32{ func (x ChecksumAlgorithm) String() string { return proto.EnumName(ChecksumAlgorithm_name, int32(x)) } - -func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{11} -} +func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{11} } // What kind of checks need to be performed for keys in a pessimistic transaction. type PrewriteRequest_PessimisticAction int32 @@ -456,7 +561,6 @@ var PrewriteRequest_PessimisticAction_name = map[int32]string{ 1: "DO_PESSIMISTIC_CHECK", 2: "DO_CONSTRAINT_CHECK", } - var PrewriteRequest_PessimisticAction_value = map[string]int32{ "SKIP_PESSIMISTIC_CHECK": 0, "DO_PESSIMISTIC_CHECK": 1, @@ -466,9 +570,8 @@ var PrewriteRequest_PessimisticAction_value = map[string]int32{ func (x PrewriteRequest_PessimisticAction) String() string { return proto.EnumName(PrewriteRequest_PessimisticAction_name, int32(x)) } - func (PrewriteRequest_PessimisticAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{4, 0} + return fileDescriptorKvrpcpb, []int{4, 0} } type WriteConflict_Reason int32 @@ -490,7 +593,6 @@ var WriteConflict_Reason_name = map[int32]string{ 4: "RcCheckTs", 5: "LazyUniquenessCheck", } - var WriteConflict_Reason_value = map[string]int32{ "Unknown": 0, "Optimistic": 1, @@ -503,54 +605,22 @@ var WriteConflict_Reason_value = map[string]int32{ func (x WriteConflict_Reason) String() string { return proto.EnumName(WriteConflict_Reason_name, int32(x)) } - func (WriteConflict_Reason) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{80, 0} + return fileDescriptorKvrpcpb, []int{80, 0} } // A transactional get command. Lookup a value for `key` in the transaction with // starting timestamp = `version`. type GetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{0} -} -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{0} } func (m *GetRequest) GetContext() *Context { if m != nil { @@ -576,52 +646,21 @@ func (m *GetRequest) GetVersion() uint64 { type GetResponse struct { // A region error indicates that the request was sent to the wrong TiKV node // (or other, similar errors). - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` // A value could not be retrieved due to the state of the database for the requested key. - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // A successful result. Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // True if the key does not exist in the database. NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` // Time and scan details when processing the request. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{1} -} -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return m.Size() -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{1} } func (m *GetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -661,7 +700,7 @@ func (m *GetResponse) GetExecDetailsV2() *ExecDetailsV2 { // Scan fetches values for a range of keys; it is part of the transaction with // starting timestamp = `version`. type ScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` // The maximum number of results to return. Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` @@ -674,44 +713,13 @@ type ScanRequest struct { EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key. // locks are not checked. - SampleStep uint32 `protobuf:"varint,8,opt,name=sample_step,json=sampleStep,proto3" json:"sample_step,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanRequest) Reset() { *m = ScanRequest{} } -func (m *ScanRequest) String() string { return proto.CompactTextString(m) } -func (*ScanRequest) ProtoMessage() {} -func (*ScanRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{2} -} -func (m *ScanRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanRequest.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 *ScanRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanRequest.Merge(m, src) -} -func (m *ScanRequest) XXX_Size() int { - return m.Size() -} -func (m *ScanRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanRequest.DiscardUnknown(m) + SampleStep uint32 `protobuf:"varint,8,opt,name=sample_step,json=sampleStep,proto3" json:"sample_step,omitempty"` } -var xxx_messageInfo_ScanRequest proto.InternalMessageInfo +func (m *ScanRequest) Reset() { *m = ScanRequest{} } +func (m *ScanRequest) String() string { return proto.CompactTextString(m) } +func (*ScanRequest) ProtoMessage() {} +func (*ScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{2} } func (m *ScanRequest) GetContext() *Context { if m != nil { @@ -770,50 +778,19 @@ func (m *ScanRequest) GetSampleStep() uint32 { } type ScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` // Each KvPair may contain a key error. - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` // This KeyError exists when some key is locked but we cannot check locks of all keys. // In this case, `pairs` should be empty and the client should redo scanning all the keys // after resolving the lock. - Error *KeyError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanResponse) Reset() { *m = ScanResponse{} } -func (m *ScanResponse) String() string { return proto.CompactTextString(m) } -func (*ScanResponse) ProtoMessage() {} -func (*ScanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{3} -} -func (m *ScanResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanResponse.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 *ScanResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanResponse.Merge(m, src) -} -func (m *ScanResponse) XXX_Size() int { - return m.Size() -} -func (m *ScanResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanResponse.DiscardUnknown(m) + Error *KeyError `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ScanResponse proto.InternalMessageInfo +func (m *ScanResponse) Reset() { *m = ScanResponse{} } +func (m *ScanResponse) String() string { return proto.CompactTextString(m) } +func (*ScanResponse) ProtoMessage() {} +func (*ScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{3} } func (m *ScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -840,9 +817,9 @@ func (m *ScanResponse) GetError() *KeyError { // TiKV will write the data in a preliminary state. Data cannot be read until it has been committed. // The client should only commit a transaction once all prewrites succeed. type PrewriteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // The data to be written to the database. - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` // The client picks one key to be primary (unrelated to the primary key concept in SQL). This // key's lock is the source of truth for the state of a transaction. All other locks due to a // transaction will point to the primary lock. @@ -854,7 +831,7 @@ type PrewriteRequest struct { SkipConstraintCheck bool `protobuf:"varint,6,opt,name=skip_constraint_check,json=skipConstraintCheck,proto3" json:"skip_constraint_check,omitempty"` // For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key. // Keys with deferred constraint checks are not locked. - PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,proto3,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` + PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` // How many keys this transaction involves in this region. TxnSize uint64 `protobuf:"varint,8,opt,name=txn_size,json=txnSize,proto3" json:"txn_size,omitempty"` // For pessimistic transactions only; used to check if a conflict lock is already committed. @@ -865,7 +842,7 @@ type PrewriteRequest struct { // When async commit is enabled, `secondaries` should be set as the key list of all secondary // locks if the request prewrites the primary lock. UseAsyncCommit bool `protobuf:"varint,11,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` - Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries,proto3" json:"secondaries,omitempty"` + Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries" json:"secondaries,omitempty"` // When the transaction involves only one region, it's possible to commit the transaction // directly with 1PC protocol. TryOnePc bool `protobuf:"varint,13,opt,name=try_one_pc,json=tryOnePc,proto3" json:"try_one_pc,omitempty"` @@ -876,44 +853,13 @@ type PrewriteRequest struct { AssertionLevel AssertionLevel `protobuf:"varint,15,opt,name=assertion_level,json=assertionLevel,proto3,enum=kvrpcpb.AssertionLevel" json:"assertion_level,omitempty"` // for_update_ts constriants that should be checked when prewriting a pessimistic transaction. // See https://github.com/tikv/tikv/issues/14311 - ForUpdateTsConstraints []*PrewriteRequest_ForUpdateTSConstraint `protobuf:"bytes,16,rep,name=for_update_ts_constraints,json=forUpdateTsConstraints,proto3" json:"for_update_ts_constraints,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } -func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } -func (*PrewriteRequest) ProtoMessage() {} -func (*PrewriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{4} -} -func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrewriteRequest.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 *PrewriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrewriteRequest.Merge(m, src) -} -func (m *PrewriteRequest) XXX_Size() int { - return m.Size() -} -func (m *PrewriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrewriteRequest.DiscardUnknown(m) + ForUpdateTsConstraints []*PrewriteRequest_ForUpdateTSConstraint `protobuf:"bytes,16,rep,name=for_update_ts_constraints,json=forUpdateTsConstraints" json:"for_update_ts_constraints,omitempty"` } -var xxx_messageInfo_PrewriteRequest proto.InternalMessageInfo +func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } +func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } +func (*PrewriteRequest) ProtoMessage() {} +func (*PrewriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{4} } func (m *PrewriteRequest) GetContext() *Context { if m != nil { @@ -1032,45 +978,16 @@ type PrewriteRequest_ForUpdateTSConstraint struct { // The index of key in the prewrite request that should be checked. Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // The expected for_update_ts of the pessimistic lock of the key. - ExpectedForUpdateTs uint64 `protobuf:"varint,2,opt,name=expected_for_update_ts,json=expectedForUpdateTs,proto3" json:"expected_for_update_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExpectedForUpdateTs uint64 `protobuf:"varint,2,opt,name=expected_for_update_ts,json=expectedForUpdateTs,proto3" json:"expected_for_update_ts,omitempty"` } func (m *PrewriteRequest_ForUpdateTSConstraint) Reset() { *m = PrewriteRequest_ForUpdateTSConstraint{} } func (m *PrewriteRequest_ForUpdateTSConstraint) String() string { return proto.CompactTextString(m) } func (*PrewriteRequest_ForUpdateTSConstraint) ProtoMessage() {} func (*PrewriteRequest_ForUpdateTSConstraint) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{4, 0} -} -func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.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 *PrewriteRequest_ForUpdateTSConstraint) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.Merge(m, src) -} -func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Size() int { - return m.Size() -} -func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_DiscardUnknown() { - xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{4, 0} } -var xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint proto.InternalMessageInfo - func (m *PrewriteRequest_ForUpdateTSConstraint) GetIndex() uint32 { if m != nil { return m.Index @@ -1086,8 +1003,8 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) GetExpectedForUpdateTs() uint64 } type PrewriteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` // 0 if the min_commit_ts is not ready or any other reason that async // commit cannot proceed. The client can then fallback to normal way to // continue committing the transaction if prewrite are all finished. @@ -1097,44 +1014,13 @@ type PrewriteResponse struct { // transaction is not 1PC, the value will be 0. OnePcCommitTs uint64 `protobuf:"varint,4,opt,name=one_pc_commit_ts,json=onePcCommitTs,proto3" json:"one_pc_commit_ts,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } -func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } -func (*PrewriteResponse) ProtoMessage() {} -func (*PrewriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{5} -} -func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrewriteResponse.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 *PrewriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrewriteResponse.Merge(m, src) -} -func (m *PrewriteResponse) XXX_Size() int { - return m.Size() -} -func (m *PrewriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrewriteResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_PrewriteResponse proto.InternalMessageInfo +func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } +func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } +func (*PrewriteResponse) ProtoMessage() {} +func (*PrewriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{5} } func (m *PrewriteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1173,9 +1059,9 @@ func (m *PrewriteResponse) GetExecDetailsV2() *ExecDetailsV2 { // Lock a set of keys to prepare to write to them. type PessimisticLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // In this case every `Op` of the mutations must be `PessimisticLock`. - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` PrimaryLock []byte `protobuf:"bytes,3,opt,name=primary_lock,json=primaryLock,proto3" json:"primary_lock,omitempty"` StartVersion uint64 `protobuf:"varint,4,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` LockTtl uint64 `protobuf:"varint,5,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` @@ -1192,7 +1078,7 @@ type PessimisticLockRequest struct { WaitTimeout int64 `protobuf:"varint,8,opt,name=wait_timeout,json=waitTimeout,proto3" json:"wait_timeout,omitempty"` // If it is true, TiKV will acquire the pessimistic lock regardless of write conflict // and return the latest value. It's only supported for single mutation. - Force bool `protobuf:"varint,9,opt,name=force,proto3" json:"force,omitempty"` // Deprecated: Do not use. + Force bool `protobuf:"varint,9,opt,name=force,proto3" json:"force,omitempty"` // If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for // later read in the same transaction. // When 'force' is set to true, this field is ignored. @@ -1208,44 +1094,13 @@ type PessimisticLockRequest struct { // TiKV lock the record only when it exists LockOnlyIfExists bool `protobuf:"varint,13,opt,name=lock_only_if_exists,json=lockOnlyIfExists,proto3" json:"lock_only_if_exists,omitempty"` // Specifies the behavior when the request is woken up after wating for lock of another transaction. - WakeUpMode PessimisticLockWakeUpMode `protobuf:"varint,14,opt,name=wake_up_mode,json=wakeUpMode,proto3,enum=kvrpcpb.PessimisticLockWakeUpMode" json:"wake_up_mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PessimisticLockRequest) Reset() { *m = PessimisticLockRequest{} } -func (m *PessimisticLockRequest) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockRequest) ProtoMessage() {} -func (*PessimisticLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{6} -} -func (m *PessimisticLockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PessimisticLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PessimisticLockRequest.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 *PessimisticLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticLockRequest.Merge(m, src) -} -func (m *PessimisticLockRequest) XXX_Size() int { - return m.Size() -} -func (m *PessimisticLockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PessimisticLockRequest.DiscardUnknown(m) + WakeUpMode PessimisticLockWakeUpMode `protobuf:"varint,14,opt,name=wake_up_mode,json=wakeUpMode,proto3,enum=kvrpcpb.PessimisticLockWakeUpMode" json:"wake_up_mode,omitempty"` } -var xxx_messageInfo_PessimisticLockRequest proto.InternalMessageInfo +func (m *PessimisticLockRequest) Reset() { *m = PessimisticLockRequest{} } +func (m *PessimisticLockRequest) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockRequest) ProtoMessage() {} +func (*PessimisticLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{6} } func (m *PessimisticLockRequest) GetContext() *Context { if m != nil { @@ -1303,7 +1158,6 @@ func (m *PessimisticLockRequest) GetWaitTimeout() int64 { return 0 } -// Deprecated: Do not use. func (m *PessimisticLockRequest) GetForce() bool { if m != nil { return m.Force @@ -1360,44 +1214,13 @@ type PessimisticLockKeyResult struct { LockedWithConflictTs uint64 `protobuf:"varint,4,opt,name=locked_with_conflict_ts,json=lockedWithConflictTs,proto3" json:"locked_with_conflict_ts,omitempty"` // Hint the client that resolving lock is not needed for this lock. For `PessimisticLock` // requests only. - SkipResolvingLock bool `protobuf:"varint,11,opt,name=skip_resolving_lock,json=skipResolvingLock,proto3" json:"skip_resolving_lock,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PessimisticLockKeyResult) Reset() { *m = PessimisticLockKeyResult{} } -func (m *PessimisticLockKeyResult) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockKeyResult) ProtoMessage() {} -func (*PessimisticLockKeyResult) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{7} -} -func (m *PessimisticLockKeyResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PessimisticLockKeyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PessimisticLockKeyResult.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 *PessimisticLockKeyResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticLockKeyResult.Merge(m, src) -} -func (m *PessimisticLockKeyResult) XXX_Size() int { - return m.Size() -} -func (m *PessimisticLockKeyResult) XXX_DiscardUnknown() { - xxx_messageInfo_PessimisticLockKeyResult.DiscardUnknown(m) + SkipResolvingLock bool `protobuf:"varint,11,opt,name=skip_resolving_lock,json=skipResolvingLock,proto3" json:"skip_resolving_lock,omitempty"` } -var xxx_messageInfo_PessimisticLockKeyResult proto.InternalMessageInfo +func (m *PessimisticLockKeyResult) Reset() { *m = PessimisticLockKeyResult{} } +func (m *PessimisticLockKeyResult) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockKeyResult) ProtoMessage() {} +func (*PessimisticLockKeyResult) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{7} } func (m *PessimisticLockKeyResult) GetType() PessimisticLockKeyResultType { if m != nil { @@ -1435,61 +1258,30 @@ func (m *PessimisticLockKeyResult) GetSkipResolvingLock() bool { } type PessimisticLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` // It carries the latest value and its commit ts if force in PessimisticLockRequest is true. - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Deprecated: Do not use. - Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // Deprecated: Do not use. + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // The values is set if 'return_values' is true in the request and no error. // If 'force' is true, this field is not used. // Only used when `wake_up_mode` is `WakeUpModeNormal`. - Values [][]byte `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"` + Values [][]byte `protobuf:"bytes,5,rep,name=values" json:"values,omitempty"` // Indicates whether the values at the same index is correspond to an existing key. // In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates // two possible situations: (1) the key does not exist. (2) the key exists but the value is empty. // Only used when `wake_up_mode` is `WakeUpModeNormal`. - NotFounds []bool `protobuf:"varint,6,rep,packed,name=not_founds,json=notFounds,proto3" json:"not_founds,omitempty"` + NotFounds []bool `protobuf:"varint,6,rep,packed,name=not_founds,json=notFounds" json:"not_founds,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` // Results of the request. Only used when `wake_up_mode` is `WakeUpModeForceLock`. - Results []*PessimisticLockKeyResult `protobuf:"bytes,8,rep,name=results,proto3" json:"results,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PessimisticLockResponse) Reset() { *m = PessimisticLockResponse{} } -func (m *PessimisticLockResponse) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockResponse) ProtoMessage() {} -func (*PessimisticLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{8} -} -func (m *PessimisticLockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PessimisticLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PessimisticLockResponse.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 *PessimisticLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticLockResponse.Merge(m, src) -} -func (m *PessimisticLockResponse) XXX_Size() int { - return m.Size() -} -func (m *PessimisticLockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PessimisticLockResponse.DiscardUnknown(m) + Results []*PessimisticLockKeyResult `protobuf:"bytes,8,rep,name=results" json:"results,omitempty"` } -var xxx_messageInfo_PessimisticLockResponse proto.InternalMessageInfo +func (m *PessimisticLockResponse) Reset() { *m = PessimisticLockResponse{} } +func (m *PessimisticLockResponse) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockResponse) ProtoMessage() {} +func (*PessimisticLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{8} } func (m *PessimisticLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1505,7 +1297,6 @@ func (m *PessimisticLockResponse) GetErrors() []*KeyError { return nil } -// Deprecated: Do not use. func (m *PessimisticLockResponse) GetCommitTs() uint64 { if m != nil { return m.CommitTs @@ -1513,7 +1304,6 @@ func (m *PessimisticLockResponse) GetCommitTs() uint64 { return 0 } -// Deprecated: Do not use. func (m *PessimisticLockResponse) GetValue() []byte { if m != nil { return m.Value @@ -1551,48 +1341,19 @@ func (m *PessimisticLockResponse) GetResults() []*PessimisticLockKeyResult { // Unlock keys locked using `PessimisticLockRequest`. type PessimisticRollbackRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` - ForUpdateTs uint64 `protobuf:"varint,3,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` - Keys [][]byte `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + ForUpdateTs uint64 `protobuf:"varint,3,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` + Keys [][]byte `protobuf:"bytes,4,rep,name=keys" json:"keys,omitempty"` } func (m *PessimisticRollbackRequest) Reset() { *m = PessimisticRollbackRequest{} } func (m *PessimisticRollbackRequest) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackRequest) ProtoMessage() {} func (*PessimisticRollbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{9} -} -func (m *PessimisticRollbackRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PessimisticRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PessimisticRollbackRequest.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 *PessimisticRollbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticRollbackRequest.Merge(m, src) -} -func (m *PessimisticRollbackRequest) XXX_Size() int { - return m.Size() -} -func (m *PessimisticRollbackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PessimisticRollbackRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{9} } -var xxx_messageInfo_PessimisticRollbackRequest proto.InternalMessageInfo - func (m *PessimisticRollbackRequest) GetContext() *Context { if m != nil { return m.Context @@ -1622,48 +1383,19 @@ func (m *PessimisticRollbackRequest) GetKeys() [][]byte { } type PessimisticRollbackResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } func (m *PessimisticRollbackResponse) Reset() { *m = PessimisticRollbackResponse{} } func (m *PessimisticRollbackResponse) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackResponse) ProtoMessage() {} func (*PessimisticRollbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{10} -} -func (m *PessimisticRollbackResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PessimisticRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PessimisticRollbackResponse.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 *PessimisticRollbackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticRollbackResponse.Merge(m, src) -} -func (m *PessimisticRollbackResponse) XXX_Size() int { - return m.Size() -} -func (m *PessimisticRollbackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PessimisticRollbackResponse.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{10} } -var xxx_messageInfo_PessimisticRollbackResponse proto.InternalMessageInfo - func (m *PessimisticRollbackResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -1687,50 +1419,19 @@ func (m *PessimisticRollbackResponse) GetExecDetailsV2() *ExecDetailsV2 { // Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed. type TxnHeartBeatRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // The key of the lock to update. PrimaryLock []byte `protobuf:"bytes,2,opt,name=primary_lock,json=primaryLock,proto3" json:"primary_lock,omitempty"` // Start timestamp of the large transaction. StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The new TTL the sender would like. - AdviseLockTtl uint64 `protobuf:"varint,4,opt,name=advise_lock_ttl,json=adviseLockTtl,proto3" json:"advise_lock_ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnHeartBeatRequest) Reset() { *m = TxnHeartBeatRequest{} } -func (m *TxnHeartBeatRequest) String() string { return proto.CompactTextString(m) } -func (*TxnHeartBeatRequest) ProtoMessage() {} -func (*TxnHeartBeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{11} -} -func (m *TxnHeartBeatRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnHeartBeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnHeartBeatRequest.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 *TxnHeartBeatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnHeartBeatRequest.Merge(m, src) -} -func (m *TxnHeartBeatRequest) XXX_Size() int { - return m.Size() -} -func (m *TxnHeartBeatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TxnHeartBeatRequest.DiscardUnknown(m) + AdviseLockTtl uint64 `protobuf:"varint,4,opt,name=advise_lock_ttl,json=adviseLockTtl,proto3" json:"advise_lock_ttl,omitempty"` } -var xxx_messageInfo_TxnHeartBeatRequest proto.InternalMessageInfo +func (m *TxnHeartBeatRequest) Reset() { *m = TxnHeartBeatRequest{} } +func (m *TxnHeartBeatRequest) String() string { return proto.CompactTextString(m) } +func (*TxnHeartBeatRequest) ProtoMessage() {} +func (*TxnHeartBeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{11} } func (m *TxnHeartBeatRequest) GetContext() *Context { if m != nil { @@ -1761,49 +1462,18 @@ func (m *TxnHeartBeatRequest) GetAdviseLockTtl() uint64 { } type TxnHeartBeatResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // The TTL actually set on the requested lock. LockTtl uint64 `protobuf:"varint,3,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnHeartBeatResponse) Reset() { *m = TxnHeartBeatResponse{} } -func (m *TxnHeartBeatResponse) String() string { return proto.CompactTextString(m) } -func (*TxnHeartBeatResponse) ProtoMessage() {} -func (*TxnHeartBeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{12} -} -func (m *TxnHeartBeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnHeartBeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnHeartBeatResponse.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 *TxnHeartBeatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnHeartBeatResponse.Merge(m, src) -} -func (m *TxnHeartBeatResponse) XXX_Size() int { - return m.Size() -} -func (m *TxnHeartBeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TxnHeartBeatResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_TxnHeartBeatResponse proto.InternalMessageInfo +func (m *TxnHeartBeatResponse) Reset() { *m = TxnHeartBeatResponse{} } +func (m *TxnHeartBeatResponse) String() string { return proto.CompactTextString(m) } +func (*TxnHeartBeatResponse) ProtoMessage() {} +func (*TxnHeartBeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{12} } func (m *TxnHeartBeatResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1839,7 +1509,7 @@ func (m *TxnHeartBeatResponse) GetExecDetailsV2() *ExecDetailsV2 { // Otherwise, returns the TTL information for the transaction. // CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction. type CheckTxnStatusRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // Primary key and lock ts together to locate the primary lock of a transaction. PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` // Starting timestamp of the transaction being checked. @@ -1865,44 +1535,13 @@ type CheckTxnStatusRequest struct { // (see https://github.com/pingcap/tidb/issues/42937 for details). This field is necessary // because the old versions of clients cannot handle some results returned from TiKV correctly. // For new versions, this field should always be set to true. - VerifyIsPrimary bool `protobuf:"varint,9,opt,name=verify_is_primary,json=verifyIsPrimary,proto3" json:"verify_is_primary,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckTxnStatusRequest) Reset() { *m = CheckTxnStatusRequest{} } -func (m *CheckTxnStatusRequest) String() string { return proto.CompactTextString(m) } -func (*CheckTxnStatusRequest) ProtoMessage() {} -func (*CheckTxnStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{13} -} -func (m *CheckTxnStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckTxnStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckTxnStatusRequest.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 *CheckTxnStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckTxnStatusRequest.Merge(m, src) -} -func (m *CheckTxnStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *CheckTxnStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckTxnStatusRequest.DiscardUnknown(m) + VerifyIsPrimary bool `protobuf:"varint,9,opt,name=verify_is_primary,json=verifyIsPrimary,proto3" json:"verify_is_primary,omitempty"` } -var xxx_messageInfo_CheckTxnStatusRequest proto.InternalMessageInfo +func (m *CheckTxnStatusRequest) Reset() { *m = CheckTxnStatusRequest{} } +func (m *CheckTxnStatusRequest) String() string { return proto.CompactTextString(m) } +func (*CheckTxnStatusRequest) ProtoMessage() {} +func (*CheckTxnStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{13} } func (m *CheckTxnStatusRequest) GetContext() *Context { if m != nil { @@ -1968,57 +1607,25 @@ func (m *CheckTxnStatusRequest) GetVerifyIsPrimary() bool { } type CheckTxnStatusResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // Three kinds of transaction status: - // - // locked: lock_ttl > 0 - // committed: commit_version > 0 - // rollbacked: lock_ttl = 0 && commit_version = 0 + // locked: lock_ttl > 0 + // committed: commit_version > 0 + // rollbacked: lock_ttl = 0 && commit_version = 0 LockTtl uint64 `protobuf:"varint,3,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` // The action performed by TiKV (and why if the action is to rollback). Action Action `protobuf:"varint,5,opt,name=action,proto3,enum=kvrpcpb.Action" json:"action,omitempty"` - LockInfo *LockInfo `protobuf:"bytes,6,opt,name=lock_info,json=lockInfo,proto3" json:"lock_info,omitempty"` + LockInfo *LockInfo `protobuf:"bytes,6,opt,name=lock_info,json=lockInfo" json:"lock_info,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckTxnStatusResponse) Reset() { *m = CheckTxnStatusResponse{} } -func (m *CheckTxnStatusResponse) String() string { return proto.CompactTextString(m) } -func (*CheckTxnStatusResponse) ProtoMessage() {} -func (*CheckTxnStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{14} -} -func (m *CheckTxnStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckTxnStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckTxnStatusResponse.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 *CheckTxnStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckTxnStatusResponse.Merge(m, src) -} -func (m *CheckTxnStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *CheckTxnStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckTxnStatusResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_CheckTxnStatusResponse proto.InternalMessageInfo +func (m *CheckTxnStatusResponse) Reset() { *m = CheckTxnStatusResponse{} } +func (m *CheckTxnStatusResponse) String() string { return proto.CompactTextString(m) } +func (*CheckTxnStatusResponse) ProtoMessage() {} +func (*CheckTxnStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{14} } func (m *CheckTxnStatusResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2073,47 +1680,18 @@ func (m *CheckTxnStatusResponse) GetExecDetailsV2() *ExecDetailsV2 { // does not have a successful status, or belongs to another transaction, TiKV will leave a rollback // tombstone for that key. type CheckSecondaryLocksRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` // Identifies the transaction we are investigating. - StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` } func (m *CheckSecondaryLocksRequest) Reset() { *m = CheckSecondaryLocksRequest{} } func (m *CheckSecondaryLocksRequest) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksRequest) ProtoMessage() {} func (*CheckSecondaryLocksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{15} -} -func (m *CheckSecondaryLocksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorKvrpcpb, []int{15} } -func (m *CheckSecondaryLocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckSecondaryLocksRequest.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 *CheckSecondaryLocksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckSecondaryLocksRequest.Merge(m, src) -} -func (m *CheckSecondaryLocksRequest) XXX_Size() int { - return m.Size() -} -func (m *CheckSecondaryLocksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckSecondaryLocksRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CheckSecondaryLocksRequest proto.InternalMessageInfo func (m *CheckSecondaryLocksRequest) GetContext() *Context { if m != nil { @@ -2137,55 +1715,26 @@ func (m *CheckSecondaryLocksRequest) GetStartVersion() uint64 { } type CheckSecondaryLocksResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in // this list if there is a lock present and belonging to the correct transaction, // nil otherwise. - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` // If any of the locks have been committed, this is the commit ts used. If no // locks have been committed, it will be zero. CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } func (m *CheckSecondaryLocksResponse) Reset() { *m = CheckSecondaryLocksResponse{} } func (m *CheckSecondaryLocksResponse) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksResponse) ProtoMessage() {} func (*CheckSecondaryLocksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{16} -} -func (m *CheckSecondaryLocksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckSecondaryLocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckSecondaryLocksResponse.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 *CheckSecondaryLocksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckSecondaryLocksResponse.Merge(m, src) -} -func (m *CheckSecondaryLocksResponse) XXX_Size() int { - return m.Size() -} -func (m *CheckSecondaryLocksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckSecondaryLocksResponse.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{16} } -var xxx_messageInfo_CheckSecondaryLocksResponse proto.InternalMessageInfo - func (m *CheckSecondaryLocksResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -2224,50 +1773,19 @@ func (m *CheckSecondaryLocksResponse) GetExecDetailsV2() *ExecDetailsV2 { // The second phase of writing to TiKV. If there are no errors or conflicts, then this request // commits a transaction so that its data can be read by other transactions. type CommitRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // Identifies the transaction. StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // All keys in the transaction (to be committed). - Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` // Timestamp for the end of the transaction. Must be greater than `start_version`. - CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitRequest) Reset() { *m = CommitRequest{} } -func (m *CommitRequest) String() string { return proto.CompactTextString(m) } -func (*CommitRequest) ProtoMessage() {} -func (*CommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{17} -} -func (m *CommitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitRequest.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 *CommitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitRequest.Merge(m, src) -} -func (m *CommitRequest) XXX_Size() int { - return m.Size() -} -func (m *CommitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitRequest.DiscardUnknown(m) + CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` } -var xxx_messageInfo_CommitRequest proto.InternalMessageInfo +func (m *CommitRequest) Reset() { *m = CommitRequest{} } +func (m *CommitRequest) String() string { return proto.CompactTextString(m) } +func (*CommitRequest) ProtoMessage() {} +func (*CommitRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{17} } func (m *CommitRequest) GetContext() *Context { if m != nil { @@ -2298,49 +1816,18 @@ func (m *CommitRequest) GetCommitVersion() uint64 { } type CommitResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // If the commit ts is derived from min_commit_ts, this field should be set. CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitResponse) Reset() { *m = CommitResponse{} } -func (m *CommitResponse) String() string { return proto.CompactTextString(m) } -func (*CommitResponse) ProtoMessage() {} -func (*CommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{18} -} -func (m *CommitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitResponse.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 *CommitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitResponse.Merge(m, src) -} -func (m *CommitResponse) XXX_Size() int { - return m.Size() -} -func (m *CommitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_CommitResponse proto.InternalMessageInfo +func (m *CommitResponse) Reset() { *m = CommitResponse{} } +func (m *CommitResponse) String() string { return proto.CompactTextString(m) } +func (*CommitResponse) ProtoMessage() {} +func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{18} } func (m *CommitResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2372,45 +1859,14 @@ func (m *CommitResponse) GetExecDetailsV2() *ExecDetailsV2 { // Not yet implemented. type ImportRequest struct { - Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations,proto3" json:"mutations,omitempty"` - CommitVersion uint64 `protobuf:"varint,2,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportRequest) Reset() { *m = ImportRequest{} } -func (m *ImportRequest) String() string { return proto.CompactTextString(m) } -func (*ImportRequest) ProtoMessage() {} -func (*ImportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{19} -} -func (m *ImportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImportRequest.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 *ImportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportRequest.Merge(m, src) -} -func (m *ImportRequest) XXX_Size() int { - return m.Size() -} -func (m *ImportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ImportRequest.DiscardUnknown(m) + Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"` + CommitVersion uint64 `protobuf:"varint,2,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` } -var xxx_messageInfo_ImportRequest proto.InternalMessageInfo +func (m *ImportRequest) Reset() { *m = ImportRequest{} } +func (m *ImportRequest) String() string { return proto.CompactTextString(m) } +func (*ImportRequest) ProtoMessage() {} +func (*ImportRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{19} } func (m *ImportRequest) GetMutations() []*Mutation { if m != nil { @@ -2427,45 +1883,14 @@ func (m *ImportRequest) GetCommitVersion() uint64 { } type ImportResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ImportResponse) Reset() { *m = ImportResponse{} } -func (m *ImportResponse) String() string { return proto.CompactTextString(m) } -func (*ImportResponse) ProtoMessage() {} -func (*ImportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{20} -} -func (m *ImportResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ImportResponse.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 *ImportResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImportResponse.Merge(m, src) -} -func (m *ImportResponse) XXX_Size() int { - return m.Size() -} -func (m *ImportResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ImportResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_ImportResponse proto.InternalMessageInfo +func (m *ImportResponse) Reset() { *m = ImportResponse{} } +func (m *ImportResponse) String() string { return proto.CompactTextString(m) } +func (*ImportResponse) ProtoMessage() {} +func (*ImportResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{20} } func (m *ImportResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2484,50 +1909,19 @@ func (m *ImportResponse) GetError() string { // Cleanup a key by possibly unlocking it. // From 4.0 onwards, this message is no longer used. type CleanupRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The current timestamp, used in combination with a lock's TTL to determine // if the lock has expired. If `current_ts == 0`, then the key will be unlocked // irrespective of its TTL. - CurrentTs uint64 `protobuf:"varint,4,opt,name=current_ts,json=currentTs,proto3" json:"current_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{21} -} -func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupRequest.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 *CleanupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupRequest.Merge(m, src) -} -func (m *CleanupRequest) XXX_Size() int { - return m.Size() -} -func (m *CleanupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupRequest.DiscardUnknown(m) + CurrentTs uint64 `protobuf:"varint,4,opt,name=current_ts,json=currentTs,proto3" json:"current_ts,omitempty"` } -var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo +func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } +func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupRequest) ProtoMessage() {} +func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{21} } func (m *CleanupRequest) GetContext() *Context { if m != nil { @@ -2558,47 +1952,16 @@ func (m *CleanupRequest) GetCurrentTs() uint64 { } type CleanupResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // Set if the key is already committed. - CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{22} -} -func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CleanupResponse.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 *CleanupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CleanupResponse.Merge(m, src) -} -func (m *CleanupResponse) XXX_Size() int { - return m.Size() -} -func (m *CleanupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CleanupResponse.DiscardUnknown(m) + CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` } -var xxx_messageInfo_CleanupResponse proto.InternalMessageInfo +func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } +func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } +func (*CleanupResponse) ProtoMessage() {} +func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{22} } func (m *CleanupResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2623,46 +1986,15 @@ func (m *CleanupResponse) GetCommitVersion() uint64 { // Similar to a `Get` request. type BatchGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchGetRequest) Reset() { *m = BatchGetRequest{} } -func (m *BatchGetRequest) String() string { return proto.CompactTextString(m) } -func (*BatchGetRequest) ProtoMessage() {} -func (*BatchGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{23} -} -func (m *BatchGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchGetRequest.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 *BatchGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchGetRequest.Merge(m, src) -} -func (m *BatchGetRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchGetRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` } -var xxx_messageInfo_BatchGetRequest proto.InternalMessageInfo +func (m *BatchGetRequest) Reset() { *m = BatchGetRequest{} } +func (m *BatchGetRequest) String() string { return proto.CompactTextString(m) } +func (*BatchGetRequest) ProtoMessage() {} +func (*BatchGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{23} } func (m *BatchGetRequest) GetContext() *Context { if m != nil { @@ -2686,51 +2018,20 @@ func (m *BatchGetRequest) GetVersion() uint64 { } type BatchGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` // Time and scan details when processing the request. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` // This KeyError exists when some key is locked but we cannot check locks of all keys. // In this case, `pairs` should be empty and the client should redo batch get all the keys // after resolving the lock. - Error *KeyError `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchGetResponse) Reset() { *m = BatchGetResponse{} } -func (m *BatchGetResponse) String() string { return proto.CompactTextString(m) } -func (*BatchGetResponse) ProtoMessage() {} -func (*BatchGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{24} -} -func (m *BatchGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchGetResponse.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 *BatchGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchGetResponse.Merge(m, src) -} -func (m *BatchGetResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchGetResponse.DiscardUnknown(m) + Error *KeyError `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_BatchGetResponse proto.InternalMessageInfo +func (m *BatchGetResponse) Reset() { *m = BatchGetResponse{} } +func (m *BatchGetResponse) String() string { return proto.CompactTextString(m) } +func (*BatchGetResponse) ProtoMessage() {} +func (*BatchGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{24} } func (m *BatchGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2763,48 +2064,17 @@ func (m *BatchGetResponse) GetError() *KeyError { // Rollback a prewritten transaction. This will remove the preliminary data from the database, // unlock locks, and leave a rollback tombstone. type BatchRollbackRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // Identify the transaction to be rolled back. StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The keys to rollback. - Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchRollbackRequest) Reset() { *m = BatchRollbackRequest{} } -func (m *BatchRollbackRequest) String() string { return proto.CompactTextString(m) } -func (*BatchRollbackRequest) ProtoMessage() {} -func (*BatchRollbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{25} -} -func (m *BatchRollbackRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchRollbackRequest.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 *BatchRollbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchRollbackRequest.Merge(m, src) -} -func (m *BatchRollbackRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchRollbackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchRollbackRequest.DiscardUnknown(m) + Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` } -var xxx_messageInfo_BatchRollbackRequest proto.InternalMessageInfo +func (m *BatchRollbackRequest) Reset() { *m = BatchRollbackRequest{} } +func (m *BatchRollbackRequest) String() string { return proto.CompactTextString(m) } +func (*BatchRollbackRequest) ProtoMessage() {} +func (*BatchRollbackRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{25} } func (m *BatchRollbackRequest) GetContext() *Context { if m != nil { @@ -2828,47 +2098,16 @@ func (m *BatchRollbackRequest) GetKeys() [][]byte { } type BatchRollbackResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchRollbackResponse) Reset() { *m = BatchRollbackResponse{} } -func (m *BatchRollbackResponse) String() string { return proto.CompactTextString(m) } -func (*BatchRollbackResponse) ProtoMessage() {} -func (*BatchRollbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{26} -} -func (m *BatchRollbackResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchRollbackResponse.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 *BatchRollbackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchRollbackResponse.Merge(m, src) -} -func (m *BatchRollbackResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchRollbackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchRollbackResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_BatchRollbackResponse proto.InternalMessageInfo +func (m *BatchRollbackResponse) Reset() { *m = BatchRollbackResponse{} } +func (m *BatchRollbackResponse) String() string { return proto.CompactTextString(m) } +func (*BatchRollbackResponse) ProtoMessage() {} +func (*BatchRollbackResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{26} } func (m *BatchRollbackResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2894,7 +2133,7 @@ func (m *BatchRollbackResponse) GetExecDetailsV2() *ExecDetailsV2 { // Scan the database for locks. Used at the start of the GC process to find all // old locks. type ScanLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // Returns all locks with a start timestamp before `max_version`. MaxVersion uint64 `protobuf:"varint,2,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` // Start scanning from this key. @@ -2902,44 +2141,13 @@ type ScanLockRequest struct { // The maximum number of locks to return. Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // The exclusive upperbound for scanning. - EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanLockRequest) Reset() { *m = ScanLockRequest{} } -func (m *ScanLockRequest) String() string { return proto.CompactTextString(m) } -func (*ScanLockRequest) ProtoMessage() {} -func (*ScanLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{27} -} -func (m *ScanLockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanLockRequest.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 *ScanLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanLockRequest.Merge(m, src) -} -func (m *ScanLockRequest) XXX_Size() int { - return m.Size() -} -func (m *ScanLockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanLockRequest.DiscardUnknown(m) + EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } -var xxx_messageInfo_ScanLockRequest proto.InternalMessageInfo +func (m *ScanLockRequest) Reset() { *m = ScanLockRequest{} } +func (m *ScanLockRequest) String() string { return proto.CompactTextString(m) } +func (*ScanLockRequest) ProtoMessage() {} +func (*ScanLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{27} } func (m *ScanLockRequest) GetContext() *Context { if m != nil { @@ -2977,49 +2185,18 @@ func (m *ScanLockRequest) GetEndKey() []byte { } type ScanLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // Info on all locks found by the scan. - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanLockResponse) Reset() { *m = ScanLockResponse{} } -func (m *ScanLockResponse) String() string { return proto.CompactTextString(m) } -func (*ScanLockResponse) ProtoMessage() {} -func (*ScanLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{28} -} -func (m *ScanLockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanLockResponse.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 *ScanLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanLockResponse.Merge(m, src) -} -func (m *ScanLockResponse) XXX_Size() int { - return m.Size() -} -func (m *ScanLockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanLockResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_ScanLockResponse proto.InternalMessageInfo +func (m *ScanLockResponse) Reset() { *m = ScanLockResponse{} } +func (m *ScanLockResponse) String() string { return proto.CompactTextString(m) } +func (*ScanLockResponse) ProtoMessage() {} +func (*ScanLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{28} } func (m *ScanLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3052,51 +2229,20 @@ func (m *ScanLockResponse) GetExecDetailsV2() *ExecDetailsV2 { // For all keys locked by the transaction identified by `start_version`, either // commit or rollback the transaction and unlock the key. type ResolveLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // `commit_version == 0` means the transaction was rolled back. // `commit_version > 0` means the transaction was committed at the given timestamp. CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` - TxnInfos []*TxnInfo `protobuf:"bytes,4,rep,name=txn_infos,json=txnInfos,proto3" json:"txn_infos,omitempty"` + TxnInfos []*TxnInfo `protobuf:"bytes,4,rep,name=txn_infos,json=txnInfos" json:"txn_infos,omitempty"` // Only resolve specified keys. - Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResolveLockRequest) Reset() { *m = ResolveLockRequest{} } -func (m *ResolveLockRequest) String() string { return proto.CompactTextString(m) } -func (*ResolveLockRequest) ProtoMessage() {} -func (*ResolveLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{29} -} -func (m *ResolveLockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResolveLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResolveLockRequest.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 *ResolveLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveLockRequest.Merge(m, src) -} -func (m *ResolveLockRequest) XXX_Size() int { - return m.Size() -} -func (m *ResolveLockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveLockRequest.DiscardUnknown(m) + Keys [][]byte `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"` } -var xxx_messageInfo_ResolveLockRequest proto.InternalMessageInfo +func (m *ResolveLockRequest) Reset() { *m = ResolveLockRequest{} } +func (m *ResolveLockRequest) String() string { return proto.CompactTextString(m) } +func (*ResolveLockRequest) ProtoMessage() {} +func (*ResolveLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{29} } func (m *ResolveLockRequest) GetContext() *Context { if m != nil { @@ -3134,47 +2280,16 @@ func (m *ResolveLockRequest) GetKeys() [][]byte { } type ResolveLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResolveLockResponse) Reset() { *m = ResolveLockResponse{} } -func (m *ResolveLockResponse) String() string { return proto.CompactTextString(m) } -func (*ResolveLockResponse) ProtoMessage() {} -func (*ResolveLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{30} -} -func (m *ResolveLockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResolveLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResolveLockResponse.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 *ResolveLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveLockResponse.Merge(m, src) -} -func (m *ResolveLockResponse) XXX_Size() int { - return m.Size() -} -func (m *ResolveLockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveLockResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_ResolveLockResponse proto.InternalMessageInfo +func (m *ResolveLockResponse) Reset() { *m = ResolveLockResponse{} } +func (m *ResolveLockResponse) String() string { return proto.CompactTextString(m) } +func (*ResolveLockResponse) ProtoMessage() {} +func (*ResolveLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{30} } func (m *ResolveLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3199,45 +2314,14 @@ func (m *ResolveLockResponse) GetExecDetailsV2() *ExecDetailsV2 { // Request TiKV to garbage collect all non-current data older than `safe_point`. type GCRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GCRequest) Reset() { *m = GCRequest{} } -func (m *GCRequest) String() string { return proto.CompactTextString(m) } -func (*GCRequest) ProtoMessage() {} -func (*GCRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{31} -} -func (m *GCRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GCRequest.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 *GCRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GCRequest.Merge(m, src) -} -func (m *GCRequest) XXX_Size() int { - return m.Size() -} -func (m *GCRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GCRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } -var xxx_messageInfo_GCRequest proto.InternalMessageInfo +func (m *GCRequest) Reset() { *m = GCRequest{} } +func (m *GCRequest) String() string { return proto.CompactTextString(m) } +func (*GCRequest) ProtoMessage() {} +func (*GCRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{31} } func (m *GCRequest) GetContext() *Context { if m != nil { @@ -3254,45 +2338,14 @@ func (m *GCRequest) GetSafePoint() uint64 { } type GCResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GCResponse) Reset() { *m = GCResponse{} } -func (m *GCResponse) String() string { return proto.CompactTextString(m) } -func (*GCResponse) ProtoMessage() {} -func (*GCResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{32} -} -func (m *GCResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GCResponse.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 *GCResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GCResponse.Merge(m, src) -} -func (m *GCResponse) XXX_Size() int { - return m.Size() -} -func (m *GCResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GCResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_GCResponse proto.InternalMessageInfo +func (m *GCResponse) Reset() { *m = GCResponse{} } +func (m *GCResponse) String() string { return proto.CompactTextString(m) } +func (*GCResponse) ProtoMessage() {} +func (*GCResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{32} } func (m *GCResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3310,50 +2363,19 @@ func (m *GCResponse) GetError() *KeyError { // Delete a range of data from TiKV. type DeleteRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If true, the data will not be immediately deleted, but the operation will // still be replicated via Raft. This is used to notify TiKV that the data // will be deleted using `unsafe_destroy_range` soon. - NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } -func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeRequest) ProtoMessage() {} -func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{33} -} -func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRangeRequest.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 *DeleteRangeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRangeRequest.Merge(m, src) -} -func (m *DeleteRangeRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteRangeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m) + NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` } -var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo +func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } +func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeRequest) ProtoMessage() {} +func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{33} } func (m *DeleteRangeRequest) GetContext() *Context { if m != nil { @@ -3384,45 +2406,14 @@ func (m *DeleteRangeRequest) GetNotifyOnly() bool { } type DeleteRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } -func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeResponse) ProtoMessage() {} -func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{34} -} -func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRangeResponse.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 *DeleteRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRangeResponse.Merge(m, src) -} -func (m *DeleteRangeResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo +func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } +func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeResponse) ProtoMessage() {} +func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{34} } func (m *DeleteRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3442,52 +2433,23 @@ func (m *DeleteRangeResponse) GetError() string { // so that there is no any read, write or schedule operation could be proposed before // the actual flashback operation. type PrepareFlashbackToVersionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // The `start_ts` which we will use to write a lock to prevent // the `resolved_ts` from advancing during the whole process. StartTs uint64 `protobuf:"varint,4,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // The TS version which the data will flashback to later. - Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` } func (m *PrepareFlashbackToVersionRequest) Reset() { *m = PrepareFlashbackToVersionRequest{} } func (m *PrepareFlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionRequest) ProtoMessage() {} func (*PrepareFlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{35} -} -func (m *PrepareFlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareFlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareFlashbackToVersionRequest.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 *PrepareFlashbackToVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareFlashbackToVersionRequest.Merge(m, src) -} -func (m *PrepareFlashbackToVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *PrepareFlashbackToVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareFlashbackToVersionRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{35} } -var xxx_messageInfo_PrepareFlashbackToVersionRequest proto.InternalMessageInfo - func (m *PrepareFlashbackToVersionRequest) GetContext() *Context { if m != nil { return m.Context @@ -3524,46 +2486,17 @@ func (m *PrepareFlashbackToVersionRequest) GetVersion() uint64 { } type PrepareFlashbackToVersionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } func (m *PrepareFlashbackToVersionResponse) Reset() { *m = PrepareFlashbackToVersionResponse{} } func (m *PrepareFlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionResponse) ProtoMessage() {} func (*PrepareFlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{36} -} -func (m *PrepareFlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareFlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareFlashbackToVersionResponse.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 *PrepareFlashbackToVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareFlashbackToVersionResponse.Merge(m, src) -} -func (m *PrepareFlashbackToVersionResponse) XXX_Size() int { - return m.Size() -} -func (m *PrepareFlashbackToVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareFlashbackToVersionResponse.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{36} } -var xxx_messageInfo_PrepareFlashbackToVersionResponse proto.InternalMessageInfo - func (m *PrepareFlashbackToVersionResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -3582,52 +2515,23 @@ func (m *PrepareFlashbackToVersionResponse) GetError() string { // make sure the region is "locked" by `PrepareFlashbackToVersionRequest` first, // otherwise this request will fail. type FlashbackToVersionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // The TS version which the data should flashback to. Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // The `start_ts` and `commit_ts` which the newly written MVCC version will use. // Please make sure the `start_ts` is the same one in `PrepareFlashbackToVersionRequest`. - StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,6,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,6,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionRequest{} } func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{37} -} -func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorKvrpcpb, []int{37} } -func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackToVersionRequest.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 *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackToVersionRequest.Merge(m, src) -} -func (m *FlashbackToVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *FlashbackToVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackToVersionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FlashbackToVersionRequest proto.InternalMessageInfo func (m *FlashbackToVersionRequest) GetContext() *Context { if m != nil { @@ -3672,45 +2576,16 @@ func (m *FlashbackToVersionRequest) GetCommitTs() uint64 { } type FlashbackToVersionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionResponse{} } func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{38} -} -func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlashbackToVersionResponse.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 *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlashbackToVersionResponse.Merge(m, src) -} -func (m *FlashbackToVersionResponse) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{38} } -func (m *FlashbackToVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FlashbackToVersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FlashbackToVersionResponse proto.InternalMessageInfo func (m *FlashbackToVersionResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3727,46 +2602,15 @@ func (m *FlashbackToVersionResponse) GetError() string { } type RawGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawGetRequest) Reset() { *m = RawGetRequest{} } -func (m *RawGetRequest) String() string { return proto.CompactTextString(m) } -func (*RawGetRequest) ProtoMessage() {} -func (*RawGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{39} -} -func (m *RawGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawGetRequest.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 *RawGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawGetRequest.Merge(m, src) -} -func (m *RawGetRequest) XXX_Size() int { - return m.Size() -} -func (m *RawGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawGetRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` } -var xxx_messageInfo_RawGetRequest proto.InternalMessageInfo +func (m *RawGetRequest) Reset() { *m = RawGetRequest{} } +func (m *RawGetRequest) String() string { return proto.CompactTextString(m) } +func (*RawGetRequest) ProtoMessage() {} +func (*RawGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{39} } func (m *RawGetRequest) GetContext() *Context { if m != nil { @@ -3790,47 +2634,16 @@ func (m *RawGetRequest) GetCf() string { } type RawGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawGetResponse) Reset() { *m = RawGetResponse{} } -func (m *RawGetResponse) String() string { return proto.CompactTextString(m) } -func (*RawGetResponse) ProtoMessage() {} -func (*RawGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{40} -} -func (m *RawGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawGetResponse.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 *RawGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawGetResponse.Merge(m, src) -} -func (m *RawGetResponse) XXX_Size() int { - return m.Size() -} -func (m *RawGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawGetResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` } -var xxx_messageInfo_RawGetResponse proto.InternalMessageInfo +func (m *RawGetResponse) Reset() { *m = RawGetResponse{} } +func (m *RawGetResponse) String() string { return proto.CompactTextString(m) } +func (*RawGetResponse) ProtoMessage() {} +func (*RawGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{40} } func (m *RawGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3861,46 +2674,15 @@ func (m *RawGetResponse) GetNotFound() bool { } type RawBatchGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchGetRequest) Reset() { *m = RawBatchGetRequest{} } -func (m *RawBatchGetRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchGetRequest) ProtoMessage() {} -func (*RawBatchGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{41} -} -func (m *RawBatchGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchGetRequest.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 *RawBatchGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchGetRequest.Merge(m, src) -} -func (m *RawBatchGetRequest) XXX_Size() int { - return m.Size() -} -func (m *RawBatchGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchGetRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` } -var xxx_messageInfo_RawBatchGetRequest proto.InternalMessageInfo +func (m *RawBatchGetRequest) Reset() { *m = RawBatchGetRequest{} } +func (m *RawBatchGetRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchGetRequest) ProtoMessage() {} +func (*RawBatchGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{41} } func (m *RawBatchGetRequest) GetContext() *Context { if m != nil { @@ -3924,45 +2706,14 @@ func (m *RawBatchGetRequest) GetCf() string { } type RawBatchGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchGetResponse) Reset() { *m = RawBatchGetResponse{} } -func (m *RawBatchGetResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchGetResponse) ProtoMessage() {} -func (*RawBatchGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{42} -} -func (m *RawBatchGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchGetResponse.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 *RawBatchGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchGetResponse.Merge(m, src) -} -func (m *RawBatchGetResponse) XXX_Size() int { - return m.Size() -} -func (m *RawBatchGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchGetResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` } -var xxx_messageInfo_RawBatchGetResponse proto.InternalMessageInfo +func (m *RawBatchGetResponse) Reset() { *m = RawBatchGetResponse{} } +func (m *RawBatchGetResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchGetResponse) ProtoMessage() {} +func (*RawBatchGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{42} } func (m *RawBatchGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3979,49 +2730,18 @@ func (m *RawBatchGetResponse) GetPairs() []*KvPair { } type RawPutRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` - ForCas bool `protobuf:"varint,6,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawPutRequest) Reset() { *m = RawPutRequest{} } -func (m *RawPutRequest) String() string { return proto.CompactTextString(m) } -func (*RawPutRequest) ProtoMessage() {} -func (*RawPutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{43} -} -func (m *RawPutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawPutRequest.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 *RawPutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawPutRequest.Merge(m, src) -} -func (m *RawPutRequest) XXX_Size() int { - return m.Size() -} -func (m *RawPutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawPutRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` + Ttl uint64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + ForCas bool `protobuf:"varint,6,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` } -var xxx_messageInfo_RawPutRequest proto.InternalMessageInfo +func (m *RawPutRequest) Reset() { *m = RawPutRequest{} } +func (m *RawPutRequest) String() string { return proto.CompactTextString(m) } +func (*RawPutRequest) ProtoMessage() {} +func (*RawPutRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{43} } func (m *RawPutRequest) GetContext() *Context { if m != nil { @@ -4066,45 +2786,14 @@ func (m *RawPutRequest) GetForCas() bool { } type RawPutResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawPutResponse) Reset() { *m = RawPutResponse{} } -func (m *RawPutResponse) String() string { return proto.CompactTextString(m) } -func (*RawPutResponse) ProtoMessage() {} -func (*RawPutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{44} -} -func (m *RawPutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawPutResponse.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 *RawPutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawPutResponse.Merge(m, src) -} -func (m *RawPutResponse) XXX_Size() int { - return m.Size() -} -func (m *RawPutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawPutResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_RawPutResponse proto.InternalMessageInfo +func (m *RawPutResponse) Reset() { *m = RawPutResponse{} } +func (m *RawPutResponse) String() string { return proto.CompactTextString(m) } +func (*RawPutResponse) ProtoMessage() {} +func (*RawPutResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{44} } func (m *RawPutResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4121,52 +2810,21 @@ func (m *RawPutResponse) GetError() string { } type RawBatchPutRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` // Deprecated: Do not use. + Ttl uint64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` ForCas bool `protobuf:"varint,5,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` // The time-to-live for each keys in seconds, and if the length of `ttls` // is exactly one, the ttl will be applied to all keys. Otherwise, the length // mismatch between `ttls` and `pairs` will return an error. - Ttls []uint64 `protobuf:"varint,6,rep,packed,name=ttls,proto3" json:"ttls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchPutRequest) Reset() { *m = RawBatchPutRequest{} } -func (m *RawBatchPutRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchPutRequest) ProtoMessage() {} -func (*RawBatchPutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{45} -} -func (m *RawBatchPutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchPutRequest.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 *RawBatchPutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchPutRequest.Merge(m, src) -} -func (m *RawBatchPutRequest) XXX_Size() int { - return m.Size() -} -func (m *RawBatchPutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchPutRequest.DiscardUnknown(m) + Ttls []uint64 `protobuf:"varint,6,rep,packed,name=ttls" json:"ttls,omitempty"` } -var xxx_messageInfo_RawBatchPutRequest proto.InternalMessageInfo +func (m *RawBatchPutRequest) Reset() { *m = RawBatchPutRequest{} } +func (m *RawBatchPutRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchPutRequest) ProtoMessage() {} +func (*RawBatchPutRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{45} } func (m *RawBatchPutRequest) GetContext() *Context { if m != nil { @@ -4189,7 +2847,6 @@ func (m *RawBatchPutRequest) GetCf() string { return "" } -// Deprecated: Do not use. func (m *RawBatchPutRequest) GetTtl() uint64 { if m != nil { return m.Ttl @@ -4212,45 +2869,14 @@ func (m *RawBatchPutRequest) GetTtls() []uint64 { } type RawBatchPutResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchPutResponse) Reset() { *m = RawBatchPutResponse{} } -func (m *RawBatchPutResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchPutResponse) ProtoMessage() {} -func (*RawBatchPutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{46} -} -func (m *RawBatchPutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchPutResponse.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 *RawBatchPutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchPutResponse.Merge(m, src) -} -func (m *RawBatchPutResponse) XXX_Size() int { - return m.Size() -} -func (m *RawBatchPutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchPutResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_RawBatchPutResponse proto.InternalMessageInfo +func (m *RawBatchPutResponse) Reset() { *m = RawBatchPutResponse{} } +func (m *RawBatchPutResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchPutResponse) ProtoMessage() {} +func (*RawBatchPutResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{46} } func (m *RawBatchPutResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4267,47 +2893,16 @@ func (m *RawBatchPutResponse) GetError() string { } type RawDeleteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawDeleteRequest) Reset() { *m = RawDeleteRequest{} } -func (m *RawDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRequest) ProtoMessage() {} -func (*RawDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{47} -} -func (m *RawDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawDeleteRequest.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 *RawDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDeleteRequest.Merge(m, src) -} -func (m *RawDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RawDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawDeleteRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` } -var xxx_messageInfo_RawDeleteRequest proto.InternalMessageInfo +func (m *RawDeleteRequest) Reset() { *m = RawDeleteRequest{} } +func (m *RawDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRequest) ProtoMessage() {} +func (*RawDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{47} } func (m *RawDeleteRequest) GetContext() *Context { if m != nil { @@ -4338,45 +2933,14 @@ func (m *RawDeleteRequest) GetForCas() bool { } type RawDeleteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawDeleteResponse) Reset() { *m = RawDeleteResponse{} } -func (m *RawDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RawDeleteResponse) ProtoMessage() {} -func (*RawDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{48} -} -func (m *RawDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawDeleteResponse.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 *RawDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDeleteResponse.Merge(m, src) -} -func (m *RawDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RawDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawDeleteResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_RawDeleteResponse proto.InternalMessageInfo +func (m *RawDeleteResponse) Reset() { *m = RawDeleteResponse{} } +func (m *RawDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RawDeleteResponse) ProtoMessage() {} +func (*RawDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{48} } func (m *RawDeleteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4393,47 +2957,16 @@ func (m *RawDeleteResponse) GetError() string { } type RawBatchDeleteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchDeleteRequest) Reset() { *m = RawBatchDeleteRequest{} } -func (m *RawBatchDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchDeleteRequest) ProtoMessage() {} -func (*RawBatchDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{49} -} -func (m *RawBatchDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchDeleteRequest.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 *RawBatchDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchDeleteRequest.Merge(m, src) -} -func (m *RawBatchDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RawBatchDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchDeleteRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` } -var xxx_messageInfo_RawBatchDeleteRequest proto.InternalMessageInfo +func (m *RawBatchDeleteRequest) Reset() { *m = RawBatchDeleteRequest{} } +func (m *RawBatchDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchDeleteRequest) ProtoMessage() {} +func (*RawBatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{49} } func (m *RawBatchDeleteRequest) GetContext() *Context { if m != nil { @@ -4464,45 +2997,14 @@ func (m *RawBatchDeleteRequest) GetForCas() bool { } type RawBatchDeleteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchDeleteResponse) Reset() { *m = RawBatchDeleteResponse{} } -func (m *RawBatchDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchDeleteResponse) ProtoMessage() {} -func (*RawBatchDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{50} -} -func (m *RawBatchDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchDeleteResponse.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 *RawBatchDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchDeleteResponse.Merge(m, src) -} -func (m *RawBatchDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RawBatchDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchDeleteResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_RawBatchDeleteResponse proto.InternalMessageInfo +func (m *RawBatchDeleteResponse) Reset() { *m = RawBatchDeleteResponse{} } +func (m *RawBatchDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchDeleteResponse) ProtoMessage() {} +func (*RawBatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{50} } func (m *RawBatchDeleteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4519,7 +3021,7 @@ func (m *RawBatchDeleteResponse) GetError() string { } type RawScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` @@ -4527,44 +3029,13 @@ type RawScanRequest struct { Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` // For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key; // and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key. - EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawScanRequest) Reset() { *m = RawScanRequest{} } -func (m *RawScanRequest) String() string { return proto.CompactTextString(m) } -func (*RawScanRequest) ProtoMessage() {} -func (*RawScanRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{51} -} -func (m *RawScanRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawScanRequest.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 *RawScanRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawScanRequest.Merge(m, src) -} -func (m *RawScanRequest) XXX_Size() int { - return m.Size() -} -func (m *RawScanRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawScanRequest.DiscardUnknown(m) + EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } -var xxx_messageInfo_RawScanRequest proto.InternalMessageInfo +func (m *RawScanRequest) Reset() { *m = RawScanRequest{} } +func (m *RawScanRequest) String() string { return proto.CompactTextString(m) } +func (*RawScanRequest) ProtoMessage() {} +func (*RawScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{51} } func (m *RawScanRequest) GetContext() *Context { if m != nil { @@ -4616,45 +3087,14 @@ func (m *RawScanRequest) GetEndKey() []byte { } type RawScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawScanResponse) Reset() { *m = RawScanResponse{} } -func (m *RawScanResponse) String() string { return proto.CompactTextString(m) } -func (*RawScanResponse) ProtoMessage() {} -func (*RawScanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{52} -} -func (m *RawScanResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawScanResponse.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 *RawScanResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawScanResponse.Merge(m, src) -} -func (m *RawScanResponse) XXX_Size() int { - return m.Size() -} -func (m *RawScanResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawScanResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` } -var xxx_messageInfo_RawScanResponse proto.InternalMessageInfo +func (m *RawScanResponse) Reset() { *m = RawScanResponse{} } +func (m *RawScanResponse) String() string { return proto.CompactTextString(m) } +func (*RawScanResponse) ProtoMessage() {} +func (*RawScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{52} } func (m *RawScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4671,47 +3111,16 @@ func (m *RawScanResponse) GetKvs() []*KvPair { } type RawDeleteRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawDeleteRangeRequest) Reset() { *m = RawDeleteRangeRequest{} } -func (m *RawDeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRangeRequest) ProtoMessage() {} -func (*RawDeleteRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{53} -} -func (m *RawDeleteRangeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawDeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawDeleteRangeRequest.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 *RawDeleteRangeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDeleteRangeRequest.Merge(m, src) -} -func (m *RawDeleteRangeRequest) XXX_Size() int { - return m.Size() -} -func (m *RawDeleteRangeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawDeleteRangeRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` } -var xxx_messageInfo_RawDeleteRangeRequest proto.InternalMessageInfo +func (m *RawDeleteRangeRequest) Reset() { *m = RawDeleteRangeRequest{} } +func (m *RawDeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRangeRequest) ProtoMessage() {} +func (*RawDeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{53} } func (m *RawDeleteRangeRequest) GetContext() *Context { if m != nil { @@ -4742,45 +3151,14 @@ func (m *RawDeleteRangeRequest) GetCf() string { } type RawDeleteRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawDeleteRangeResponse) Reset() { *m = RawDeleteRangeResponse{} } -func (m *RawDeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRangeResponse) ProtoMessage() {} -func (*RawDeleteRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{54} -} -func (m *RawDeleteRangeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawDeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawDeleteRangeResponse.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 *RawDeleteRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawDeleteRangeResponse.Merge(m, src) -} -func (m *RawDeleteRangeResponse) XXX_Size() int { - return m.Size() -} -func (m *RawDeleteRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawDeleteRangeResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } -var xxx_messageInfo_RawDeleteRangeResponse proto.InternalMessageInfo +func (m *RawDeleteRangeResponse) Reset() { *m = RawDeleteRangeResponse{} } +func (m *RawDeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRangeResponse) ProtoMessage() {} +func (*RawDeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{54} } func (m *RawDeleteRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4797,49 +3175,18 @@ func (m *RawDeleteRangeResponse) GetError() string { } type RawBatchScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` - EachLimit uint32 `protobuf:"varint,3,opt,name=each_limit,json=eachLimit,proto3" json:"each_limit,omitempty"` - KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` - Cf string `protobuf:"bytes,5,opt,name=cf,proto3" json:"cf,omitempty"` - Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchScanRequest) Reset() { *m = RawBatchScanRequest{} } -func (m *RawBatchScanRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchScanRequest) ProtoMessage() {} -func (*RawBatchScanRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{55} -} -func (m *RawBatchScanRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchScanRequest.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 *RawBatchScanRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchScanRequest.Merge(m, src) -} -func (m *RawBatchScanRequest) XXX_Size() int { - return m.Size() -} -func (m *RawBatchScanRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchScanRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` + EachLimit uint32 `protobuf:"varint,3,opt,name=each_limit,json=eachLimit,proto3" json:"each_limit,omitempty"` + KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` + Cf string `protobuf:"bytes,5,opt,name=cf,proto3" json:"cf,omitempty"` + Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` } -var xxx_messageInfo_RawBatchScanRequest proto.InternalMessageInfo +func (m *RawBatchScanRequest) Reset() { *m = RawBatchScanRequest{} } +func (m *RawBatchScanRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchScanRequest) ProtoMessage() {} +func (*RawBatchScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{55} } func (m *RawBatchScanRequest) GetContext() *Context { if m != nil { @@ -4884,45 +3231,14 @@ func (m *RawBatchScanRequest) GetReverse() bool { } type RawBatchScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawBatchScanResponse) Reset() { *m = RawBatchScanResponse{} } -func (m *RawBatchScanResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchScanResponse) ProtoMessage() {} -func (*RawBatchScanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{56} -} -func (m *RawBatchScanResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawBatchScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawBatchScanResponse.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 *RawBatchScanResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawBatchScanResponse.Merge(m, src) -} -func (m *RawBatchScanResponse) XXX_Size() int { - return m.Size() -} -func (m *RawBatchScanResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawBatchScanResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` } -var xxx_messageInfo_RawBatchScanResponse proto.InternalMessageInfo +func (m *RawBatchScanResponse) Reset() { *m = RawBatchScanResponse{} } +func (m *RawBatchScanResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchScanResponse) ProtoMessage() {} +func (*RawBatchScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{56} } func (m *RawBatchScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -4939,47 +3255,18 @@ func (m *RawBatchScanResponse) GetKvs() []*KvPair { } type UnsafeDestroyRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } func (m *UnsafeDestroyRangeRequest) Reset() { *m = UnsafeDestroyRangeRequest{} } func (m *UnsafeDestroyRangeRequest) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeRequest) ProtoMessage() {} func (*UnsafeDestroyRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{57} -} -func (m *UnsafeDestroyRangeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UnsafeDestroyRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UnsafeDestroyRangeRequest.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 *UnsafeDestroyRangeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnsafeDestroyRangeRequest.Merge(m, src) -} -func (m *UnsafeDestroyRangeRequest) XXX_Size() int { - return m.Size() -} -func (m *UnsafeDestroyRangeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UnsafeDestroyRangeRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{57} } -var xxx_messageInfo_UnsafeDestroyRangeRequest proto.InternalMessageInfo - func (m *UnsafeDestroyRangeRequest) GetContext() *Context { if m != nil { return m.Context @@ -5002,45 +3289,16 @@ func (m *UnsafeDestroyRangeRequest) GetEndKey() []byte { } type UnsafeDestroyRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } func (m *UnsafeDestroyRangeResponse) Reset() { *m = UnsafeDestroyRangeResponse{} } func (m *UnsafeDestroyRangeResponse) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeResponse) ProtoMessage() {} func (*UnsafeDestroyRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{58} -} -func (m *UnsafeDestroyRangeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UnsafeDestroyRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UnsafeDestroyRangeResponse.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 *UnsafeDestroyRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnsafeDestroyRangeResponse.Merge(m, src) -} -func (m *UnsafeDestroyRangeResponse) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{58} } -func (m *UnsafeDestroyRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UnsafeDestroyRangeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UnsafeDestroyRangeResponse proto.InternalMessageInfo func (m *UnsafeDestroyRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5057,46 +3315,17 @@ func (m *UnsafeDestroyRangeResponse) GetError() string { } type RegisterLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` } func (m *RegisterLockObserverRequest) Reset() { *m = RegisterLockObserverRequest{} } func (m *RegisterLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverRequest) ProtoMessage() {} func (*RegisterLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{59} -} -func (m *RegisterLockObserverRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegisterLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterLockObserverRequest.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 *RegisterLockObserverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterLockObserverRequest.Merge(m, src) -} -func (m *RegisterLockObserverRequest) XXX_Size() int { - return m.Size() -} -func (m *RegisterLockObserverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterLockObserverRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{59} } -var xxx_messageInfo_RegisterLockObserverRequest proto.InternalMessageInfo - func (m *RegisterLockObserverRequest) GetContext() *Context { if m != nil { return m.Context @@ -5112,45 +3341,16 @@ func (m *RegisterLockObserverRequest) GetMaxTs() uint64 { } type RegisterLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } func (m *RegisterLockObserverResponse) Reset() { *m = RegisterLockObserverResponse{} } func (m *RegisterLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverResponse) ProtoMessage() {} func (*RegisterLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{60} -} -func (m *RegisterLockObserverResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegisterLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegisterLockObserverResponse.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 *RegisterLockObserverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterLockObserverResponse.Merge(m, src) -} -func (m *RegisterLockObserverResponse) XXX_Size() int { - return m.Size() -} -func (m *RegisterLockObserverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterLockObserverResponse.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{60} } -var xxx_messageInfo_RegisterLockObserverResponse proto.InternalMessageInfo - func (m *RegisterLockObserverResponse) GetError() string { if m != nil { return m.Error @@ -5159,45 +3359,16 @@ func (m *RegisterLockObserverResponse) GetError() string { } type CheckLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` } func (m *CheckLockObserverRequest) Reset() { *m = CheckLockObserverRequest{} } func (m *CheckLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverRequest) ProtoMessage() {} func (*CheckLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{61} -} -func (m *CheckLockObserverRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorKvrpcpb, []int{61} } -func (m *CheckLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckLockObserverRequest.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 *CheckLockObserverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckLockObserverRequest.Merge(m, src) -} -func (m *CheckLockObserverRequest) XXX_Size() int { - return m.Size() -} -func (m *CheckLockObserverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckLockObserverRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CheckLockObserverRequest proto.InternalMessageInfo func (m *CheckLockObserverRequest) GetContext() *Context { if m != nil { @@ -5214,46 +3385,17 @@ func (m *CheckLockObserverRequest) GetMaxTs() uint64 { } type CheckLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - IsClean bool `protobuf:"varint,2,opt,name=is_clean,json=isClean,proto3" json:"is_clean,omitempty"` - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + IsClean bool `protobuf:"varint,2,opt,name=is_clean,json=isClean,proto3" json:"is_clean,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` } func (m *CheckLockObserverResponse) Reset() { *m = CheckLockObserverResponse{} } func (m *CheckLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverResponse) ProtoMessage() {} func (*CheckLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{62} + return fileDescriptorKvrpcpb, []int{62} } -func (m *CheckLockObserverResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckLockObserverResponse.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 *CheckLockObserverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckLockObserverResponse.Merge(m, src) -} -func (m *CheckLockObserverResponse) XXX_Size() int { - return m.Size() -} -func (m *CheckLockObserverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckLockObserverResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CheckLockObserverResponse proto.InternalMessageInfo func (m *CheckLockObserverResponse) GetError() string { if m != nil { @@ -5277,46 +3419,17 @@ func (m *CheckLockObserverResponse) GetLocks() []*LockInfo { } type RemoveLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` } func (m *RemoveLockObserverRequest) Reset() { *m = RemoveLockObserverRequest{} } func (m *RemoveLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverRequest) ProtoMessage() {} func (*RemoveLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{63} -} -func (m *RemoveLockObserverRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveLockObserverRequest.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 *RemoveLockObserverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveLockObserverRequest.Merge(m, src) -} -func (m *RemoveLockObserverRequest) XXX_Size() int { - return m.Size() -} -func (m *RemoveLockObserverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveLockObserverRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{63} } -var xxx_messageInfo_RemoveLockObserverRequest proto.InternalMessageInfo - func (m *RemoveLockObserverRequest) GetContext() *Context { if m != nil { return m.Context @@ -5332,44 +3445,15 @@ func (m *RemoveLockObserverRequest) GetMaxTs() uint64 { } type RemoveLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } func (m *RemoveLockObserverResponse) Reset() { *m = RemoveLockObserverResponse{} } func (m *RemoveLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverResponse) ProtoMessage() {} func (*RemoveLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{64} -} -func (m *RemoveLockObserverResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveLockObserverResponse.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 *RemoveLockObserverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveLockObserverResponse.Merge(m, src) -} -func (m *RemoveLockObserverResponse) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{64} } -func (m *RemoveLockObserverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveLockObserverResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveLockObserverResponse proto.InternalMessageInfo func (m *RemoveLockObserverResponse) GetError() string { if m != nil { @@ -5379,47 +3463,16 @@ func (m *RemoveLockObserverResponse) GetError() string { } type PhysicalScanLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PhysicalScanLockRequest) Reset() { *m = PhysicalScanLockRequest{} } -func (m *PhysicalScanLockRequest) String() string { return proto.CompactTextString(m) } -func (*PhysicalScanLockRequest) ProtoMessage() {} -func (*PhysicalScanLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{65} -} -func (m *PhysicalScanLockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PhysicalScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PhysicalScanLockRequest.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 *PhysicalScanLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhysicalScanLockRequest.Merge(m, src) -} -func (m *PhysicalScanLockRequest) XXX_Size() int { - return m.Size() -} -func (m *PhysicalScanLockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PhysicalScanLockRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` } -var xxx_messageInfo_PhysicalScanLockRequest proto.InternalMessageInfo +func (m *PhysicalScanLockRequest) Reset() { *m = PhysicalScanLockRequest{} } +func (m *PhysicalScanLockRequest) String() string { return proto.CompactTextString(m) } +func (*PhysicalScanLockRequest) ProtoMessage() {} +func (*PhysicalScanLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{65} } func (m *PhysicalScanLockRequest) GetContext() *Context { if m != nil { @@ -5450,45 +3503,16 @@ func (m *PhysicalScanLockRequest) GetLimit() uint32 { } type PhysicalScanLockResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Locks []*LockInfo `protobuf:"bytes,2,rep,name=locks,proto3" json:"locks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Locks []*LockInfo `protobuf:"bytes,2,rep,name=locks" json:"locks,omitempty"` } func (m *PhysicalScanLockResponse) Reset() { *m = PhysicalScanLockResponse{} } func (m *PhysicalScanLockResponse) String() string { return proto.CompactTextString(m) } func (*PhysicalScanLockResponse) ProtoMessage() {} func (*PhysicalScanLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{66} + return fileDescriptorKvrpcpb, []int{66} } -func (m *PhysicalScanLockResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PhysicalScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PhysicalScanLockResponse.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 *PhysicalScanLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhysicalScanLockResponse.Merge(m, src) -} -func (m *PhysicalScanLockResponse) XXX_Size() int { - return m.Size() -} -func (m *PhysicalScanLockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PhysicalScanLockResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PhysicalScanLockResponse proto.InternalMessageInfo func (m *PhysicalScanLockResponse) GetError() string { if m != nil { @@ -5506,48 +3530,17 @@ func (m *PhysicalScanLockResponse) GetLocks() []*LockInfo { // Sent from PD to a TiKV node. type SplitRegionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - SplitKey []byte `protobuf:"bytes,2,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"` // Deprecated: Do not use. - SplitKeys [][]byte `protobuf:"bytes,3,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + SplitKey []byte `protobuf:"bytes,2,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"` + SplitKeys [][]byte `protobuf:"bytes,3,rep,name=split_keys,json=splitKeys" json:"split_keys,omitempty"` // Once enabled, the split_key will not be encoded. - IsRawKv bool `protobuf:"varint,4,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitRegionRequest) Reset() { *m = SplitRegionRequest{} } -func (m *SplitRegionRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRegionRequest) ProtoMessage() {} -func (*SplitRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{67} -} -func (m *SplitRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRegionRequest.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 *SplitRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionRequest.Merge(m, src) -} -func (m *SplitRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *SplitRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionRequest.DiscardUnknown(m) + IsRawKv bool `protobuf:"varint,4,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` } -var xxx_messageInfo_SplitRegionRequest proto.InternalMessageInfo +func (m *SplitRegionRequest) Reset() { *m = SplitRegionRequest{} } +func (m *SplitRegionRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRegionRequest) ProtoMessage() {} +func (*SplitRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{67} } func (m *SplitRegionRequest) GetContext() *Context { if m != nil { @@ -5556,7 +3549,6 @@ func (m *SplitRegionRequest) GetContext() *Context { return nil } -// Deprecated: Do not use. func (m *SplitRegionRequest) GetSplitKey() []byte { if m != nil { return m.SplitKey @@ -5579,47 +3571,16 @@ func (m *SplitRegionRequest) GetIsRawKv() bool { } type SplitRegionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Left *metapb.Region `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"` // Deprecated: Do not use. - Right *metapb.Region `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"` // Deprecated: Do not use. - Regions []*metapb.Region `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitRegionResponse) Reset() { *m = SplitRegionResponse{} } -func (m *SplitRegionResponse) String() string { return proto.CompactTextString(m) } -func (*SplitRegionResponse) ProtoMessage() {} -func (*SplitRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{68} -} -func (m *SplitRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRegionResponse.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 *SplitRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionResponse.Merge(m, src) -} -func (m *SplitRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *SplitRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Left *metapb.Region `protobuf:"bytes,2,opt,name=left" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_SplitRegionResponse proto.InternalMessageInfo +func (m *SplitRegionResponse) Reset() { *m = SplitRegionResponse{} } +func (m *SplitRegionResponse) String() string { return proto.CompactTextString(m) } +func (*SplitRegionResponse) ProtoMessage() {} +func (*SplitRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{68} } func (m *SplitRegionResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5628,7 +3589,6 @@ func (m *SplitRegionResponse) GetRegionError() *errorpb.Error { return nil } -// Deprecated: Do not use. func (m *SplitRegionResponse) GetLeft() *metapb.Region { if m != nil { return m.Left @@ -5636,7 +3596,6 @@ func (m *SplitRegionResponse) GetLeft() *metapb.Region { return nil } -// Deprecated: Do not use. func (m *SplitRegionResponse) GetRight() *metapb.Region { if m != nil { return m.Right @@ -5653,48 +3612,17 @@ func (m *SplitRegionResponse) GetRegions() []*metapb.Region { // Sent from TiFlash to a TiKV node. type ReadIndexRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // TiKV checks the given range if there is any unapplied lock // blocking the read request. - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } -func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ReadIndexRequest) ProtoMessage() {} -func (*ReadIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{69} -} -func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadIndexRequest.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 *ReadIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadIndexRequest.Merge(m, src) -} -func (m *ReadIndexRequest) XXX_Size() int { - return m.Size() -} -func (m *ReadIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadIndexRequest.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` } -var xxx_messageInfo_ReadIndexRequest proto.InternalMessageInfo +func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } +func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } +func (*ReadIndexRequest) ProtoMessage() {} +func (*ReadIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{69} } func (m *ReadIndexRequest) GetContext() *Context { if m != nil { @@ -5718,48 +3646,17 @@ func (m *ReadIndexRequest) GetRanges() []*KeyRange { } type ReadIndexResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` ReadIndex uint64 `protobuf:"varint,2,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` // If `locked` is set, this read request is blocked by a lock. // The lock should be returned to the client. - Locked *LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } -func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ReadIndexResponse) ProtoMessage() {} -func (*ReadIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{70} -} -func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadIndexResponse.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 *ReadIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadIndexResponse.Merge(m, src) -} -func (m *ReadIndexResponse) XXX_Size() int { - return m.Size() -} -func (m *ReadIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReadIndexResponse.DiscardUnknown(m) + Locked *LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` } -var xxx_messageInfo_ReadIndexResponse proto.InternalMessageInfo +func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } +func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } +func (*ReadIndexResponse) ProtoMessage() {} +func (*ReadIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{70} } func (m *ReadIndexResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5783,45 +3680,14 @@ func (m *ReadIndexResponse) GetLocked() *LockInfo { } type MvccGetByKeyRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccGetByKeyRequest) Reset() { *m = MvccGetByKeyRequest{} } -func (m *MvccGetByKeyRequest) String() string { return proto.CompactTextString(m) } -func (*MvccGetByKeyRequest) ProtoMessage() {} -func (*MvccGetByKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{71} -} -func (m *MvccGetByKeyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccGetByKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccGetByKeyRequest.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 *MvccGetByKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccGetByKeyRequest.Merge(m, src) -} -func (m *MvccGetByKeyRequest) XXX_Size() int { - return m.Size() -} -func (m *MvccGetByKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MvccGetByKeyRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` } -var xxx_messageInfo_MvccGetByKeyRequest proto.InternalMessageInfo +func (m *MvccGetByKeyRequest) Reset() { *m = MvccGetByKeyRequest{} } +func (m *MvccGetByKeyRequest) String() string { return proto.CompactTextString(m) } +func (*MvccGetByKeyRequest) ProtoMessage() {} +func (*MvccGetByKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{71} } func (m *MvccGetByKeyRequest) GetContext() *Context { if m != nil { @@ -5838,46 +3704,15 @@ func (m *MvccGetByKeyRequest) GetKey() []byte { } type MvccGetByKeyResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Info *MvccInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccGetByKeyResponse) Reset() { *m = MvccGetByKeyResponse{} } -func (m *MvccGetByKeyResponse) String() string { return proto.CompactTextString(m) } -func (*MvccGetByKeyResponse) ProtoMessage() {} -func (*MvccGetByKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{72} -} -func (m *MvccGetByKeyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccGetByKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccGetByKeyResponse.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 *MvccGetByKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccGetByKeyResponse.Merge(m, src) -} -func (m *MvccGetByKeyResponse) XXX_Size() int { - return m.Size() -} -func (m *MvccGetByKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MvccGetByKeyResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Info *MvccInfo `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` } -var xxx_messageInfo_MvccGetByKeyResponse proto.InternalMessageInfo +func (m *MvccGetByKeyResponse) Reset() { *m = MvccGetByKeyResponse{} } +func (m *MvccGetByKeyResponse) String() string { return proto.CompactTextString(m) } +func (*MvccGetByKeyResponse) ProtoMessage() {} +func (*MvccGetByKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{72} } func (m *MvccGetByKeyResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5901,45 +3736,14 @@ func (m *MvccGetByKeyResponse) GetInfo() *MvccInfo { } type MvccGetByStartTsRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccGetByStartTsRequest) Reset() { *m = MvccGetByStartTsRequest{} } -func (m *MvccGetByStartTsRequest) String() string { return proto.CompactTextString(m) } -func (*MvccGetByStartTsRequest) ProtoMessage() {} -func (*MvccGetByStartTsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{73} -} -func (m *MvccGetByStartTsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccGetByStartTsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccGetByStartTsRequest.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 *MvccGetByStartTsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccGetByStartTsRequest.Merge(m, src) -} -func (m *MvccGetByStartTsRequest) XXX_Size() int { - return m.Size() -} -func (m *MvccGetByStartTsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MvccGetByStartTsRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` } -var xxx_messageInfo_MvccGetByStartTsRequest proto.InternalMessageInfo +func (m *MvccGetByStartTsRequest) Reset() { *m = MvccGetByStartTsRequest{} } +func (m *MvccGetByStartTsRequest) String() string { return proto.CompactTextString(m) } +func (*MvccGetByStartTsRequest) ProtoMessage() {} +func (*MvccGetByStartTsRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{73} } func (m *MvccGetByStartTsRequest) GetContext() *Context { if m != nil { @@ -5956,47 +3760,18 @@ func (m *MvccGetByStartTsRequest) GetStartTs() uint64 { } type MvccGetByStartTsResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Info *MvccInfo `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Info *MvccInfo `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` } func (m *MvccGetByStartTsResponse) Reset() { *m = MvccGetByStartTsResponse{} } func (m *MvccGetByStartTsResponse) String() string { return proto.CompactTextString(m) } func (*MvccGetByStartTsResponse) ProtoMessage() {} func (*MvccGetByStartTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{74} + return fileDescriptorKvrpcpb, []int{74} } -func (m *MvccGetByStartTsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccGetByStartTsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccGetByStartTsResponse.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 *MvccGetByStartTsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccGetByStartTsResponse.Merge(m, src) -} -func (m *MvccGetByStartTsResponse) XXX_Size() int { - return m.Size() -} -func (m *MvccGetByStartTsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MvccGetByStartTsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MvccGetByStartTsResponse proto.InternalMessageInfo func (m *MvccGetByStartTsResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -6029,8 +3804,8 @@ func (m *MvccGetByStartTsResponse) GetInfo() *MvccInfo { // Miscellaneous metadata attached to most requests. type Context struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer" json:"peer,omitempty"` Term uint64 `protobuf:"varint,5,opt,name=term,proto3" json:"term,omitempty"` Priority CommandPri `protobuf:"varint,6,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` IsolationLevel IsolationLevel `protobuf:"varint,7,opt,name=isolation_level,json=isolationLevel,proto3,enum=kvrpcpb.IsolationLevel" json:"isolation_level,omitempty"` @@ -6043,7 +3818,7 @@ type Context struct { ReplicaRead bool `protobuf:"varint,12,opt,name=replica_read,json=replicaRead,proto3" json:"replica_read,omitempty"` // Read requests can ignore locks belonging to these transactions because either // these transactions are rolled back or theirs commit_ts > read request's start_ts. - ResolvedLocks []uint64 `protobuf:"varint,13,rep,packed,name=resolved_locks,json=resolvedLocks,proto3" json:"resolved_locks,omitempty"` + ResolvedLocks []uint64 `protobuf:"varint,13,rep,packed,name=resolved_locks,json=resolvedLocks" json:"resolved_locks,omitempty"` MaxExecutionDurationMs uint64 `protobuf:"varint,14,opt,name=max_execution_duration_ms,json=maxExecutionDurationMs,proto3" json:"max_execution_duration_ms,omitempty"` // After a region applies to `applied_index`, we can get a // snapshot for the region even if the peer is a follower. @@ -6064,9 +3839,9 @@ type Context struct { ApiVersion APIVersion `protobuf:"varint,21,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // Read request should read through locks belonging to these transactions because these // transactions are committed and theirs commit_ts <= read request's start_ts. - CommittedLocks []uint64 `protobuf:"varint,22,rep,packed,name=committed_locks,json=committedLocks,proto3" json:"committed_locks,omitempty"` + CommittedLocks []uint64 `protobuf:"varint,22,rep,packed,name=committed_locks,json=committedLocks" json:"committed_locks,omitempty"` // The informantion to trace a request sent to TiKV. - TraceContext *tracepb.TraceContext `protobuf:"bytes,23,opt,name=trace_context,json=traceContext,proto3" json:"trace_context,omitempty"` + TraceContext *tracepb.TraceContext `protobuf:"bytes,23,opt,name=trace_context,json=traceContext" json:"trace_context,omitempty"` // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. RequestSource string `protobuf:"bytes,24,opt,name=request_source,json=requestSource,proto3" json:"request_source,omitempty"` @@ -6076,7 +3851,7 @@ type Context struct { // error before processing if the estimated waiting duration exceeds the threshold. BusyThresholdMs uint32 `protobuf:"varint,27,opt,name=busy_threshold_ms,json=busyThresholdMs,proto3" json:"busy_threshold_ms,omitempty"` // Some information used for resource control. - ResourceControlContext *ResourceControlContext `protobuf:"bytes,28,opt,name=resource_control_context,json=resourceControlContext,proto3" json:"resource_control_context,omitempty"` + ResourceControlContext *ResourceControlContext `protobuf:"bytes,28,opt,name=resource_control_context,json=resourceControlContext" json:"resource_control_context,omitempty"` // The keyspace that the request is sent to. // NOTE: This field is only meaningful while the api_version is V2. KeyspaceId uint32 `protobuf:"varint,32,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` @@ -6085,44 +3860,13 @@ type Context struct { BucketsVersion uint64 `protobuf:"varint,33,opt,name=buckets_version,json=bucketsVersion,proto3" json:"buckets_version,omitempty"` // It tells us where the request comes from in TiDB. If it isn't from TiDB, leave it blank. // This is for tests only and thus can be safely changed/removed without affecting compatibility. - SourceStmt *SourceStmt `protobuf:"bytes,34,opt,name=source_stmt,json=sourceStmt,proto3" json:"source_stmt,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Context) Reset() { *m = Context{} } -func (m *Context) String() string { return proto.CompactTextString(m) } -func (*Context) ProtoMessage() {} -func (*Context) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{75} -} -func (m *Context) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Context.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 *Context) XXX_Merge(src proto.Message) { - xxx_messageInfo_Context.Merge(m, src) -} -func (m *Context) XXX_Size() int { - return m.Size() -} -func (m *Context) XXX_DiscardUnknown() { - xxx_messageInfo_Context.DiscardUnknown(m) + SourceStmt *SourceStmt `protobuf:"bytes,34,opt,name=source_stmt,json=sourceStmt" json:"source_stmt,omitempty"` } -var xxx_messageInfo_Context proto.InternalMessageInfo +func (m *Context) Reset() { *m = Context{} } +func (m *Context) String() string { return proto.CompactTextString(m) } +func (*Context) ProtoMessage() {} +func (*Context) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{75} } func (m *Context) GetRegionId() uint64 { if m != nil { @@ -6332,47 +4076,16 @@ type ResourceControlContext struct { ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` // The resource consumption of the resource group that have completed at all TiKVs between the previous request to this TiKV and current request. // It's used as penalty to make the local resource scheduling on one TiKV takes the gloabl resource consumption into consideration. - Penalty *resource_manager.Consumption `protobuf:"bytes,2,opt,name=penalty,proto3" json:"penalty,omitempty"` + Penalty *resource_manager.Consumption `protobuf:"bytes,2,opt,name=penalty" json:"penalty,omitempty"` // This priority would override the original priority of the resource group for the request. // Used to deprioritize the runaway queries. - OverridePriority uint64 `protobuf:"varint,3,opt,name=override_priority,json=overridePriority,proto3" json:"override_priority,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourceControlContext) Reset() { *m = ResourceControlContext{} } -func (m *ResourceControlContext) String() string { return proto.CompactTextString(m) } -func (*ResourceControlContext) ProtoMessage() {} -func (*ResourceControlContext) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{76} -} -func (m *ResourceControlContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceControlContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceControlContext.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 *ResourceControlContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceControlContext.Merge(m, src) -} -func (m *ResourceControlContext) XXX_Size() int { - return m.Size() -} -func (m *ResourceControlContext) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceControlContext.DiscardUnknown(m) + OverridePriority uint64 `protobuf:"varint,3,opt,name=override_priority,json=overridePriority,proto3" json:"override_priority,omitempty"` } -var xxx_messageInfo_ResourceControlContext proto.InternalMessageInfo +func (m *ResourceControlContext) Reset() { *m = ResourceControlContext{} } +func (m *ResourceControlContext) String() string { return proto.CompactTextString(m) } +func (*ResourceControlContext) ProtoMessage() {} +func (*ResourceControlContext) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{76} } func (m *ResourceControlContext) GetResourceGroupName() string { if m != nil { @@ -6400,44 +4113,13 @@ type SourceStmt struct { ConnectionId uint64 `protobuf:"varint,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` StmtId uint64 `protobuf:"varint,3,opt,name=stmt_id,json=stmtId,proto3" json:"stmt_id,omitempty"` // session alias set by user - SessionAlias string `protobuf:"bytes,4,opt,name=session_alias,json=sessionAlias,proto3" json:"session_alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SourceStmt) Reset() { *m = SourceStmt{} } -func (m *SourceStmt) String() string { return proto.CompactTextString(m) } -func (*SourceStmt) ProtoMessage() {} -func (*SourceStmt) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{77} -} -func (m *SourceStmt) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SourceStmt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SourceStmt.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 *SourceStmt) XXX_Merge(src proto.Message) { - xxx_messageInfo_SourceStmt.Merge(m, src) -} -func (m *SourceStmt) XXX_Size() int { - return m.Size() -} -func (m *SourceStmt) XXX_DiscardUnknown() { - xxx_messageInfo_SourceStmt.DiscardUnknown(m) + SessionAlias string `protobuf:"bytes,4,opt,name=session_alias,json=sessionAlias,proto3" json:"session_alias,omitempty"` } -var xxx_messageInfo_SourceStmt proto.InternalMessageInfo +func (m *SourceStmt) Reset() { *m = SourceStmt{} } +func (m *SourceStmt) String() string { return proto.CompactTextString(m) } +func (*SourceStmt) ProtoMessage() {} +func (*SourceStmt) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{77} } func (m *SourceStmt) GetStartTs() uint64 { if m != nil { @@ -6479,48 +4161,17 @@ type LockInfo struct { // Fields for transactions that are using Async Commit. UseAsyncCommit bool `protobuf:"varint,8,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` MinCommitTs uint64 `protobuf:"varint,9,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - Secondaries [][]byte `protobuf:"bytes,10,rep,name=secondaries,proto3" json:"secondaries,omitempty"` + Secondaries [][]byte `protobuf:"bytes,10,rep,name=secondaries" json:"secondaries,omitempty"` // The time elapsed since last update of lock wait info when waiting. // It's used in timeout errors. 0 means unknown or not applicable. // It can be used to help the client decide whether to try resolving the lock. - DurationToLastUpdateMs uint64 `protobuf:"varint,11,opt,name=duration_to_last_update_ms,json=durationToLastUpdateMs,proto3" json:"duration_to_last_update_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LockInfo) Reset() { *m = LockInfo{} } -func (m *LockInfo) String() string { return proto.CompactTextString(m) } -func (*LockInfo) ProtoMessage() {} -func (*LockInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{78} -} -func (m *LockInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LockInfo.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 *LockInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_LockInfo.Merge(m, src) -} -func (m *LockInfo) XXX_Size() int { - return m.Size() -} -func (m *LockInfo) XXX_DiscardUnknown() { - xxx_messageInfo_LockInfo.DiscardUnknown(m) + DurationToLastUpdateMs uint64 `protobuf:"varint,11,opt,name=duration_to_last_update_ms,json=durationToLastUpdateMs,proto3" json:"duration_to_last_update_ms,omitempty"` } -var xxx_messageInfo_LockInfo proto.InternalMessageInfo +func (m *LockInfo) Reset() { *m = LockInfo{} } +func (m *LockInfo) String() string { return proto.CompactTextString(m) } +func (*LockInfo) ProtoMessage() {} +func (*LockInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{78} } func (m *LockInfo) GetPrimaryLock() []byte { if m != nil { @@ -6600,54 +4251,23 @@ func (m *LockInfo) GetDurationToLastUpdateMs() uint64 { } type KeyError struct { - Locked *LockInfo `protobuf:"bytes,1,opt,name=locked,proto3" json:"locked,omitempty"` - Retryable string `protobuf:"bytes,2,opt,name=retryable,proto3" json:"retryable,omitempty"` - Abort string `protobuf:"bytes,3,opt,name=abort,proto3" json:"abort,omitempty"` - Conflict *WriteConflict `protobuf:"bytes,4,opt,name=conflict,proto3" json:"conflict,omitempty"` - AlreadyExist *AlreadyExist `protobuf:"bytes,5,opt,name=already_exist,json=alreadyExist,proto3" json:"already_exist,omitempty"` - Deadlock *Deadlock `protobuf:"bytes,6,opt,name=deadlock,proto3" json:"deadlock,omitempty"` - CommitTsExpired *CommitTsExpired `protobuf:"bytes,7,opt,name=commit_ts_expired,json=commitTsExpired,proto3" json:"commit_ts_expired,omitempty"` - TxnNotFound *TxnNotFound `protobuf:"bytes,8,opt,name=txn_not_found,json=txnNotFound,proto3" json:"txn_not_found,omitempty"` - CommitTsTooLarge *CommitTsTooLarge `protobuf:"bytes,9,opt,name=commit_ts_too_large,json=commitTsTooLarge,proto3" json:"commit_ts_too_large,omitempty"` - AssertionFailed *AssertionFailed `protobuf:"bytes,10,opt,name=assertion_failed,json=assertionFailed,proto3" json:"assertion_failed,omitempty"` - PrimaryMismatch *PrimaryMismatch `protobuf:"bytes,11,opt,name=primary_mismatch,json=primaryMismatch,proto3" json:"primary_mismatch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyError) Reset() { *m = KeyError{} } -func (m *KeyError) String() string { return proto.CompactTextString(m) } -func (*KeyError) ProtoMessage() {} -func (*KeyError) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{79} -} -func (m *KeyError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyError.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 *KeyError) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyError.Merge(m, src) -} -func (m *KeyError) XXX_Size() int { - return m.Size() -} -func (m *KeyError) XXX_DiscardUnknown() { - xxx_messageInfo_KeyError.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyError proto.InternalMessageInfo + Locked *LockInfo `protobuf:"bytes,1,opt,name=locked" json:"locked,omitempty"` + Retryable string `protobuf:"bytes,2,opt,name=retryable,proto3" json:"retryable,omitempty"` + Abort string `protobuf:"bytes,3,opt,name=abort,proto3" json:"abort,omitempty"` + Conflict *WriteConflict `protobuf:"bytes,4,opt,name=conflict" json:"conflict,omitempty"` + AlreadyExist *AlreadyExist `protobuf:"bytes,5,opt,name=already_exist,json=alreadyExist" json:"already_exist,omitempty"` + Deadlock *Deadlock `protobuf:"bytes,6,opt,name=deadlock" json:"deadlock,omitempty"` + CommitTsExpired *CommitTsExpired `protobuf:"bytes,7,opt,name=commit_ts_expired,json=commitTsExpired" json:"commit_ts_expired,omitempty"` + TxnNotFound *TxnNotFound `protobuf:"bytes,8,opt,name=txn_not_found,json=txnNotFound" json:"txn_not_found,omitempty"` + CommitTsTooLarge *CommitTsTooLarge `protobuf:"bytes,9,opt,name=commit_ts_too_large,json=commitTsTooLarge" json:"commit_ts_too_large,omitempty"` + AssertionFailed *AssertionFailed `protobuf:"bytes,10,opt,name=assertion_failed,json=assertionFailed" json:"assertion_failed,omitempty"` + PrimaryMismatch *PrimaryMismatch `protobuf:"bytes,11,opt,name=primary_mismatch,json=primaryMismatch" json:"primary_mismatch,omitempty"` +} + +func (m *KeyError) Reset() { *m = KeyError{} } +func (m *KeyError) String() string { return proto.CompactTextString(m) } +func (*KeyError) ProtoMessage() {} +func (*KeyError) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{79} } func (m *KeyError) GetLocked() *LockInfo { if m != nil { @@ -6727,49 +4347,18 @@ func (m *KeyError) GetPrimaryMismatch() *PrimaryMismatch { } type WriteConflict struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - ConflictTs uint64 `protobuf:"varint,2,opt,name=conflict_ts,json=conflictTs,proto3" json:"conflict_ts,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Primary []byte `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` - ConflictCommitTs uint64 `protobuf:"varint,5,opt,name=conflict_commit_ts,json=conflictCommitTs,proto3" json:"conflict_commit_ts,omitempty"` - Reason WriteConflict_Reason `protobuf:"varint,6,opt,name=reason,proto3,enum=kvrpcpb.WriteConflict_Reason" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteConflict) Reset() { *m = WriteConflict{} } -func (m *WriteConflict) String() string { return proto.CompactTextString(m) } -func (*WriteConflict) ProtoMessage() {} -func (*WriteConflict) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{80} -} -func (m *WriteConflict) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteConflict.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 *WriteConflict) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteConflict.Merge(m, src) -} -func (m *WriteConflict) XXX_Size() int { - return m.Size() -} -func (m *WriteConflict) XXX_DiscardUnknown() { - xxx_messageInfo_WriteConflict.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + ConflictTs uint64 `protobuf:"varint,2,opt,name=conflict_ts,json=conflictTs,proto3" json:"conflict_ts,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Primary []byte `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` + ConflictCommitTs uint64 `protobuf:"varint,5,opt,name=conflict_commit_ts,json=conflictCommitTs,proto3" json:"conflict_commit_ts,omitempty"` + Reason WriteConflict_Reason `protobuf:"varint,6,opt,name=reason,proto3,enum=kvrpcpb.WriteConflict_Reason" json:"reason,omitempty"` } -var xxx_messageInfo_WriteConflict proto.InternalMessageInfo +func (m *WriteConflict) Reset() { *m = WriteConflict{} } +func (m *WriteConflict) String() string { return proto.CompactTextString(m) } +func (*WriteConflict) ProtoMessage() {} +func (*WriteConflict) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{80} } func (m *WriteConflict) GetStartTs() uint64 { if m != nil { @@ -6814,44 +4403,13 @@ func (m *WriteConflict) GetReason() WriteConflict_Reason { } type AlreadyExist struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AlreadyExist) Reset() { *m = AlreadyExist{} } -func (m *AlreadyExist) String() string { return proto.CompactTextString(m) } -func (*AlreadyExist) ProtoMessage() {} -func (*AlreadyExist) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{81} -} -func (m *AlreadyExist) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AlreadyExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AlreadyExist.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 *AlreadyExist) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlreadyExist.Merge(m, src) -} -func (m *AlreadyExist) XXX_Size() int { - return m.Size() -} -func (m *AlreadyExist) XXX_DiscardUnknown() { - xxx_messageInfo_AlreadyExist.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` } -var xxx_messageInfo_AlreadyExist proto.InternalMessageInfo +func (m *AlreadyExist) Reset() { *m = AlreadyExist{} } +func (m *AlreadyExist) String() string { return proto.CompactTextString(m) } +func (*AlreadyExist) ProtoMessage() {} +func (*AlreadyExist) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{81} } func (m *AlreadyExist) GetKey() []byte { if m != nil { @@ -6861,47 +4419,16 @@ func (m *AlreadyExist) GetKey() []byte { } type Deadlock struct { - LockTs uint64 `protobuf:"varint,1,opt,name=lock_ts,json=lockTs,proto3" json:"lock_ts,omitempty"` - LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` - DeadlockKeyHash uint64 `protobuf:"varint,3,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` - WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Deadlock) Reset() { *m = Deadlock{} } -func (m *Deadlock) String() string { return proto.CompactTextString(m) } -func (*Deadlock) ProtoMessage() {} -func (*Deadlock) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{82} -} -func (m *Deadlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deadlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Deadlock.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 *Deadlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deadlock.Merge(m, src) -} -func (m *Deadlock) XXX_Size() int { - return m.Size() -} -func (m *Deadlock) XXX_DiscardUnknown() { - xxx_messageInfo_Deadlock.DiscardUnknown(m) + LockTs uint64 `protobuf:"varint,1,opt,name=lock_ts,json=lockTs,proto3" json:"lock_ts,omitempty"` + LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` + DeadlockKeyHash uint64 `protobuf:"varint,3,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` + WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` } -var xxx_messageInfo_Deadlock proto.InternalMessageInfo +func (m *Deadlock) Reset() { *m = Deadlock{} } +func (m *Deadlock) String() string { return proto.CompactTextString(m) } +func (*Deadlock) ProtoMessage() {} +func (*Deadlock) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{82} } func (m *Deadlock) GetLockTs() uint64 { if m != nil { @@ -6932,47 +4459,16 @@ func (m *Deadlock) GetWaitChain() []*deadlock.WaitForEntry { } type CommitTsExpired struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - AttemptedCommitTs uint64 `protobuf:"varint,2,opt,name=attempted_commit_ts,json=attemptedCommitTs,proto3" json:"attempted_commit_ts,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - MinCommitTs uint64 `protobuf:"varint,4,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitTsExpired) Reset() { *m = CommitTsExpired{} } -func (m *CommitTsExpired) String() string { return proto.CompactTextString(m) } -func (*CommitTsExpired) ProtoMessage() {} -func (*CommitTsExpired) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{83} -} -func (m *CommitTsExpired) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitTsExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitTsExpired.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 *CommitTsExpired) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitTsExpired.Merge(m, src) -} -func (m *CommitTsExpired) XXX_Size() int { - return m.Size() -} -func (m *CommitTsExpired) XXX_DiscardUnknown() { - xxx_messageInfo_CommitTsExpired.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + AttemptedCommitTs uint64 `protobuf:"varint,2,opt,name=attempted_commit_ts,json=attemptedCommitTs,proto3" json:"attempted_commit_ts,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + MinCommitTs uint64 `protobuf:"varint,4,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` } -var xxx_messageInfo_CommitTsExpired proto.InternalMessageInfo +func (m *CommitTsExpired) Reset() { *m = CommitTsExpired{} } +func (m *CommitTsExpired) String() string { return proto.CompactTextString(m) } +func (*CommitTsExpired) ProtoMessage() {} +func (*CommitTsExpired) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{83} } func (m *CommitTsExpired) GetStartTs() uint64 { if m != nil { @@ -7003,45 +4499,14 @@ func (m *CommitTsExpired) GetMinCommitTs() uint64 { } type TxnNotFound struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnNotFound) Reset() { *m = TxnNotFound{} } -func (m *TxnNotFound) String() string { return proto.CompactTextString(m) } -func (*TxnNotFound) ProtoMessage() {} -func (*TxnNotFound) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{84} -} -func (m *TxnNotFound) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnNotFound.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 *TxnNotFound) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnNotFound.Merge(m, src) -} -func (m *TxnNotFound) XXX_Size() int { - return m.Size() -} -func (m *TxnNotFound) XXX_DiscardUnknown() { - xxx_messageInfo_TxnNotFound.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` } -var xxx_messageInfo_TxnNotFound proto.InternalMessageInfo +func (m *TxnNotFound) Reset() { *m = TxnNotFound{} } +func (m *TxnNotFound) String() string { return proto.CompactTextString(m) } +func (*TxnNotFound) ProtoMessage() {} +func (*TxnNotFound) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{84} } func (m *TxnNotFound) GetStartTs() uint64 { if m != nil { @@ -7058,44 +4523,13 @@ func (m *TxnNotFound) GetPrimaryKey() []byte { } type CommitTsTooLarge struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitTsTooLarge) Reset() { *m = CommitTsTooLarge{} } -func (m *CommitTsTooLarge) String() string { return proto.CompactTextString(m) } -func (*CommitTsTooLarge) ProtoMessage() {} -func (*CommitTsTooLarge) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{85} -} -func (m *CommitTsTooLarge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitTsTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitTsTooLarge.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 *CommitTsTooLarge) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitTsTooLarge.Merge(m, src) -} -func (m *CommitTsTooLarge) XXX_Size() int { - return m.Size() -} -func (m *CommitTsTooLarge) XXX_DiscardUnknown() { - xxx_messageInfo_CommitTsTooLarge.DiscardUnknown(m) + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } -var xxx_messageInfo_CommitTsTooLarge proto.InternalMessageInfo +func (m *CommitTsTooLarge) Reset() { *m = CommitTsTooLarge{} } +func (m *CommitTsTooLarge) String() string { return proto.CompactTextString(m) } +func (*CommitTsTooLarge) ProtoMessage() {} +func (*CommitTsTooLarge) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{85} } func (m *CommitTsTooLarge) GetCommitTs() uint64 { if m != nil { @@ -7105,48 +4539,17 @@ func (m *CommitTsTooLarge) GetCommitTs() uint64 { } type AssertionFailed struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Assertion Assertion `protobuf:"varint,3,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` - ExistingStartTs uint64 `protobuf:"varint,4,opt,name=existing_start_ts,json=existingStartTs,proto3" json:"existing_start_ts,omitempty"` - ExistingCommitTs uint64 `protobuf:"varint,5,opt,name=existing_commit_ts,json=existingCommitTs,proto3" json:"existing_commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssertionFailed) Reset() { *m = AssertionFailed{} } -func (m *AssertionFailed) String() string { return proto.CompactTextString(m) } -func (*AssertionFailed) ProtoMessage() {} -func (*AssertionFailed) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{86} -} -func (m *AssertionFailed) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssertionFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssertionFailed.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 *AssertionFailed) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssertionFailed.Merge(m, src) -} -func (m *AssertionFailed) XXX_Size() int { - return m.Size() -} -func (m *AssertionFailed) XXX_DiscardUnknown() { - xxx_messageInfo_AssertionFailed.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Assertion Assertion `protobuf:"varint,3,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` + ExistingStartTs uint64 `protobuf:"varint,4,opt,name=existing_start_ts,json=existingStartTs,proto3" json:"existing_start_ts,omitempty"` + ExistingCommitTs uint64 `protobuf:"varint,5,opt,name=existing_commit_ts,json=existingCommitTs,proto3" json:"existing_commit_ts,omitempty"` } -var xxx_messageInfo_AssertionFailed proto.InternalMessageInfo +func (m *AssertionFailed) Reset() { *m = AssertionFailed{} } +func (m *AssertionFailed) String() string { return proto.CompactTextString(m) } +func (*AssertionFailed) ProtoMessage() {} +func (*AssertionFailed) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{86} } func (m *AssertionFailed) GetStartTs() uint64 { if m != nil { @@ -7184,44 +4587,13 @@ func (m *AssertionFailed) GetExistingCommitTs() uint64 { } type PrimaryMismatch struct { - LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo,proto3" json:"lock_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrimaryMismatch) Reset() { *m = PrimaryMismatch{} } -func (m *PrimaryMismatch) String() string { return proto.CompactTextString(m) } -func (*PrimaryMismatch) ProtoMessage() {} -func (*PrimaryMismatch) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{87} -} -func (m *PrimaryMismatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrimaryMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrimaryMismatch.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 *PrimaryMismatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrimaryMismatch.Merge(m, src) -} -func (m *PrimaryMismatch) XXX_Size() int { - return m.Size() -} -func (m *PrimaryMismatch) XXX_DiscardUnknown() { - xxx_messageInfo_PrimaryMismatch.DiscardUnknown(m) + LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo" json:"lock_info,omitempty"` } -var xxx_messageInfo_PrimaryMismatch proto.InternalMessageInfo +func (m *PrimaryMismatch) Reset() { *m = PrimaryMismatch{} } +func (m *PrimaryMismatch) String() string { return proto.CompactTextString(m) } +func (*PrimaryMismatch) ProtoMessage() {} +func (*PrimaryMismatch) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{87} } func (m *PrimaryMismatch) GetLockInfo() *LockInfo { if m != nil { @@ -7243,44 +4615,13 @@ type TimeDetail struct { // KV read wall Time means the time used in key/value scan and get. KvReadWallTimeMs uint64 `protobuf:"varint,3,opt,name=kv_read_wall_time_ms,json=kvReadWallTimeMs,proto3" json:"kv_read_wall_time_ms,omitempty"` // Total wall clock time spent on this RPC in TiKV . - TotalRpcWallTimeNs uint64 `protobuf:"varint,4,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TimeDetail) Reset() { *m = TimeDetail{} } -func (m *TimeDetail) String() string { return proto.CompactTextString(m) } -func (*TimeDetail) ProtoMessage() {} -func (*TimeDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{88} -} -func (m *TimeDetail) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeDetail.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 *TimeDetail) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeDetail.Merge(m, src) -} -func (m *TimeDetail) XXX_Size() int { - return m.Size() -} -func (m *TimeDetail) XXX_DiscardUnknown() { - xxx_messageInfo_TimeDetail.DiscardUnknown(m) + TotalRpcWallTimeNs uint64 `protobuf:"varint,4,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` } -var xxx_messageInfo_TimeDetail proto.InternalMessageInfo +func (m *TimeDetail) Reset() { *m = TimeDetail{} } +func (m *TimeDetail) String() string { return proto.CompactTextString(m) } +func (*TimeDetail) ProtoMessage() {} +func (*TimeDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{88} } func (m *TimeDetail) GetWaitWallTimeMs() uint64 { if m != nil { @@ -7325,44 +4666,13 @@ type TimeDetailV2 struct { // KV read wall Time means the time used in key/value scan and get. KvReadWallTimeNs uint64 `protobuf:"varint,4,opt,name=kv_read_wall_time_ns,json=kvReadWallTimeNs,proto3" json:"kv_read_wall_time_ns,omitempty"` // Total wall clock time spent on this RPC in TiKV . - TotalRpcWallTimeNs uint64 `protobuf:"varint,5,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TimeDetailV2) Reset() { *m = TimeDetailV2{} } -func (m *TimeDetailV2) String() string { return proto.CompactTextString(m) } -func (*TimeDetailV2) ProtoMessage() {} -func (*TimeDetailV2) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{89} -} -func (m *TimeDetailV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimeDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeDetailV2.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 *TimeDetailV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeDetailV2.Merge(m, src) -} -func (m *TimeDetailV2) XXX_Size() int { - return m.Size() -} -func (m *TimeDetailV2) XXX_DiscardUnknown() { - xxx_messageInfo_TimeDetailV2.DiscardUnknown(m) + TotalRpcWallTimeNs uint64 `protobuf:"varint,5,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` } -var xxx_messageInfo_TimeDetailV2 proto.InternalMessageInfo +func (m *TimeDetailV2) Reset() { *m = TimeDetailV2{} } +func (m *TimeDetailV2) String() string { return proto.CompactTextString(m) } +func (*TimeDetailV2) ProtoMessage() {} +func (*TimeDetailV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{89} } func (m *TimeDetailV2) GetWaitWallTimeNs() uint64 { if m != nil { @@ -7400,46 +4710,15 @@ func (m *TimeDetailV2) GetTotalRpcWallTimeNs() uint64 { } type ScanInfo struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Processed int64 `protobuf:"varint,2,opt,name=processed,proto3" json:"processed,omitempty"` - ReadBytes int64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanInfo) Reset() { *m = ScanInfo{} } -func (m *ScanInfo) String() string { return proto.CompactTextString(m) } -func (*ScanInfo) ProtoMessage() {} -func (*ScanInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{90} -} -func (m *ScanInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanInfo.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 *ScanInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanInfo.Merge(m, src) -} -func (m *ScanInfo) XXX_Size() int { - return m.Size() -} -func (m *ScanInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ScanInfo.DiscardUnknown(m) + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Processed int64 `protobuf:"varint,2,opt,name=processed,proto3" json:"processed,omitempty"` + ReadBytes int64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` } -var xxx_messageInfo_ScanInfo proto.InternalMessageInfo +func (m *ScanInfo) Reset() { *m = ScanInfo{} } +func (m *ScanInfo) String() string { return proto.CompactTextString(m) } +func (*ScanInfo) ProtoMessage() {} +func (*ScanInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{90} } func (m *ScanInfo) GetTotal() int64 { if m != nil { @@ -7464,46 +4743,15 @@ func (m *ScanInfo) GetReadBytes() int64 { // Only reserved for compatibility. type ScanDetail struct { - Write *ScanInfo `protobuf:"bytes,1,opt,name=write,proto3" json:"write,omitempty"` - Lock *ScanInfo `protobuf:"bytes,2,opt,name=lock,proto3" json:"lock,omitempty"` - Data *ScanInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanDetail) Reset() { *m = ScanDetail{} } -func (m *ScanDetail) String() string { return proto.CompactTextString(m) } -func (*ScanDetail) ProtoMessage() {} -func (*ScanDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{91} -} -func (m *ScanDetail) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanDetail.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 *ScanDetail) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanDetail.Merge(m, src) -} -func (m *ScanDetail) XXX_Size() int { - return m.Size() -} -func (m *ScanDetail) XXX_DiscardUnknown() { - xxx_messageInfo_ScanDetail.DiscardUnknown(m) + Write *ScanInfo `protobuf:"bytes,1,opt,name=write" json:"write,omitempty"` + Lock *ScanInfo `protobuf:"bytes,2,opt,name=lock" json:"lock,omitempty"` + Data *ScanInfo `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` } -var xxx_messageInfo_ScanDetail proto.InternalMessageInfo +func (m *ScanDetail) Reset() { *m = ScanDetail{} } +func (m *ScanDetail) String() string { return proto.CompactTextString(m) } +func (*ScanDetail) ProtoMessage() {} +func (*ScanDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{91} } func (m *ScanDetail) GetWrite() *ScanInfo { if m != nil { @@ -7562,44 +4810,13 @@ type ScanDetailV2 struct { // Time used for leader confirmation, equals 0 when performing lease read. ReadIndexConfirmWaitNanos uint64 `protobuf:"varint,12,opt,name=read_index_confirm_wait_nanos,json=readIndexConfirmWaitNanos,proto3" json:"read_index_confirm_wait_nanos,omitempty"` // Time used for read pool scheduling. - ReadPoolScheduleWaitNanos uint64 `protobuf:"varint,13,opt,name=read_pool_schedule_wait_nanos,json=readPoolScheduleWaitNanos,proto3" json:"read_pool_schedule_wait_nanos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanDetailV2) Reset() { *m = ScanDetailV2{} } -func (m *ScanDetailV2) String() string { return proto.CompactTextString(m) } -func (*ScanDetailV2) ProtoMessage() {} -func (*ScanDetailV2) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{92} -} -func (m *ScanDetailV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanDetailV2.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 *ScanDetailV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanDetailV2.Merge(m, src) -} -func (m *ScanDetailV2) XXX_Size() int { - return m.Size() -} -func (m *ScanDetailV2) XXX_DiscardUnknown() { - xxx_messageInfo_ScanDetailV2.DiscardUnknown(m) + ReadPoolScheduleWaitNanos uint64 `protobuf:"varint,13,opt,name=read_pool_schedule_wait_nanos,json=readPoolScheduleWaitNanos,proto3" json:"read_pool_schedule_wait_nanos,omitempty"` } -var xxx_messageInfo_ScanDetailV2 proto.InternalMessageInfo +func (m *ScanDetailV2) Reset() { *m = ScanDetailV2{} } +func (m *ScanDetailV2) String() string { return proto.CompactTextString(m) } +func (*ScanDetailV2) ProtoMessage() {} +func (*ScanDetailV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{92} } func (m *ScanDetailV2) GetProcessedVersions() uint64 { if m != nil { @@ -7694,46 +4911,15 @@ func (m *ScanDetailV2) GetReadPoolScheduleWaitNanos() uint64 { type ExecDetails struct { // Available when ctx.record_time_stat = true or meet slow query. - TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail,proto3" json:"time_detail,omitempty"` + TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail" json:"time_detail,omitempty"` // Available when ctx.record_scan_stat = true or meet slow query. - ScanDetail *ScanDetail `protobuf:"bytes,2,opt,name=scan_detail,json=scanDetail,proto3" json:"scan_detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecDetails) Reset() { *m = ExecDetails{} } -func (m *ExecDetails) String() string { return proto.CompactTextString(m) } -func (*ExecDetails) ProtoMessage() {} -func (*ExecDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{93} -} -func (m *ExecDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecDetails.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 *ExecDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecDetails.Merge(m, src) -} -func (m *ExecDetails) XXX_Size() int { - return m.Size() -} -func (m *ExecDetails) XXX_DiscardUnknown() { - xxx_messageInfo_ExecDetails.DiscardUnknown(m) + ScanDetail *ScanDetail `protobuf:"bytes,2,opt,name=scan_detail,json=scanDetail" json:"scan_detail,omitempty"` } -var xxx_messageInfo_ExecDetails proto.InternalMessageInfo +func (m *ExecDetails) Reset() { *m = ExecDetails{} } +func (m *ExecDetails) String() string { return proto.CompactTextString(m) } +func (*ExecDetails) ProtoMessage() {} +func (*ExecDetails) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{93} } func (m *ExecDetails) GetTimeDetail() *TimeDetail { if m != nil { @@ -7752,50 +4938,19 @@ func (m *ExecDetails) GetScanDetail() *ScanDetail { type ExecDetailsV2 struct { // Available when ctx.record_time_stat = true or meet slow query. // deprecated. Should use `time_detail_v2` instead. - TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail,proto3" json:"time_detail,omitempty"` + TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail" json:"time_detail,omitempty"` // Available when ctx.record_scan_stat = true or meet slow query. - ScanDetailV2 *ScanDetailV2 `protobuf:"bytes,2,opt,name=scan_detail_v2,json=scanDetailV2,proto3" json:"scan_detail_v2,omitempty"` + ScanDetailV2 *ScanDetailV2 `protobuf:"bytes,2,opt,name=scan_detail_v2,json=scanDetailV2" json:"scan_detail_v2,omitempty"` // Raftstore writing durations of the request. Only available for some write requests. - WriteDetail *WriteDetail `protobuf:"bytes,3,opt,name=write_detail,json=writeDetail,proto3" json:"write_detail,omitempty"` + WriteDetail *WriteDetail `protobuf:"bytes,3,opt,name=write_detail,json=writeDetail" json:"write_detail,omitempty"` // Available when ctx.record_time_stat = true or meet slow query. - TimeDetailV2 *TimeDetailV2 `protobuf:"bytes,4,opt,name=time_detail_v2,json=timeDetailV2,proto3" json:"time_detail_v2,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecDetailsV2) Reset() { *m = ExecDetailsV2{} } -func (m *ExecDetailsV2) String() string { return proto.CompactTextString(m) } -func (*ExecDetailsV2) ProtoMessage() {} -func (*ExecDetailsV2) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{94} -} -func (m *ExecDetailsV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecDetailsV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExecDetailsV2.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 *ExecDetailsV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecDetailsV2.Merge(m, src) -} -func (m *ExecDetailsV2) XXX_Size() int { - return m.Size() -} -func (m *ExecDetailsV2) XXX_DiscardUnknown() { - xxx_messageInfo_ExecDetailsV2.DiscardUnknown(m) + TimeDetailV2 *TimeDetailV2 `protobuf:"bytes,4,opt,name=time_detail_v2,json=timeDetailV2" json:"time_detail_v2,omitempty"` } -var xxx_messageInfo_ExecDetailsV2 proto.InternalMessageInfo +func (m *ExecDetailsV2) Reset() { *m = ExecDetailsV2{} } +func (m *ExecDetailsV2) String() string { return proto.CompactTextString(m) } +func (*ExecDetailsV2) ProtoMessage() {} +func (*ExecDetailsV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{94} } func (m *ExecDetailsV2) GetTimeDetail() *TimeDetail { if m != nil { @@ -7859,44 +5014,13 @@ type WriteDetail struct { // Wait time because of the scheduler flow control or quota limiter throttling. ThrottleNanos uint64 `protobuf:"varint,16,opt,name=throttle_nanos,json=throttleNanos,proto3" json:"throttle_nanos,omitempty"` // Wait time in the waiter manager for pessimistic locking. - PessimisticLockWaitNanos uint64 `protobuf:"varint,17,opt,name=pessimistic_lock_wait_nanos,json=pessimisticLockWaitNanos,proto3" json:"pessimistic_lock_wait_nanos,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteDetail) Reset() { *m = WriteDetail{} } -func (m *WriteDetail) String() string { return proto.CompactTextString(m) } -func (*WriteDetail) ProtoMessage() {} -func (*WriteDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{95} -} -func (m *WriteDetail) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WriteDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WriteDetail.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 *WriteDetail) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteDetail.Merge(m, src) -} -func (m *WriteDetail) XXX_Size() int { - return m.Size() -} -func (m *WriteDetail) XXX_DiscardUnknown() { - xxx_messageInfo_WriteDetail.DiscardUnknown(m) + PessimisticLockWaitNanos uint64 `protobuf:"varint,17,opt,name=pessimistic_lock_wait_nanos,json=pessimisticLockWaitNanos,proto3" json:"pessimistic_lock_wait_nanos,omitempty"` } -var xxx_messageInfo_WriteDetail proto.InternalMessageInfo +func (m *WriteDetail) Reset() { *m = WriteDetail{} } +func (m *WriteDetail) String() string { return proto.CompactTextString(m) } +func (*WriteDetail) ProtoMessage() {} +func (*WriteDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{95} } func (m *WriteDetail) GetStoreBatchWaitNanos() uint64 { if m != nil { @@ -8018,46 +5142,15 @@ func (m *WriteDetail) GetPessimisticLockWaitNanos() uint64 { } type KvPair struct { - Error *KeyError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KvPair) Reset() { *m = KvPair{} } -func (m *KvPair) String() string { return proto.CompactTextString(m) } -func (*KvPair) ProtoMessage() {} -func (*KvPair) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{96} -} -func (m *KvPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KvPair.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 *KvPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KvPair.Merge(m, src) -} -func (m *KvPair) XXX_Size() int { - return m.Size() -} -func (m *KvPair) XXX_DiscardUnknown() { - xxx_messageInfo_KvPair.DiscardUnknown(m) + Error *KeyError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_KvPair proto.InternalMessageInfo +func (m *KvPair) Reset() { *m = KvPair{} } +func (m *KvPair) String() string { return proto.CompactTextString(m) } +func (*KvPair) ProtoMessage() {} +func (*KvPair) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{96} } func (m *KvPair) GetError() *KeyError { if m != nil { @@ -8081,47 +5174,16 @@ func (m *KvPair) GetValue() []byte { } type Mutation struct { - Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=kvrpcpb.Op" json:"op,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Assertion Assertion `protobuf:"varint,4,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Mutation) Reset() { *m = Mutation{} } -func (m *Mutation) String() string { return proto.CompactTextString(m) } -func (*Mutation) ProtoMessage() {} -func (*Mutation) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{97} -} -func (m *Mutation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Mutation.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 *Mutation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Mutation.Merge(m, src) -} -func (m *Mutation) XXX_Size() int { - return m.Size() -} -func (m *Mutation) XXX_DiscardUnknown() { - xxx_messageInfo_Mutation.DiscardUnknown(m) + Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=kvrpcpb.Op" json:"op,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Assertion Assertion `protobuf:"varint,4,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` } -var xxx_messageInfo_Mutation proto.InternalMessageInfo +func (m *Mutation) Reset() { *m = Mutation{} } +func (m *Mutation) String() string { return proto.CompactTextString(m) } +func (*Mutation) ProtoMessage() {} +func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{97} } func (m *Mutation) GetOp() Op { if m != nil { @@ -8152,52 +5214,21 @@ func (m *Mutation) GetAssertion() Assertion { } type MvccWrite struct { - Type Op `protobuf:"varint,1,opt,name=type,proto3,enum=kvrpcpb.Op" json:"type,omitempty"` - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - ShortValue []byte `protobuf:"bytes,4,opt,name=short_value,json=shortValue,proto3" json:"short_value,omitempty"` - HasOverlappedRollback bool `protobuf:"varint,5,opt,name=has_overlapped_rollback,json=hasOverlappedRollback,proto3" json:"has_overlapped_rollback,omitempty"` - HasGcFence bool `protobuf:"varint,6,opt,name=has_gc_fence,json=hasGcFence,proto3" json:"has_gc_fence,omitempty"` - GcFence uint64 `protobuf:"varint,7,opt,name=gc_fence,json=gcFence,proto3" json:"gc_fence,omitempty"` - LastChangeTs uint64 `protobuf:"varint,8,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` - VersionsToLastChange uint64 `protobuf:"varint,9,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccWrite) Reset() { *m = MvccWrite{} } -func (m *MvccWrite) String() string { return proto.CompactTextString(m) } -func (*MvccWrite) ProtoMessage() {} -func (*MvccWrite) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{98} -} -func (m *MvccWrite) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccWrite.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 *MvccWrite) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccWrite.Merge(m, src) -} -func (m *MvccWrite) XXX_Size() int { - return m.Size() -} -func (m *MvccWrite) XXX_DiscardUnknown() { - xxx_messageInfo_MvccWrite.DiscardUnknown(m) -} - -var xxx_messageInfo_MvccWrite proto.InternalMessageInfo + Type Op `protobuf:"varint,1,opt,name=type,proto3,enum=kvrpcpb.Op" json:"type,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + ShortValue []byte `protobuf:"bytes,4,opt,name=short_value,json=shortValue,proto3" json:"short_value,omitempty"` + HasOverlappedRollback bool `protobuf:"varint,5,opt,name=has_overlapped_rollback,json=hasOverlappedRollback,proto3" json:"has_overlapped_rollback,omitempty"` + HasGcFence bool `protobuf:"varint,6,opt,name=has_gc_fence,json=hasGcFence,proto3" json:"has_gc_fence,omitempty"` + GcFence uint64 `protobuf:"varint,7,opt,name=gc_fence,json=gcFence,proto3" json:"gc_fence,omitempty"` + LastChangeTs uint64 `protobuf:"varint,8,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` + VersionsToLastChange uint64 `protobuf:"varint,9,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` +} + +func (m *MvccWrite) Reset() { *m = MvccWrite{} } +func (m *MvccWrite) String() string { return proto.CompactTextString(m) } +func (*MvccWrite) ProtoMessage() {} +func (*MvccWrite) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{98} } func (m *MvccWrite) GetType() Op { if m != nil { @@ -8263,45 +5294,14 @@ func (m *MvccWrite) GetVersionsToLastChange() uint64 { } type MvccValue struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccValue) Reset() { *m = MvccValue{} } -func (m *MvccValue) String() string { return proto.CompactTextString(m) } -func (*MvccValue) ProtoMessage() {} -func (*MvccValue) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{99} -} -func (m *MvccValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccValue.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 *MvccValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccValue.Merge(m, src) -} -func (m *MvccValue) XXX_Size() int { - return m.Size() -} -func (m *MvccValue) XXX_DiscardUnknown() { - xxx_messageInfo_MvccValue.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_MvccValue proto.InternalMessageInfo +func (m *MvccValue) Reset() { *m = MvccValue{} } +func (m *MvccValue) String() string { return proto.CompactTextString(m) } +func (*MvccValue) ProtoMessage() {} +func (*MvccValue) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{99} } func (m *MvccValue) GetStartTs() uint64 { if m != nil { @@ -8326,47 +5326,16 @@ type MvccLock struct { ForUpdateTs uint64 `protobuf:"varint,6,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` TxnSize uint64 `protobuf:"varint,7,opt,name=txn_size,json=txnSize,proto3" json:"txn_size,omitempty"` UseAsyncCommit bool `protobuf:"varint,8,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` - Secondaries [][]byte `protobuf:"bytes,9,rep,name=secondaries,proto3" json:"secondaries,omitempty"` - RollbackTs []uint64 `protobuf:"varint,10,rep,packed,name=rollback_ts,json=rollbackTs,proto3" json:"rollback_ts,omitempty"` + Secondaries [][]byte `protobuf:"bytes,9,rep,name=secondaries" json:"secondaries,omitempty"` + RollbackTs []uint64 `protobuf:"varint,10,rep,packed,name=rollback_ts,json=rollbackTs" json:"rollback_ts,omitempty"` LastChangeTs uint64 `protobuf:"varint,11,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` VersionsToLastChange uint64 `protobuf:"varint,12,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccLock) Reset() { *m = MvccLock{} } -func (m *MvccLock) String() string { return proto.CompactTextString(m) } -func (*MvccLock) ProtoMessage() {} -func (*MvccLock) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{100} -} -func (m *MvccLock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccLock.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 *MvccLock) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccLock.Merge(m, src) -} -func (m *MvccLock) XXX_Size() int { - return m.Size() -} -func (m *MvccLock) XXX_DiscardUnknown() { - xxx_messageInfo_MvccLock.DiscardUnknown(m) } -var xxx_messageInfo_MvccLock proto.InternalMessageInfo +func (m *MvccLock) Reset() { *m = MvccLock{} } +func (m *MvccLock) String() string { return proto.CompactTextString(m) } +func (*MvccLock) ProtoMessage() {} +func (*MvccLock) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{100} } func (m *MvccLock) GetType() Op { if m != nil { @@ -8453,46 +5422,15 @@ func (m *MvccLock) GetVersionsToLastChange() uint64 { } type MvccInfo struct { - Lock *MvccLock `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"` - Writes []*MvccWrite `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"` - Values []*MvccValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MvccInfo) Reset() { *m = MvccInfo{} } -func (m *MvccInfo) String() string { return proto.CompactTextString(m) } -func (*MvccInfo) ProtoMessage() {} -func (*MvccInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{101} -} -func (m *MvccInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MvccInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MvccInfo.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 *MvccInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MvccInfo.Merge(m, src) -} -func (m *MvccInfo) XXX_Size() int { - return m.Size() -} -func (m *MvccInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MvccInfo.DiscardUnknown(m) + Lock *MvccLock `protobuf:"bytes,1,opt,name=lock" json:"lock,omitempty"` + Writes []*MvccWrite `protobuf:"bytes,2,rep,name=writes" json:"writes,omitempty"` + Values []*MvccValue `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` } -var xxx_messageInfo_MvccInfo proto.InternalMessageInfo +func (m *MvccInfo) Reset() { *m = MvccInfo{} } +func (m *MvccInfo) String() string { return proto.CompactTextString(m) } +func (*MvccInfo) ProtoMessage() {} +func (*MvccInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{101} } func (m *MvccInfo) GetLock() *MvccLock { if m != nil { @@ -8516,45 +5454,14 @@ func (m *MvccInfo) GetValues() []*MvccValue { } type TxnInfo struct { - Txn uint64 `protobuf:"varint,1,opt,name=txn,proto3" json:"txn,omitempty"` - Status uint64 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TxnInfo) Reset() { *m = TxnInfo{} } -func (m *TxnInfo) String() string { return proto.CompactTextString(m) } -func (*TxnInfo) ProtoMessage() {} -func (*TxnInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{102} -} -func (m *TxnInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TxnInfo.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 *TxnInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TxnInfo.Merge(m, src) -} -func (m *TxnInfo) XXX_Size() int { - return m.Size() -} -func (m *TxnInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TxnInfo.DiscardUnknown(m) + Txn uint64 `protobuf:"varint,1,opt,name=txn,proto3" json:"txn,omitempty"` + Status uint64 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` } -var xxx_messageInfo_TxnInfo proto.InternalMessageInfo +func (m *TxnInfo) Reset() { *m = TxnInfo{} } +func (m *TxnInfo) String() string { return proto.CompactTextString(m) } +func (*TxnInfo) ProtoMessage() {} +func (*TxnInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{102} } func (m *TxnInfo) GetTxn() uint64 { if m != nil { @@ -8571,45 +5478,14 @@ func (m *TxnInfo) GetStatus() uint64 { } type KeyRange struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyRange) Reset() { *m = KeyRange{} } -func (m *KeyRange) String() string { return proto.CompactTextString(m) } -func (*KeyRange) ProtoMessage() {} -func (*KeyRange) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{103} -} -func (m *KeyRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyRange.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 *KeyRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyRange.Merge(m, src) -} -func (m *KeyRange) XXX_Size() int { - return m.Size() -} -func (m *KeyRange) XXX_DiscardUnknown() { - xxx_messageInfo_KeyRange.DiscardUnknown(m) + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } -var xxx_messageInfo_KeyRange proto.InternalMessageInfo +func (m *KeyRange) Reset() { *m = KeyRange{} } +func (m *KeyRange) String() string { return proto.CompactTextString(m) } +func (*KeyRange) ProtoMessage() {} +func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{103} } func (m *KeyRange) GetStartKey() []byte { if m != nil { @@ -8626,48 +5502,17 @@ func (m *KeyRange) GetEndKey() []byte { } type LeaderInfo struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - ReadState *ReadState `protobuf:"bytes,5,opt,name=read_state,json=readState,proto3" json:"read_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LeaderInfo) Reset() { *m = LeaderInfo{} } -func (m *LeaderInfo) String() string { return proto.CompactTextString(m) } -func (*LeaderInfo) ProtoMessage() {} -func (*LeaderInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{104} -} -func (m *LeaderInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LeaderInfo.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 *LeaderInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaderInfo.Merge(m, src) -} -func (m *LeaderInfo) XXX_Size() int { - return m.Size() -} -func (m *LeaderInfo) XXX_DiscardUnknown() { - xxx_messageInfo_LeaderInfo.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + ReadState *ReadState `protobuf:"bytes,5,opt,name=read_state,json=readState" json:"read_state,omitempty"` } -var xxx_messageInfo_LeaderInfo proto.InternalMessageInfo +func (m *LeaderInfo) Reset() { *m = LeaderInfo{} } +func (m *LeaderInfo) String() string { return proto.CompactTextString(m) } +func (*LeaderInfo) ProtoMessage() {} +func (*LeaderInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{104} } func (m *LeaderInfo) GetRegionId() uint64 { if m != nil { @@ -8705,45 +5550,14 @@ func (m *LeaderInfo) GetReadState() *ReadState { } type ReadState struct { - AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` - SafeTs uint64 `protobuf:"varint,2,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadState) Reset() { *m = ReadState{} } -func (m *ReadState) String() string { return proto.CompactTextString(m) } -func (*ReadState) ProtoMessage() {} -func (*ReadState) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{105} -} -func (m *ReadState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadState.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 *ReadState) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadState.Merge(m, src) -} -func (m *ReadState) XXX_Size() int { - return m.Size() -} -func (m *ReadState) XXX_DiscardUnknown() { - xxx_messageInfo_ReadState.DiscardUnknown(m) + AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + SafeTs uint64 `protobuf:"varint,2,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` } -var xxx_messageInfo_ReadState proto.InternalMessageInfo +func (m *ReadState) Reset() { *m = ReadState{} } +func (m *ReadState) String() string { return proto.CompactTextString(m) } +func (*ReadState) ProtoMessage() {} +func (*ReadState) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{105} } func (m *ReadState) GetAppliedIndex() uint64 { if m != nil { @@ -8760,45 +5574,14 @@ func (m *ReadState) GetSafeTs() uint64 { } type CheckLeaderRequest struct { - Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckLeaderRequest) Reset() { *m = CheckLeaderRequest{} } -func (m *CheckLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*CheckLeaderRequest) ProtoMessage() {} -func (*CheckLeaderRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{106} -} -func (m *CheckLeaderRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckLeaderRequest.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 *CheckLeaderRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckLeaderRequest.Merge(m, src) -} -func (m *CheckLeaderRequest) XXX_Size() int { - return m.Size() -} -func (m *CheckLeaderRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckLeaderRequest.DiscardUnknown(m) + Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` } -var xxx_messageInfo_CheckLeaderRequest proto.InternalMessageInfo +func (m *CheckLeaderRequest) Reset() { *m = CheckLeaderRequest{} } +func (m *CheckLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*CheckLeaderRequest) ProtoMessage() {} +func (*CheckLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{106} } func (m *CheckLeaderRequest) GetRegions() []*LeaderInfo { if m != nil { @@ -8815,45 +5598,14 @@ func (m *CheckLeaderRequest) GetTs() uint64 { } type CheckLeaderResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckLeaderResponse) Reset() { *m = CheckLeaderResponse{} } -func (m *CheckLeaderResponse) String() string { return proto.CompactTextString(m) } -func (*CheckLeaderResponse) ProtoMessage() {} -func (*CheckLeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{107} -} -func (m *CheckLeaderResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckLeaderResponse.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 *CheckLeaderResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckLeaderResponse.Merge(m, src) -} -func (m *CheckLeaderResponse) XXX_Size() int { - return m.Size() -} -func (m *CheckLeaderResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckLeaderResponse.DiscardUnknown(m) + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` } -var xxx_messageInfo_CheckLeaderResponse proto.InternalMessageInfo +func (m *CheckLeaderResponse) Reset() { *m = CheckLeaderResponse{} } +func (m *CheckLeaderResponse) String() string { return proto.CompactTextString(m) } +func (*CheckLeaderResponse) ProtoMessage() {} +func (*CheckLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{107} } func (m *CheckLeaderResponse) GetRegions() []uint64 { if m != nil { @@ -8872,44 +5624,13 @@ func (m *CheckLeaderResponse) GetTs() uint64 { type StoreSafeTSRequest struct { // Get the minimal `safe_ts` from regions that overlap with the key range [`start_key`, `end_key`) // An empty key range means all regions in the store - KeyRange *KeyRange `protobuf:"bytes,1,opt,name=key_range,json=keyRange,proto3" json:"key_range,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreSafeTSRequest) Reset() { *m = StoreSafeTSRequest{} } -func (m *StoreSafeTSRequest) String() string { return proto.CompactTextString(m) } -func (*StoreSafeTSRequest) ProtoMessage() {} -func (*StoreSafeTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{108} -} -func (m *StoreSafeTSRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreSafeTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreSafeTSRequest.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 *StoreSafeTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreSafeTSRequest.Merge(m, src) -} -func (m *StoreSafeTSRequest) XXX_Size() int { - return m.Size() -} -func (m *StoreSafeTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StoreSafeTSRequest.DiscardUnknown(m) + KeyRange *KeyRange `protobuf:"bytes,1,opt,name=key_range,json=keyRange" json:"key_range,omitempty"` } -var xxx_messageInfo_StoreSafeTSRequest proto.InternalMessageInfo +func (m *StoreSafeTSRequest) Reset() { *m = StoreSafeTSRequest{} } +func (m *StoreSafeTSRequest) String() string { return proto.CompactTextString(m) } +func (*StoreSafeTSRequest) ProtoMessage() {} +func (*StoreSafeTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{108} } func (m *StoreSafeTSRequest) GetKeyRange() *KeyRange { if m != nil { @@ -8919,44 +5640,13 @@ func (m *StoreSafeTSRequest) GetKeyRange() *KeyRange { } type StoreSafeTSResponse struct { - SafeTs uint64 `protobuf:"varint,1,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreSafeTSResponse) Reset() { *m = StoreSafeTSResponse{} } -func (m *StoreSafeTSResponse) String() string { return proto.CompactTextString(m) } -func (*StoreSafeTSResponse) ProtoMessage() {} -func (*StoreSafeTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{109} -} -func (m *StoreSafeTSResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreSafeTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreSafeTSResponse.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 *StoreSafeTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreSafeTSResponse.Merge(m, src) -} -func (m *StoreSafeTSResponse) XXX_Size() int { - return m.Size() -} -func (m *StoreSafeTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StoreSafeTSResponse.DiscardUnknown(m) + SafeTs uint64 `protobuf:"varint,1,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` } -var xxx_messageInfo_StoreSafeTSResponse proto.InternalMessageInfo +func (m *StoreSafeTSResponse) Reset() { *m = StoreSafeTSResponse{} } +func (m *StoreSafeTSResponse) String() string { return proto.CompactTextString(m) } +func (*StoreSafeTSResponse) ProtoMessage() {} +func (*StoreSafeTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{109} } func (m *StoreSafeTSResponse) GetSafeTs() uint64 { if m != nil { @@ -8966,46 +5656,15 @@ func (m *StoreSafeTSResponse) GetSafeTs() uint64 { } type RawGetKeyTTLRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawGetKeyTTLRequest) Reset() { *m = RawGetKeyTTLRequest{} } -func (m *RawGetKeyTTLRequest) String() string { return proto.CompactTextString(m) } -func (*RawGetKeyTTLRequest) ProtoMessage() {} -func (*RawGetKeyTTLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{110} -} -func (m *RawGetKeyTTLRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawGetKeyTTLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawGetKeyTTLRequest.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 *RawGetKeyTTLRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawGetKeyTTLRequest.Merge(m, src) -} -func (m *RawGetKeyTTLRequest) XXX_Size() int { - return m.Size() -} -func (m *RawGetKeyTTLRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawGetKeyTTLRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` } -var xxx_messageInfo_RawGetKeyTTLRequest proto.InternalMessageInfo +func (m *RawGetKeyTTLRequest) Reset() { *m = RawGetKeyTTLRequest{} } +func (m *RawGetKeyTTLRequest) String() string { return proto.CompactTextString(m) } +func (*RawGetKeyTTLRequest) ProtoMessage() {} +func (*RawGetKeyTTLRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{110} } func (m *RawGetKeyTTLRequest) GetContext() *Context { if m != nil { @@ -9029,47 +5688,16 @@ func (m *RawGetKeyTTLRequest) GetCf() string { } type RawGetKeyTTLResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Ttl uint64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` - NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawGetKeyTTLResponse) Reset() { *m = RawGetKeyTTLResponse{} } -func (m *RawGetKeyTTLResponse) String() string { return proto.CompactTextString(m) } -func (*RawGetKeyTTLResponse) ProtoMessage() {} -func (*RawGetKeyTTLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{111} -} -func (m *RawGetKeyTTLResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawGetKeyTTLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawGetKeyTTLResponse.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 *RawGetKeyTTLResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawGetKeyTTLResponse.Merge(m, src) -} -func (m *RawGetKeyTTLResponse) XXX_Size() int { - return m.Size() -} -func (m *RawGetKeyTTLResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawGetKeyTTLResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Ttl uint64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` } -var xxx_messageInfo_RawGetKeyTTLResponse proto.InternalMessageInfo +func (m *RawGetKeyTTLResponse) Reset() { *m = RawGetKeyTTLResponse{} } +func (m *RawGetKeyTTLResponse) String() string { return proto.CompactTextString(m) } +func (*RawGetKeyTTLResponse) ProtoMessage() {} +func (*RawGetKeyTTLResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{111} } func (m *RawGetKeyTTLResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -9100,50 +5728,19 @@ func (m *RawGetKeyTTLResponse) GetNotFound() bool { } type RawCASRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` - PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` - Cf string `protobuf:"bytes,6,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,7,opt,name=ttl,proto3" json:"ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawCASRequest) Reset() { *m = RawCASRequest{} } -func (m *RawCASRequest) String() string { return proto.CompactTextString(m) } -func (*RawCASRequest) ProtoMessage() {} -func (*RawCASRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{112} -} -func (m *RawCASRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawCASRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawCASRequest.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 *RawCASRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawCASRequest.Merge(m, src) -} -func (m *RawCASRequest) XXX_Size() int { - return m.Size() -} -func (m *RawCASRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawCASRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` + PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` + Cf string `protobuf:"bytes,6,opt,name=cf,proto3" json:"cf,omitempty"` + Ttl uint64 `protobuf:"varint,7,opt,name=ttl,proto3" json:"ttl,omitempty"` } -var xxx_messageInfo_RawCASRequest proto.InternalMessageInfo +func (m *RawCASRequest) Reset() { *m = RawCASRequest{} } +func (m *RawCASRequest) String() string { return proto.CompactTextString(m) } +func (*RawCASRequest) ProtoMessage() {} +func (*RawCASRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{112} } func (m *RawCASRequest) GetContext() *Context { if m != nil { @@ -9195,49 +5792,18 @@ func (m *RawCASRequest) GetTtl() uint64 { } type RawCASResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Succeed bool `protobuf:"varint,3,opt,name=succeed,proto3" json:"succeed,omitempty"` // The previous value regardless of whether the comparison is succeed. - PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` - PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawCASResponse) Reset() { *m = RawCASResponse{} } -func (m *RawCASResponse) String() string { return proto.CompactTextString(m) } -func (*RawCASResponse) ProtoMessage() {} -func (*RawCASResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{113} -} -func (m *RawCASResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawCASResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawCASResponse.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 *RawCASResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawCASResponse.Merge(m, src) -} -func (m *RawCASResponse) XXX_Size() int { - return m.Size() -} -func (m *RawCASResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawCASResponse.DiscardUnknown(m) + PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` + PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` } -var xxx_messageInfo_RawCASResponse proto.InternalMessageInfo +func (m *RawCASResponse) Reset() { *m = RawCASResponse{} } +func (m *RawCASResponse) String() string { return proto.CompactTextString(m) } +func (*RawCASResponse) ProtoMessage() {} +func (*RawCASResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{113} } func (m *RawCASResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -9275,44 +5841,13 @@ func (m *RawCASResponse) GetPreviousValue() []byte { } type GetLockWaitInfoRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetLockWaitInfoRequest) Reset() { *m = GetLockWaitInfoRequest{} } -func (m *GetLockWaitInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetLockWaitInfoRequest) ProtoMessage() {} -func (*GetLockWaitInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{114} -} -func (m *GetLockWaitInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetLockWaitInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLockWaitInfoRequest.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 *GetLockWaitInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLockWaitInfoRequest.Merge(m, src) -} -func (m *GetLockWaitInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetLockWaitInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLockWaitInfoRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` } -var xxx_messageInfo_GetLockWaitInfoRequest proto.InternalMessageInfo +func (m *GetLockWaitInfoRequest) Reset() { *m = GetLockWaitInfoRequest{} } +func (m *GetLockWaitInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetLockWaitInfoRequest) ProtoMessage() {} +func (*GetLockWaitInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{114} } func (m *GetLockWaitInfoRequest) GetContext() *Context { if m != nil { @@ -9322,46 +5857,17 @@ func (m *GetLockWaitInfoRequest) GetContext() *Context { } type GetLockWaitInfoResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` } func (m *GetLockWaitInfoResponse) Reset() { *m = GetLockWaitInfoResponse{} } func (m *GetLockWaitInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetLockWaitInfoResponse) ProtoMessage() {} func (*GetLockWaitInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{115} -} -func (m *GetLockWaitInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorKvrpcpb, []int{115} } -func (m *GetLockWaitInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLockWaitInfoResponse.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 *GetLockWaitInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLockWaitInfoResponse.Merge(m, src) -} -func (m *GetLockWaitInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetLockWaitInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLockWaitInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLockWaitInfoResponse proto.InternalMessageInfo func (m *GetLockWaitInfoResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -9385,44 +5891,15 @@ func (m *GetLockWaitInfoResponse) GetEntries() []*deadlock.WaitForEntry { } type GetLockWaitHistoryRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` } func (m *GetLockWaitHistoryRequest) Reset() { *m = GetLockWaitHistoryRequest{} } func (m *GetLockWaitHistoryRequest) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryRequest) ProtoMessage() {} func (*GetLockWaitHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{116} -} -func (m *GetLockWaitHistoryRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetLockWaitHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLockWaitHistoryRequest.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 *GetLockWaitHistoryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLockWaitHistoryRequest.Merge(m, src) -} -func (m *GetLockWaitHistoryRequest) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{116} } -func (m *GetLockWaitHistoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLockWaitHistoryRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLockWaitHistoryRequest proto.InternalMessageInfo func (m *GetLockWaitHistoryRequest) GetContext() *Context { if m != nil { @@ -9432,47 +5909,18 @@ func (m *GetLockWaitHistoryRequest) GetContext() *Context { } type GetLockWaitHistoryResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` } func (m *GetLockWaitHistoryResponse) Reset() { *m = GetLockWaitHistoryResponse{} } func (m *GetLockWaitHistoryResponse) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryResponse) ProtoMessage() {} func (*GetLockWaitHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{117} -} -func (m *GetLockWaitHistoryResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetLockWaitHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLockWaitHistoryResponse.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 *GetLockWaitHistoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLockWaitHistoryResponse.Merge(m, src) -} -func (m *GetLockWaitHistoryResponse) XXX_Size() int { - return m.Size() -} -func (m *GetLockWaitHistoryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLockWaitHistoryResponse.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{117} } -var xxx_messageInfo_GetLockWaitHistoryResponse proto.InternalMessageInfo - func (m *GetLockWaitHistoryResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -9495,49 +5943,18 @@ func (m *GetLockWaitHistoryResponse) GetEntries() []*deadlock.WaitForEntry { } type RawCoprocessorRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` CoprName string `protobuf:"bytes,2,opt,name=copr_name,json=coprName,proto3" json:"copr_name,omitempty"` // Coprorcessor version constraint following SEMVER definition. - CoprVersionReq string `protobuf:"bytes,3,opt,name=copr_version_req,json=coprVersionReq,proto3" json:"copr_version_req,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` - Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawCoprocessorRequest) Reset() { *m = RawCoprocessorRequest{} } -func (m *RawCoprocessorRequest) String() string { return proto.CompactTextString(m) } -func (*RawCoprocessorRequest) ProtoMessage() {} -func (*RawCoprocessorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{118} -} -func (m *RawCoprocessorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawCoprocessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawCoprocessorRequest.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 *RawCoprocessorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawCoprocessorRequest.Merge(m, src) -} -func (m *RawCoprocessorRequest) XXX_Size() int { - return m.Size() -} -func (m *RawCoprocessorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawCoprocessorRequest.DiscardUnknown(m) + CoprVersionReq string `protobuf:"bytes,3,opt,name=copr_version_req,json=coprVersionReq,proto3" json:"copr_version_req,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` } -var xxx_messageInfo_RawCoprocessorRequest proto.InternalMessageInfo +func (m *RawCoprocessorRequest) Reset() { *m = RawCoprocessorRequest{} } +func (m *RawCoprocessorRequest) String() string { return proto.CompactTextString(m) } +func (*RawCoprocessorRequest) ProtoMessage() {} +func (*RawCoprocessorRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{118} } func (m *RawCoprocessorRequest) GetContext() *Context { if m != nil { @@ -9575,48 +5992,17 @@ func (m *RawCoprocessorRequest) GetData() []byte { } type RawCoprocessorResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` // Error message for cases like if no coprocessor with a matching name is found // or on a version mismatch between plugin_api and the coprocessor. - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawCoprocessorResponse) Reset() { *m = RawCoprocessorResponse{} } -func (m *RawCoprocessorResponse) String() string { return proto.CompactTextString(m) } -func (*RawCoprocessorResponse) ProtoMessage() {} -func (*RawCoprocessorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{119} -} -func (m *RawCoprocessorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawCoprocessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawCoprocessorResponse.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 *RawCoprocessorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawCoprocessorResponse.Merge(m, src) -} -func (m *RawCoprocessorResponse) XXX_Size() int { - return m.Size() -} -func (m *RawCoprocessorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawCoprocessorResponse.DiscardUnknown(m) + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` } -var xxx_messageInfo_RawCoprocessorResponse proto.InternalMessageInfo +func (m *RawCoprocessorResponse) Reset() { *m = RawCoprocessorResponse{} } +func (m *RawCoprocessorResponse) String() string { return proto.CompactTextString(m) } +func (*RawCoprocessorResponse) ProtoMessage() {} +func (*RawCoprocessorResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{119} } func (m *RawCoprocessorResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -9640,46 +6026,15 @@ func (m *RawCoprocessorResponse) GetData() []byte { } type RawChecksumRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Algorithm ChecksumAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=kvrpcpb.ChecksumAlgorithm" json:"algorithm,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawChecksumRequest) Reset() { *m = RawChecksumRequest{} } -func (m *RawChecksumRequest) String() string { return proto.CompactTextString(m) } -func (*RawChecksumRequest) ProtoMessage() {} -func (*RawChecksumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{120} -} -func (m *RawChecksumRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawChecksumRequest.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 *RawChecksumRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawChecksumRequest.Merge(m, src) -} -func (m *RawChecksumRequest) XXX_Size() int { - return m.Size() -} -func (m *RawChecksumRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RawChecksumRequest.DiscardUnknown(m) + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Algorithm ChecksumAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=kvrpcpb.ChecksumAlgorithm" json:"algorithm,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` } -var xxx_messageInfo_RawChecksumRequest proto.InternalMessageInfo +func (m *RawChecksumRequest) Reset() { *m = RawChecksumRequest{} } +func (m *RawChecksumRequest) String() string { return proto.CompactTextString(m) } +func (*RawChecksumRequest) ProtoMessage() {} +func (*RawChecksumRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{120} } func (m *RawChecksumRequest) GetContext() *Context { if m != nil { @@ -9703,48 +6058,17 @@ func (m *RawChecksumRequest) GetRanges() []*KeyRange { } type RawChecksumResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Checksum uint64 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` - TotalKvs uint64 `protobuf:"varint,4,opt,name=total_kvs,json=totalKvs,proto3" json:"total_kvs,omitempty"` - TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawChecksumResponse) Reset() { *m = RawChecksumResponse{} } -func (m *RawChecksumResponse) String() string { return proto.CompactTextString(m) } -func (*RawChecksumResponse) ProtoMessage() {} -func (*RawChecksumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{121} -} -func (m *RawChecksumResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawChecksumResponse.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 *RawChecksumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawChecksumResponse.Merge(m, src) -} -func (m *RawChecksumResponse) XXX_Size() int { - return m.Size() -} -func (m *RawChecksumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RawChecksumResponse.DiscardUnknown(m) + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Checksum uint64 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` + TotalKvs uint64 `protobuf:"varint,4,opt,name=total_kvs,json=totalKvs,proto3" json:"total_kvs,omitempty"` + TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` } -var xxx_messageInfo_RawChecksumResponse proto.InternalMessageInfo +func (m *RawChecksumResponse) Reset() { *m = RawChecksumResponse{} } +func (m *RawChecksumResponse) String() string { return proto.CompactTextString(m) } +func (*RawChecksumResponse) ProtoMessage() {} +func (*RawChecksumResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{121} } func (m *RawChecksumResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -9783,49 +6107,17 @@ func (m *RawChecksumResponse) GetTotalBytes() uint64 { type CompactError struct { // Types that are valid to be assigned to Error: - // // *CompactError_ErrInvalidStartKey // *CompactError_ErrPhysicalTableNotExist // *CompactError_ErrCompactInProgress // *CompactError_ErrTooManyPendingTasks - Error isCompactError_Error `protobuf_oneof:"error"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactError) Reset() { *m = CompactError{} } -func (m *CompactError) String() string { return proto.CompactTextString(m) } -func (*CompactError) ProtoMessage() {} -func (*CompactError) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{122} -} -func (m *CompactError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactError.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 *CompactError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactError.Merge(m, src) -} -func (m *CompactError) XXX_Size() int { - return m.Size() -} -func (m *CompactError) XXX_DiscardUnknown() { - xxx_messageInfo_CompactError.DiscardUnknown(m) + Error isCompactError_Error `protobuf_oneof:"error"` } -var xxx_messageInfo_CompactError proto.InternalMessageInfo +func (m *CompactError) Reset() { *m = CompactError{} } +func (m *CompactError) String() string { return proto.CompactTextString(m) } +func (*CompactError) ProtoMessage() {} +func (*CompactError) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{122} } type isCompactError_Error interface { isCompactError_Error() @@ -9834,16 +6126,16 @@ type isCompactError_Error interface { } type CompactError_ErrInvalidStartKey struct { - ErrInvalidStartKey *CompactErrorInvalidStartKey `protobuf:"bytes,1,opt,name=err_invalid_start_key,json=errInvalidStartKey,proto3,oneof" json:"err_invalid_start_key,omitempty"` + ErrInvalidStartKey *CompactErrorInvalidStartKey `protobuf:"bytes,1,opt,name=err_invalid_start_key,json=errInvalidStartKey,oneof"` } type CompactError_ErrPhysicalTableNotExist struct { - ErrPhysicalTableNotExist *CompactErrorPhysicalTableNotExist `protobuf:"bytes,2,opt,name=err_physical_table_not_exist,json=errPhysicalTableNotExist,proto3,oneof" json:"err_physical_table_not_exist,omitempty"` + ErrPhysicalTableNotExist *CompactErrorPhysicalTableNotExist `protobuf:"bytes,2,opt,name=err_physical_table_not_exist,json=errPhysicalTableNotExist,oneof"` } type CompactError_ErrCompactInProgress struct { - ErrCompactInProgress *CompactErrorCompactInProgress `protobuf:"bytes,3,opt,name=err_compact_in_progress,json=errCompactInProgress,proto3,oneof" json:"err_compact_in_progress,omitempty"` + ErrCompactInProgress *CompactErrorCompactInProgress `protobuf:"bytes,3,opt,name=err_compact_in_progress,json=errCompactInProgress,oneof"` } type CompactError_ErrTooManyPendingTasks struct { - ErrTooManyPendingTasks *CompactErrorTooManyPendingTasks `protobuf:"bytes,4,opt,name=err_too_many_pending_tasks,json=errTooManyPendingTasks,proto3,oneof" json:"err_too_many_pending_tasks,omitempty"` + ErrTooManyPendingTasks *CompactErrorTooManyPendingTasks `protobuf:"bytes,4,opt,name=err_too_many_pending_tasks,json=errTooManyPendingTasks,oneof"` } func (*CompactError_ErrInvalidStartKey) isCompactError_Error() {} @@ -9886,9 +6178,9 @@ func (m *CompactError) GetErrTooManyPendingTasks() *CompactErrorTooManyPendingTa return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CompactError) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*CompactError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _CompactError_OneofMarshaler, _CompactError_OneofUnmarshaler, _CompactError_OneofSizer, []interface{}{ (*CompactError_ErrInvalidStartKey)(nil), (*CompactError_ErrPhysicalTableNotExist)(nil), (*CompactError_ErrCompactInProgress)(nil), @@ -9896,161 +6188,147 @@ func (*CompactError) XXX_OneofWrappers() []interface{} { } } +func _CompactError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*CompactError) + // error + switch x := m.Error.(type) { + case *CompactError_ErrInvalidStartKey: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrInvalidStartKey); err != nil { + return err + } + case *CompactError_ErrPhysicalTableNotExist: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrPhysicalTableNotExist); err != nil { + return err + } + case *CompactError_ErrCompactInProgress: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrCompactInProgress); err != nil { + return err + } + case *CompactError_ErrTooManyPendingTasks: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrTooManyPendingTasks); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("CompactError.Error has unexpected type %T", x) + } + return nil +} + +func _CompactError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*CompactError) + switch tag { + case 1: // error.err_invalid_start_key + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CompactErrorInvalidStartKey) + err := b.DecodeMessage(msg) + m.Error = &CompactError_ErrInvalidStartKey{msg} + return true, err + case 2: // error.err_physical_table_not_exist + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CompactErrorPhysicalTableNotExist) + err := b.DecodeMessage(msg) + m.Error = &CompactError_ErrPhysicalTableNotExist{msg} + return true, err + case 3: // error.err_compact_in_progress + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CompactErrorCompactInProgress) + err := b.DecodeMessage(msg) + m.Error = &CompactError_ErrCompactInProgress{msg} + return true, err + case 4: // error.err_too_many_pending_tasks + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CompactErrorTooManyPendingTasks) + err := b.DecodeMessage(msg) + m.Error = &CompactError_ErrTooManyPendingTasks{msg} + return true, err + default: + return false, nil + } +} + +func _CompactError_OneofSizer(msg proto.Message) (n int) { + m := msg.(*CompactError) + // error + switch x := m.Error.(type) { + case *CompactError_ErrInvalidStartKey: + s := proto.Size(x.ErrInvalidStartKey) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrPhysicalTableNotExist: + s := proto.Size(x.ErrPhysicalTableNotExist) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrCompactInProgress: + s := proto.Size(x.ErrCompactInProgress) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrTooManyPendingTasks: + s := proto.Size(x.ErrTooManyPendingTasks) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type CompactErrorInvalidStartKey struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CompactErrorInvalidStartKey) Reset() { *m = CompactErrorInvalidStartKey{} } func (m *CompactErrorInvalidStartKey) String() string { return proto.CompactTextString(m) } func (*CompactErrorInvalidStartKey) ProtoMessage() {} func (*CompactErrorInvalidStartKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{123} -} -func (m *CompactErrorInvalidStartKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactErrorInvalidStartKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactErrorInvalidStartKey.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 *CompactErrorInvalidStartKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactErrorInvalidStartKey.Merge(m, src) -} -func (m *CompactErrorInvalidStartKey) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{123} } -func (m *CompactErrorInvalidStartKey) XXX_DiscardUnknown() { - xxx_messageInfo_CompactErrorInvalidStartKey.DiscardUnknown(m) -} - -var xxx_messageInfo_CompactErrorInvalidStartKey proto.InternalMessageInfo type CompactErrorPhysicalTableNotExist struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CompactErrorPhysicalTableNotExist) Reset() { *m = CompactErrorPhysicalTableNotExist{} } func (m *CompactErrorPhysicalTableNotExist) String() string { return proto.CompactTextString(m) } func (*CompactErrorPhysicalTableNotExist) ProtoMessage() {} func (*CompactErrorPhysicalTableNotExist) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{124} -} -func (m *CompactErrorPhysicalTableNotExist) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactErrorPhysicalTableNotExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactErrorPhysicalTableNotExist.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 *CompactErrorPhysicalTableNotExist) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactErrorPhysicalTableNotExist.Merge(m, src) -} -func (m *CompactErrorPhysicalTableNotExist) XXX_Size() int { - return m.Size() -} -func (m *CompactErrorPhysicalTableNotExist) XXX_DiscardUnknown() { - xxx_messageInfo_CompactErrorPhysicalTableNotExist.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{124} } -var xxx_messageInfo_CompactErrorPhysicalTableNotExist proto.InternalMessageInfo - type CompactErrorCompactInProgress struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CompactErrorCompactInProgress) Reset() { *m = CompactErrorCompactInProgress{} } func (m *CompactErrorCompactInProgress) String() string { return proto.CompactTextString(m) } func (*CompactErrorCompactInProgress) ProtoMessage() {} func (*CompactErrorCompactInProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{125} -} -func (m *CompactErrorCompactInProgress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactErrorCompactInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactErrorCompactInProgress.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 *CompactErrorCompactInProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactErrorCompactInProgress.Merge(m, src) -} -func (m *CompactErrorCompactInProgress) XXX_Size() int { - return m.Size() -} -func (m *CompactErrorCompactInProgress) XXX_DiscardUnknown() { - xxx_messageInfo_CompactErrorCompactInProgress.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{125} } -var xxx_messageInfo_CompactErrorCompactInProgress proto.InternalMessageInfo - type CompactErrorTooManyPendingTasks struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *CompactErrorTooManyPendingTasks) Reset() { *m = CompactErrorTooManyPendingTasks{} } func (m *CompactErrorTooManyPendingTasks) String() string { return proto.CompactTextString(m) } func (*CompactErrorTooManyPendingTasks) ProtoMessage() {} func (*CompactErrorTooManyPendingTasks) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{126} -} -func (m *CompactErrorTooManyPendingTasks) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactErrorTooManyPendingTasks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactErrorTooManyPendingTasks.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 *CompactErrorTooManyPendingTasks) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactErrorTooManyPendingTasks.Merge(m, src) -} -func (m *CompactErrorTooManyPendingTasks) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{126} } -func (m *CompactErrorTooManyPendingTasks) XXX_DiscardUnknown() { - xxx_messageInfo_CompactErrorTooManyPendingTasks.DiscardUnknown(m) -} - -var xxx_messageInfo_CompactErrorTooManyPendingTasks proto.InternalMessageInfo type CompactRequest struct { // If specified, the compaction will start from this start key. @@ -10073,44 +6351,13 @@ type CompactRequest struct { // API version of the request ApiVersion APIVersion `protobuf:"varint,7,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // Keyspace of the table located in. - KeyspaceId uint32 `protobuf:"varint,8,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{127} -} -func (m *CompactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactRequest.Merge(m, src) -} -func (m *CompactRequest) XXX_Size() int { - return m.Size() -} -func (m *CompactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CompactRequest.DiscardUnknown(m) + KeyspaceId uint32 `protobuf:"varint,8,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` } -var xxx_messageInfo_CompactRequest proto.InternalMessageInfo +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{127} } func (m *CompactRequest) GetStartKey() []byte { if m != nil { @@ -10148,49 +6395,18 @@ func (m *CompactRequest) GetKeyspaceId() uint32 { } type CompactResponse struct { - Error *CompactError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *CompactError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` // The compaction is done incrementally. If there are more data to compact, this field // will be set. The client can request to compact more data according to the `compacted_end_key`. - HasRemaining bool `protobuf:"varint,2,opt,name=has_remaining,json=hasRemaining,proto3" json:"has_remaining,omitempty"` - CompactedStartKey []byte `protobuf:"bytes,3,opt,name=compacted_start_key,json=compactedStartKey,proto3" json:"compacted_start_key,omitempty"` - CompactedEndKey []byte `protobuf:"bytes,4,opt,name=compacted_end_key,json=compactedEndKey,proto3" json:"compacted_end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{128} -} -func (m *CompactResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactResponse.Merge(m, src) -} -func (m *CompactResponse) XXX_Size() int { - return m.Size() -} -func (m *CompactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CompactResponse.DiscardUnknown(m) + HasRemaining bool `protobuf:"varint,2,opt,name=has_remaining,json=hasRemaining,proto3" json:"has_remaining,omitempty"` + CompactedStartKey []byte `protobuf:"bytes,3,opt,name=compacted_start_key,json=compactedStartKey,proto3" json:"compacted_start_key,omitempty"` + CompactedEndKey []byte `protobuf:"bytes,4,opt,name=compacted_end_key,json=compactedEndKey,proto3" json:"compacted_end_key,omitempty"` } -var xxx_messageInfo_CompactResponse proto.InternalMessageInfo +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{128} } func (m *CompactResponse) GetError() *CompactError { if m != nil { @@ -10221,44 +6437,15 @@ func (m *CompactResponse) GetCompactedEndKey() []byte { } type TiFlashSystemTableRequest struct { - Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` } func (m *TiFlashSystemTableRequest) Reset() { *m = TiFlashSystemTableRequest{} } func (m *TiFlashSystemTableRequest) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableRequest) ProtoMessage() {} func (*TiFlashSystemTableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{129} -} -func (m *TiFlashSystemTableRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TiFlashSystemTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TiFlashSystemTableRequest.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 *TiFlashSystemTableRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TiFlashSystemTableRequest.Merge(m, src) -} -func (m *TiFlashSystemTableRequest) XXX_Size() int { - return m.Size() + return fileDescriptorKvrpcpb, []int{129} } -func (m *TiFlashSystemTableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TiFlashSystemTableRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TiFlashSystemTableRequest proto.InternalMessageInfo func (m *TiFlashSystemTableRequest) GetSql() string { if m != nil { @@ -10268,60 +6455,306 @@ func (m *TiFlashSystemTableRequest) GetSql() string { } type TiFlashSystemTableResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` } func (m *TiFlashSystemTableResponse) Reset() { *m = TiFlashSystemTableResponse{} } func (m *TiFlashSystemTableResponse) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableResponse) ProtoMessage() {} func (*TiFlashSystemTableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{130} + return fileDescriptorKvrpcpb, []int{130} } -func (m *TiFlashSystemTableResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type TxnEntry struct { + // Types that are valid to be assigned to Entry: + // *TxnEntry_Prewrite_ + // *TxnEntry_Commit_ + Entry isTxnEntry_Entry `protobuf_oneof:"entry"` } -func (m *TiFlashSystemTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TiFlashSystemTableResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (m *TxnEntry) Reset() { *m = TxnEntry{} } +func (m *TxnEntry) String() string { return proto.CompactTextString(m) } +func (*TxnEntry) ProtoMessage() {} +func (*TxnEntry) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131} } + +type isTxnEntry_Entry interface { + isTxnEntry_Entry() + MarshalTo([]byte) (int, error) + Size() int +} + +type TxnEntry_Prewrite_ struct { + Prewrite *TxnEntry_Prewrite `protobuf:"bytes,1,opt,name=prewrite,oneof"` +} +type TxnEntry_Commit_ struct { + Commit *TxnEntry_Commit `protobuf:"bytes,2,opt,name=commit,oneof"` +} + +func (*TxnEntry_Prewrite_) isTxnEntry_Entry() {} +func (*TxnEntry_Commit_) isTxnEntry_Entry() {} + +func (m *TxnEntry) GetEntry() isTxnEntry_Entry { + if m != nil { + return m.Entry + } + return nil +} + +func (m *TxnEntry) GetPrewrite() *TxnEntry_Prewrite { + if x, ok := m.GetEntry().(*TxnEntry_Prewrite_); ok { + return x.Prewrite + } + return nil +} + +func (m *TxnEntry) GetCommit() *TxnEntry_Commit { + if x, ok := m.GetEntry().(*TxnEntry_Commit_); ok { + return x.Commit + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TxnEntry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TxnEntry_OneofMarshaler, _TxnEntry_OneofUnmarshaler, _TxnEntry_OneofSizer, []interface{}{ + (*TxnEntry_Prewrite_)(nil), + (*TxnEntry_Commit_)(nil), + } +} + +func _TxnEntry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TxnEntry) + // entry + switch x := m.Entry.(type) { + case *TxnEntry_Prewrite_: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Prewrite); err != nil { + return err + } + case *TxnEntry_Commit_: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Commit); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TxnEntry.Entry has unexpected type %T", x) + } + return nil +} + +func _TxnEntry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TxnEntry) + switch tag { + case 1: // entry.prewrite + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType } - return b[:n], nil + msg := new(TxnEntry_Prewrite) + err := b.DecodeMessage(msg) + m.Entry = &TxnEntry_Prewrite_{msg} + return true, err + case 2: // entry.commit + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TxnEntry_Commit) + err := b.DecodeMessage(msg) + m.Entry = &TxnEntry_Commit_{msg} + return true, err + default: + return false, nil + } +} + +func _TxnEntry_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TxnEntry) + // entry + switch x := m.Entry.(type) { + case *TxnEntry_Prewrite_: + s := proto.Size(x.Prewrite) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TxnEntry_Commit_: + s := proto.Size(x.Commit) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type TxnEntry_Prewrite struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + PrimaryKey []byte `protobuf:"bytes,4,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` +} + +func (m *TxnEntry_Prewrite) Reset() { *m = TxnEntry_Prewrite{} } +func (m *TxnEntry_Prewrite) String() string { return proto.CompactTextString(m) } +func (*TxnEntry_Prewrite) ProtoMessage() {} +func (*TxnEntry_Prewrite) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131, 0} } + +func (m *TxnEntry_Prewrite) GetKey() []byte { + if m != nil { + return m.Key + } + return nil +} + +func (m *TxnEntry_Prewrite) GetValue() []byte { + if m != nil { + return m.Value } + return nil } -func (m *TiFlashSystemTableResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TiFlashSystemTableResponse.Merge(m, src) + +func (m *TxnEntry_Prewrite) GetStartTs() uint64 { + if m != nil { + return m.StartTs + } + return 0 +} + +func (m *TxnEntry_Prewrite) GetPrimaryKey() []byte { + if m != nil { + return m.PrimaryKey + } + return nil } -func (m *TiFlashSystemTableResponse) XXX_Size() int { - return m.Size() + +type TxnEntry_Commit struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` } -func (m *TiFlashSystemTableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TiFlashSystemTableResponse.DiscardUnknown(m) + +func (m *TxnEntry_Commit) Reset() { *m = TxnEntry_Commit{} } +func (m *TxnEntry_Commit) String() string { return proto.CompactTextString(m) } +func (*TxnEntry_Commit) ProtoMessage() {} +func (*TxnEntry_Commit) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131, 1} } + +func (m *TxnEntry_Commit) GetKey() []byte { + if m != nil { + return m.Key + } + return nil } -var xxx_messageInfo_TiFlashSystemTableResponse proto.InternalMessageInfo +func (m *TxnEntry_Commit) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *TxnEntry_Commit) GetStartTs() uint64 { + if m != nil { + return m.StartTs + } + return 0 +} + +func (m *TxnEntry_Commit) GetCommitTs() uint64 { + if m != nil { + return m.CommitTs + } + return 0 +} + +// ScanTxnEntriesRequest is like ScanRequest, but retrieves transaction entries +// instead of key-value pairs. +type ScanTxnEntriesRequest struct { + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + // start_key and end_key must be specified, however limit is optional. + // by default limit is 0, which means no limit. + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + KeyOnly bool `protobuf:"varint,5,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` + // entries will be filtered by commit_ts >= start_ts. + // uncommitted entries will be kept. + StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` +} + +func (m *ScanTxnEntriesRequest) Reset() { *m = ScanTxnEntriesRequest{} } +func (m *ScanTxnEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntriesRequest) ProtoMessage() {} +func (*ScanTxnEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{132} } + +func (m *ScanTxnEntriesRequest) GetContext() *Context { + if m != nil { + return m.Context + } + return nil +} + +func (m *ScanTxnEntriesRequest) GetStartKey() []byte { + if m != nil { + return m.StartKey + } + return nil +} + +func (m *ScanTxnEntriesRequest) GetEndKey() []byte { + if m != nil { + return m.EndKey + } + return nil +} + +func (m *ScanTxnEntriesRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ScanTxnEntriesRequest) GetKeyOnly() bool { + if m != nil { + return m.KeyOnly + } + return false +} + +func (m *ScanTxnEntriesRequest) GetStartTs() uint64 { + if m != nil { + return m.StartTs + } + return 0 +} + +type ScanTxnEntriesResponse struct { + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + Entries []*TxnEntry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` +} + +func (m *ScanTxnEntriesResponse) Reset() { *m = ScanTxnEntriesResponse{} } +func (m *ScanTxnEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntriesResponse) ProtoMessage() {} +func (*ScanTxnEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{133} } + +func (m *ScanTxnEntriesResponse) GetRegionError() *errorpb.Error { + if m != nil { + return m.RegionError + } + return nil +} + +func (m *ScanTxnEntriesResponse) GetEntries() []*TxnEntry { + if m != nil { + return m.Entries + } + return nil +} func init() { - proto.RegisterEnum("kvrpcpb.PessimisticLockWakeUpMode", PessimisticLockWakeUpMode_name, PessimisticLockWakeUpMode_value) - proto.RegisterEnum("kvrpcpb.PessimisticLockKeyResultType", PessimisticLockKeyResultType_name, PessimisticLockKeyResultType_value) - proto.RegisterEnum("kvrpcpb.APIVersion", APIVersion_name, APIVersion_value) - proto.RegisterEnum("kvrpcpb.CommandPri", CommandPri_name, CommandPri_value) - proto.RegisterEnum("kvrpcpb.IsolationLevel", IsolationLevel_name, IsolationLevel_value) - proto.RegisterEnum("kvrpcpb.DiskFullOpt", DiskFullOpt_name, DiskFullOpt_value) - proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value) - proto.RegisterEnum("kvrpcpb.Assertion", Assertion_name, Assertion_value) - proto.RegisterEnum("kvrpcpb.AssertionLevel", AssertionLevel_name, AssertionLevel_value) - proto.RegisterEnum("kvrpcpb.Action", Action_name, Action_value) - proto.RegisterEnum("kvrpcpb.ExtraOp", ExtraOp_name, ExtraOp_value) - proto.RegisterEnum("kvrpcpb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) - proto.RegisterEnum("kvrpcpb.PrewriteRequest_PessimisticAction", PrewriteRequest_PessimisticAction_name, PrewriteRequest_PessimisticAction_value) - proto.RegisterEnum("kvrpcpb.WriteConflict_Reason", WriteConflict_Reason_name, WriteConflict_Reason_value) proto.RegisterType((*GetRequest)(nil), "kvrpcpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "kvrpcpb.GetResponse") proto.RegisterType((*ScanRequest)(nil), "kvrpcpb.ScanRequest") @@ -10454,449 +6887,30 @@ func init() { proto.RegisterType((*CompactResponse)(nil), "kvrpcpb.CompactResponse") proto.RegisterType((*TiFlashSystemTableRequest)(nil), "kvrpcpb.TiFlashSystemTableRequest") proto.RegisterType((*TiFlashSystemTableResponse)(nil), "kvrpcpb.TiFlashSystemTableResponse") + proto.RegisterType((*TxnEntry)(nil), "kvrpcpb.TxnEntry") + proto.RegisterType((*TxnEntry_Prewrite)(nil), "kvrpcpb.TxnEntry.Prewrite") + proto.RegisterType((*TxnEntry_Commit)(nil), "kvrpcpb.TxnEntry.Commit") + proto.RegisterType((*ScanTxnEntriesRequest)(nil), "kvrpcpb.ScanTxnEntriesRequest") + proto.RegisterType((*ScanTxnEntriesResponse)(nil), "kvrpcpb.ScanTxnEntriesResponse") + proto.RegisterEnum("kvrpcpb.PessimisticLockWakeUpMode", PessimisticLockWakeUpMode_name, PessimisticLockWakeUpMode_value) + proto.RegisterEnum("kvrpcpb.PessimisticLockKeyResultType", PessimisticLockKeyResultType_name, PessimisticLockKeyResultType_value) + proto.RegisterEnum("kvrpcpb.APIVersion", APIVersion_name, APIVersion_value) + proto.RegisterEnum("kvrpcpb.CommandPri", CommandPri_name, CommandPri_value) + proto.RegisterEnum("kvrpcpb.IsolationLevel", IsolationLevel_name, IsolationLevel_value) + proto.RegisterEnum("kvrpcpb.DiskFullOpt", DiskFullOpt_name, DiskFullOpt_value) + proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value) + proto.RegisterEnum("kvrpcpb.Assertion", Assertion_name, Assertion_value) + proto.RegisterEnum("kvrpcpb.AssertionLevel", AssertionLevel_name, AssertionLevel_value) + proto.RegisterEnum("kvrpcpb.Action", Action_name, Action_value) + proto.RegisterEnum("kvrpcpb.ExtraOp", ExtraOp_name, ExtraOp_value) + proto.RegisterEnum("kvrpcpb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) + proto.RegisterEnum("kvrpcpb.PrewriteRequest_PessimisticAction", PrewriteRequest_PessimisticAction_name, PrewriteRequest_PessimisticAction_value) + proto.RegisterEnum("kvrpcpb.WriteConflict_Reason", WriteConflict_Reason_name, WriteConflict_Reason_value) } - -func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } - -var fileDescriptor_1afe832be69693c7 = []byte{ - // 6892 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x3c, 0x5b, 0x6c, 0x23, 0xc9, - 0x71, 0x3b, 0x24, 0x25, 0x52, 0x45, 0x89, 0x1a, 0xb5, 0x5e, 0x94, 0x76, 0xf7, 0x76, 0x77, 0xce, - 0x7b, 0xb7, 0xd6, 0xf9, 0xb4, 0x3e, 0xdd, 0xc3, 0xcf, 0x9c, 0x6f, 0x57, 0xfb, 0xd2, 0xed, 0x43, - 0xc2, 0x90, 0xb7, 0x97, 0x43, 0x62, 0x8f, 0x5b, 0xc3, 0x16, 0x39, 0xd0, 0x70, 0x66, 0x6e, 0xba, - 0x29, 0x89, 0x0e, 0x02, 0xc4, 0xc8, 0x03, 0x70, 0x90, 0x38, 0xb1, 0x61, 0xc0, 0x01, 0x6c, 0x04, - 0xc8, 0x87, 0x81, 0x38, 0x1f, 0x01, 0x82, 0xfc, 0xe4, 0xf1, 0x11, 0x04, 0xf0, 0xc7, 0x25, 0x88, - 0x61, 0x03, 0x41, 0xe0, 0xc0, 0x09, 0x8c, 0xe0, 0x02, 0xe4, 0x3b, 0x3f, 0x41, 0xf2, 0x13, 0x24, - 0xe8, 0xd7, 0x3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xe4, 0x37, 0xf9, 0xaf, 0x5d, 0x95, - 0x34, 0xa2, 0x80, 0x5e, 0x84, 0x31, 0x49, 0x5b, 0x10, 0xb4, 0x33, 0x09, 0x63, 0x77, 0x49, 0x5f, - 0x92, 0x4b, 0x3c, 0x9a, 0x83, 0xb1, 0x3d, 0xec, 0xf7, 0x88, 0xe0, 0x61, 0xd2, 0x96, 0x05, 0x74, - 0x16, 0x26, 0x82, 0x90, 0x39, 0x3b, 0x61, 0x2f, 0x68, 0xd5, 0x4b, 0x17, 0x8d, 0x2b, 0x15, 0xbb, - 0x12, 0x84, 0xec, 0x16, 0x2f, 0xa3, 0x37, 0x61, 0x9a, 0x1c, 0x10, 0xd7, 0x69, 0x11, 0x86, 0x3d, - 0x9f, 0x3a, 0x7b, 0x6b, 0xf5, 0x71, 0xd1, 0xcb, 0x42, 0xd2, 0xcb, 0xcd, 0x03, 0xe2, 0xde, 0x90, - 0xe8, 0x87, 0x6b, 0xf6, 0x14, 0xc9, 0x16, 0xdf, 0x2e, 0x55, 0xc6, 0xcc, 0x71, 0xeb, 0x3f, 0x0c, - 0xa8, 0x36, 0x5c, 0x1c, 0x9c, 0x44, 0x98, 0x67, 0x61, 0x82, 0x32, 0x1c, 0x33, 0x27, 0x15, 0x69, - 0x45, 0x00, 0xee, 0x92, 0x3e, 0x1f, 0x91, 0xef, 0x75, 0x3d, 0x26, 0x46, 0x34, 0x65, 0xcb, 0x42, - 0x56, 0xda, 0xa5, 0x9c, 0xb4, 0xd1, 0x12, 0x54, 0x76, 0x49, 0xdf, 0x09, 0x03, 0xbf, 0x5f, 0x1f, - 0x13, 0x43, 0x2d, 0xef, 0x92, 0xfe, 0x66, 0xe0, 0x0b, 0x15, 0xc5, 0x84, 0xd3, 0x11, 0x31, 0xc2, - 0x8a, 0xad, 0x8b, 0x68, 0x11, 0xca, 0x24, 0x68, 0x89, 0xfe, 0xcb, 0xa2, 0xff, 0x71, 0x12, 0xb4, - 0x78, 0xef, 0x17, 0xa0, 0x4a, 0x71, 0x37, 0xf2, 0x89, 0x43, 0x19, 0x89, 0xea, 0x15, 0xc1, 0x03, - 0x48, 0x50, 0x83, 0x91, 0xc8, 0xfa, 0x9a, 0x01, 0x93, 0x72, 0xdc, 0x27, 0xd7, 0xee, 0x65, 0x18, - 0x8b, 0xb0, 0x17, 0xd3, 0x7a, 0xe1, 0x62, 0xf1, 0x4a, 0x75, 0x6d, 0x3a, 0xd5, 0xee, 0xde, 0x16, - 0xf6, 0x62, 0x5b, 0x62, 0x53, 0x23, 0x28, 0x1e, 0x6d, 0x04, 0xd6, 0x07, 0x65, 0x98, 0xde, 0x8a, - 0xc9, 0x7e, 0xec, 0x31, 0x72, 0x12, 0x7d, 0x5c, 0x85, 0x89, 0x6e, 0x8f, 0x61, 0xe6, 0x85, 0x81, - 0xe6, 0x29, 0xed, 0xec, 0xbe, 0xc2, 0xd8, 0x29, 0x0d, 0xba, 0x04, 0x93, 0x51, 0xec, 0x75, 0x71, - 0xdc, 0x77, 0xf8, 0x24, 0x54, 0xc6, 0x57, 0x55, 0xb0, 0x7b, 0xa1, 0xbb, 0x8b, 0x9e, 0x87, 0x29, - 0xa9, 0xe3, 0xbc, 0xda, 0x26, 0x05, 0xf0, 0x61, 0xaa, 0x3b, 0x5e, 0xdf, 0x61, 0xcc, 0x17, 0xba, - 0x2b, 0xd9, 0x65, 0x5e, 0x6e, 0x32, 0x1f, 0xad, 0xc1, 0x3c, 0xdd, 0xf5, 0x22, 0xc7, 0x0d, 0x03, - 0xca, 0x62, 0xec, 0x05, 0xcc, 0x71, 0x3b, 0xc4, 0xdd, 0x55, 0x9a, 0x9c, 0xe5, 0xc8, 0xf5, 0x04, - 0xb7, 0xce, 0x51, 0xe8, 0x17, 0x60, 0x36, 0x22, 0x94, 0x7a, 0x5d, 0x8f, 0x32, 0xcf, 0x75, 0xb0, - 0x2b, 0x47, 0x54, 0xbe, 0x58, 0xbc, 0x52, 0x5b, 0x5b, 0x49, 0x46, 0x34, 0x20, 0x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f, 0xe9, 0x25, 0x3c, 0xea, - 0xec, 0x78, 0x31, 0x65, 0x92, 0x8f, 0xb2, 0x98, 0xb8, 0x55, 0x8f, 0xde, 0xe2, 0x30, 0xc1, 0xc7, - 0x25, 0x98, 0xdc, 0xc7, 0x5c, 0x05, 0x5e, 0x97, 0x84, 0x3d, 0x26, 0x9c, 0x51, 0xd1, 0xae, 0x72, - 0x58, 0x53, 0x82, 0x50, 0x1d, 0xc6, 0x76, 0xc2, 0xd8, 0x25, 0xc2, 0x11, 0x55, 0xae, 0x17, 0xea, - 0x86, 0x2d, 0x01, 0x7c, 0x10, 0x31, 0x61, 0xbd, 0x38, 0x70, 0x44, 0xa4, 0x20, 0xdd, 0x50, 0xc5, - 0x9e, 0x94, 0xc0, 0x87, 0x02, 0x36, 0x6c, 0x11, 0xd5, 0x51, 0x16, 0x31, 0x2d, 0xfc, 0xb1, 0x43, - 0x0e, 0x3c, 0xca, 0x48, 0xe0, 0x92, 0xfa, 0xa4, 0x74, 0x55, 0x02, 0x7c, 0x53, 0x43, 0xd1, 0xcb, - 0x30, 0x2b, 0x24, 0xc2, 0x17, 0x68, 0xc7, 0xdb, 0x91, 0xf4, 0x54, 0x79, 0x24, 0x93, 0xa3, 0xf8, - 0x5a, 0xbd, 0xb1, 0x23, 0x6a, 0x50, 0x74, 0x83, 0x8f, 0x6e, 0x97, 0x38, 0xbd, 0xc8, 0xe9, 0x86, - 0x2d, 0x22, 0x1c, 0x53, 0x6d, 0xcd, 0x4a, 0xdd, 0x44, 0xde, 0x38, 0xde, 0xc5, 0xbb, 0xe4, 0x9d, - 0xe8, 0x7e, 0xd8, 0x22, 0x36, 0xec, 0x27, 0xff, 0xad, 0x7f, 0x37, 0xa0, 0x3e, 0x40, 0x79, 0x97, - 0xf4, 0x6d, 0x42, 0x7b, 0x3e, 0x43, 0x9f, 0x82, 0x12, 0xeb, 0x47, 0x44, 0x58, 0x51, 0x6d, 0xed, - 0xf2, 0x61, 0x4d, 0x27, 0x15, 0x9a, 0xfd, 0x88, 0xd8, 0xa2, 0x4a, 0x1a, 0x6e, 0x15, 0xb2, 0xe1, - 0xd6, 0x39, 0x98, 0x48, 0xa5, 0x50, 0x14, 0x03, 0x4b, 0x01, 0xe8, 0x75, 0x58, 0xe4, 0xa3, 0x24, - 0x2d, 0x67, 0xdf, 0x63, 0x1d, 0xee, 0x03, 0x77, 0x7c, 0xcf, 0xcd, 0x4c, 0xa1, 0x39, 0x89, 0x7e, - 0xd7, 0x63, 0x9d, 0x75, 0x85, 0x6c, 0x52, 0xb4, 0x0a, 0x62, 0x8d, 0x73, 0x78, 0x28, 0xeb, 0xef, - 0x79, 0x41, 0x5b, 0x1a, 0x84, 0x5c, 0x0f, 0x66, 0x38, 0xca, 0xd6, 0x18, 0xce, 0xad, 0xf5, 0x6f, - 0x05, 0x58, 0x1c, 0x9a, 0x39, 0xcf, 0xc4, 0x81, 0x5c, 0x80, 0x89, 0x01, 0xe7, 0x21, 0x2c, 0xae, - 0xe2, 0x6a, 0x5b, 0xa9, 0x6b, 0xa9, 0xf1, 0xf1, 0x4e, 0x4a, 0x73, 0x94, 0x92, 0x5b, 0x80, 0x71, - 0x65, 0x87, 0x63, 0x62, 0x09, 0x53, 0x25, 0x74, 0x1e, 0x20, 0x09, 0x60, 0xf9, 0x44, 0x29, 0x72, - 0x91, 0xea, 0x08, 0x76, 0xa4, 0x97, 0x29, 0x3f, 0x86, 0x97, 0x41, 0x9f, 0xe1, 0x81, 0x21, 0x57, - 0x2d, 0xad, 0x57, 0xc4, 0xe8, 0x2e, 0x3d, 0xd2, 0x08, 0x6c, 0x5d, 0xc3, 0xfa, 0x8e, 0x01, 0xcb, - 0x19, 0x2a, 0x3b, 0xf4, 0xfd, 0x6d, 0x7c, 0x32, 0x37, 0x35, 0xe4, 0x52, 0x0a, 0x23, 0x5c, 0xca, - 0x90, 0xdf, 0x28, 0x0e, 0xfb, 0x0d, 0x04, 0xa5, 0x5d, 0xd2, 0xe7, 0x06, 0xc5, 0x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d, 0xca, 0x19, 0x5d, 0x80, 0x6a, 0xf6, 0x9d, 0x87, 0xca, 0x50, 0x71, 0xd3, 0xd7, 0x1d, 0xc3, - 0xf3, 0xbe, 0x0e, 0x65, 0x9d, 0xfe, 0x2b, 0x2f, 0x28, 0x75, 0x91, 0xc7, 0x11, 0x49, 0x63, 0xe9, - 0xfc, 0x92, 0x0e, 0xc0, 0xd4, 0x98, 0x64, 0x92, 0xbd, 0x0e, 0xe3, 0x31, 0xc1, 0x34, 0x0c, 0x94, - 0x1b, 0x38, 0x3f, 0xda, 0x30, 0x57, 0x6d, 0x41, 0x64, 0x2b, 0x62, 0x6b, 0x1f, 0xc6, 0x25, 0x04, - 0x55, 0xa1, 0xfc, 0x4e, 0xb0, 0x1b, 0x84, 0xfb, 0x81, 0x79, 0x06, 0xd5, 0x00, 0x36, 0x23, 0xa6, - 0x12, 0x96, 0x4d, 0x03, 0xcd, 0x81, 0x99, 0x7d, 0x53, 0xc0, 0xa7, 0x89, 0x59, 0x40, 0x08, 0x6a, - 0x0d, 0xe2, 0xef, 0xd8, 0xa1, 0xef, 0x93, 0xd6, 0x75, 0xec, 0xee, 0x9a, 0x45, 0x34, 0x05, 0x13, - 0xb6, 0x2b, 0xb3, 0x95, 0xa9, 0x59, 0x42, 0x8b, 0x30, 0x7b, 0x0f, 0x7f, 0xa9, 0xff, 0x4e, 0xe0, - 0xbd, 0xdf, 0x23, 0x01, 0xa1, 0x54, 0xa0, 0xcc, 0x31, 0xeb, 0x22, 0x4c, 0x66, 0x0d, 0x5f, 0x4b, - 0xc6, 0x48, 0xb7, 0x54, 0x7f, 0x60, 0x40, 0x45, 0x1b, 0x79, 0x36, 0x59, 0xdc, 0xc8, 0x25, 0x8b, - 0x6b, 0xbf, 0x99, 0xee, 0xc7, 0x04, 0xe1, 0x5d, 0xd2, 0xe7, 0x51, 0x81, 0x9e, 0x1a, 0x1c, 0xed, - 0x74, 0x30, 0xed, 0x28, 0xff, 0x3f, 0xad, 0x11, 0x77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xa9, 0xea, - 0x6a, 0x99, 0xd4, 0x38, 0xe2, 0x5d, 0xec, 0xfb, 0x9c, 0xfc, 0x3e, 0x45, 0x57, 0x61, 0x2e, 0x8a, - 0x43, 0x97, 0x50, 0x9a, 0xa7, 0x56, 0xc6, 0xa2, 0x70, 0x99, 0x0a, 0xab, 0x30, 0xb7, 0xbb, 0x27, - 0xf6, 0x24, 0xf9, 0x0a, 0x2a, 0xc6, 0xda, 0xdd, 0xe3, 0xbb, 0x93, 0x0c, 0xfd, 0x1a, 0x2c, 0xb0, - 0x90, 0x61, 0xdf, 0x89, 0x23, 0x37, 0x53, 0x23, 0xd0, 0xc2, 0x43, 0x02, 0x6b, 0x47, 0xae, 0xae, - 0xf3, 0x80, 0x5a, 0x5f, 0x2d, 0xc0, 0x64, 0x3a, 0x9c, 0x87, 0x6b, 0x23, 0x06, 0x14, 0x8c, 0x1c, - 0xd0, 0x83, 0x43, 0x06, 0x14, 0x1c, 0x36, 0xa0, 0x07, 0x14, 0xbd, 0x09, 0xe7, 0x74, 0x05, 0xda, - 0xa3, 0x11, 0x09, 0x5a, 0xf9, 0x8a, 0x72, 0x60, 0x75, 0x45, 0xd3, 0x90, 0x24, 0x99, 0xfa, 0x23, - 0x05, 0x92, 0x0c, 0x6f, 0x40, 0x20, 0x0f, 0x8e, 0x12, 0xc8, 0xd8, 0xa1, 0x02, 0xf9, 0x3c, 0x54, - 0xf8, 0xd6, 0x56, 0x84, 0x86, 0x73, 0x30, 0x26, 0x28, 0xc4, 0xf8, 0x8b, 0xb6, 0x2c, 0xf0, 0x38, - 0x43, 0x71, 0x48, 0x64, 0x70, 0x5a, 0xb4, 0x53, 0x40, 0x72, 0xac, 0xb5, 0xdd, 0x67, 0x44, 0x8e, - 0xa8, 0x28, 0x8f, 0xb5, 0xae, 0x73, 0x80, 0xf5, 0xab, 0x3c, 0x0e, 0x76, 0x71, 0xa0, 0xcc, 0xe7, - 0x45, 0x18, 0x13, 0x4f, 0x84, 0x87, 0x2c,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x16, 0x56, 0x5e, 0x04, 0x48, - 0xed, 0x0a, 0x8d, 0x43, 0xe1, 0xe1, 0x2b, 0xe6, 0x19, 0x34, 0x01, 0x63, 0x0f, 0x5f, 0x69, 0x36, - 0xef, 0x99, 0x86, 0x00, 0xad, 0x99, 0x85, 0x95, 0x97, 0x00, 0xd2, 0x94, 0x61, 0x04, 0x30, 0x9e, - 0x74, 0x5d, 0x86, 0xe2, 0xbd, 0x70, 0xdf, 0x34, 0x50, 0x05, 0x4a, 0x77, 0xbc, 0x76, 0xc7, 0x2c, - 0xac, 0x5c, 0x85, 0x5a, 0x3e, 0x4f, 0x98, 0x37, 0xd3, 0xd8, 0x30, 0xcf, 0xf0, 0x5f, 0x7b, 0xdd, - 0x34, 0x44, 0xca, 0xc6, 0xba, 0x4c, 0xd9, 0x68, 0x98, 0x85, 0x95, 0x87, 0x50, 0xcd, 0xe4, 0x9c, - 0x72, 0x5e, 0x1f, 0x84, 0xec, 0x9a, 0xef, 0x87, 0xfb, 0xa4, 0xb5, 0x19, 0x70, 0xb0, 0x14, 0x59, - 0x02, 0xba, 0xe6, 0x77, 0x43, 0xca, 0x04, 0xc2, 0x40, 0x75, 0x98, 0xcb, 0x20, 0x44, 0x82, 0x87, - 0xc0, 0x14, 0x56, 0x5c, 0x28, 0x6c, 0x46, 0x9c, 0xc3, 0xad, 0x1e, 0x93, 0xac, 0xde, 0x20, 0xbe, - 0x64, 0x55, 0x88, 0xbb, 0x80, 0x26, 0xa1, 0xa2, 0xcf, 0xb4, 0xcc, 0x22, 0x1f, 0xd7, 0x46, 0x40, - 0x49, 0xcc, 0xcc, 0x12, 0x9a, 0x85, 0xe9, 0x01, 0x45, 0x98, 0x63, 0x08, 0x41, 0x4d, 0x70, 0xad, - 0xdd, 0x0f, 0x35, 0xc7, 0x57, 0x56, 0x61, 0x22, 0x39, 0xe2, 0xe3, 0x2d, 0x3f, 0x08, 0x03, 0x22, - 0x85, 0x28, 0x48, 0x4c, 0x83, 0x77, 0xa2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b, 0x9f, 0x57, 0xff, 0x37, - 0x00, 0x00, 0xff, 0xff, 0xeb, 0x0e, 0x59, 0x0f, 0xf8, 0x61, 0x00, 0x00, -} - func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10904,50 +6918,38 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n1, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Version != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10955,79 +6957,63 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n2, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n3, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n3 + } + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } if m.NotFound { - i-- + dAtA[i] = 0x20 + i++ if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n4, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *ScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11035,87 +7021,74 @@ func (m *ScanRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n5, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if m.SampleStep != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SampleStep)) - i-- - dAtA[i] = 0x40 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x3a + if m.Limit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) } - if m.Reverse { - i-- - if m.Reverse { + if m.Version != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + } + if m.KeyOnly { + dAtA[i] = 0x28 + i++ + if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 + i++ } - if m.KeyOnly { - i-- - if m.KeyOnly { + if m.Reverse { + dAtA[i] = 0x30 + i++ + if m.Reverse { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x20 - } - if m.Limit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 + i++ } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 + if len(m.EndKey) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.SampleStep != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SampleStep)) } - return len(dAtA) - i, nil + return i, nil } func (m *ScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11123,64 +7096,49 @@ func (m *ScanResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n6, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n6 } if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Pairs { dAtA[i] = 0x12 - } - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.Error != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n7, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + return i, nil } func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11188,167 +7146,149 @@ func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { } func (m *PrewriteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrewriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n8, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - if len(m.ForUpdateTsConstraints) > 0 { - for iNdEx := len(m.ForUpdateTsConstraints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ForUpdateTsConstraints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if len(m.Mutations) > 0 { + for _, msg := range m.Mutations { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n } } - if m.AssertionLevel != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) - i-- - dAtA[i] = 0x78 - } - if m.MaxCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) - i-- - dAtA[i] = 0x70 + if len(m.PrimaryLock) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i += copy(dAtA[i:], m.PrimaryLock) } - if m.TryOnePc { - i-- - if m.TryOnePc { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 + if m.StartVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if len(m.Secondaries) > 0 { - for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Secondaries[iNdEx]) - copy(dAtA[i:], m.Secondaries[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) - i-- - dAtA[i] = 0x62 - } + if m.LockTtl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) } - if m.UseAsyncCommit { - i-- - if m.UseAsyncCommit { + if m.SkipConstraintCheck { + dAtA[i] = 0x30 + i++ + if m.SkipConstraintCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x58 - } - if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x50 - } - if m.ForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - i-- - dAtA[i] = 0x48 - } - if m.TxnSize != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) - i-- - dAtA[i] = 0x40 + i++ } if len(m.PessimisticActions) > 0 { - dAtA9 := make([]byte, len(m.PessimisticActions)*10) - var j8 int + dAtA10 := make([]byte, len(m.PessimisticActions)*10) + var j9 int for _, num := range m.PessimisticActions { for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j8++ + j9++ } - dAtA9[j8] = uint8(num) - j8++ + dAtA10[j9] = uint8(num) + j9++ } - i -= j8 - copy(dAtA[i:], dAtA9[:j8]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j8)) - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j9)) + i += copy(dAtA[i:], dAtA10[:j9]) } - if m.SkipConstraintCheck { - i-- - if m.SkipConstraintCheck { + if m.TxnSize != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + } + if m.ForUpdateTs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + } + if m.MinCommitTs != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + } + if m.UseAsyncCommit { + dAtA[i] = 0x58 + i++ + if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 + i++ } - if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x28 + if len(m.Secondaries) > 0 { + for _, b := range m.Secondaries { + dAtA[i] = 0x62 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 + if m.TryOnePc { + dAtA[i] = 0x68 + i++ + if m.TryOnePc { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if len(m.PrimaryLock) > 0 { - i -= len(m.PrimaryLock) - copy(dAtA[i:], m.PrimaryLock) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i-- - dAtA[i] = 0x1a + if m.MaxCommitTs != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) } - if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.AssertionLevel != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.ForUpdateTsConstraints) > 0 { + for _, msg := range m.ForUpdateTsConstraints { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *PrewriteRequest_ForUpdateTSConstraint) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11356,36 +7296,27 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Marshal() (dAtA []byte, err erro } func (m *PrewriteRequest_ForUpdateTSConstraint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrewriteRequest_ForUpdateTSConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Index != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Index)) } if m.ExpectedForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExpectedForUpdateTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExpectedForUpdateTs)) } - if m.Index != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11393,74 +7324,59 @@ func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { } func (m *PrewriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrewriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n11, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Errors) > 0 { + for _, msg := range m.Errors { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a - } - if m.OnePcCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OnePcCommitTs)) - i-- - dAtA[i] = 0x20 } if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } - if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.OnePcCommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OnePcCommitTs)) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n12, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *PessimisticLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11468,139 +7384,125 @@ func (m *PessimisticLockRequest) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PessimisticLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n13, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - if m.WakeUpMode != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WakeUpMode)) - i-- - dAtA[i] = 0x70 + if len(m.Mutations) > 0 { + for _, msg := range m.Mutations { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.LockOnlyIfExists { - i-- - if m.LockOnlyIfExists { + if len(m.PrimaryLock) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i += copy(dAtA[i:], m.PrimaryLock) + } + if m.StartVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + } + if m.LockTtl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + } + if m.ForUpdateTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + } + if m.IsFirstLock { + dAtA[i] = 0x38 + i++ + if m.IsFirstLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x68 + i++ } - if m.CheckExistence { - i-- - if m.CheckExistence { + if m.WaitTimeout != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitTimeout)) + } + if m.Force { + dAtA[i] = 0x48 + i++ + if m.Force { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x60 - } - if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x58 + i++ } if m.ReturnValues { - i-- + dAtA[i] = 0x50 + i++ if m.ReturnValues { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 + i++ } - if m.Force { - i-- - if m.Force { + if m.MinCommitTs != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + } + if m.CheckExistence { + dAtA[i] = 0x60 + i++ + if m.CheckExistence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 - } - if m.WaitTimeout != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitTimeout)) - i-- - dAtA[i] = 0x40 + i++ } - if m.IsFirstLock { - i-- - if m.IsFirstLock { + if m.LockOnlyIfExists { + dAtA[i] = 0x68 + i++ + if m.LockOnlyIfExists { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 - } - if m.ForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - i-- - dAtA[i] = 0x30 - } - if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x28 - } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 - } - if len(m.PrimaryLock) > 0 { - i -= len(m.PrimaryLock) - copy(dAtA[i:], m.PrimaryLock) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i-- - dAtA[i] = 0x1a - } - if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + i++ } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.WakeUpMode != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WakeUpMode)) } - return len(dAtA) - i, nil + return i, nil } func (m *PessimisticLockKeyResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11608,63 +7510,53 @@ func (m *PessimisticLockKeyResult) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockKeyResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PessimisticLockKeyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) } - if m.SkipResolvingLock { - i-- - if m.SkipResolvingLock { + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + if m.Existence { + dAtA[i] = 0x18 + i++ + if m.Existence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x58 + i++ } if m.LockedWithConflictTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockedWithConflictTs)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockedWithConflictTs)) } - if m.Existence { - i-- - if m.Existence { + if m.SkipResolvingLock { + dAtA[i] = 0x58 + i++ + if m.SkipResolvingLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 + i++ } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *PessimisticLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11672,112 +7564,93 @@ func (m *PessimisticLockResponse) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PessimisticLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Results) > 0 { - for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n14, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n14 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Errors) > 0 { + for _, msg := range m.Errors { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n + } + } + if m.CommitTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + } + if len(m.Value) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + if len(m.Values) > 0 { + for _, b := range m.Values { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0x3a } if len(m.NotFounds) > 0 { - for iNdEx := len(m.NotFounds) - 1; iNdEx >= 0; iNdEx-- { - i-- - if m.NotFounds[iNdEx] { + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.NotFounds))) + for _, b := range m.NotFounds { + if b { dAtA[i] = 1 } else { dAtA[i] = 0 } + i++ } - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.NotFounds))) - i-- - dAtA[i] = 0x32 } - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Values[iNdEx]) - copy(dAtA[i:], m.Values[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x22 - } - if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n15, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n15 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Results) > 0 { + for _, msg := range m.Results { + dAtA[i] = 0x42 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *PessimisticRollbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11785,57 +7658,45 @@ func (m *PessimisticRollbackRequest) Marshal() (dAtA []byte, err error) { } func (m *PessimisticRollbackRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PessimisticRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x22 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n16, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - } - if m.ForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - i-- - dAtA[i] = 0x18 + i += n16 } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ForUpdateTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + } + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *PessimisticRollbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11843,64 +7704,49 @@ func (m *PessimisticRollbackResponse) Marshal() (dAtA []byte, err error) { } func (m *PessimisticRollbackResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PessimisticRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n17, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n17 } if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Errors { dAtA[i] = 0x12 - } - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n18, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + } + return i, nil } func (m *TxnHeartBeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11908,55 +7754,43 @@ func (m *TxnHeartBeatRequest) Marshal() (dAtA []byte, err error) { } func (m *TxnHeartBeatRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnHeartBeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n19, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - if m.AdviseLockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AdviseLockTtl)) - i-- - dAtA[i] = 0x20 + if len(m.PrimaryLock) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i += copy(dAtA[i:], m.PrimaryLock) } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if len(m.PrimaryLock) > 0 { - i -= len(m.PrimaryLock) - copy(dAtA[i:], m.PrimaryLock) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.AdviseLockTtl != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AdviseLockTtl)) } - return len(dAtA) - i, nil + return i, nil } func (m *TxnHeartBeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11964,67 +7798,52 @@ func (m *TxnHeartBeatResponse) Marshal() (dAtA []byte, err error) { } func (m *TxnHeartBeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnHeartBeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n20, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n21, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n21 } if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n22, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *CheckTxnStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12032,100 +7851,88 @@ func (m *CheckTxnStatusRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckTxnStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckTxnStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.VerifyIsPrimary { - i-- - if m.VerifyIsPrimary { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n23, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x48 + i += n23 } - if m.ResolvingPessimisticLock { - i-- - if m.ResolvingPessimisticLock { + if len(m.PrimaryKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i += copy(dAtA[i:], m.PrimaryKey) + } + if m.LockTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) + } + if m.CallerStartTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CallerStartTs)) + } + if m.CurrentTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) + } + if m.RollbackIfNotExist { + dAtA[i] = 0x30 + i++ + if m.RollbackIfNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 + i++ } if m.ForceSyncCommit { - i-- + dAtA[i] = 0x38 + i++ if m.ForceSyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.RollbackIfNotExist { - i-- - if m.RollbackIfNotExist { + if m.ResolvingPessimisticLock { + dAtA[i] = 0x40 + i++ + if m.ResolvingPessimisticLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 - } - if m.CurrentTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) - i-- - dAtA[i] = 0x28 + i++ } - if m.CallerStartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CallerStartTs)) - i-- - dAtA[i] = 0x20 - } - if m.LockTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) - i-- - dAtA[i] = 0x18 - } - if len(m.PrimaryKey) > 0 { - i -= len(m.PrimaryKey) - copy(dAtA[i:], m.PrimaryKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.VerifyIsPrimary { + dAtA[i] = 0x48 + i++ + if m.VerifyIsPrimary { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *CheckTxnStatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12133,89 +7940,72 @@ func (m *CheckTxnStatusResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckTxnStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckTxnStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n24, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n24 } - if m.LockInfo != nil { - { - size, err := m.LockInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n25, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n25 } - if m.Action != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Action)) - i-- - dAtA[i] = 0x28 + if m.LockTtl != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) } if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x18 + if m.Action != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Action)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.LockInfo != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockInfo.Size())) + n26, err := m.LockInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n26 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n27, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n27 } - return len(dAtA) - i, nil + return i, nil } func (m *CheckSecondaryLocksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12223,52 +8013,40 @@ func (m *CheckSecondaryLocksRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckSecondaryLocksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckSecondaryLocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x18 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n28, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.StartVersion != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - return len(dAtA) - i, nil + return i, nil } func (m *CheckSecondaryLocksResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12276,81 +8054,64 @@ func (m *CheckSecondaryLocksResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckSecondaryLocksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckSecondaryLocksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n29, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n29 } - if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x20 + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n30, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } if len(m.Locks) > 0 { - for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Locks { dAtA[i] = 0x1a - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.CommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + } + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n31, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n31 } - return len(dAtA) - i, nil + return i, nil } func (m *CommitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12358,57 +8119,45 @@ func (m *CommitRequest) Marshal() (dAtA []byte, err error) { } func (m *CommitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- - dAtA[i] = 0x20 - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n32, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n32 } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.CommitVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + } + return i, nil } func (m *CommitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12416,67 +8165,52 @@ func (m *CommitResponse) Marshal() (dAtA []byte, err error) { } func (m *CommitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n33, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n34, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n34 } if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n35, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n35 } - return len(dAtA) - i, nil + return i, nil } func (m *ImportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12484,45 +8218,34 @@ func (m *ImportRequest) Marshal() (dAtA []byte, err error) { } func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- - dAtA[i] = 0x10 - } if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Mutations { dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if m.CommitVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + } + return i, nil } func (m *ImportResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12530,45 +8253,33 @@ func (m *ImportResponse) Marshal() (dAtA []byte, err error) { } func (m *ImportResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n36, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12576,55 +8287,43 @@ func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n37, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n37 } - if m.CurrentTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CurrentTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12632,55 +8331,42 @@ func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- - dAtA[i] = 0x18 + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n38, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n39, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n39 + } + if m.CommitVersion != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - return len(dAtA) - i, nil + return i, nil } func (m *BatchGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12688,52 +8374,40 @@ func (m *BatchGetRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n40, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Version != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) } - return len(dAtA) - i, nil + return i, nil } func (m *BatchGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12741,76 +8415,59 @@ func (m *BatchGetResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n41, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Pairs) > 0 { + for _, msg := range m.Pairs { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a } if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n42, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n42 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n43, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n43 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchRollbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12818,52 +8475,40 @@ func (m *BatchRollbackRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchRollbackRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n44, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n44 } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *BatchRollbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12871,62 +8516,47 @@ func (m *BatchRollbackResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchRollbackResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n45, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n45 } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n46, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n47, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n47 } - return len(dAtA) - i, nil + return i, nil } func (m *ScanLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12934,62 +8564,49 @@ func (m *ScanLockRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanLockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x2a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n48, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - if m.Limit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x20 + if m.MaxVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxVersion)) } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.MaxVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxVersion)) - i-- - dAtA[i] = 0x10 + if m.Limit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.EndKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *ScanLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12997,76 +8614,59 @@ func (m *ScanLockResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanLockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n49, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n50, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n50 } if len(m.Locks) > 0 { - for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Locks { dAtA[i] = 0x1a - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n51, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n51 } - return len(dAtA) - i, nil + return i, nil } func (m *ResolveLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13074,71 +8674,57 @@ func (m *ResolveLockRequest) Marshal() (dAtA []byte, err error) { } func (m *ResolveLockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResolveLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x2a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n52, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n52 } - if len(m.TxnInfos) > 0 { - for iNdEx := len(m.TxnInfos) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TxnInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if m.StartVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x10 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.TxnInfos) > 0 { + for _, msg := range m.TxnInfos { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n + } + } + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ResolveLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13146,62 +8732,47 @@ func (m *ResolveLockResponse) Marshal() (dAtA []byte, err error) { } func (m *ResolveLockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResolveLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n53, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n53 } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n54, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n55, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n55 } - return len(dAtA) - i, nil + return i, nil } func (m *GCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13209,43 +8780,32 @@ func (m *GCRequest) Marshal() (dAtA []byte, err error) { } func (m *GCRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n56, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } if m.SafePoint != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafePoint)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GCResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13253,50 +8813,37 @@ func (m *GCResponse) Marshal() (dAtA []byte, err error) { } func (m *GCResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n57, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n58, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n58 } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13304,62 +8851,49 @@ func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n59, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 + } + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } if m.NotifyOnly { - i-- + dAtA[i] = 0x20 + i++ if m.NotifyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13367,45 +8901,33 @@ func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n60, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareFlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13413,62 +8935,49 @@ func (m *PrepareFlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareFlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x28 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n61, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x20 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 + if m.StartTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Version != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareFlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13476,45 +8985,33 @@ func (m *PrepareFlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareFlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n62, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13522,67 +9019,54 @@ func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n63, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x30 + if m.Version != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x28 + if len(m.StartKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x1a - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x10 + if m.StartTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CommitTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13590,45 +9074,33 @@ func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n64, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13636,52 +9108,39 @@ func (m *RawGetRequest) Marshal() (dAtA []byte, err error) { } func (m *RawGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n65, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - return len(dAtA) - i, nil + return i, nil } func (m *RawGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13689,62 +9148,49 @@ func (m *RawGetResponse) Marshal() (dAtA []byte, err error) { } func (m *RawGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n66, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 + } + if len(m.Error) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) + } + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } if m.NotFound { - i-- + dAtA[i] = 0x20 + i++ if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13752,54 +9198,41 @@ func (m *RawBatchGetRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n67, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13807,52 +9240,39 @@ func (m *RawBatchGetResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n68, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 } if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Pairs { dAtA[i] = 0x12 - } - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13860,74 +9280,60 @@ func (m *RawPutRequest) Marshal() (dAtA []byte, err error) { } func (m *RawPutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawPutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ForCas { - i-- - if m.ForCas { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n69, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x30 + i += n69 } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x22 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if len(m.Cf) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Ttl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + } + if m.ForCas { + dAtA[i] = 0x30 + i++ + if m.ForCas { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13935,45 +9341,33 @@ func (m *RawPutResponse) Marshal() (dAtA []byte, err error) { } func (m *RawPutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawPutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n70, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13981,92 +9375,77 @@ func (m *RawBatchPutRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchPutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchPutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n71, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n71 } - if len(m.Ttls) > 0 { - dAtA72 := make([]byte, len(m.Ttls)*10) - var j71 int - for _, num := range m.Ttls { - for num >= 1<<7 { - dAtA72[j71] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j71++ + if len(m.Pairs) > 0 { + for _, msg := range m.Pairs { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - dAtA72[j71] = uint8(num) - j71++ + i += n } - i -= j71 - copy(dAtA[i:], dAtA72[:j71]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j71)) - i-- - dAtA[i] = 0x32 + } + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.Ttl != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) } if m.ForCas { - i-- + dAtA[i] = 0x28 + i++ if m.ForCas { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x20 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + i++ } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Ttls) > 0 { + dAtA73 := make([]byte, len(m.Ttls)*10) + var j72 int + for _, num := range m.Ttls { + for num >= 1<<7 { + dAtA73[j72] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j72++ } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + dAtA73[j72] = uint8(num) + j72++ } - i-- - dAtA[i] = 0xa + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j72)) + i += copy(dAtA[i:], dAtA73[:j72]) } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14074,45 +9453,33 @@ func (m *RawBatchPutResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchPutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchPutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n74, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n74 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14120,62 +9487,49 @@ func (m *RawDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n75, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n75 + } + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if m.ForCas { - i-- + dAtA[i] = 0x20 + i++ if m.ForCas { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14183,45 +9537,33 @@ func (m *RawDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n76, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n76 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14229,64 +9571,51 @@ func (m *RawBatchDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ForCas { - i-- - if m.ForCas { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n77, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + i += n77 } 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.ForCas { + dAtA[i] = 0x20 + i++ + if m.ForCas { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14294,45 +9623,33 @@ func (m *RawBatchDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n78, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n78 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14340,84 +9657,70 @@ func (m *RawScanRequest) Marshal() (dAtA []byte, err error) { } func (m *RawScanRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n79, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n79 } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x3a + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.Reverse { - i-- - if m.Reverse { + if m.Limit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + } + if m.KeyOnly { + dAtA[i] = 0x20 + i++ + if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 + i++ } if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.KeyOnly { - i-- - if m.KeyOnly { + if m.Reverse { + dAtA[i] = 0x30 + i++ + if m.Reverse { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.Limit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 + i++ } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.EndKey) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *RawScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14425,52 +9728,39 @@ func (m *RawScanResponse) Marshal() (dAtA []byte, err error) { } func (m *RawScanResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n80, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n80 } if len(m.Kvs) > 0 { - for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Kvs { dAtA[i] = 0x12 - } - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawDeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14478,59 +9768,45 @@ func (m *RawDeleteRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawDeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n81, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n81 } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x22 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Cf) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - return len(dAtA) - i, nil + return i, nil } func (m *RawDeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14538,45 +9814,33 @@ func (m *RawDeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawDeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n82, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14584,84 +9848,70 @@ func (m *RawBatchScanRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchScanRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n83, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n83 } - if m.Reverse { - i-- - if m.Reverse { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i-- - dAtA[i] = 0x30 } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x2a + if m.EachLimit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.EachLimit)) } if m.KeyOnly { - i-- + dAtA[i] = 0x20 + i++ if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.EachLimit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.EachLimit)) - i-- - dAtA[i] = 0x18 + i++ } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if len(m.Cf) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Reverse { + dAtA[i] = 0x30 + i++ + if m.Reverse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawBatchScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14669,52 +9919,39 @@ func (m *RawBatchScanResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchScanResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n84, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n84 } if len(m.Kvs) > 0 { - for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Kvs { dAtA[i] = 0x12 - } - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *UnsafeDestroyRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14722,52 +9959,39 @@ func (m *UnsafeDestroyRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *UnsafeDestroyRangeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UnsafeDestroyRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n85, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n85 } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *UnsafeDestroyRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14775,45 +9999,33 @@ func (m *UnsafeDestroyRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *UnsafeDestroyRangeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UnsafeDestroyRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n86, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n86 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RegisterLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14821,43 +10033,32 @@ func (m *RegisterLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *RegisterLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegisterLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n87, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n87 } if m.MaxTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RegisterLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14865,33 +10066,23 @@ func (m *RegisterLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *RegisterLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegisterLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - return len(dAtA) - i, nil + return i, nil } func (m *CheckLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14899,43 +10090,32 @@ func (m *CheckLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n88, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n88 } if m.MaxTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *CheckLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14943,57 +10123,45 @@ func (m *CheckLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Locks) > 0 { - for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if len(m.Error) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } if m.IsClean { - i-- + dAtA[i] = 0x10 + i++ if m.IsClean { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0xa + if len(m.Locks) > 0 { + for _, msg := range m.Locks { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *RemoveLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15001,43 +10169,32 @@ func (m *RemoveLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *RemoveLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n89, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n89 } if m.MaxTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RemoveLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15045,33 +10202,23 @@ func (m *RemoveLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *RemoveLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - return len(dAtA) - i, nil + return i, nil } func (m *PhysicalScanLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15079,55 +10226,43 @@ func (m *PhysicalScanLockRequest) Marshal() (dAtA []byte, err error) { } func (m *PhysicalScanLockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PhysicalScanLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n90, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 } - if m.Limit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x20 + if m.MaxTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) } if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.MaxTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) - i-- - dAtA[i] = 0x10 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Limit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) } - return len(dAtA) - i, nil + return i, nil } func (m *PhysicalScanLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15135,47 +10270,35 @@ func (m *PhysicalScanLockResponse) Marshal() (dAtA []byte, err error) { } func (m *PhysicalScanLockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PhysicalScanLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Error) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } if len(m.Locks) > 0 { - for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Locks { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15183,64 +10306,51 @@ func (m *SplitRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.IsRawKv { - i-- - if m.IsRawKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n91, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n91 + } + if len(m.SplitKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKey))) + i += copy(dAtA[i:], m.SplitKey) } 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- + for _, b := range m.SplitKeys { dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if len(m.SplitKey) > 0 { - i -= len(m.SplitKey) - copy(dAtA[i:], m.SplitKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKey))) - i-- - dAtA[i] = 0x12 - } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.IsRawKv { + dAtA[i] = 0x20 + i++ + if m.IsRawKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15248,76 +10358,59 @@ func (m *SplitRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n92, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n92 } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Left != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Left.Size())) + n93, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n93 } if m.Right != nil { - { - size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(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 - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Right.Size())) + n94, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n94 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15325,57 +10418,44 @@ func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n95, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n95 } if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15383,55 +10463,42 @@ func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n96, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n96 } if m.ReadIndex != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndex)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndex)) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Locked != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Locked.Size())) + n97, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n97 } - return len(dAtA) - i, nil + return i, nil } func (m *MvccGetByKeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15439,45 +10506,33 @@ func (m *MvccGetByKeyRequest) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByKeyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccGetByKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n98, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n98 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *MvccGetByKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15485,57 +10540,43 @@ func (m *MvccGetByKeyResponse) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByKeyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccGetByKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n99, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n99 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Info != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Info.Size())) + n100, err := m.Info.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n100 } - return len(dAtA) - i, nil + return i, nil } func (m *MvccGetByStartTsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15543,43 +10584,32 @@ func (m *MvccGetByStartTsRequest) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByStartTsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccGetByStartTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n101, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n101 } if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *MvccGetByStartTsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15587,64 +10617,49 @@ func (m *MvccGetByStartTsResponse) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByStartTsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccGetByStartTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Info != nil { - { - size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n102, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a + i += n102 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if len(m.Key) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if m.Info != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Info.Size())) + n103, err := m.Info.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n103 } - return len(dAtA) - i, nil + return i, nil } func (m *Context) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15652,352 +10667,317 @@ func (m *Context) Marshal() (dAtA []byte, err error) { } func (m *Context) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Context) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) } - if m.SourceStmt != nil { - { - size, err := m.SourceStmt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.RegionEpoch != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n104, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x92 - } - if m.BucketsVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BucketsVersion)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x88 - } - if m.KeyspaceId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x80 + i += n104 } - if m.ResourceControlContext != nil { - { - size, err := m.ResourceControlContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Peer != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Peer.Size())) + n105, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - if m.BusyThresholdMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 - } - if m.TxnSource != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 - } - if len(m.RequestSource) > 0 { - i -= len(m.RequestSource) - copy(dAtA[i:], m.RequestSource) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.RequestSource))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 + i += n105 } - if m.TraceContext != nil { - { - size, err := m.TraceContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba + if m.Term != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) } - if len(m.CommittedLocks) > 0 { - dAtA108 := make([]byte, len(m.CommittedLocks)*10) - var j107 int - for _, num := range m.CommittedLocks { - for num >= 1<<7 { - dAtA108[j107] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j107++ - } - dAtA108[j107] = uint8(num) - j107++ - } - i -= j107 - copy(dAtA[i:], dAtA108[:j107]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j107)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 + if m.Priority != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) } - if m.ApiVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 + if m.IsolationLevel != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) } - if m.IsRetryRequest { - i-- - if m.IsRetryRequest { + if m.NotFillCache { + dAtA[i] = 0x40 + i++ + if m.NotFillCache { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 - } - if m.DiskFullOpt != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DiskFullOpt)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 - } - if len(m.ResourceGroupTag) > 0 { - i -= len(m.ResourceGroupTag) - copy(dAtA[i:], m.ResourceGroupTag) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupTag))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 + i++ } - if m.StaleRead { - i-- - if m.StaleRead { + if m.SyncLog { + dAtA[i] = 0x48 + i++ + if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.TaskId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.AppliedIndex != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x78 - } - if m.MaxExecutionDurationMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxExecutionDurationMs)) - i-- - dAtA[i] = 0x70 - } - if len(m.ResolvedLocks) > 0 { - dAtA110 := make([]byte, len(m.ResolvedLocks)*10) - var j109 int - for _, num := range m.ResolvedLocks { - for num >= 1<<7 { - dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j109++ - } - dAtA110[j109] = uint8(num) - j109++ - } - i -= j109 - copy(dAtA[i:], dAtA110[:j109]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j109)) - i-- - dAtA[i] = 0x6a + i++ } - if m.ReplicaRead { - i-- - if m.ReplicaRead { + if m.RecordTimeStat { + dAtA[i] = 0x50 + i++ + if m.RecordTimeStat { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x60 + i++ } if m.RecordScanStat { - i-- + dAtA[i] = 0x58 + i++ if m.RecordScanStat { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x58 + i++ } - if m.RecordTimeStat { - i-- - if m.RecordTimeStat { + if m.ReplicaRead { + dAtA[i] = 0x60 + i++ + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 + i++ } - if m.SyncLog { - i-- - if m.SyncLog { + if len(m.ResolvedLocks) > 0 { + dAtA107 := make([]byte, len(m.ResolvedLocks)*10) + var j106 int + for _, num := range m.ResolvedLocks { + for num >= 1<<7 { + dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j106++ + } + dAtA107[j106] = uint8(num) + j106++ + } + dAtA[i] = 0x6a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j106)) + i += copy(dAtA[i:], dAtA107[:j106]) + } + if m.MaxExecutionDurationMs != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxExecutionDurationMs)) + } + if m.AppliedIndex != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) + } + if m.TaskId != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TaskId)) + } + if m.StaleRead { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + if m.StaleRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 + i++ } - if m.NotFillCache { - i-- - if m.NotFillCache { + if len(m.ResourceGroupTag) > 0 { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupTag))) + i += copy(dAtA[i:], m.ResourceGroupTag) + } + if m.DiskFullOpt != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DiskFullOpt)) + } + if m.IsRetryRequest { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsRetryRequest { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 - } - if m.IsolationLevel != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) - i-- - dAtA[i] = 0x38 - } - if m.Priority != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x30 + i++ } - if m.Term != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x28 + if m.ApiVersion != 0 { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.CommittedLocks) > 0 { + dAtA109 := make([]byte, len(m.CommittedLocks)*10) + var j108 int + for _, num := range m.CommittedLocks { + for num >= 1<<7 { + dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j108++ } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + dAtA109[j108] = uint8(num) + j108++ } - i-- - dAtA[i] = 0x1a + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j108)) + i += copy(dAtA[i:], dAtA109[:j108]) } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.TraceContext != nil { + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TraceContext.Size())) + n110, err := m.TraceContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n110 } - if m.RegionId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if len(m.RequestSource) > 0 { + dAtA[i] = 0xc2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.RequestSource))) + i += copy(dAtA[i:], m.RequestSource) } - return len(dAtA) - i, nil -} - -func (m *ResourceControlContext) 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.TxnSource != 0 { + dAtA[i] = 0xc8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) } - return dAtA[:n], nil -} - -func (m *ResourceControlContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if m.BusyThresholdMs != 0 { + dAtA[i] = 0xd8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) + } + if m.ResourceControlContext != nil { + dAtA[i] = 0xe2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ResourceControlContext.Size())) + n111, err := m.ResourceControlContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n111 + } + if m.KeyspaceId != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) + } + if m.BucketsVersion != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BucketsVersion)) + } + if m.SourceStmt != nil { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SourceStmt.Size())) + n112, err := m.SourceStmt.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n112 + } + return i, nil } -func (m *ResourceControlContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *ResourceControlContext) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceControlContext) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.OverridePriority != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OverridePriority)) - i-- - dAtA[i] = 0x18 + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } if m.Penalty != nil { - { - size, err := m.Penalty.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Penalty.Size())) + n113, err := m.Penalty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n113 } - if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- - dAtA[i] = 0xa + if m.OverridePriority != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OverridePriority)) } - return len(dAtA) - i, nil + return i, nil } func (m *SourceStmt) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16005,48 +10985,38 @@ func (m *SourceStmt) Marshal() (dAtA []byte, err error) { } func (m *SourceStmt) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SourceStmt) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if len(m.SessionAlias) > 0 { - i -= len(m.SessionAlias) - copy(dAtA[i:], m.SessionAlias) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SessionAlias))) - i-- - dAtA[i] = 0x22 + if m.ConnectionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConnectionId)) } if m.StmtId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StmtId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StmtId)) } - if m.ConnectionId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConnectionId)) - i-- - dAtA[i] = 0x10 - } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if len(m.SessionAlias) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SessionAlias))) + i += copy(dAtA[i:], m.SessionAlias) } - return len(dAtA) - i, nil + return i, nil } func (m *LockInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16054,94 +11024,82 @@ func (m *LockInfo) Marshal() (dAtA []byte, err error) { } func (m *LockInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.PrimaryLock) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i += copy(dAtA[i:], m.PrimaryLock) } - if m.DurationToLastUpdateMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) - i-- - dAtA[i] = 0x58 + if m.LockVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockVersion)) } - if len(m.Secondaries) > 0 { - for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Secondaries[iNdEx]) - copy(dAtA[i:], m.Secondaries[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) - i-- - dAtA[i] = 0x52 - } + if len(m.Key) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x48 + if m.LockTtl != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + } + if m.TxnSize != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + } + if m.LockType != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockType)) + } + if m.LockForUpdateTs != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockForUpdateTs)) } if m.UseAsyncCommit { - i-- + dAtA[i] = 0x40 + i++ if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 - } - if m.LockForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockForUpdateTs)) - i-- - dAtA[i] = 0x38 - } - if m.LockType != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockType)) - i-- - dAtA[i] = 0x30 - } - if m.TxnSize != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) - i-- - dAtA[i] = 0x28 + i++ } - if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x20 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a + if m.MinCommitTs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } - if m.LockVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockVersion)) - i-- - dAtA[i] = 0x10 + if len(m.Secondaries) > 0 { + for _, b := range m.Secondaries { + dAtA[i] = 0x52 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } - if len(m.PrimaryLock) > 0 { - i -= len(m.PrimaryLock) - copy(dAtA[i:], m.PrimaryLock) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i-- - dAtA[i] = 0xa + if m.DurationToLastUpdateMs != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) } - return len(dAtA) - i, nil + return i, nil } func (m *KeyError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16149,148 +11107,119 @@ func (m *KeyError) Marshal() (dAtA []byte, err error) { } func (m *KeyError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PrimaryMismatch != nil { - { - size, err := m.PrimaryMismatch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Locked != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Locked.Size())) + n114, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n114 } - if m.AssertionFailed != nil { - { - size, err := m.AssertionFailed.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 + if len(m.Retryable) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Retryable))) + i += copy(dAtA[i:], m.Retryable) } - if m.CommitTsTooLarge != nil { - { - size, err := m.CommitTsTooLarge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a + if len(m.Abort) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Abort))) + i += copy(dAtA[i:], m.Abort) } - if m.TxnNotFound != nil { - { - size, err := m.TxnNotFound.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Conflict != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Conflict.Size())) + n115, err := m.Conflict.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n115 } - if m.CommitTsExpired != nil { - { - size, err := m.CommitTsExpired.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.AlreadyExist != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AlreadyExist.Size())) + n116, err := m.AlreadyExist.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n116 } if m.Deadlock != nil { - { - size, err := m.Deadlock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Deadlock.Size())) + n117, err := m.Deadlock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n117 } - if m.AlreadyExist != nil { - { - size, err := m.AlreadyExist.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.CommitTsExpired != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTsExpired.Size())) + n118, err := m.CommitTsExpired.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n118 } - if m.Conflict != nil { - { - size, err := m.Conflict.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.TxnNotFound != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnNotFound.Size())) + n119, err := m.TxnNotFound.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n119 } - if len(m.Abort) > 0 { - i -= len(m.Abort) - copy(dAtA[i:], m.Abort) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Abort))) - i-- - dAtA[i] = 0x1a + if m.CommitTsTooLarge != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTsTooLarge.Size())) + n120, err := m.CommitTsTooLarge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n120 } - if len(m.Retryable) > 0 { - i -= len(m.Retryable) - copy(dAtA[i:], m.Retryable) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Retryable))) - i-- - dAtA[i] = 0x12 + if m.AssertionFailed != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionFailed.Size())) + n121, err := m.AssertionFailed.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n121 } - if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.PrimaryMismatch != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PrimaryMismatch.Size())) + n122, err := m.PrimaryMismatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n122 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteConflict) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16298,60 +11227,49 @@ func (m *WriteConflict) Marshal() (dAtA []byte, err error) { } func (m *WriteConflict) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteConflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Reason != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Reason)) - i-- - dAtA[i] = 0x30 + if m.ConflictTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictTs)) } - if m.ConflictCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictCommitTs)) - i-- - dAtA[i] = 0x28 + if len(m.Key) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Primary) > 0 { - i -= len(m.Primary) - copy(dAtA[i:], m.Primary) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) + i += copy(dAtA[i:], m.Primary) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a - } - if m.ConflictTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictTs)) - i-- - dAtA[i] = 0x10 + if m.ConflictCommitTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictCommitTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.Reason != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Reason)) } - return len(dAtA) - i, nil + return i, nil } func (m *AlreadyExist) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16359,33 +11277,23 @@ func (m *AlreadyExist) Marshal() (dAtA []byte, err error) { } func (m *AlreadyExist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AlreadyExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - return len(dAtA) - i, nil + return i, nil } func (m *Deadlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16393,57 +11301,45 @@ func (m *Deadlock) Marshal() (dAtA []byte, err error) { } func (m *Deadlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deadlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.LockTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) } - if len(m.WaitChain) > 0 { - for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if len(m.LockKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) + i += copy(dAtA[i:], m.LockKey) } if m.DeadlockKeyHash != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DeadlockKeyHash)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DeadlockKeyHash)) } - if len(m.LockKey) > 0 { - i -= len(m.LockKey) - copy(dAtA[i:], m.LockKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) - i-- - dAtA[i] = 0x12 - } - if m.LockTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) - i-- - dAtA[i] = 0x8 + if len(m.WaitChain) > 0 { + for _, msg := range m.WaitChain { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *CommitTsExpired) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16451,48 +11347,38 @@ func (m *CommitTsExpired) Marshal() (dAtA []byte, err error) { } func (m *CommitTsExpired) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitTsExpired) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x20 + if m.AttemptedCommitTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AttemptedCommitTs)) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.AttemptedCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AttemptedCommitTs)) - i-- - dAtA[i] = 0x10 - } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.MinCommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *TxnNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16500,38 +11386,28 @@ func (m *TxnNotFound) Marshal() (dAtA []byte, err error) { } func (m *TxnNotFound) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } if len(m.PrimaryKey) > 0 { - i -= len(m.PrimaryKey) - copy(dAtA[i:], m.PrimaryKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i += copy(dAtA[i:], m.PrimaryKey) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *CommitTsTooLarge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16539,31 +11415,22 @@ func (m *CommitTsTooLarge) Marshal() (dAtA []byte, err error) { } func (m *CommitTsTooLarge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitTsTooLarge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *AssertionFailed) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16571,53 +11438,43 @@ func (m *AssertionFailed) Marshal() (dAtA []byte, err error) { } func (m *AssertionFailed) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssertionFailed) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExistingCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingCommitTs)) - i-- - dAtA[i] = 0x28 + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.ExistingStartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingStartTs)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.Assertion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if m.ExistingStartTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingStartTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.ExistingCommitTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingCommitTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *PrimaryMismatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16625,38 +11482,27 @@ func (m *PrimaryMismatch) Marshal() (dAtA []byte, err error) { } func (m *PrimaryMismatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrimaryMismatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.LockInfo != nil { - { - size, err := m.LockInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockInfo.Size())) + n123, err := m.LockInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 } - return len(dAtA) - i, nil + return i, nil } func (m *TimeDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16664,46 +11510,37 @@ func (m *TimeDetail) Marshal() (dAtA []byte, err error) { } func (m *TimeDetail) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimeDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.WaitWallTimeMs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeMs)) } - if m.TotalRpcWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) - i-- - dAtA[i] = 0x20 + if m.ProcessWallTimeMs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeMs)) } if m.KvReadWallTimeMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeMs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeMs)) } - if m.ProcessWallTimeMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeMs)) - i-- - dAtA[i] = 0x10 - } - if m.WaitWallTimeMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeMs)) - i-- - dAtA[i] = 0x8 + if m.TotalRpcWallTimeNs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) } - return len(dAtA) - i, nil + return i, nil } func (m *TimeDetailV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16711,51 +11548,42 @@ func (m *TimeDetailV2) Marshal() (dAtA []byte, err error) { } func (m *TimeDetailV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimeDetailV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TotalRpcWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) - i-- - dAtA[i] = 0x28 + if m.WaitWallTimeNs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) } - if m.KvReadWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) - i-- - dAtA[i] = 0x20 + if m.ProcessWallTimeNs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeNs)) } if m.ProcessSuspendWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessSuspendWallTimeNs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessSuspendWallTimeNs)) } - if m.ProcessWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeNs)) - i-- - dAtA[i] = 0x10 + if m.KvReadWallTimeNs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) } - if m.WaitWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) - i-- - dAtA[i] = 0x8 + if m.TotalRpcWallTimeNs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) } - return len(dAtA) - i, nil + return i, nil } func (m *ScanInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16763,41 +11591,32 @@ func (m *ScanInfo) Marshal() (dAtA []byte, err error) { } func (m *ScanInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadBytes != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadBytes)) - i-- - dAtA[i] = 0x18 + if m.Total != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Total)) } if m.Processed != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Processed)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Processed)) } - if m.Total != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Total)) - i-- - dAtA[i] = 0x8 + if m.ReadBytes != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadBytes)) } - return len(dAtA) - i, nil + return i, nil } func (m *ScanDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16805,62 +11624,47 @@ func (m *ScanDetail) Marshal() (dAtA []byte, err error) { } func (m *ScanDetail) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Write != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Write.Size())) + n124, err := m.Write.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n124 } if m.Lock != nil { - { - size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Lock.Size())) + n125, err := m.Lock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n125 } - if m.Write != nil { - { - size, err := m.Write.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.Data != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) + n126, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n126 } - return len(dAtA) - i, nil + return i, nil } func (m *ScanDetailV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16868,91 +11672,82 @@ func (m *ScanDetailV2) Marshal() (dAtA []byte, err error) { } func (m *ScanDetailV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanDetailV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadPoolScheduleWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadPoolScheduleWaitNanos)) - i-- - dAtA[i] = 0x68 + if m.ProcessedVersions != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersions)) } - if m.ReadIndexConfirmWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexConfirmWaitNanos)) - i-- - dAtA[i] = 0x60 + if m.TotalVersions != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalVersions)) } - if m.ReadIndexProposeWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexProposeWaitNanos)) - i-- - dAtA[i] = 0x58 + if m.RocksdbDeleteSkippedCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbDeleteSkippedCount)) } - if m.GetSnapshotNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GetSnapshotNanos)) - i-- - dAtA[i] = 0x50 + if m.RocksdbKeySkippedCount != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbKeySkippedCount)) } - if m.RocksdbBlockReadNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadNanos)) - i-- - dAtA[i] = 0x48 + if m.RocksdbBlockCacheHitCount != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockCacheHitCount)) } - if m.ProcessedVersionsSize != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersionsSize)) - i-- - dAtA[i] = 0x40 + if m.RocksdbBlockReadCount != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadCount)) } if m.RocksdbBlockReadByte != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadByte)) - i-- dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadByte)) } - if m.RocksdbBlockReadCount != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadCount)) - i-- - dAtA[i] = 0x30 + if m.ProcessedVersionsSize != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersionsSize)) } - if m.RocksdbBlockCacheHitCount != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockCacheHitCount)) - i-- - dAtA[i] = 0x28 + if m.RocksdbBlockReadNanos != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadNanos)) } - if m.RocksdbKeySkippedCount != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbKeySkippedCount)) - i-- - dAtA[i] = 0x20 + if m.GetSnapshotNanos != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GetSnapshotNanos)) } - if m.RocksdbDeleteSkippedCount != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbDeleteSkippedCount)) - i-- - dAtA[i] = 0x18 + if m.ReadIndexProposeWaitNanos != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexProposeWaitNanos)) } - if m.TotalVersions != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalVersions)) - i-- - dAtA[i] = 0x10 + if m.ReadIndexConfirmWaitNanos != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexConfirmWaitNanos)) } - if m.ProcessedVersions != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersions)) - i-- - dAtA[i] = 0x8 + if m.ReadPoolScheduleWaitNanos != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadPoolScheduleWaitNanos)) } - return len(dAtA) - i, nil + return i, nil } func (m *ExecDetails) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16960,50 +11755,37 @@ func (m *ExecDetails) Marshal() (dAtA []byte, err error) { } func (m *ExecDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.TimeDetail != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetail.Size())) + n127, err := m.TimeDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n127 } if m.ScanDetail != nil { - { - size, err := m.ScanDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.TimeDetail != nil { - { - size, err := m.TimeDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ScanDetail.Size())) + n128, err := m.ScanDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n128 } - return len(dAtA) - i, nil + return i, nil } func (m *ExecDetailsV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17011,74 +11793,57 @@ func (m *ExecDetailsV2) Marshal() (dAtA []byte, err error) { } func (m *ExecDetailsV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecDetailsV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.TimeDetail != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetail.Size())) + n129, err := m.TimeDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n129 } - if m.TimeDetailV2 != nil { - { - size, err := m.TimeDetailV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.ScanDetailV2 != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ScanDetailV2.Size())) + n130, err := m.ScanDetailV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n130 } if m.WriteDetail != nil { - { - size, err := m.WriteDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if m.ScanDetailV2 != nil { - { - size, err := m.ScanDetailV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WriteDetail.Size())) + n131, err := m.WriteDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n131 } - if m.TimeDetail != nil { - { - size, err := m.TimeDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + if m.TimeDetailV2 != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetailV2.Size())) + n132, err := m.TimeDetailV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n132 } - return len(dAtA) - i, nil + return i, nil } func (m *WriteDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17086,115 +11851,106 @@ func (m *WriteDetail) Marshal() (dAtA []byte, err error) { } func (m *WriteDetail) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WriteDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PessimisticLockWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PessimisticLockWaitNanos)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.StoreBatchWaitNanos != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreBatchWaitNanos)) } - if m.ThrottleNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ThrottleNanos)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.ProposeSendWaitNanos != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProposeSendWaitNanos)) } - if m.ProcessNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessNanos)) - i-- - dAtA[i] = 0x78 + if m.PersistLogNanos != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PersistLogNanos)) } - if m.LatchWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LatchWaitNanos)) - i-- - dAtA[i] = 0x70 + if m.RaftDbWriteLeaderWaitNanos != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteLeaderWaitNanos)) } - if m.ApplyWriteMemtableNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteMemtableNanos)) - i-- - dAtA[i] = 0x68 + if m.RaftDbSyncLogNanos != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbSyncLogNanos)) } - if m.ApplyWriteWalNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteWalNanos)) - i-- - dAtA[i] = 0x60 + if m.RaftDbWriteMemtableNanos != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteMemtableNanos)) } - if m.ApplyWriteLeaderWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteLeaderWaitNanos)) - i-- - dAtA[i] = 0x58 + if m.CommitLogNanos != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitLogNanos)) } - if m.ApplyMutexLockNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyMutexLockNanos)) - i-- - dAtA[i] = 0x50 + if m.ApplyBatchWaitNanos != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyBatchWaitNanos)) } if m.ApplyLogNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyLogNanos)) - i-- dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyLogNanos)) } - if m.ApplyBatchWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyBatchWaitNanos)) - i-- - dAtA[i] = 0x40 + if m.ApplyMutexLockNanos != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyMutexLockNanos)) } - if m.CommitLogNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitLogNanos)) - i-- - dAtA[i] = 0x38 + if m.ApplyWriteLeaderWaitNanos != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteLeaderWaitNanos)) } - if m.RaftDbWriteMemtableNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteMemtableNanos)) - i-- - dAtA[i] = 0x30 + if m.ApplyWriteWalNanos != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteWalNanos)) } - if m.RaftDbSyncLogNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbSyncLogNanos)) - i-- - dAtA[i] = 0x28 + if m.ApplyWriteMemtableNanos != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteMemtableNanos)) } - if m.RaftDbWriteLeaderWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteLeaderWaitNanos)) - i-- - dAtA[i] = 0x20 + if m.LatchWaitNanos != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LatchWaitNanos)) } - if m.PersistLogNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PersistLogNanos)) - i-- - dAtA[i] = 0x18 + if m.ProcessNanos != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessNanos)) } - if m.ProposeSendWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProposeSendWaitNanos)) - i-- - dAtA[i] = 0x10 + if m.ThrottleNanos != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ThrottleNanos)) } - if m.StoreBatchWaitNanos != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreBatchWaitNanos)) - i-- - dAtA[i] = 0x8 + if m.PessimisticLockWaitNanos != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PessimisticLockWaitNanos)) } - return len(dAtA) - i, nil + return i, nil } func (m *KvPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17202,52 +11958,39 @@ func (m *KvPair) Marshal() (dAtA []byte, err error) { } func (m *KvPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KvPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n133, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n133 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - return len(dAtA) - i, nil + return i, nil } func (m *Mutation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17255,50 +11998,39 @@ func (m *Mutation) Marshal() (dAtA []byte, err error) { } func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Op != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Op)) } - if m.Assertion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if m.Op != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x8 + if m.Assertion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) } - return len(dAtA) - i, nil + return i, nil } func (m *MvccWrite) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17306,83 +12038,73 @@ func (m *MvccWrite) Marshal() (dAtA []byte, err error) { } func (m *MvccWrite) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccWrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) } - if m.VersionsToLastChange != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) - i-- - dAtA[i] = 0x48 + if m.StartTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.LastChangeTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) - i-- - dAtA[i] = 0x40 + if m.CommitTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) } - if m.GcFence != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GcFence)) - i-- - dAtA[i] = 0x38 + if len(m.ShortValue) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) + i += copy(dAtA[i:], m.ShortValue) } - if m.HasGcFence { - i-- - if m.HasGcFence { + if m.HasOverlappedRollback { + dAtA[i] = 0x28 + i++ + if m.HasOverlappedRollback { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 + i++ } - if m.HasOverlappedRollback { - i-- - if m.HasOverlappedRollback { + if m.HasGcFence { + dAtA[i] = 0x30 + i++ + if m.HasGcFence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if len(m.ShortValue) > 0 { - i -= len(m.ShortValue) - copy(dAtA[i:], m.ShortValue) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) - i-- - dAtA[i] = 0x22 + i++ } - if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 + if m.GcFence != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GcFence)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if m.LastChangeTs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.VersionsToLastChange != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) } - return len(dAtA) - i, nil + return i, nil } func (m *MvccValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17390,38 +12112,28 @@ func (m *MvccValue) Marshal() (dAtA []byte, err error) { } func (m *MvccValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *MvccLock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17429,112 +12141,99 @@ func (m *MvccLock) Marshal() (dAtA []byte, err error) { } func (m *MvccLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) } - if m.VersionsToLastChange != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) - i-- - dAtA[i] = 0x60 + if m.StartTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.LastChangeTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) - i-- - dAtA[i] = 0x58 + if len(m.Primary) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) + i += copy(dAtA[i:], m.Primary) } - if len(m.RollbackTs) > 0 { - dAtA135 := make([]byte, len(m.RollbackTs)*10) - var j134 int - for _, num := range m.RollbackTs { - for num >= 1<<7 { - dAtA135[j134] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j134++ - } - dAtA135[j134] = uint8(num) - j134++ - } - i -= j134 - copy(dAtA[i:], dAtA135[:j134]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j134)) - i-- - dAtA[i] = 0x52 + if len(m.ShortValue) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) + i += copy(dAtA[i:], m.ShortValue) } - if len(m.Secondaries) > 0 { - for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Secondaries[iNdEx]) - copy(dAtA[i:], m.Secondaries[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) - i-- - dAtA[i] = 0x4a - } + if m.Ttl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + } + if m.ForUpdateTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + } + if m.TxnSize != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) } if m.UseAsyncCommit { - i-- + dAtA[i] = 0x40 + i++ if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 - } - if m.TxnSize != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) - i-- - dAtA[i] = 0x38 + i++ } - if m.ForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - i-- - dAtA[i] = 0x30 - } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 - } - if len(m.ShortValue) > 0 { - i -= len(m.ShortValue) - copy(dAtA[i:], m.ShortValue) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) - i-- - dAtA[i] = 0x22 + if len(m.Secondaries) > 0 { + for _, b := range m.Secondaries { + dAtA[i] = 0x4a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } - if len(m.Primary) > 0 { - i -= len(m.Primary) - copy(dAtA[i:], m.Primary) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) - i-- - dAtA[i] = 0x1a + if len(m.RollbackTs) > 0 { + dAtA135 := make([]byte, len(m.RollbackTs)*10) + var j134 int + for _, num := range m.RollbackTs { + for num >= 1<<7 { + dAtA135[j134] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j134++ + } + dAtA135[j134] = uint8(num) + j134++ + } + dAtA[i] = 0x52 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j134)) + i += copy(dAtA[i:], dAtA135[:j134]) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if m.LastChangeTs != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.VersionsToLastChange != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) } - return len(dAtA) - i, nil + return i, nil } func (m *MvccInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17542,66 +12241,51 @@ func (m *MvccInfo) Marshal() (dAtA []byte, err error) { } func (m *MvccInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MvccInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Lock != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Lock.Size())) + n136, err := m.Lock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n136 } if len(m.Writes) > 0 { - for iNdEx := len(m.Writes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Writes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Writes { dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.Lock != nil { - { - size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Values) > 0 { + for _, msg := range m.Values { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *TxnInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17609,36 +12293,27 @@ func (m *TxnInfo) Marshal() (dAtA []byte, err error) { } func (m *TxnInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TxnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Txn != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Txn)) } if m.Status != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Status)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Status)) } - if m.Txn != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Txn)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17646,40 +12321,29 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { } func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *LeaderInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17687,65 +12351,52 @@ func (m *LeaderInfo) Marshal() (dAtA []byte, err error) { } func (m *LeaderInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadState != nil { - { - size, err := m.ReadState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.PeerId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PeerId)) } if m.Term != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) } - if m.PeerId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x10 + if m.RegionEpoch != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n137, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n137 } - if m.RegionId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.ReadState != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadState.Size())) + n138, err := m.ReadState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n138 } - return len(dAtA) - i, nil + return i, nil } func (m *ReadState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17753,36 +12404,27 @@ func (m *ReadState) Marshal() (dAtA []byte, err error) { } func (m *ReadState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.AppliedIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) } if m.SafeTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) } - if m.AppliedIndex != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *CheckLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17790,45 +12432,34 @@ func (m *CheckLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ts != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if m.Ts != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) + } + return i, nil } func (m *CheckLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17836,24 +12467,10 @@ func (m *CheckLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ts != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) - i-- - dAtA[i] = 0x10 - } if len(m.Regions) > 0 { dAtA140 := make([]byte, len(m.Regions)*10) var j139 int @@ -17866,19 +12483,23 @@ func (m *CheckLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA140[j139] = uint8(num) j139++ } - i -= j139 - copy(dAtA[i:], dAtA140[:j139]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j139)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j139)) + i += copy(dAtA[i:], dAtA140[:j139]) } - return len(dAtA) - i, nil + if m.Ts != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) + } + return i, nil } func (m *StoreSafeTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17886,38 +12507,27 @@ func (m *StoreSafeTSRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreSafeTSRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreSafeTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.KeyRange != nil { - { - size, err := m.KeyRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyRange.Size())) + n141, err := m.KeyRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n141 } - return len(dAtA) - i, nil + return i, nil } func (m *StoreSafeTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17925,31 +12535,22 @@ func (m *StoreSafeTSResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreSafeTSResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreSafeTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.SafeTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *RawGetKeyTTLRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17957,52 +12558,39 @@ func (m *RawGetKeyTTLRequest) Marshal() (dAtA []byte, err error) { } func (m *RawGetKeyTTLRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawGetKeyTTLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n142, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n142 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - return len(dAtA) - i, nil + return i, nil } func (m *RawGetKeyTTLResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18010,60 +12598,48 @@ func (m *RawGetKeyTTLResponse) Marshal() (dAtA []byte, err error) { } func (m *RawGetKeyTTLResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawGetKeyTTLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n143, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n143 + } + if len(m.Error) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) + } + if m.Ttl != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) } if m.NotFound { - i-- + dAtA[i] = 0x20 + i++ if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x18 - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 - } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RawCASRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18071,81 +12647,66 @@ func (m *RawCASRequest) Marshal() (dAtA []byte, err error) { } func (m *RawCASRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawCASRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x38 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n144, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n144 } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x32 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if len(m.PreviousValue) > 0 { - i -= len(m.PreviousValue) - copy(dAtA[i:], m.PreviousValue) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) - i-- - dAtA[i] = 0x2a + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } if m.PreviousNotExist { - i-- + dAtA[i] = 0x20 + i++ if m.PreviousNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 + i++ } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a + if len(m.PreviousValue) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) + i += copy(dAtA[i:], m.PreviousValue) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if len(m.Cf) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Ttl != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) } - return len(dAtA) - i, nil + return i, nil } func (m *RawCASResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18153,72 +12714,59 @@ func (m *RawCASResponse) Marshal() (dAtA []byte, err error) { } func (m *RawCASResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawCASResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n145, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n145 } - if len(m.PreviousValue) > 0 { - i -= len(m.PreviousValue) - copy(dAtA[i:], m.PreviousValue) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) - i-- - dAtA[i] = 0x2a + if len(m.Error) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.PreviousNotExist { - i-- - if m.PreviousNotExist { + if m.Succeed { + dAtA[i] = 0x18 + i++ + if m.Succeed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 + i++ } - if m.Succeed { - i-- - if m.Succeed { + if m.PreviousNotExist { + dAtA[i] = 0x20 + i++ + if m.PreviousNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 + i++ } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.PreviousValue) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) + i += copy(dAtA[i:], m.PreviousValue) } - return len(dAtA) - i, nil + return i, nil } func (m *GetLockWaitInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18226,38 +12774,27 @@ func (m *GetLockWaitInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLockWaitInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n146, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n146 } - return len(dAtA) - i, nil + return i, nil } func (m *GetLockWaitInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18265,59 +12802,45 @@ func (m *GetLockWaitInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLockWaitInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n147, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n147 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetLockWaitHistoryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18325,38 +12848,27 @@ func (m *GetLockWaitHistoryRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitHistoryRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLockWaitHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n148, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n148 } - return len(dAtA) - i, nil + return i, nil } func (m *GetLockWaitHistoryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18364,59 +12876,45 @@ func (m *GetLockWaitHistoryResponse) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitHistoryResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLockWaitHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n149, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n149 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawCoprocessorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18424,73 +12922,57 @@ func (m *RawCoprocessorRequest) Marshal() (dAtA []byte, err error) { } func (m *RawCoprocessorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawCoprocessorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x2a - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n150, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - } - if len(m.CoprVersionReq) > 0 { - i -= len(m.CoprVersionReq) - copy(dAtA[i:], m.CoprVersionReq) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprVersionReq))) - i-- - dAtA[i] = 0x1a + i += n150 } if len(m.CoprName) > 0 { - i -= len(m.CoprName) - copy(dAtA[i:], m.CoprName) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprName))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprName))) + i += copy(dAtA[i:], m.CoprName) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.CoprVersionReq) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprVersionReq))) + i += copy(dAtA[i:], m.CoprVersionReq) + } + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if len(m.Data) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) + } + return i, nil } func (m *RawCoprocessorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18498,52 +12980,39 @@ func (m *RawCoprocessorResponse) Marshal() (dAtA []byte, err error) { } func (m *RawCoprocessorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawCoprocessorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x1a + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n151, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n151 } if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - return len(dAtA) - i, nil + return i, nil } func (m *RawChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18551,57 +13020,44 @@ func (m *RawChecksumRequest) Marshal() (dAtA []byte, err error) { } func (m *RawChecksumRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawChecksumRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n152, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n152 } if m.Algorithm != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Algorithm)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Algorithm)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Ranges) > 0 { + for _, msg := range m.Ranges { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *RawChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18609,60 +13065,48 @@ func (m *RawChecksumResponse) Marshal() (dAtA []byte, err error) { } func (m *RawChecksumResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawChecksumResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TotalBytes != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalBytes)) - i-- - dAtA[i] = 0x28 + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n153, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n153 } - if m.TotalKvs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalKvs)) - i-- - dAtA[i] = 0x20 + if len(m.Error) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) } if m.Checksum != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Checksum)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Checksum)) } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x12 + if m.TotalKvs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalKvs)) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.TotalBytes != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalBytes)) } - return len(dAtA) - i, nil + return i, nil } func (m *CompactError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18670,119 +13114,80 @@ func (m *CompactError) Marshal() (dAtA []byte, err error) { } func (m *CompactError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size := m.Error.Size() - i -= size - if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn154, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - } - return len(dAtA) - i, nil -} - -func (m *CompactError_ErrInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + i += nn154 + } + return i, nil } -func (m *CompactError_ErrInvalidStartKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *CompactError_ErrInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { + i := 0 if m.ErrInvalidStartKey != nil { - { - size, err := m.ErrInvalidStartKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrInvalidStartKey.Size())) + n155, err := m.ErrInvalidStartKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n155 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactError_ErrPhysicalTableNotExist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactError_ErrPhysicalTableNotExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrPhysicalTableNotExist != nil { - { - size, err := m.ErrPhysicalTableNotExist.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrPhysicalTableNotExist.Size())) + n156, err := m.ErrPhysicalTableNotExist.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n156 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactError_ErrCompactInProgress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactError_ErrCompactInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrCompactInProgress != nil { - { - size, err := m.ErrCompactInProgress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrCompactInProgress.Size())) + n157, err := m.ErrCompactInProgress.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n157 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactError_ErrTooManyPendingTasks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactError_ErrTooManyPendingTasks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ErrTooManyPendingTasks != nil { - { - size, err := m.ErrTooManyPendingTasks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrTooManyPendingTasks.Size())) + n158, err := m.ErrTooManyPendingTasks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n158 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactErrorInvalidStartKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18790,26 +13195,17 @@ func (m *CompactErrorInvalidStartKey) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactErrorInvalidStartKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactErrorPhysicalTableNotExist) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18817,26 +13213,17 @@ func (m *CompactErrorPhysicalTableNotExist) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorPhysicalTableNotExist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactErrorPhysicalTableNotExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactErrorCompactInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18844,26 +13231,17 @@ func (m *CompactErrorCompactInProgress) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorCompactInProgress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactErrorCompactInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactErrorTooManyPendingTasks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18871,26 +13249,17 @@ func (m *CompactErrorTooManyPendingTasks) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorTooManyPendingTasks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactErrorTooManyPendingTasks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18898,53 +13267,43 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.KeyspaceId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x40 + if len(m.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.ApiVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x38 + if m.PhysicalTableId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PhysicalTableId)) } if m.LogicalTableId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LogicalTableId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LogicalTableId)) } - if m.PhysicalTableId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PhysicalTableId)) - i-- - dAtA[i] = 0x10 + if m.ApiVersion != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa + if m.KeyspaceId != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) } - return len(dAtA) - i, nil + return i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -18952,62 +13311,49 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CompactedEndKey) > 0 { - i -= len(m.CompactedEndKey) - copy(dAtA[i:], m.CompactedEndKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) - i-- - dAtA[i] = 0x22 - } - if len(m.CompactedStartKey) > 0 { - i -= len(m.CompactedStartKey) - copy(dAtA[i:], m.CompactedStartKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedStartKey))) - i-- - dAtA[i] = 0x1a + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) + n159, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n159 } if m.HasRemaining { - i-- + dAtA[i] = 0x10 + i++ if m.HasRemaining { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.CompactedStartKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedStartKey))) + i += copy(dAtA[i:], m.CompactedStartKey) } - return len(dAtA) - i, nil + if len(m.CompactedEndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) + i += copy(dAtA[i:], m.CompactedEndKey) + } + return i, nil } func (m *TiFlashSystemTableRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -19015,81 +13361,289 @@ func (m *TiFlashSystemTableRequest) Marshal() (dAtA []byte, err error) { } func (m *TiFlashSystemTableRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Sql) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Sql))) + i += copy(dAtA[i:], m.Sql) + } + return i, nil +} + +func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TiFlashSystemTableResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) + n160, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n160 + return i, nil +} + +func (m *TxnEntry) Marshal() (dAtA []byte, err error) { size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *TiFlashSystemTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *TxnEntry) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Entry != nil { + nn161, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn161 } - if len(m.Sql) > 0 { - i -= len(m.Sql) - copy(dAtA[i:], m.Sql) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Sql))) - i-- + return i, nil +} + +func (m *TxnEntry_Prewrite_) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.Prewrite != nil { dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Prewrite.Size())) + n162, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n162 + } + return i, nil +} +func (m *TxnEntry_Commit_) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.Commit != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Commit.Size())) + n163, err := m.Commit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n163 + } + return i, nil +} +func (m *TxnEntry_Prewrite) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { +func (m *TxnEntry_Prewrite) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + if m.StartTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + } + if len(m.PrimaryKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i += copy(dAtA[i:], m.PrimaryKey) + } + return i, nil +} + +func (m *TxnEntry_Commit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *TiFlashSystemTableResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *TxnEntry_Commit) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + if m.StartTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + } + if m.CommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + } + return i, nil +} + +func (m *ScanTxnEntriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *TiFlashSystemTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *ScanTxnEntriesRequest) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n164, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n164 + } + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) + } + if m.Limit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + } + if m.KeyOnly { + dAtA[i] = 0x28 + i++ + if m.KeyOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.StartTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + } + return i, nil +} + +func (m *ScanTxnEntriesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + return dAtA[:n], nil +} + +func (m *ScanTxnEntriesResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n165, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { return 0, err } - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n165 } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil } func encodeVarintKvrpcpb(dAtA []byte, offset int, v uint64) int { - offset -= sovKvrpcpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19103,16 +13657,10 @@ func (m *GetRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19134,16 +13682,10 @@ func (m *GetResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19173,16 +13715,10 @@ func (m *ScanRequest) Size() (n int) { if m.SampleStep != 0 { n += 1 + sovKvrpcpb(uint64(m.SampleStep)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19199,16 +13735,10 @@ func (m *ScanResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrewriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19274,16 +13804,10 @@ func (m *PrewriteRequest) Size() (n int) { n += 2 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -19292,16 +13816,10 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { if m.ExpectedForUpdateTs != 0 { n += 1 + sovKvrpcpb(uint64(m.ExpectedForUpdateTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrewriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19324,16 +13842,10 @@ func (m *PrewriteResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PessimisticLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19383,16 +13895,10 @@ func (m *PessimisticLockRequest) Size() (n int) { if m.WakeUpMode != 0 { n += 1 + sovKvrpcpb(uint64(m.WakeUpMode)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PessimisticLockKeyResult) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -19411,16 +13917,10 @@ func (m *PessimisticLockKeyResult) Size() (n int) { if m.SkipResolvingLock { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PessimisticLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19459,16 +13959,10 @@ func (m *PessimisticLockResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PessimisticRollbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19487,16 +13981,10 @@ func (m *PessimisticRollbackRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PessimisticRollbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19513,16 +14001,10 @@ func (m *PessimisticRollbackResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnHeartBeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19539,16 +14021,10 @@ func (m *TxnHeartBeatRequest) Size() (n int) { if m.AdviseLockTtl != 0 { n += 1 + sovKvrpcpb(uint64(m.AdviseLockTtl)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnHeartBeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19566,16 +14042,10 @@ func (m *TxnHeartBeatResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckTxnStatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19607,16 +14077,10 @@ func (m *CheckTxnStatusRequest) Size() (n int) { if m.VerifyIsPrimary { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckTxnStatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19644,16 +14108,10 @@ func (m *CheckTxnStatusResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckSecondaryLocksRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19669,16 +14127,10 @@ func (m *CheckSecondaryLocksRequest) Size() (n int) { if m.StartVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.StartVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckSecondaryLocksResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19702,16 +14154,10 @@ func (m *CheckSecondaryLocksResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19730,16 +14176,10 @@ func (m *CommitRequest) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19757,16 +14197,10 @@ func (m *CommitResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ImportRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Mutations) > 0 { @@ -19778,16 +14212,10 @@ func (m *ImportRequest) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ImportResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19798,16 +14226,10 @@ func (m *ImportResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19824,16 +14246,10 @@ func (m *CleanupRequest) Size() (n int) { if m.CurrentTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CurrentTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CleanupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19847,16 +14263,10 @@ func (m *CleanupResponse) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19872,16 +14282,10 @@ func (m *BatchGetRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19902,16 +14306,10 @@ func (m *BatchGetResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchRollbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19927,16 +14325,10 @@ func (m *BatchRollbackRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchRollbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19951,16 +14343,10 @@ func (m *BatchRollbackResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -19981,16 +14367,10 @@ func (m *ScanLockRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20011,16 +14391,10 @@ func (m *ScanLockResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResolveLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20045,16 +14419,10 @@ func (m *ResolveLockRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResolveLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20069,16 +14437,10 @@ func (m *ResolveLockResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GCRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20088,16 +14450,10 @@ func (m *GCRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovKvrpcpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GCResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20108,16 +14464,10 @@ func (m *GCResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20135,16 +14485,10 @@ func (m *DeleteRangeRequest) Size() (n int) { if m.NotifyOnly { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20155,16 +14499,10 @@ func (m *DeleteRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareFlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20185,16 +14523,10 @@ func (m *PrepareFlashbackToVersionRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareFlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20205,16 +14537,10 @@ func (m *PrepareFlashbackToVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20238,16 +14564,10 @@ func (m *FlashbackToVersionRequest) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20258,16 +14578,10 @@ func (m *FlashbackToVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20282,16 +14596,10 @@ func (m *RawGetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20309,16 +14617,10 @@ func (m *RawGetResponse) Size() (n int) { if m.NotFound { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20335,16 +14637,10 @@ func (m *RawBatchGetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20357,16 +14653,10 @@ func (m *RawBatchGetResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawPutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20391,16 +14681,10 @@ func (m *RawPutRequest) Size() (n int) { if m.ForCas { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawPutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20411,16 +14695,10 @@ func (m *RawPutResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchPutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20450,16 +14728,10 @@ func (m *RawBatchPutRequest) Size() (n int) { } n += 1 + sovKvrpcpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchPutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20470,16 +14742,10 @@ func (m *RawBatchPutResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20497,16 +14763,10 @@ func (m *RawDeleteRequest) Size() (n int) { if m.ForCas { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20517,16 +14777,10 @@ func (m *RawDeleteResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20546,16 +14800,10 @@ func (m *RawBatchDeleteRequest) Size() (n int) { if m.ForCas { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20566,16 +14814,10 @@ func (m *RawBatchDeleteResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20603,16 +14845,10 @@ func (m *RawScanRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20625,16 +14861,10 @@ func (m *RawScanResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawDeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20653,16 +14883,10 @@ func (m *RawDeleteRangeRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawDeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20673,16 +14897,10 @@ func (m *RawDeleteRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20708,16 +14926,10 @@ func (m *RawBatchScanRequest) Size() (n int) { if m.Reverse { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawBatchScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20730,16 +14942,10 @@ func (m *RawBatchScanResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UnsafeDestroyRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20754,16 +14960,10 @@ func (m *UnsafeDestroyRangeRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UnsafeDestroyRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20774,16 +14974,10 @@ func (m *UnsafeDestroyRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegisterLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20793,32 +14987,20 @@ func (m *RegisterLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegisterLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20828,16 +15010,10 @@ func (m *CheckLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -20853,16 +15029,10 @@ func (m *CheckLockObserverResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RemoveLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20872,32 +15042,20 @@ func (m *RemoveLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RemoveLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PhysicalScanLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20914,16 +15072,10 @@ func (m *PhysicalScanLockRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovKvrpcpb(uint64(m.Limit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PhysicalScanLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -20936,16 +15088,10 @@ func (m *PhysicalScanLockResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20965,16 +15111,10 @@ func (m *SplitRegionRequest) Size() (n int) { if m.IsRawKv { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20995,16 +15135,10 @@ func (m *SplitRegionResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadIndexRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21020,16 +15154,10 @@ func (m *ReadIndexRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadIndexResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21043,16 +15171,10 @@ func (m *ReadIndexResponse) Size() (n int) { l = m.Locked.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccGetByKeyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21063,16 +15185,10 @@ func (m *MvccGetByKeyRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccGetByKeyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21087,16 +15203,10 @@ func (m *MvccGetByKeyResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccGetByStartTsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21106,16 +15216,10 @@ func (m *MvccGetByStartTsRequest) Size() (n int) { if m.StartTs != 0 { n += 1 + sovKvrpcpb(uint64(m.StartTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccGetByStartTsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21134,16 +15238,10 @@ func (m *MvccGetByStartTsResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Context) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -21248,16 +15346,10 @@ func (m *Context) Size() (n int) { l = m.SourceStmt.Size() n += 2 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResourceControlContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -21271,16 +15363,10 @@ func (m *ResourceControlContext) Size() (n int) { if m.OverridePriority != 0 { n += 1 + sovKvrpcpb(uint64(m.OverridePriority)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SourceStmt) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21296,16 +15382,10 @@ func (m *SourceStmt) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LockInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.PrimaryLock) @@ -21346,16 +15426,10 @@ func (m *LockInfo) Size() (n int) { if m.DurationToLastUpdateMs != 0 { n += 1 + sovKvrpcpb(uint64(m.DurationToLastUpdateMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Locked != nil { @@ -21402,16 +15476,10 @@ func (m *KeyError) Size() (n int) { l = m.PrimaryMismatch.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteConflict) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21434,32 +15502,20 @@ func (m *WriteConflict) Size() (n int) { if m.Reason != 0 { n += 1 + sovKvrpcpb(uint64(m.Reason)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AlreadyExist) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Deadlock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LockTs != 0 { @@ -21478,16 +15534,10 @@ func (m *Deadlock) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitTsExpired) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21503,16 +15553,10 @@ func (m *CommitTsExpired) Size() (n int) { if m.MinCommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MinCommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21522,31 +15566,19 @@ func (m *TxnNotFound) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitTsTooLarge) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AssertionFailed) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21565,32 +15597,20 @@ func (m *AssertionFailed) Size() (n int) { if m.ExistingCommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.ExistingCommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrimaryMismatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LockInfo != nil { l = m.LockInfo.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TimeDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.WaitWallTimeMs != 0 { @@ -21605,16 +15625,10 @@ func (m *TimeDetail) Size() (n int) { if m.TotalRpcWallTimeNs != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalRpcWallTimeNs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TimeDetailV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.WaitWallTimeNs != 0 { @@ -21632,16 +15646,10 @@ func (m *TimeDetailV2) Size() (n int) { if m.TotalRpcWallTimeNs != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalRpcWallTimeNs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Total != 0 { @@ -21653,16 +15661,10 @@ func (m *ScanInfo) Size() (n int) { if m.ReadBytes != 0 { n += 1 + sovKvrpcpb(uint64(m.ReadBytes)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Write != nil { @@ -21677,16 +15679,10 @@ func (m *ScanDetail) Size() (n int) { l = m.Data.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanDetailV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ProcessedVersions != 0 { @@ -21728,16 +15724,10 @@ func (m *ScanDetailV2) Size() (n int) { if m.ReadPoolScheduleWaitNanos != 0 { n += 1 + sovKvrpcpb(uint64(m.ReadPoolScheduleWaitNanos)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExecDetails) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimeDetail != nil { @@ -21748,16 +15738,10 @@ func (m *ExecDetails) Size() (n int) { l = m.ScanDetail.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExecDetailsV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimeDetail != nil { @@ -21776,16 +15760,10 @@ func (m *ExecDetailsV2) Size() (n int) { l = m.TimeDetailV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WriteDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreBatchWaitNanos != 0 { @@ -21839,16 +15817,10 @@ func (m *WriteDetail) Size() (n int) { if m.PessimisticLockWaitNanos != 0 { n += 2 + sovKvrpcpb(uint64(m.PessimisticLockWaitNanos)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KvPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -21863,16 +15835,10 @@ func (m *KvPair) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Mutation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Op != 0 { @@ -21889,16 +15855,10 @@ func (m *Mutation) Size() (n int) { if m.Assertion != 0 { n += 1 + sovKvrpcpb(uint64(m.Assertion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccWrite) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -21929,16 +15889,10 @@ func (m *MvccWrite) Size() (n int) { if m.VersionsToLastChange != 0 { n += 1 + sovKvrpcpb(uint64(m.VersionsToLastChange)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -21948,16 +15902,10 @@ func (m *MvccValue) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -22005,16 +15953,10 @@ func (m *MvccLock) Size() (n int) { if m.VersionsToLastChange != 0 { n += 1 + sovKvrpcpb(uint64(m.VersionsToLastChange)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MvccInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Lock != nil { @@ -22033,16 +15975,10 @@ func (m *MvccInfo) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TxnInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Txn != 0 { @@ -22051,16 +15987,10 @@ func (m *TxnInfo) Size() (n int) { if m.Status != 0 { n += 1 + sovKvrpcpb(uint64(m.Status)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -22071,16 +16001,10 @@ func (m *KeyRange) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LeaderInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -22100,16 +16024,10 @@ func (m *LeaderInfo) Size() (n int) { l = m.ReadState.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AppliedIndex != 0 { @@ -22118,16 +16036,10 @@ func (m *ReadState) Size() (n int) { if m.SafeTs != 0 { n += 1 + sovKvrpcpb(uint64(m.SafeTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -22139,16 +16051,10 @@ func (m *CheckLeaderRequest) Size() (n int) { if m.Ts != 0 { n += 1 + sovKvrpcpb(uint64(m.Ts)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -22161,47 +16067,29 @@ func (m *CheckLeaderResponse) Size() (n int) { if m.Ts != 0 { n += 1 + sovKvrpcpb(uint64(m.Ts)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreSafeTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyRange != nil { l = m.KeyRange.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreSafeTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SafeTs != 0 { n += 1 + sovKvrpcpb(uint64(m.SafeTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawGetKeyTTLRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -22216,16 +16104,10 @@ func (m *RawGetKeyTTLRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawGetKeyTTLResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22242,16 +16124,10 @@ func (m *RawGetKeyTTLResponse) Size() (n int) { if m.NotFound { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawCASRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -22280,16 +16156,10 @@ func (m *RawCASRequest) Size() (n int) { if m.Ttl != 0 { n += 1 + sovKvrpcpb(uint64(m.Ttl)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawCASResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22310,32 +16180,20 @@ func (m *RawCASResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLockWaitInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { l = m.Context.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLockWaitInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22352,32 +16210,20 @@ func (m *GetLockWaitInfoResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLockWaitHistoryRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { l = m.Context.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLockWaitHistoryResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22394,16 +16240,10 @@ func (m *GetLockWaitHistoryResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawCoprocessorRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -22428,16 +16268,10 @@ func (m *RawCoprocessorRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawCoprocessorResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22452,16 +16286,10 @@ func (m *RawCoprocessorResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawChecksumRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -22477,16 +16305,10 @@ func (m *RawChecksumRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawChecksumResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -22506,31 +16328,19 @@ func (m *RawChecksumResponse) Size() (n int) { if m.TotalBytes != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalBytes)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { n += m.Error.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactError_ErrInvalidStartKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrInvalidStartKey != nil { @@ -22540,9 +16350,6 @@ func (m *CompactError_ErrInvalidStartKey) Size() (n int) { return n } func (m *CompactError_ErrPhysicalTableNotExist) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrPhysicalTableNotExist != nil { @@ -22552,9 +16359,6 @@ func (m *CompactError_ErrPhysicalTableNotExist) Size() (n int) { return n } func (m *CompactError_ErrCompactInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrCompactInProgress != nil { @@ -22564,9 +16368,6 @@ func (m *CompactError_ErrCompactInProgress) Size() (n int) { return n } func (m *CompactError_ErrTooManyPendingTasks) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrTooManyPendingTasks != nil { @@ -22576,57 +16377,30 @@ func (m *CompactError_ErrTooManyPendingTasks) Size() (n int) { return n } func (m *CompactErrorInvalidStartKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactErrorPhysicalTableNotExist) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactErrorCompactInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactErrorTooManyPendingTasks) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -22645,16 +16419,10 @@ func (m *CompactRequest) Size() (n int) { if m.KeyspaceId != 0 { n += 1 + sovKvrpcpb(uint64(m.KeyspaceId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -22672,44 +16440,147 @@ func (m *CompactResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TiFlashSystemTableRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Sql) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TiFlashSystemTableResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() n += 1 + l + sovKvrpcpb(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + return n +} + +func (m *TxnEntry) Size() (n int) { + var l int + _ = l + if m.Entry != nil { + n += m.Entry.Size() + } + return n +} + +func (m *TxnEntry_Prewrite_) Size() (n int) { + var l int + _ = l + if m.Prewrite != nil { + l = m.Prewrite.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } + return n +} +func (m *TxnEntry_Commit_) Size() (n int) { + var l int + _ = l + if m.Commit != nil { + l = m.Commit.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } + return n +} +func (m *TxnEntry_Prewrite) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + if m.StartTs != 0 { + n += 1 + sovKvrpcpb(uint64(m.StartTs)) + } + l = len(m.PrimaryKey) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + return n +} + +func (m *TxnEntry_Commit) Size() (n int) { + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + if m.StartTs != 0 { + n += 1 + sovKvrpcpb(uint64(m.StartTs)) + } + if m.CommitTs != 0 { + n += 1 + sovKvrpcpb(uint64(m.CommitTs)) + } + return n +} + +func (m *ScanTxnEntriesRequest) Size() (n int) { + var l int + _ = l + if m.Context != nil { + l = m.Context.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } + l = len(m.StartKey) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + l = len(m.EndKey) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovKvrpcpb(uint64(m.Limit)) + } + if m.KeyOnly { + n += 2 + } + if m.StartTs != 0 { + n += 1 + sovKvrpcpb(uint64(m.StartTs)) + } + return n +} + +func (m *ScanTxnEntriesResponse) Size() (n int) { + var l int + _ = l + if m.RegionError != nil { + l = m.RegionError.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } + if len(m.Entries) > 0 { + for _, e := range m.Entries { + l = e.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } } return n } func sovKvrpcpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozKvrpcpb(x uint64) (n int) { return sovKvrpcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -22729,7 +16600,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22757,7 +16628,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22766,9 +16637,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22793,7 +16661,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22802,9 +16670,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22827,7 +16692,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22838,13 +16703,12 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22869,7 +16733,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22897,7 +16761,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22906,9 +16770,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22933,7 +16794,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22942,9 +16803,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22969,7 +16827,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22978,9 +16836,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23003,7 +16858,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23023,7 +16878,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23032,9 +16887,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23051,13 +16903,12 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23082,7 +16933,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23110,7 +16961,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23119,9 +16970,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23146,7 +16994,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23155,9 +17003,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23180,7 +17025,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint32(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -23199,7 +17044,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23218,7 +17063,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23238,7 +17083,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23258,7 +17103,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23267,9 +17112,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23292,7 +17134,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SampleStep |= uint32(b&0x7F) << shift + m.SampleStep |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -23303,13 +17145,12 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23334,7 +17175,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23362,7 +17203,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23371,9 +17212,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23398,7 +17236,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23407,9 +17245,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23432,7 +17267,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23441,9 +17276,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23460,13 +17292,12 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23491,7 +17322,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23519,7 +17350,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23528,9 +17359,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23555,7 +17383,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23564,9 +17392,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23589,7 +17414,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23598,9 +17423,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23623,7 +17445,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23642,7 +17464,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23661,7 +17483,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23679,7 +17501,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= PrewriteRequest_PessimisticAction(b&0x7F) << shift + v |= (PrewriteRequest_PessimisticAction(b) & 0x7F) << shift if b < 0x80 { break } @@ -23696,7 +17518,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23705,16 +17527,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - var elementCount int - if elementCount != 0 && len(m.PessimisticActions) == 0 { - m.PessimisticActions = make([]PrewriteRequest_PessimisticAction, 0, elementCount) - } for iNdEx < postIndex { var v PrewriteRequest_PessimisticAction for shift := uint(0); ; shift += 7 { @@ -23726,7 +17541,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= PrewriteRequest_PessimisticAction(b&0x7F) << shift + v |= (PrewriteRequest_PessimisticAction(b) & 0x7F) << shift if b < 0x80 { break } @@ -23750,7 +17565,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= uint64(b&0x7F) << shift + m.TxnSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23769,7 +17584,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= uint64(b&0x7F) << shift + m.ForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23788,7 +17603,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23807,7 +17622,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23827,7 +17642,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23836,9 +17651,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23859,7 +17671,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23879,7 +17691,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxCommitTs |= uint64(b&0x7F) << shift + m.MaxCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23898,7 +17710,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AssertionLevel |= AssertionLevel(b&0x7F) << shift + m.AssertionLevel |= (AssertionLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -23917,7 +17729,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23926,9 +17738,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23943,13 +17752,12 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23974,7 +17782,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24002,7 +17810,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint32(b&0x7F) << shift + m.Index |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -24021,7 +17829,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExpectedForUpdateTs |= uint64(b&0x7F) << shift + m.ExpectedForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24032,13 +17840,12 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24063,7 +17870,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24091,7 +17898,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24100,9 +17907,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24127,7 +17931,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24136,9 +17940,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24161,7 +17962,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24180,7 +17981,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OnePcCommitTs |= uint64(b&0x7F) << shift + m.OnePcCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24199,7 +18000,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24208,9 +18009,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24227,13 +18025,12 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24258,7 +18055,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24286,7 +18083,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24295,9 +18092,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24322,7 +18116,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24331,9 +18125,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24356,7 +18147,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24365,9 +18156,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24390,7 +18178,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24409,7 +18197,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24428,7 +18216,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= uint64(b&0x7F) << shift + m.ForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24447,7 +18235,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24467,7 +18255,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitTimeout |= int64(b&0x7F) << shift + m.WaitTimeout |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24486,7 +18274,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24506,7 +18294,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24526,7 +18314,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24545,7 +18333,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24565,7 +18353,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24585,7 +18373,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WakeUpMode |= PessimisticLockWakeUpMode(b&0x7F) << shift + m.WakeUpMode |= (PessimisticLockWakeUpMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -24596,13 +18384,12 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24627,7 +18414,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24655,7 +18442,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= PessimisticLockKeyResultType(b&0x7F) << shift + m.Type |= (PessimisticLockKeyResultType(b) & 0x7F) << shift if b < 0x80 { break } @@ -24674,7 +18461,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24683,9 +18470,6 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24708,7 +18492,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24728,7 +18512,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockedWithConflictTs |= uint64(b&0x7F) << shift + m.LockedWithConflictTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24747,7 +18531,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24759,13 +18543,12 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24790,7 +18573,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24818,7 +18601,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24827,9 +18610,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24854,7 +18634,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24863,9 +18643,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24888,7 +18665,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24907,7 +18684,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24916,9 +18693,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24941,7 +18715,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24950,9 +18724,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24971,7 +18742,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24988,7 +18759,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24997,17 +18768,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - var elementCount int - elementCount = packedLen - if elementCount != 0 && len(m.NotFounds) == 0 { - m.NotFounds = make([]bool, 0, elementCount) - } for iNdEx < postIndex { var v int for shift := uint(0); ; shift += 7 { @@ -25019,7 +18782,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25043,7 +18806,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25052,9 +18815,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25079,7 +18839,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25088,9 +18848,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25105,13 +18862,12 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25136,7 +18892,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25164,7 +18920,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25173,9 +18929,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25200,7 +18953,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25219,7 +18972,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= uint64(b&0x7F) << shift + m.ForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25238,7 +18991,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25247,9 +19000,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25262,13 +19012,12 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25293,7 +19042,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25321,7 +19070,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25330,9 +19079,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25357,7 +19103,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25366,9 +19112,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25391,7 +19134,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25400,9 +19143,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25419,13 +19159,12 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25450,7 +19189,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25478,7 +19217,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25487,9 +19226,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25514,7 +19250,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25523,9 +19259,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25548,7 +19281,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25567,7 +19300,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdviseLockTtl |= uint64(b&0x7F) << shift + m.AdviseLockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25578,13 +19311,12 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25609,7 +19341,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25637,7 +19369,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25646,9 +19378,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25673,7 +19402,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25682,9 +19411,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25709,7 +19435,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25728,7 +19454,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25737,9 +19463,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25756,13 +19479,12 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25787,7 +19509,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25815,7 +19537,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25824,9 +19546,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25851,7 +19570,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25860,9 +19579,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25885,7 +19601,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTs |= uint64(b&0x7F) << shift + m.LockTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25904,7 +19620,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CallerStartTs |= uint64(b&0x7F) << shift + m.CallerStartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25923,7 +19639,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTs |= uint64(b&0x7F) << shift + m.CurrentTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25942,7 +19658,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25962,7 +19678,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25982,7 +19698,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26002,7 +19718,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26014,13 +19730,12 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26045,7 +19760,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26073,7 +19788,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26082,9 +19797,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26109,7 +19821,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26118,9 +19830,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26145,7 +19854,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26164,7 +19873,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26183,7 +19892,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Action |= Action(b&0x7F) << shift + m.Action |= (Action(b) & 0x7F) << shift if b < 0x80 { break } @@ -26202,7 +19911,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26211,9 +19920,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26238,7 +19944,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26247,9 +19953,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26266,13 +19969,12 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26297,7 +19999,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26325,7 +20027,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26334,9 +20036,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26361,7 +20060,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26370,9 +20069,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26393,7 +20089,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26404,13 +20100,12 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26435,7 +20130,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26463,7 +20158,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26472,9 +20167,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26499,7 +20191,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26508,9 +20200,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26535,7 +20224,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26544,9 +20233,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26569,7 +20255,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26588,7 +20274,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26597,9 +20283,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26616,13 +20299,12 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26647,7 +20329,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26675,7 +20357,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26684,9 +20366,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26711,7 +20390,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26730,7 +20409,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26739,9 +20418,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26762,7 +20438,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26773,13 +20449,12 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26804,7 +20479,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26832,7 +20507,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26841,9 +20516,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26868,7 +20540,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26877,9 +20549,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26904,7 +20573,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26923,7 +20592,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26932,9 +20601,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26951,13 +20617,12 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26982,7 +20647,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27010,7 +20675,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27019,9 +20684,6 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27044,7 +20706,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27055,13 +20717,12 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27086,7 +20747,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27114,7 +20775,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27123,9 +20784,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27150,7 +20808,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27160,9 +20818,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27174,13 +20829,12 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27205,7 +20859,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27233,7 +20887,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27242,9 +20896,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27269,7 +20920,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27278,9 +20929,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27303,7 +20951,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27322,7 +20970,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTs |= uint64(b&0x7F) << shift + m.CurrentTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27333,13 +20981,12 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27364,7 +21011,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27392,7 +21039,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27401,9 +21048,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27428,7 +21072,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27437,9 +21081,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27464,7 +21105,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27475,13 +21116,12 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27506,7 +21146,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27534,7 +21174,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27543,9 +21183,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27570,7 +21207,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27579,9 +21216,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27602,7 +21236,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27613,13 +21247,12 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27644,7 +21277,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27672,7 +21305,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27681,9 +21314,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27708,7 +21338,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27717,9 +21347,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27742,7 +21369,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27751,9 +21378,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27778,7 +21402,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27787,9 +21411,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27806,13 +21427,12 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27837,7 +21457,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27865,7 +21485,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27874,9 +21494,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27901,7 +21518,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27920,7 +21537,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27929,9 +21546,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27944,13 +21558,12 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27975,7 +21588,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28003,7 +21616,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28012,9 +21625,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28039,7 +21649,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28048,9 +21658,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28075,7 +21682,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28084,9 +21691,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28103,13 +21707,12 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28134,7 +21737,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28162,7 +21765,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28171,9 +21774,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28198,7 +21798,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxVersion |= uint64(b&0x7F) << shift + m.MaxVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28217,7 +21817,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28226,9 +21826,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28251,7 +21848,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint32(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -28270,7 +21867,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28279,9 +21876,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28296,13 +21890,12 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28327,7 +21920,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28355,7 +21948,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28364,9 +21957,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28391,7 +21981,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28400,9 +21990,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28427,7 +22014,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28436,9 +22023,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28461,7 +22045,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28470,9 +22054,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28489,13 +22070,12 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28520,7 +22100,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28548,7 +22128,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28557,9 +22137,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28584,7 +22161,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= uint64(b&0x7F) << shift + m.StartVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28603,7 +22180,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= uint64(b&0x7F) << shift + m.CommitVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28622,7 +22199,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28631,9 +22208,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28656,7 +22230,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28665,9 +22239,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28680,13 +22251,12 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28711,7 +22281,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28739,7 +22309,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28748,9 +22318,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28775,7 +22342,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28784,9 +22351,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28811,7 +22375,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28820,9 +22384,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28839,13 +22400,12 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28870,7 +22430,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28898,7 +22458,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28907,9 +22467,6 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28934,7 +22491,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28945,13 +22502,12 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28976,7 +22532,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29004,7 +22560,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29013,9 +22569,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29040,7 +22593,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29049,9 +22602,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29068,13 +22618,12 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29099,7 +22648,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29127,7 +22676,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29136,9 +22685,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29163,7 +22709,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29172,9 +22718,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29197,7 +22740,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29206,9 +22749,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29231,7 +22771,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29243,13 +22783,12 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29274,7 +22813,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29302,7 +22841,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29311,9 +22850,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29338,7 +22874,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29348,9 +22884,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29362,13 +22895,12 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29393,7 +22925,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29421,7 +22953,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29430,9 +22962,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29457,7 +22986,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29466,9 +22995,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29491,7 +23017,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29500,9 +23026,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29525,7 +23048,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29544,7 +23067,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29555,13 +23078,12 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29586,7 +23108,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29614,7 +23136,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29623,9 +23145,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29650,7 +23169,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29660,9 +23179,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29674,13 +23190,12 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29705,7 +23220,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29733,7 +23248,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29742,9 +23257,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29769,7 +23281,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29788,7 +23300,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29797,9 +23309,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29822,7 +23331,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29831,9 +23340,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29856,7 +23362,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29875,7 +23381,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29886,13 +23392,12 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29917,7 +23422,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29945,7 +23450,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29954,9 +23459,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29981,7 +23483,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29991,9 +23493,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30005,13 +23504,12 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30036,7 +23534,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30064,7 +23562,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30073,9 +23571,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30100,7 +23595,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30109,9 +23604,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30134,7 +23626,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30144,9 +23636,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30158,13 +23647,12 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30189,7 +23677,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30217,7 +23705,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30226,9 +23714,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30253,7 +23738,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30263,9 +23748,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30285,7 +23767,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30294,9 +23776,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30319,7 +23798,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30331,13 +23810,12 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30362,7 +23840,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30390,7 +23868,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30399,9 +23877,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30426,7 +23901,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30435,9 +23910,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30458,7 +23930,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30468,9 +23940,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30482,13 +23951,12 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30513,7 +23981,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30541,7 +24009,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30550,9 +24018,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30577,7 +24042,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30586,9 +24051,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30603,13 +24065,12 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30634,7 +24095,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30662,7 +24123,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30671,9 +24132,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30698,7 +24156,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30707,9 +24165,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30732,7 +24187,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30741,9 +24196,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30766,7 +24218,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30776,9 +24228,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30798,7 +24247,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30817,7 +24266,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30829,13 +24278,12 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30860,7 +24308,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30888,7 +24336,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30897,9 +24345,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30924,7 +24369,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30934,9 +24379,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30948,13 +24390,12 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30979,7 +24420,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31007,7 +24448,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31016,9 +24457,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31043,7 +24481,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31052,9 +24490,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31077,7 +24512,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31087,9 +24522,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31109,7 +24541,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31128,7 +24560,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31146,7 +24578,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31163,7 +24595,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31172,23 +24604,9 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } 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.Ttls) == 0 { - m.Ttls = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -31200,7 +24618,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31216,13 +24634,12 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31247,7 +24664,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31275,7 +24692,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31284,9 +24701,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31311,7 +24725,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31321,9 +24735,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31335,13 +24746,12 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31366,7 +24776,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31394,7 +24804,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31403,9 +24813,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31430,7 +24837,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31439,9 +24846,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31464,7 +24868,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31474,9 +24878,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31496,7 +24897,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31508,13 +24909,12 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31539,7 +24939,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31567,7 +24967,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31576,9 +24976,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31603,7 +25000,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31613,9 +25010,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31627,13 +25021,12 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31658,7 +25051,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31686,7 +25079,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31695,9 +25088,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31722,7 +25112,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31731,9 +25121,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31754,7 +25141,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31764,9 +25151,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31786,7 +25170,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31798,13 +25182,12 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31829,7 +25212,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31857,7 +25240,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31866,9 +25249,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31893,7 +25273,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31903,9 +25283,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31917,13 +25294,12 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31948,7 +25324,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31976,7 +25352,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31985,9 +25361,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32012,7 +25385,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32021,9 +25394,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32046,7 +25416,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint32(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -32065,7 +25435,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32085,7 +25455,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32095,9 +25465,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32117,7 +25484,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32137,7 +25504,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32146,9 +25513,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32163,13 +25527,12 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32194,7 +25557,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32222,7 +25585,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32231,9 +25594,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32258,7 +25618,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32267,9 +25627,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32284,13 +25641,12 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32315,7 +25671,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32343,7 +25699,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32352,9 +25708,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32379,7 +25732,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32388,9 +25741,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32413,7 +25763,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32422,9 +25772,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32447,7 +25794,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32457,9 +25804,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32471,13 +25815,12 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32502,7 +25845,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32530,7 +25873,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32539,9 +25882,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32566,7 +25906,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32576,9 +25916,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32590,13 +25927,12 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32621,7 +25957,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32649,7 +25985,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32658,9 +25994,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32685,7 +26018,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32694,9 +26027,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32719,7 +26049,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EachLimit |= uint32(b&0x7F) << shift + m.EachLimit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -32738,7 +26068,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32758,7 +26088,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32768,9 +26098,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32790,7 +26117,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32802,13 +26129,12 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32833,7 +26159,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32861,7 +26187,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32870,9 +26196,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32897,7 +26220,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32906,9 +26229,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32923,13 +26243,12 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32954,7 +26273,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32982,7 +26301,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32991,9 +26310,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33018,7 +26334,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33027,9 +26343,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33052,7 +26365,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33061,9 +26374,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33078,13 +26388,12 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33109,7 +26418,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33137,7 +26446,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33146,9 +26455,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33173,7 +26479,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33183,9 +26489,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33197,13 +26500,12 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33228,7 +26530,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33256,7 +26558,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33265,9 +26567,6 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33292,7 +26591,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33303,13 +26602,12 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33334,7 +26632,7 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33362,7 +26660,7 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33372,9 +26670,6 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33386,13 +26681,12 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33417,7 +26711,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33445,7 +26739,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33454,9 +26748,6 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33481,7 +26772,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33492,13 +26783,12 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33523,7 +26813,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33551,7 +26841,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33561,9 +26851,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33583,7 +26870,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33603,7 +26890,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33612,9 +26899,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33629,13 +26913,12 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33660,7 +26943,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33688,7 +26971,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33697,9 +26980,6 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33724,7 +27004,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33735,13 +27015,12 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33766,7 +27045,7 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33794,7 +27073,7 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33804,9 +27083,6 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33818,13 +27094,12 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33849,7 +27124,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33877,7 +27152,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33886,9 +27161,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33913,7 +27185,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= uint64(b&0x7F) << shift + m.MaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33932,7 +27204,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33941,9 +27213,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33966,7 +27235,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint32(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -33977,13 +27246,12 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34008,7 +27276,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34036,7 +27304,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34046,9 +27314,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34068,7 +27333,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34077,9 +27342,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34094,13 +27356,12 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34125,7 +27386,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34153,7 +27414,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34162,9 +27423,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34189,7 +27447,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34198,9 +27456,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34223,7 +27478,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34232,9 +27487,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34255,7 +27507,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34267,13 +27519,12 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34298,7 +27549,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34326,7 +27577,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34335,9 +27586,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34362,7 +27610,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34371,9 +27619,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34398,7 +27643,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34407,9 +27652,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34434,7 +27676,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34443,9 +27685,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34460,13 +27699,12 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34491,7 +27729,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34519,7 +27757,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34528,9 +27766,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34555,7 +27790,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34574,7 +27809,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34583,9 +27818,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34600,13 +27832,12 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34631,7 +27862,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34659,7 +27890,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34668,9 +27899,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34695,7 +27923,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndex |= uint64(b&0x7F) << shift + m.ReadIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34714,7 +27942,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34723,9 +27951,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34742,13 +27967,12 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34773,7 +27997,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34801,7 +28025,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34810,9 +28034,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34837,7 +28058,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34846,9 +28067,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34863,13 +28081,12 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34894,7 +28111,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34922,7 +28139,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34931,9 +28148,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34958,7 +28172,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34968,9 +28182,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34990,7 +28201,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34999,9 +28210,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35018,13 +28226,12 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35049,7 +28256,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35077,7 +28284,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35086,9 +28293,6 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35113,7 +28317,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35124,13 +28328,12 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35155,7 +28358,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35183,7 +28386,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35192,9 +28395,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35219,7 +28419,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35229,9 +28429,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35251,7 +28448,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35260,9 +28457,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35285,7 +28479,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35294,9 +28488,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35313,13 +28504,12 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35344,7 +28534,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35372,7 +28562,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35391,7 +28581,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35400,9 +28590,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35427,7 +28614,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35436,9 +28623,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35463,7 +28647,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35482,7 +28666,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= CommandPri(b&0x7F) << shift + m.Priority |= (CommandPri(b) & 0x7F) << shift if b < 0x80 { break } @@ -35501,7 +28685,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IsolationLevel |= IsolationLevel(b&0x7F) << shift + m.IsolationLevel |= (IsolationLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -35520,7 +28704,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35540,7 +28724,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35560,7 +28744,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35580,7 +28764,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35600,7 +28784,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35618,7 +28802,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35635,7 +28819,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35644,23 +28828,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } 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.ResolvedLocks) == 0 { - m.ResolvedLocks = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -35672,7 +28842,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35696,7 +28866,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxExecutionDurationMs |= uint64(b&0x7F) << shift + m.MaxExecutionDurationMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35715,7 +28885,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35734,7 +28904,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= uint64(b&0x7F) << shift + m.TaskId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35753,7 +28923,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35773,7 +28943,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35782,9 +28952,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35807,7 +28974,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DiskFullOpt |= DiskFullOpt(b&0x7F) << shift + m.DiskFullOpt |= (DiskFullOpt(b) & 0x7F) << shift if b < 0x80 { break } @@ -35826,7 +28993,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35846,7 +29013,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= APIVersion(b&0x7F) << shift + m.ApiVersion |= (APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -35863,7 +29030,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35880,7 +29047,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35889,23 +29056,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } 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.CommittedLocks) == 0 { - m.CommittedLocks = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -35917,7 +29070,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35941,7 +29094,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35950,9 +29103,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35977,7 +29127,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35987,9 +29137,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36009,7 +29156,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSource |= uint64(b&0x7F) << shift + m.TxnSource |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36028,7 +29175,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BusyThresholdMs |= uint32(b&0x7F) << shift + m.BusyThresholdMs |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -36047,7 +29194,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36056,9 +29203,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36083,7 +29227,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -36102,7 +29246,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BucketsVersion |= uint64(b&0x7F) << shift + m.BucketsVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36121,7 +29265,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36130,9 +29274,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36149,13 +29290,12 @@ func (m *Context) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36180,7 +29320,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36208,7 +29348,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36218,9 +29358,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36240,7 +29377,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36249,9 +29386,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36276,7 +29410,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OverridePriority |= uint64(b&0x7F) << shift + m.OverridePriority |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36287,13 +29421,12 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36318,7 +29451,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36346,7 +29479,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36365,7 +29498,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= uint64(b&0x7F) << shift + m.ConnectionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36384,7 +29517,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StmtId |= uint64(b&0x7F) << shift + m.StmtId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36403,7 +29536,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36413,9 +29546,6 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36427,13 +29557,12 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36458,7 +29587,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36486,7 +29615,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36495,9 +29624,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36520,7 +29646,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockVersion |= uint64(b&0x7F) << shift + m.LockVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36539,7 +29665,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36548,9 +29674,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36573,7 +29696,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36592,7 +29715,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= uint64(b&0x7F) << shift + m.TxnSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36611,7 +29734,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockType |= Op(b&0x7F) << shift + m.LockType |= (Op(b) & 0x7F) << shift if b < 0x80 { break } @@ -36630,7 +29753,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockForUpdateTs |= uint64(b&0x7F) << shift + m.LockForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36649,7 +29772,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36669,7 +29792,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36688,7 +29811,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36697,9 +29820,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36720,7 +29840,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastUpdateMs |= uint64(b&0x7F) << shift + m.DurationToLastUpdateMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36731,13 +29851,12 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36762,7 +29881,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36790,7 +29909,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36799,9 +29918,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36826,7 +29942,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36836,9 +29952,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36858,7 +29971,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36868,9 +29981,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36890,7 +30000,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36899,9 +30009,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36926,7 +30033,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36935,9 +30042,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36962,7 +30066,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36971,9 +30075,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36998,7 +30099,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37007,9 +30108,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37034,7 +30132,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37043,9 +30141,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37070,7 +30165,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37079,9 +30174,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37106,7 +30198,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37115,9 +30207,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37142,7 +30231,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37151,9 +30240,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37170,13 +30256,12 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37201,7 +30286,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37229,7 +30314,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37248,7 +30333,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConflictTs |= uint64(b&0x7F) << shift + m.ConflictTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37267,7 +30352,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37276,9 +30361,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37301,7 +30383,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37310,9 +30392,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37335,7 +30414,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConflictCommitTs |= uint64(b&0x7F) << shift + m.ConflictCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37354,7 +30433,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Reason |= WriteConflict_Reason(b&0x7F) << shift + m.Reason |= (WriteConflict_Reason(b) & 0x7F) << shift if b < 0x80 { break } @@ -37365,13 +30444,12 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37396,7 +30474,7 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37424,7 +30502,7 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37433,9 +30511,6 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37450,13 +30525,12 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37481,7 +30555,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37509,7 +30583,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTs |= uint64(b&0x7F) << shift + m.LockTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37528,7 +30602,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37537,9 +30611,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37562,7 +30633,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeadlockKeyHash |= uint64(b&0x7F) << shift + m.DeadlockKeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37581,7 +30652,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37590,9 +30661,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37607,13 +30675,12 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37638,7 +30705,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37666,7 +30733,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37685,7 +30752,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AttemptedCommitTs |= uint64(b&0x7F) << shift + m.AttemptedCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37704,7 +30771,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37713,9 +30780,6 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37738,7 +30802,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37749,13 +30813,12 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37780,7 +30843,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37808,7 +30871,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37827,7 +30890,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37836,9 +30899,6 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37853,13 +30913,12 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37884,7 +30943,7 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37912,7 +30971,7 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37923,13 +30982,12 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37954,7 +31012,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37982,7 +31040,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38001,7 +31059,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38010,9 +31068,6 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38035,7 +31090,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Assertion |= Assertion(b&0x7F) << shift + m.Assertion |= (Assertion(b) & 0x7F) << shift if b < 0x80 { break } @@ -38054,7 +31109,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExistingStartTs |= uint64(b&0x7F) << shift + m.ExistingStartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38073,7 +31128,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExistingCommitTs |= uint64(b&0x7F) << shift + m.ExistingCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38084,13 +31139,12 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38115,7 +31169,7 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38143,7 +31197,7 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38152,9 +31206,6 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38171,13 +31222,12 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38202,7 +31252,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38230,7 +31280,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitWallTimeMs |= uint64(b&0x7F) << shift + m.WaitWallTimeMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38249,7 +31299,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessWallTimeMs |= uint64(b&0x7F) << shift + m.ProcessWallTimeMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38268,7 +31318,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvReadWallTimeMs |= uint64(b&0x7F) << shift + m.KvReadWallTimeMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38287,7 +31337,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalRpcWallTimeNs |= uint64(b&0x7F) << shift + m.TotalRpcWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38298,13 +31348,12 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38329,7 +31378,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38357,7 +31406,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitWallTimeNs |= uint64(b&0x7F) << shift + m.WaitWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38376,7 +31425,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessWallTimeNs |= uint64(b&0x7F) << shift + m.ProcessWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38395,7 +31444,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessSuspendWallTimeNs |= uint64(b&0x7F) << shift + m.ProcessSuspendWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38414,7 +31463,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvReadWallTimeNs |= uint64(b&0x7F) << shift + m.KvReadWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38433,7 +31482,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalRpcWallTimeNs |= uint64(b&0x7F) << shift + m.TotalRpcWallTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38444,13 +31493,12 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38475,7 +31523,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38503,7 +31551,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Total |= int64(b&0x7F) << shift + m.Total |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38522,7 +31570,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Processed |= int64(b&0x7F) << shift + m.Processed |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38541,7 +31589,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadBytes |= int64(b&0x7F) << shift + m.ReadBytes |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38552,13 +31600,12 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38583,7 +31630,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38611,7 +31658,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38620,9 +31667,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38647,7 +31691,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38656,9 +31700,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38683,7 +31724,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38692,9 +31733,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38711,13 +31749,12 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38742,7 +31779,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38770,7 +31807,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessedVersions |= uint64(b&0x7F) << shift + m.ProcessedVersions |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38789,7 +31826,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalVersions |= uint64(b&0x7F) << shift + m.TotalVersions |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38808,7 +31845,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbDeleteSkippedCount |= uint64(b&0x7F) << shift + m.RocksdbDeleteSkippedCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38827,7 +31864,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbKeySkippedCount |= uint64(b&0x7F) << shift + m.RocksdbKeySkippedCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38846,7 +31883,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockCacheHitCount |= uint64(b&0x7F) << shift + m.RocksdbBlockCacheHitCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38865,7 +31902,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadCount |= uint64(b&0x7F) << shift + m.RocksdbBlockReadCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38884,7 +31921,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadByte |= uint64(b&0x7F) << shift + m.RocksdbBlockReadByte |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38903,7 +31940,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessedVersionsSize |= uint64(b&0x7F) << shift + m.ProcessedVersionsSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38922,7 +31959,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadNanos |= uint64(b&0x7F) << shift + m.RocksdbBlockReadNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38941,7 +31978,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GetSnapshotNanos |= uint64(b&0x7F) << shift + m.GetSnapshotNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38960,7 +31997,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndexProposeWaitNanos |= uint64(b&0x7F) << shift + m.ReadIndexProposeWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38979,7 +32016,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndexConfirmWaitNanos |= uint64(b&0x7F) << shift + m.ReadIndexConfirmWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38998,7 +32035,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadPoolScheduleWaitNanos |= uint64(b&0x7F) << shift + m.ReadPoolScheduleWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39009,13 +32046,12 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -39040,7 +32076,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39068,7 +32104,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39077,9 +32113,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39104,7 +32137,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39113,9 +32146,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39132,13 +32162,12 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -39163,7 +32192,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39191,7 +32220,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39200,9 +32229,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39227,7 +32253,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39236,9 +32262,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39263,7 +32286,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39272,9 +32295,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39299,7 +32319,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39308,9 +32328,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39327,13 +32344,12 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -39358,7 +32374,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39386,7 +32402,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreBatchWaitNanos |= uint64(b&0x7F) << shift + m.StoreBatchWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39405,7 +32421,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProposeSendWaitNanos |= uint64(b&0x7F) << shift + m.ProposeSendWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39424,7 +32440,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PersistLogNanos |= uint64(b&0x7F) << shift + m.PersistLogNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39443,7 +32459,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbWriteLeaderWaitNanos |= uint64(b&0x7F) << shift + m.RaftDbWriteLeaderWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39462,7 +32478,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbSyncLogNanos |= uint64(b&0x7F) << shift + m.RaftDbSyncLogNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39481,7 +32497,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbWriteMemtableNanos |= uint64(b&0x7F) << shift + m.RaftDbWriteMemtableNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39500,7 +32516,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitLogNanos |= uint64(b&0x7F) << shift + m.CommitLogNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39519,7 +32535,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyBatchWaitNanos |= uint64(b&0x7F) << shift + m.ApplyBatchWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39538,7 +32554,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyLogNanos |= uint64(b&0x7F) << shift + m.ApplyLogNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39557,7 +32573,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyMutexLockNanos |= uint64(b&0x7F) << shift + m.ApplyMutexLockNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39576,7 +32592,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteLeaderWaitNanos |= uint64(b&0x7F) << shift + m.ApplyWriteLeaderWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39595,7 +32611,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteWalNanos |= uint64(b&0x7F) << shift + m.ApplyWriteWalNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39614,7 +32630,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteMemtableNanos |= uint64(b&0x7F) << shift + m.ApplyWriteMemtableNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39633,7 +32649,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatchWaitNanos |= uint64(b&0x7F) << shift + m.LatchWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39652,7 +32668,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessNanos |= uint64(b&0x7F) << shift + m.ProcessNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39671,7 +32687,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ThrottleNanos |= uint64(b&0x7F) << shift + m.ThrottleNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39690,7 +32706,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PessimisticLockWaitNanos |= uint64(b&0x7F) << shift + m.PessimisticLockWaitNanos |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39701,13 +32717,12 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -39732,7 +32747,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39760,7 +32775,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39769,9 +32784,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39796,7 +32808,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39805,9 +32817,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39830,7 +32839,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39839,9 +32848,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39856,13 +32862,12 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -39887,7 +32892,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -39915,7 +32920,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= Op(b&0x7F) << shift + m.Op |= (Op(b) & 0x7F) << shift if b < 0x80 { break } @@ -39934,7 +32939,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39943,9 +32948,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39968,7 +32970,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -39977,9 +32979,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40002,7 +33001,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Assertion |= Assertion(b&0x7F) << shift + m.Assertion |= (Assertion(b) & 0x7F) << shift if b < 0x80 { break } @@ -40013,13 +33012,12 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -40044,7 +33042,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40072,7 +33070,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Op(b&0x7F) << shift + m.Type |= (Op(b) & 0x7F) << shift if b < 0x80 { break } @@ -40091,7 +33089,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40110,7 +33108,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40129,7 +33127,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40138,9 +33136,6 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40163,7 +33158,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40183,7 +33178,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40203,7 +33198,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcFence |= uint64(b&0x7F) << shift + m.GcFence |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40222,7 +33217,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastChangeTs |= uint64(b&0x7F) << shift + m.LastChangeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40241,7 +33236,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VersionsToLastChange |= uint64(b&0x7F) << shift + m.VersionsToLastChange |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40252,13 +33247,12 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -40283,7 +33277,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40311,7 +33305,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40330,7 +33324,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40339,9 +33333,6 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40356,13 +33347,12 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -40387,7 +33377,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40415,7 +33405,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Op(b&0x7F) << shift + m.Type |= (Op(b) & 0x7F) << shift if b < 0x80 { break } @@ -40434,7 +33424,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40453,7 +33443,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40462,9 +33452,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40487,7 +33474,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40496,9 +33483,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40521,7 +33505,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40540,7 +33524,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= uint64(b&0x7F) << shift + m.ForUpdateTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40559,7 +33543,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= uint64(b&0x7F) << shift + m.TxnSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40578,7 +33562,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40598,7 +33582,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40607,9 +33591,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40628,7 +33609,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40645,7 +33626,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40654,23 +33635,9 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } 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.RollbackTs) == 0 { - m.RollbackTs = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -40682,7 +33649,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40706,7 +33673,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastChangeTs |= uint64(b&0x7F) << shift + m.LastChangeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40725,7 +33692,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VersionsToLastChange |= uint64(b&0x7F) << shift + m.VersionsToLastChange |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40736,13 +33703,12 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -40767,7 +33733,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40795,7 +33761,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40804,9 +33770,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40831,7 +33794,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40840,9 +33803,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40865,7 +33825,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -40874,9 +33834,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40891,13 +33848,12 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -40922,7 +33878,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40950,7 +33906,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Txn |= uint64(b&0x7F) << shift + m.Txn |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40969,7 +33925,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= uint64(b&0x7F) << shift + m.Status |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40980,13 +33936,12 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41011,7 +33966,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41039,7 +33994,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41048,9 +34003,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41073,7 +34025,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41082,9 +34034,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41099,13 +34048,12 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41130,7 +34078,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41158,7 +34106,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41177,7 +34125,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + m.PeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41196,7 +34144,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41215,7 +34163,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41224,9 +34172,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41251,7 +34196,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41260,9 +34205,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41279,13 +34221,12 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41310,7 +34251,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41338,7 +34279,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41357,7 +34298,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= uint64(b&0x7F) << shift + m.SafeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41368,13 +34309,12 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41399,7 +34339,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41427,7 +34367,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41436,9 +34376,6 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41461,7 +34398,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= uint64(b&0x7F) << shift + m.Ts |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41472,13 +34409,12 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41503,7 +34439,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41529,7 +34465,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41546,7 +34482,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41555,23 +34491,9 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } 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.Regions) == 0 { - m.Regions = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -41583,7 +34505,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41607,7 +34529,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= uint64(b&0x7F) << shift + m.Ts |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41618,13 +34540,12 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41649,7 +34570,7 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41677,7 +34598,7 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41686,9 +34607,6 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41705,13 +34623,12 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41736,7 +34653,7 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41764,7 +34681,7 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= uint64(b&0x7F) << shift + m.SafeTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41775,13 +34692,12 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41806,7 +34722,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41834,7 +34750,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41843,9 +34759,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41870,7 +34783,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41878,10 +34791,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { if byteLen < 0 { return ErrInvalidLengthKvrpcpb } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } + postIndex := iNdEx + byteLen if postIndex > l { return io.ErrUnexpectedEOF } @@ -41904,7 +34814,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41914,9 +34824,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41928,13 +34835,12 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -41959,7 +34865,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -41987,7 +34893,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -41996,9 +34902,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42023,7 +34926,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42033,9 +34936,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42055,7 +34955,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42074,7 +34974,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42086,13 +34986,12 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42117,7 +35016,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42145,7 +35044,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42154,9 +35053,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42181,7 +35077,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42190,9 +35086,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42215,7 +35108,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42224,9 +35117,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42249,7 +35139,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42269,7 +35159,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42278,9 +35168,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42303,7 +35190,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42313,9 +35200,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42335,7 +35219,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift + m.Ttl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42346,13 +35230,12 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42377,7 +35260,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42405,7 +35288,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42414,9 +35297,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42441,7 +35321,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42451,9 +35331,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42473,7 +35350,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42493,7 +35370,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42513,7 +35390,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42522,9 +35399,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42539,13 +35413,12 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42570,7 +35443,7 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42598,7 +35471,7 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42607,9 +35480,6 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42626,13 +35496,12 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42657,7 +35526,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42685,7 +35554,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42694,9 +35563,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42721,7 +35587,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42731,9 +35597,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42753,7 +35616,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42762,9 +35625,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42779,13 +35639,12 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42810,7 +35669,7 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42838,7 +35697,7 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42847,9 +35706,6 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42866,13 +35722,12 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -42897,7 +35752,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -42925,7 +35780,241 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RegionError == nil { + m.RegionError = &errorpb.Error{} + } + if err := m.RegionError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + 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 ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entries = append(m.Entries, &deadlock.WaitForEntry{}) + if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKvrpcpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RawCoprocessorRequest) 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 ErrIntOverflowKvrpcpb + } + 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: RawCoprocessorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RawCoprocessorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Context == nil { + m.Context = &Context{} + } + if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoprName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + 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 ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoprName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoprVersionReq", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + 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 ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoprVersionReq = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42934,9 +36023,118 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { + 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 + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKvrpcpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RawCoprocessorResponse) 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 ErrIntOverflowKvrpcpb + } + 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: RawCoprocessorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RawCoprocessorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionError", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } @@ -42961,27 +36159,157 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKvrpcpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RawChecksumRequest) 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 ErrIntOverflowKvrpcpb + } + 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: RawChecksumRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RawChecksumRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Context == nil { + m.Context = &Context{} + } + if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + } + m.Algorithm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Algorithm |= (ChecksumAlgorithm(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -42993,7 +36321,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -43002,14 +36330,11 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - m.Entries = append(m.Entries, &deadlock.WaitForEntry{}) - if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Ranges = append(m.Ranges, &KeyRange{}) + if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -43019,13 +36344,12 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43035,7 +36359,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { +func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43050,7 +36374,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43058,15 +36382,15 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RawCoprocessorRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RawChecksumResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RawCoprocessorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RawChecksumResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionError", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43078,7 +36402,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -43087,22 +36411,19 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Context == nil { - m.Context = &Context{} + if m.RegionError == nil { + m.RegionError = &errorpb.Error{} } - if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RegionError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoprName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -43114,7 +36435,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43124,19 +36445,16 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - m.CoprName = string(dAtA[iNdEx:postIndex]) + m.Error = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoprVersionReq", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) } - var stringLen uint64 + m.Checksum = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43146,29 +36464,16 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Checksum |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CoprVersionReq = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalKvs", wireType) } - var msglen int + m.TotalKvs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43178,31 +36483,16 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.TotalKvs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - 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 - } - iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalBytes", wireType) } - var byteLen int + m.TotalBytes = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43212,39 +36502,23 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.TotalBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43254,7 +36528,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { +func (m *CompactError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43269,7 +36543,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43277,15 +36551,15 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RawCoprocessorResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CompactError: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RawCoprocessorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompactError: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionError", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrInvalidStartKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43297,7 +36571,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -43306,24 +36580,20 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - if m.RegionError == nil { - m.RegionError = &errorpb.Error{} - } - if err := m.RegionError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &CompactErrorInvalidStartKey{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Error = &CompactError_ErrInvalidStartKey{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrPhysicalTableNotExist", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43333,29 +36603,29 @@ func (m *RawCoprocessorResponse) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if msglen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Error = string(dAtA[iNdEx:postIndex]) + v := &CompactErrorPhysicalTableNotExist{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Error = &CompactError_ErrPhysicalTableNotExist{v} iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrCompactInProgress", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43365,25 +36635,55 @@ func (m *RawCoprocessorResponse) 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 ErrInvalidLengthKvrpcpb } - postIndex := iNdEx + byteLen - if postIndex < 0 { + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CompactErrorCompactInProgress{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Error = &CompactError_ErrCompactInProgress{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrTooManyPendingTasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} + v := &CompactErrorTooManyPendingTasks{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + m.Error = &CompactError_ErrTooManyPendingTasks{v} iNdEx = postIndex default: iNdEx = preIndex @@ -43391,13 +36691,12 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43407,7 +36706,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { +func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43422,7 +36721,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43430,114 +36729,174 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RawChecksumRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CompactErrorInvalidStartKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RawChecksumRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompactErrorInvalidStartKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactErrorPhysicalTableNotExist) 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 ErrIntOverflowKvrpcpb + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Context == nil { - m.Context = &Context{} + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break } - if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CompactErrorPhysicalTableNotExist: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactErrorPhysicalTableNotExist: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + if skippy < 0 { + return ErrInvalidLengthKvrpcpb } - m.Algorithm = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Algorithm |= ChecksumAlgorithm(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactErrorCompactInProgress) 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 ErrIntOverflowKvrpcpb } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if msglen < 0 { - return ErrInvalidLengthKvrpcpb + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + msglen - if postIndex < 0 { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CompactErrorCompactInProgress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactErrorCompactInProgress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipKvrpcpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { return ErrInvalidLengthKvrpcpb } - if postIndex > l { + if (iNdEx + skippy) > 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 + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactErrorTooManyPendingTasks) 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 ErrIntOverflowKvrpcpb } - iNdEx = postIndex + 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: CompactErrorTooManyPendingTasks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactErrorTooManyPendingTasks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43547,7 +36906,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { +func (m *CompactRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43562,7 +36921,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43570,17 +36929,17 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RawChecksumResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CompactRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RawChecksumResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompactRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionError", 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 ErrIntOverflowKvrpcpb @@ -43590,33 +36949,28 @@ func (m *RawChecksumResponse) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if byteLen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + byteLen if postIndex > l { return io.ErrUnexpectedEOF } - if m.RegionError == nil { - m.RegionError = &errorpb.Error{} - } - if err := m.RegionError.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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PhysicalTableId", wireType) } - var stringLen uint64 + m.PhysicalTableId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43626,29 +36980,16 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.PhysicalTableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LogicalTableId", wireType) } - m.Checksum = 0 + m.LogicalTableId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43658,16 +36999,16 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= uint64(b&0x7F) << shift + m.LogicalTableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } } - case 4: + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalKvs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApiVersion", wireType) } - m.TotalKvs = 0 + m.ApiVersion = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43677,16 +37018,16 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= uint64(b&0x7F) << shift + m.ApiVersion |= (APIVersion(b) & 0x7F) << shift if b < 0x80 { break } } - case 5: + case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalBytes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } - m.TotalBytes = 0 + m.KeyspaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43696,7 +37037,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= uint64(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -43707,13 +37048,12 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43723,7 +37063,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactError) Unmarshal(dAtA []byte) error { +func (m *CompactResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43738,7 +37078,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43746,15 +37086,15 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactError: wiretype end group for non-group") + return fmt.Errorf("proto: CompactResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactError: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CompactResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrInvalidStartKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -43766,7 +37106,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -43775,23 +37115,21 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - v := &CompactErrorInvalidStartKey{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Error == nil { + m.Error = &CompactError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Error = &CompactError_ErrInvalidStartKey{v} iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrPhysicalTableNotExist", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasRemaining", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43801,32 +37139,17 @@ func (m *CompactError) 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 ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CompactErrorPhysicalTableNotExist{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Error = &CompactError_ErrPhysicalTableNotExist{v} - iNdEx = postIndex + m.HasRemaining = bool(v != 0) case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrCompactInProgress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CompactedStartKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43836,32 +37159,28 @@ func (m *CompactError) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if byteLen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + byteLen if postIndex > l { return io.ErrUnexpectedEOF } - v := &CompactErrorCompactInProgress{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.CompactedStartKey = append(m.CompactedStartKey[:0], dAtA[iNdEx:postIndex]...) + if m.CompactedStartKey == nil { + m.CompactedStartKey = []byte{} } - m.Error = &CompactError_ErrCompactInProgress{v} iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrTooManyPendingTasks", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CompactedEndKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -43871,26 +37190,22 @@ func (m *CompactError) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if byteLen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + byteLen if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &CompactErrorTooManyPendingTasks{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + return io.ErrUnexpectedEOF + } + m.CompactedEndKey = append(m.CompactedEndKey[:0], dAtA[iNdEx:postIndex]...) + if m.CompactedEndKey == nil { + m.CompactedEndKey = []byte{} } - m.Error = &CompactError_ErrTooManyPendingTasks{v} iNdEx = postIndex default: iNdEx = preIndex @@ -43898,13 +37213,12 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43914,7 +37228,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { +func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43929,7 +37243,7 @@ func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43937,25 +37251,53 @@ func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactErrorInvalidStartKey: wiretype end group for non-group") + return fmt.Errorf("proto: TiFlashSystemTableRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactErrorInvalidStartKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TiFlashSystemTableRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + 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 ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sql = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -43965,7 +37307,7 @@ func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { +func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -43980,7 +37322,7 @@ func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -43988,25 +37330,54 @@ func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactErrorPhysicalTableNotExist: wiretype end group for non-group") + return fmt.Errorf("proto: TiFlashSystemTableResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactErrorPhysicalTableNotExist: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TiFlashSystemTableResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44016,7 +37387,7 @@ func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { +func (m *TxnEntry) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44031,7 +37402,7 @@ func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44039,25 +37410,88 @@ func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactErrorCompactInProgress: wiretype end group for non-group") + return fmt.Errorf("proto: TxnEntry: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactErrorCompactInProgress: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TxnEntry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prewrite", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &TxnEntry_Prewrite{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Entry = &TxnEntry_Prewrite_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &TxnEntry_Commit{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Entry = &TxnEntry_Commit_{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44067,7 +37501,7 @@ func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { +func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44082,7 +37516,7 @@ func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44090,25 +37524,136 @@ func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactErrorTooManyPendingTasks: wiretype end group for non-group") + return fmt.Errorf("proto: Prewrite: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactErrorTooManyPendingTasks: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Prewrite: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) + } + m.StartTs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTs |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrimaryKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrimaryKey = append(m.PrimaryKey[:0], dAtA[iNdEx:postIndex]...) + if m.PrimaryKey == nil { + m.PrimaryKey = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44118,7 +37663,7 @@ func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactRequest) Unmarshal(dAtA []byte) error { +func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44133,7 +37678,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44141,15 +37686,15 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Commit: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Commit: 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 Key", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -44161,7 +37706,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -44170,22 +37715,19 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) - if m.StartKey == nil { - m.StartKey = []byte{} + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PhysicalTableId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - m.PhysicalTableId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44195,35 +37737,28 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PhysicalTableId |= int64(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 LogicalTableId", wireType) + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb } - m.LogicalTableId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LogicalTableId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF } - case 7: + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } - m.ApiVersion = 0 + m.StartTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44233,16 +37768,16 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= APIVersion(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - case 8: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) } - m.KeyspaceId = 0 + m.CommitTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44252,7 +37787,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.CommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44263,13 +37798,12 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44279,7 +37813,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactResponse) Unmarshal(dAtA []byte) error { +func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44294,7 +37828,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44302,15 +37836,15 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ScanTxnEntriesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScanTxnEntriesRequest: 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 Context", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -44322,7 +37856,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -44331,24 +37865,21 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Error == nil { - m.Error = &CompactError{} + if m.Context == nil { + m.Context = &Context{} } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasRemaining", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) } - var v int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44358,15 +37889,26 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - m.HasRemaining = bool(v != 0) + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + 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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompactedStartKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -44378,7 +37920,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -44387,22 +37929,19 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - m.CompactedStartKey = append(m.CompactedStartKey[:0], dAtA[iNdEx:postIndex]...) - if m.CompactedStartKey == nil { - m.CompactedStartKey = []byte{} + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) + if m.EndKey == nil { + m.EndKey = []byte{} } iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompactedEndKey", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - var byteLen int + m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44412,39 +37951,62 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.Limit |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthKvrpcpb + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyOnly", wireType) } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } } - if postIndex > l { - return io.ErrUnexpectedEOF + m.KeyOnly = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } - m.CompactedEndKey = append(m.CompactedEndKey[:0], dAtA[iNdEx:postIndex]...) - if m.CompactedEndKey == nil { - m.CompactedEndKey = []byte{} + m.StartTs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTs |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44454,7 +38016,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { +func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -44469,7 +38031,7 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -44477,17 +38039,17 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TiFlashSystemTableRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ScanTxnEntriesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TiFlashSystemTableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScanTxnEntriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sql", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionError", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44497,80 +38059,30 @@ func (m *TiFlashSystemTableRequest) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if msglen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Sql = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipKvrpcpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthKvrpcpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TiFlashSystemTableResponse) 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 ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.RegionError == nil { + m.RegionError = &errorpb.Error{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.RegionError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TiFlashSystemTableResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TiFlashSystemTableResponse: 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 Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -44580,22 +38092,20 @@ func (m *TiFlashSystemTableResponse) 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 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if msglen < 0 { return ErrInvalidLengthKvrpcpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Entries = append(m.Entries, &TxnEntry{}) + if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -44605,13 +38115,12 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -44624,7 +38133,6 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { func skipKvrpcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -44656,8 +38164,10 @@ func skipKvrpcpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -44674,34 +38184,499 @@ func skipKvrpcpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthKvrpcpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupKvrpcpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipKvrpcpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthKvrpcpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthKvrpcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowKvrpcpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupKvrpcpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthKvrpcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKvrpcpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptorKvrpcpb) } + +var fileDescriptorKvrpcpb = []byte{ + // 7030 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x59, 0x6c, 0x23, 0xc9, + 0x79, 0xb0, 0x9a, 0xa4, 0x44, 0xea, 0xa3, 0x44, 0xb5, 0x4a, 0x17, 0xa5, 0x99, 0xd9, 0x99, 0xe9, + 0xf5, 0xec, 0x8e, 0xb5, 0x5e, 0x8d, 0x57, 0x7b, 0xf8, 0xfc, 0xd7, 0x3b, 0xa3, 0xb9, 0xb4, 0x73, + 0x48, 0x68, 0x72, 0x67, 0xff, 0xc5, 0xff, 0xdb, 0xed, 0x52, 0xb3, 0x44, 0x36, 0xd4, 0xec, 0xee, + 0xed, 0x2a, 0x4a, 0xa2, 0x83, 0x00, 0x31, 0x72, 0x00, 0x0e, 0x12, 0x27, 0x36, 0x0c, 0x38, 0x80, + 0x8d, 0x00, 0x79, 0x30, 0x10, 0xe7, 0x21, 0x40, 0x90, 0x97, 0x1c, 0x0f, 0x41, 0x00, 0x07, 0xd8, + 0x04, 0x31, 0x6c, 0x20, 0x08, 0x1c, 0xd8, 0x81, 0x11, 0x6c, 0x80, 0x3c, 0xe7, 0x25, 0x48, 0x5e, + 0x82, 0x04, 0x75, 0xf5, 0x41, 0x72, 0x34, 0x1a, 0x8d, 0x66, 0xec, 0xe4, 0x89, 0xec, 0xef, 0xfb, + 0xaa, 0xea, 0xbb, 0xea, 0xab, 0xeb, 0xab, 0x82, 0xe9, 0xbd, 0xfd, 0x38, 0x72, 0xa3, 0x9d, 0xb5, + 0x28, 0x0e, 0x59, 0x88, 0xca, 0xea, 0x73, 0x65, 0xaa, 0x4b, 0x18, 0xd6, 0xe0, 0x95, 0x69, 0x12, + 0xc7, 0x61, 0x9c, 0x7c, 0xce, 0xb7, 0xc3, 0x76, 0x28, 0xfe, 0x5e, 0xe1, 0xff, 0x14, 0x74, 0x26, + 0xee, 0x51, 0x26, 0xfe, 0x2a, 0x40, 0xad, 0x45, 0x70, 0xcb, 0x0f, 0xdd, 0x3d, 0x5d, 0x0b, 0x8b, + 0xb1, 0x4b, 0x92, 0x5a, 0x16, 0x63, 0x42, 0xc3, 0x5e, 0xec, 0x12, 0xa7, 0x8b, 0x03, 0xdc, 0x26, + 0xb1, 0x84, 0x5b, 0x2d, 0x80, 0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, 0xf7, 0x1d, 0xde, 0x09, 0x95, 0xf3, 0x55, 0x15, 0xec, 0x6e, 0xe8, 0xee, 0xa1, 0xe7, 0x61, + 0x5a, 0xda, 0x38, 0x6f, 0xb6, 0x29, 0x01, 0x7c, 0x90, 0xda, 0x8e, 0x97, 0x77, 0x18, 0xf3, 0x85, + 0xed, 0x4a, 0x76, 0x99, 0x7f, 0x37, 0x99, 0x8f, 0xd6, 0x61, 0x81, 0xee, 0x79, 0x91, 0xe3, 0x86, + 0x01, 0x65, 0x31, 0xf6, 0x02, 0xe6, 0xb8, 0x1d, 0xe2, 0xee, 0x29, 0x4b, 0xce, 0x71, 0xe4, 0x46, + 0x82, 0xdb, 0xe0, 0x28, 0xf4, 0xff, 0x60, 0x2e, 0x22, 0x94, 0x7a, 0x5d, 0x8f, 0x32, 0xcf, 0x75, + 0xb0, 0x2b, 0x25, 0x2a, 0x5f, 0x28, 0x5e, 0xae, 0xad, 0xaf, 0x26, 0x12, 0x0d, 0xa8, 0x6a, 0x6d, + 0x3b, 0x2d, 0x73, 0x55, 0x14, 0xb1, 0x51, 0x34, 0x08, 0xa2, 0x9c, 0x57, 0x76, 0x18, 0x38, 0xd4, + 0xfb, 0x12, 0x11, 0x6e, 0x51, 0xb2, 0xcb, 0xec, 0x30, 0x68, 0x78, 0x5f, 0x22, 0xc8, 0x82, 0xe9, + 0xdd, 0x30, 0x76, 0x7a, 0x51, 0x0b, 0x33, 0xe2, 0x30, 0x5a, 0x9f, 0x14, 0xf8, 0xea, 0x6e, 0x18, + 0xbf, 0x23, 0x60, 0x4d, 0xca, 0x69, 0xba, 0x5e, 0xe0, 0xb8, 0x61, 0xb7, 0xeb, 0x31, 0x4e, 0x03, + 0x92, 0xa6, 0xeb, 0x05, 0x1b, 0x02, 0xd6, 0xa4, 0xe8, 0x32, 0x98, 0x3d, 0x4a, 0x1c, 0x4c, 0xfb, + 0x81, 0xab, 0x28, 0xeb, 0x55, 0x21, 0x6e, 0xad, 0x47, 0xc9, 0x55, 0x0e, 0x96, 0xb4, 0xe8, 0x02, + 0x54, 0x29, 0x71, 0xc3, 0xa0, 0x85, 0x63, 0x8f, 0xd0, 0xfa, 0xd4, 0x85, 0x22, 0xd7, 0x7f, 0x06, + 0x84, 0xce, 0x02, 0xb0, 0x98, 0x77, 0x0b, 0xe2, 0x44, 0x6e, 0x7d, 0x5a, 0xc6, 0x00, 0x16, 0xf7, + 0xb7, 0x02, 0xb2, 0xed, 0x0a, 0x6e, 0xf0, 0x61, 0x86, 0x9b, 0x9a, 0xe2, 0x06, 0x1f, 0x26, 0xdc, + 0xbc, 0x05, 0x33, 0x98, 0x52, 0x12, 0x73, 0xf1, 0x1d, 0x9f, 0xec, 0x13, 0xbf, 0x3e, 0x73, 0xc1, + 0xb8, 0x5c, 0x5b, 0x5f, 0x4a, 0x34, 0x79, 0x55, 0xe3, 0xef, 0x72, 0xb4, 0x5d, 0xc3, 0xb9, 0x6f, + 0xe4, 0xc1, 0x72, 0x4e, 0x2f, 0x19, 0x63, 0xd2, 0xba, 0x29, 0xfc, 0x6c, 0xed, 0xa1, 0x56, 0xb9, + 0x99, 0x28, 0xaf, 0x91, 0xda, 0xd9, 0x5e, 0xcc, 0xe8, 0x34, 0x05, 0xd3, 0x95, 0x1d, 0x58, 0x18, + 0x59, 0x80, 0x87, 0x13, 0x2f, 0x68, 0x91, 0x43, 0xd1, 0x0b, 0xa6, 0x6d, 0xf9, 0x81, 0x5e, 0x85, + 0x45, 0x72, 0x18, 0x11, 0x97, 0x91, 0x96, 0x93, 0x37, 0x5d, 0x41, 0x28, 0x62, 0x4e, 0x63, 0xd3, + 0x4a, 0xa9, 0xb5, 0x03, 0xb3, 0x43, 0xae, 0x82, 0x56, 0x60, 0xb1, 0x71, 0x67, 0x73, 0xdb, 0xd9, + 0xbe, 0xd1, 0x68, 0x6c, 0xde, 0xdb, 0x6c, 0x34, 0x37, 0x37, 0x9c, 0x8d, 0xdb, 0x37, 0x36, 0xee, + 0x98, 0x63, 0xa8, 0x0e, 0xf3, 0xd7, 0xb7, 0x46, 0x60, 0x0c, 0xb4, 0x04, 0x73, 0xd7, 0xb7, 0x9c, + 0x8d, 0xad, 0xfb, 0x8d, 0xa6, 0x7d, 0x75, 0xf3, 0x7e, 0x53, 0x21, 0x0a, 0xd6, 0x7f, 0x1a, 0x60, + 0xa6, 0x9a, 0x38, 0x79, 0x88, 0xf9, 0x28, 0x4c, 0x08, 0xec, 0x70, 0x7f, 0x4e, 0x82, 0x87, 0x22, + 0x18, 0xf6, 0xcc, 0xe2, 0xb0, 0x67, 0xbe, 0x08, 0xa6, 0xf4, 0xa4, 0x0c, 0x99, 0xec, 0xd0, 0xd3, + 0x21, 0x77, 0xa8, 0x84, 0x70, 0xc4, 0xe0, 0x32, 0xfe, 0x18, 0x83, 0x8b, 0xf5, 0xbd, 0x12, 0x2c, + 0x66, 0x94, 0xcc, 0x43, 0xc9, 0xff, 0x96, 0x88, 0x36, 0x14, 0x25, 0x26, 0x46, 0x46, 0x09, 0x8f, + 0x3a, 0xbb, 0x5e, 0x4c, 0x99, 0xe4, 0xa3, 0x2c, 0x3a, 0x6e, 0xd5, 0xa3, 0x37, 0x39, 0x4c, 0xf0, + 0x71, 0x11, 0xa6, 0x0e, 0x30, 0x37, 0x81, 0xd7, 0x25, 0x61, 0x8f, 0x89, 0x60, 0x54, 0xb4, 0xab, + 0x1c, 0xd6, 0x94, 0x20, 0x54, 0x87, 0xf1, 0xdd, 0x30, 0x76, 0x89, 0x08, 0x44, 0x95, 0x6b, 0x85, + 0xba, 0x61, 0x4b, 0x00, 0x17, 0x22, 0x26, 0xac, 0x17, 0x07, 0x8e, 0x98, 0x29, 0xc8, 0x30, 0x54, + 0xb1, 0xa7, 0x24, 0xf0, 0x81, 0x80, 0x0d, 0x7b, 0x44, 0x75, 0x94, 0x47, 0xcc, 0x88, 0x78, 0xec, + 0x90, 0x43, 0x8f, 0x32, 0x12, 0xb8, 0xa4, 0x3e, 0x25, 0x43, 0x95, 0x00, 0x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 0x09, 0x28, 0x47, + 0x24, 0xc0, 0x3e, 0xeb, 0xab, 0x80, 0x79, 0x6e, 0x6d, 0xe8, 0xd6, 0xdd, 0x46, 0x18, 0xd0, 0x5e, + 0x37, 0x12, 0xb9, 0x22, 0x9a, 0x1a, 0xbd, 0x04, 0xb3, 0xe1, 0x3e, 0x89, 0x63, 0xaf, 0x45, 0x9c, + 0x24, 0x12, 0xca, 0x13, 0x41, 0x53, 0x23, 0xb6, 0x15, 0xdc, 0xfa, 0x75, 0x03, 0x20, 0x15, 0x32, + 0x37, 0x1a, 0x19, 0xf9, 0xb9, 0xc8, 0xf3, 0x30, 0xed, 0x86, 0x41, 0x40, 0x44, 0x22, 0x19, 0xd7, + 0xba, 0x3a, 0x8a, 0x4c, 0x81, 0x9b, 0x2d, 0xde, 0x95, 0xb9, 0x1e, 0x39, 0x5a, 0xa5, 0x1a, 0xf2, + 0xcf, 0xcd, 0x96, 0x38, 0xc8, 0x24, 0x94, 0xab, 0xdc, 0xc1, 0xbe, 0xa7, 0xf6, 0x92, 0x26, 0xed, + 0x29, 0x05, 0xbc, 0xca, 0x61, 0xd6, 0xb7, 0x8a, 0x50, 0xd1, 0xb3, 0x88, 0xa1, 0xe4, 0x52, 0x63, + 0x38, 0xb9, 0xf4, 0x22, 0x4c, 0x89, 0x6c, 0xb6, 0xfc, 0x79, 0x45, 0x95, 0xc3, 0xb4, 0x7d, 0x87, + 0x47, 0xb7, 0x6c, 0xb6, 0x5d, 0x29, 0x9f, 0x6d, 0x97, 0xbd, 0x82, 0x34, 0x9e, 0xbf, 0x82, 0x74, + 0x59, 0x25, 0xce, 0x89, 0xc4, 0x76, 0x39, 0xac, 0x54, 0x13, 0x2f, 0xd9, 0x8a, 0x64, 0xca, 0x5c, + 0xb3, 0x1f, 0x11, 0xf4, 0x12, 0x20, 0x41, 0x99, 0xcf, 0x29, 0x2e, 0x8b, 0xea, 0x66, 0x38, 0x26, + 0x73, 0xe5, 0x65, 0xe4, 0x8d, 0xa4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d, 0x38, + 0xab, 0x0b, 0xd0, 0x1e, 0x8d, 0x48, 0xd0, 0xca, 0x17, 0x94, 0x82, 0xd5, 0x15, 0x4d, 0x43, 0x92, + 0x64, 0xca, 0x8f, 0x54, 0x48, 0x22, 0xde, 0x80, 0x42, 0xee, 0x1f, 0xa5, 0x90, 0xf1, 0x87, 0x2a, + 0xe4, 0xf3, 0x50, 0xe1, 0x4b, 0x5b, 0x31, 0x35, 0x9c, 0x87, 0x71, 0x41, 0x21, 0xe4, 0x2f, 0xda, + 0xf2, 0x83, 0xcf, 0x33, 0x14, 0x87, 0x44, 0x4e, 0x4e, 0x8b, 0x76, 0x0a, 0x48, 0xb6, 0xb5, 0x76, + 0xfa, 0x8c, 0x48, 0x89, 0x8a, 0x72, 0x5b, 0xeb, 0x1a, 0x07, 0x58, 0xbf, 0xcc, 0xe7, 0xc1, 0x2e, + 0x0e, 0x94, 0xfb, 0xbc, 0x08, 0xe3, 0xe2, 0x8a, 0xf0, 0x90, 0xe7, 0x69, 0x1e, 0x6c, 0x89, 0x47, + 0x97, 0xa0, 0x94, 0x5c, 0x7d, 0x1a, 0x49, 0x27, 0xd0, 0x9c, 0xac, 0x85, 0x19, 0x1e, 0xda, 0x53, + 0x4a, 0xc9, 0x38, 0xda, 0xfa, 0xf7, 0x71, 0xf9, 0xf8, 0x41, 0x62, 0xf5, 0x97, 0x01, 0x25, 0x22, + 0xe8, 0x69, 0xae, 0x36, 0xfb, 0x6c, 0x82, 0x51, 0x93, 0x5d, 0x91, 0x24, 0x2e, 0x15, 0x9b, 0x90, + 0xaa, 0x24, 0x71, 0x01, 0x4d, 0xc8, 0x3e, 0x07, 0x67, 0x63, 0xbe, 0xa0, 0x6c, 0xed, 0x38, 0x2d, + 0x71, 0x2c, 0xe7, 0xd0, 0x3d, 0x2f, 0x8a, 0x44, 0xa8, 0xec, 0x05, 0x4c, 0xd9, 0x7b, 0x59, 0xd1, + 0xc8, 0x93, 0xbb, 0x86, 0xa4, 0xd8, 0xe0, 0x04, 0xe8, 0x53, 0xa0, 0x91, 0x22, 0xde, 0xe7, 0x4b, + 0x4b, 0xab, 0x2f, 0x2a, 0x82, 0x3b, 0xa4, 0x9f, 0x2b, 0xfa, 0x16, 0x9c, 0xd3, 0x45, 0x77, 0x44, + 0x07, 0x17, 0x1b, 0x26, 0x4e, 0x87, 0x0f, 0x09, 0xa2, 0xf8, 0x78, 0xae, 0xf1, 0x6b, 0x9c, 0x46, + 0xec, 0x9f, 0xdc, 0xf6, 0x98, 0xac, 0xe1, 0x13, 0x50, 0xcf, 0xd7, 0x20, 0xec, 0x2a, 0x0b, 0xcb, + 0x24, 0xa2, 0x85, 0x6c, 0x61, 0xee, 0x7b, 0xb2, 0xe0, 0xeb, 0xb0, 0x34, 0xa2, 0x20, 0x77, 0x08, + 0x35, 0x3d, 0x9f, 0x1f, 0x2c, 0xc7, 0x7d, 0x03, 0xbd, 0x01, 0x4b, 0xc3, 0x36, 0xc8, 0xbe, 0x53, + 0xb0, 0x30, 0x64, 0x08, 0xb1, 0x64, 0x18, 0xcd, 0x67, 0x80, 0x83, 0x50, 0x4f, 0xde, 0x87, 0xf8, + 0xbc, 0xcf, 0x91, 0x3c, 0x76, 0xb6, 0x09, 0x73, 0x68, 0x80, 0x23, 0xda, 0x09, 0x99, 0x2a, 0x22, + 0xdf, 0x33, 0x30, 0xdb, 0x84, 0x35, 0x14, 0x42, 0x52, 0x73, 0x85, 0x26, 0xfb, 0xb5, 0x4e, 0x14, + 0x87, 0x51, 0x48, 0x89, 0x23, 0x62, 0x85, 0x2c, 0x58, 0x55, 0x0a, 0xd5, 0x5b, 0xb8, 0xdb, 0x92, + 0x84, 0x8f, 0xb4, 0xa3, 0x6a, 0xe0, 0x13, 0x1e, 0x2f, 0xee, 0x66, 0x6b, 0x98, 0x1a, 0xa8, 0x61, + 0x43, 0x92, 0x0c, 0xd7, 0x10, 0x85, 0xa1, 0xef, 0x50, 0xb7, 0x43, 0x5a, 0x3d, 0x3f, 0xc7, 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x4b, 0x30, 0x97, 0x42, 0x6f, 0x86, 0xb1, + 0x2b, 0xee, 0x16, 0x99, 0xc6, 0xaa, 0x0f, 0x67, 0x8f, 0x7a, 0xbd, 0x96, 0x57, 0xa7, 0x6e, 0xee, + 0xf4, 0x7c, 0x96, 0x54, 0x77, 0x01, 0xce, 0xa6, 0xd0, 0xbb, 0x43, 0x8f, 0xd0, 0xca, 0x74, 0x9f, + 0x94, 0x42, 0x66, 0x71, 0x98, 0x85, 0xd5, 0x17, 0x01, 0xd2, 0xb8, 0x87, 0x26, 0xa0, 0xf0, 0xe0, + 0x15, 0x73, 0x0c, 0x4d, 0xc2, 0xf8, 0x83, 0x57, 0x9a, 0xcd, 0xbb, 0xa6, 0x21, 0x40, 0xeb, 0x66, + 0x61, 0xf5, 0x25, 0x80, 0x34, 0xa5, 0x1d, 0x01, 0x4c, 0x24, 0x4d, 0x97, 0xa1, 0x78, 0x37, 0x3c, + 0x30, 0x0d, 0x54, 0x81, 0xd2, 0x6d, 0xaf, 0xdd, 0x31, 0x0b, 0xab, 0x57, 0xa0, 0x96, 0xcf, 0x63, + 0xe7, 0xd5, 0x34, 0x36, 0xcd, 0x31, 0xfe, 0x6b, 0x6f, 0x98, 0x86, 0x48, 0x29, 0xda, 0x90, 0x29, + 0x45, 0x0d, 0xb3, 0xb0, 0xfa, 0x00, 0xaa, 0x99, 0x9c, 0x68, 0xce, 0xeb, 0xfd, 0x90, 0x5d, 0xf5, + 0xfd, 0xf0, 0x80, 0xb4, 0xb6, 0x02, 0x0e, 0x96, 0x2a, 0x4b, 0x40, 0x57, 0xfd, 0x6e, 0x48, 0x99, + 0x40, 0x18, 0xa8, 0x0e, 0xf3, 0x19, 0x84, 0x48, 0x40, 0x12, 0x98, 0xc2, 0xaa, 0x0b, 0x85, 0xad, + 0x88, 0x73, 0xb8, 0xdd, 0x63, 0x92, 0xd5, 0xeb, 0xc4, 0x97, 0xac, 0x0a, 0x75, 0x17, 0xd0, 0x14, + 0x54, 0xf4,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fe, 0x6f, 0x18, 0x9b, 0x63, 0xd7, 0x5e, 0xf8, + 0x87, 0xdf, 0xaf, 0x18, 0x1f, 0x7c, 0xf8, 0x9c, 0xf1, 0xc3, 0x0f, 0x9f, 0x33, 0xfe, 0xe9, 0xc3, + 0xe7, 0x8c, 0xdf, 0xf9, 0xe7, 0xe7, 0xc6, 0xc0, 0x0c, 0xe3, 0xf6, 0x1a, 0xf3, 0xf6, 0xf6, 0xd7, + 0xd4, 0x88, 0xb1, 0x33, 0x21, 0x7e, 0x5e, 0xfd, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x9d, + 0x04, 0x15, 0x98, 0x64, 0x00, 0x00, +} diff --git a/pkg/logbackuppb/logbackuppb.pb.go b/pkg/logbackuppb/logbackuppb.pb.go index 2a7bd3212..330f381de 100644 --- a/pkg/logbackuppb/logbackuppb.pb.go +++ b/pkg/logbackuppb/logbackuppb.pb.go @@ -1,21 +1,38 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: logbackuppb.proto +/* +Package logbackup is a generated protocol buffer package. + +It is generated from these files: + + logbackuppb.proto + +It has these top-level messages: + + RegionIdentity + RegionCheckpoint + GetLastFlushTSOfRegionRequest + GetLastFlushTSOfRegionResponse + SubscribeFlushEventRequest + SubscribeFlushEventResponse + FlushEvent +*/ package logbackup import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,49 +44,18 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // The minimal information for identify a region. type RegionIdentity struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - EpochVersion uint64 `protobuf:"varint,2,opt,name=epoch_version,json=epochVersion,proto3" json:"epoch_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionIdentity) Reset() { *m = RegionIdentity{} } -func (m *RegionIdentity) String() string { return proto.CompactTextString(m) } -func (*RegionIdentity) ProtoMessage() {} -func (*RegionIdentity) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{0} -} -func (m *RegionIdentity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionIdentity.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 *RegionIdentity) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionIdentity.Merge(m, src) -} -func (m *RegionIdentity) XXX_Size() int { - return m.Size() -} -func (m *RegionIdentity) XXX_DiscardUnknown() { - xxx_messageInfo_RegionIdentity.DiscardUnknown(m) + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + EpochVersion uint64 `protobuf:"varint,2,opt,name=epoch_version,json=epochVersion,proto3" json:"epoch_version,omitempty"` } -var xxx_messageInfo_RegionIdentity proto.InternalMessageInfo +func (m *RegionIdentity) Reset() { *m = RegionIdentity{} } +func (m *RegionIdentity) String() string { return proto.CompactTextString(m) } +func (*RegionIdentity) ProtoMessage() {} +func (*RegionIdentity) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{0} } func (m *RegionIdentity) GetId() uint64 { if m != nil { @@ -87,46 +73,15 @@ func (m *RegionIdentity) GetEpochVersion() uint64 { // The last flush ts with region information. type RegionCheckpoint struct { - Err *errorpb.Error `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` - Region *RegionIdentity `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionCheckpoint) Reset() { *m = RegionCheckpoint{} } -func (m *RegionCheckpoint) String() string { return proto.CompactTextString(m) } -func (*RegionCheckpoint) ProtoMessage() {} -func (*RegionCheckpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{1} -} -func (m *RegionCheckpoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionCheckpoint.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 *RegionCheckpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionCheckpoint.Merge(m, src) -} -func (m *RegionCheckpoint) XXX_Size() int { - return m.Size() -} -func (m *RegionCheckpoint) XXX_DiscardUnknown() { - xxx_messageInfo_RegionCheckpoint.DiscardUnknown(m) + Err *errorpb.Error `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"` + Region *RegionIdentity `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` } -var xxx_messageInfo_RegionCheckpoint proto.InternalMessageInfo +func (m *RegionCheckpoint) Reset() { *m = RegionCheckpoint{} } +func (m *RegionCheckpoint) String() string { return proto.CompactTextString(m) } +func (*RegionCheckpoint) ProtoMessage() {} +func (*RegionCheckpoint) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{1} } func (m *RegionCheckpoint) GetErr() *errorpb.Error { if m != nil { @@ -150,44 +105,15 @@ func (m *RegionCheckpoint) GetCheckpoint() uint64 { } type GetLastFlushTSOfRegionRequest struct { - Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` } func (m *GetLastFlushTSOfRegionRequest) Reset() { *m = GetLastFlushTSOfRegionRequest{} } func (m *GetLastFlushTSOfRegionRequest) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionRequest) ProtoMessage() {} func (*GetLastFlushTSOfRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{2} + return fileDescriptorLogbackuppb, []int{2} } -func (m *GetLastFlushTSOfRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetLastFlushTSOfRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLastFlushTSOfRegionRequest.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 *GetLastFlushTSOfRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLastFlushTSOfRegionRequest.Merge(m, src) -} -func (m *GetLastFlushTSOfRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *GetLastFlushTSOfRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLastFlushTSOfRegionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLastFlushTSOfRegionRequest proto.InternalMessageInfo func (m *GetLastFlushTSOfRegionRequest) GetRegions() []*RegionIdentity { if m != nil { @@ -197,44 +123,15 @@ func (m *GetLastFlushTSOfRegionRequest) GetRegions() []*RegionIdentity { } type GetLastFlushTSOfRegionResponse struct { - Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"` } func (m *GetLastFlushTSOfRegionResponse) Reset() { *m = GetLastFlushTSOfRegionResponse{} } func (m *GetLastFlushTSOfRegionResponse) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionResponse) ProtoMessage() {} func (*GetLastFlushTSOfRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{3} + return fileDescriptorLogbackuppb, []int{3} } -func (m *GetLastFlushTSOfRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetLastFlushTSOfRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetLastFlushTSOfRegionResponse.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 *GetLastFlushTSOfRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLastFlushTSOfRegionResponse.Merge(m, src) -} -func (m *GetLastFlushTSOfRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *GetLastFlushTSOfRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLastFlushTSOfRegionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLastFlushTSOfRegionResponse proto.InternalMessageInfo func (m *GetLastFlushTSOfRegionResponse) GetCheckpoints() []*RegionCheckpoint { if m != nil { @@ -244,44 +141,15 @@ func (m *GetLastFlushTSOfRegionResponse) GetCheckpoints() []*RegionCheckpoint { } type SubscribeFlushEventRequest struct { - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` } func (m *SubscribeFlushEventRequest) Reset() { *m = SubscribeFlushEventRequest{} } func (m *SubscribeFlushEventRequest) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventRequest) ProtoMessage() {} func (*SubscribeFlushEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{4} + return fileDescriptorLogbackuppb, []int{4} } -func (m *SubscribeFlushEventRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubscribeFlushEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SubscribeFlushEventRequest.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 *SubscribeFlushEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeFlushEventRequest.Merge(m, src) -} -func (m *SubscribeFlushEventRequest) XXX_Size() int { - return m.Size() -} -func (m *SubscribeFlushEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeFlushEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SubscribeFlushEventRequest proto.InternalMessageInfo func (m *SubscribeFlushEventRequest) GetClientId() string { if m != nil { @@ -291,44 +159,15 @@ func (m *SubscribeFlushEventRequest) GetClientId() string { } type SubscribeFlushEventResponse struct { - Events []*FlushEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Events []*FlushEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` } func (m *SubscribeFlushEventResponse) Reset() { *m = SubscribeFlushEventResponse{} } func (m *SubscribeFlushEventResponse) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventResponse) ProtoMessage() {} func (*SubscribeFlushEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{5} + return fileDescriptorLogbackuppb, []int{5} } -func (m *SubscribeFlushEventResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubscribeFlushEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SubscribeFlushEventResponse.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 *SubscribeFlushEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeFlushEventResponse.Merge(m, src) -} -func (m *SubscribeFlushEventResponse) XXX_Size() int { - return m.Size() -} -func (m *SubscribeFlushEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeFlushEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SubscribeFlushEventResponse proto.InternalMessageInfo func (m *SubscribeFlushEventResponse) GetEvents() []*FlushEvent { if m != nil { @@ -338,46 +177,15 @@ func (m *SubscribeFlushEventResponse) GetEvents() []*FlushEvent { } type FlushEvent struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlushEvent) Reset() { *m = FlushEvent{} } -func (m *FlushEvent) String() string { return proto.CompactTextString(m) } -func (*FlushEvent) ProtoMessage() {} -func (*FlushEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{6} -} -func (m *FlushEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlushEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlushEvent.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 *FlushEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushEvent.Merge(m, src) -} -func (m *FlushEvent) XXX_Size() int { - return m.Size() -} -func (m *FlushEvent) XXX_DiscardUnknown() { - xxx_messageInfo_FlushEvent.DiscardUnknown(m) + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` } -var xxx_messageInfo_FlushEvent proto.InternalMessageInfo +func (m *FlushEvent) Reset() { *m = FlushEvent{} } +func (m *FlushEvent) String() string { return proto.CompactTextString(m) } +func (*FlushEvent) ProtoMessage() {} +func (*FlushEvent) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{6} } func (m *FlushEvent) GetStartKey() []byte { if m != nil { @@ -410,42 +218,6 @@ func init() { proto.RegisterType((*FlushEvent)(nil), "logbackup.FlushEvent") } -func init() { proto.RegisterFile("logbackuppb.proto", fileDescriptor_9a556fe18b032662) } - -var fileDescriptor_9a556fe18b032662 = []byte{ - // 474 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, - 0x18, 0xec, 0x26, 0x28, 0x4d, 0xbe, 0xb4, 0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0x7d, 0xb6, 0xf4, 0xa4, 0x56, 0xf5, 0xda, 0xa5, 0x5a, 0x4f, 0xfe, - 0x43, 0x59, 0xcc, 0xc3, 0xd9, 0xa3, 0x73, 0xb8, 0xbd, 0x65, 0x60, 0xf4, 0x71, 0xcd, 0xe3, 0xea, - 0x5d, 0x58, 0xc7, 0xbb, 0x64, 0x55, 0xce, 0x73, 0x72, 0x76, 0xfc, 0xe3, 0x6b, 0x9b, 0x7c, 0x5b, - 0xd9, 0xe4, 0xfb, 0xca, 0x26, 0x3f, 0x57, 0x36, 0xf9, 0xf2, 0xcb, 0xde, 0x83, 0x23, 0x21, 0x23, - 0x57, 0xb3, 0x38, 0x73, 0xe3, 0xcc, 0xfc, 0x85, 0x7e, 0xcb, 0x1c, 0xa7, 0x7f, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xb9, 0x40, 0x0f, 0x40, 0xe2, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -454,9 +226,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// LogBackupClient is the client API for LogBackup service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for LogBackup service + type LogBackupClient interface { GetLastFlushTSOfRegion(ctx context.Context, in *GetLastFlushTSOfRegionRequest, opts ...grpc.CallOption) (*GetLastFlushTSOfRegionResponse, error) SubscribeFlushEvent(ctx context.Context, in *SubscribeFlushEventRequest, opts ...grpc.CallOption) (LogBackup_SubscribeFlushEventClient, error) @@ -472,7 +243,7 @@ func NewLogBackupClient(cc *grpc.ClientConn) LogBackupClient { func (c *logBackupClient) GetLastFlushTSOfRegion(ctx context.Context, in *GetLastFlushTSOfRegionRequest, opts ...grpc.CallOption) (*GetLastFlushTSOfRegionResponse, error) { out := new(GetLastFlushTSOfRegionResponse) - err := c.cc.Invoke(ctx, "/logbackup.LogBackup/GetLastFlushTSOfRegion", in, out, opts...) + err := grpc.Invoke(ctx, "/logbackup.LogBackup/GetLastFlushTSOfRegion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -480,7 +251,7 @@ func (c *logBackupClient) GetLastFlushTSOfRegion(ctx context.Context, in *GetLas } func (c *logBackupClient) SubscribeFlushEvent(ctx context.Context, in *SubscribeFlushEventRequest, opts ...grpc.CallOption) (LogBackup_SubscribeFlushEventClient, error) { - stream, err := c.cc.NewStream(ctx, &_LogBackup_serviceDesc.Streams[0], "/logbackup.LogBackup/SubscribeFlushEvent", opts...) + stream, err := grpc.NewClientStream(ctx, &_LogBackup_serviceDesc.Streams[0], c.cc, "/logbackup.LogBackup/SubscribeFlushEvent", opts...) if err != nil { return nil, err } @@ -511,23 +282,13 @@ func (x *logBackupSubscribeFlushEventClient) Recv() (*SubscribeFlushEventRespons return m, nil } -// LogBackupServer is the server API for LogBackup service. +// Server API for LogBackup service + type LogBackupServer interface { GetLastFlushTSOfRegion(context.Context, *GetLastFlushTSOfRegionRequest) (*GetLastFlushTSOfRegionResponse, error) SubscribeFlushEvent(*SubscribeFlushEventRequest, LogBackup_SubscribeFlushEventServer) error } -// UnimplementedLogBackupServer can be embedded to have forward compatible implementations. -type UnimplementedLogBackupServer struct { -} - -func (*UnimplementedLogBackupServer) GetLastFlushTSOfRegion(ctx context.Context, req *GetLastFlushTSOfRegionRequest) (*GetLastFlushTSOfRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLastFlushTSOfRegion not implemented") -} -func (*UnimplementedLogBackupServer) SubscribeFlushEvent(req *SubscribeFlushEventRequest, srv LogBackup_SubscribeFlushEventServer) error { - return status.Errorf(codes.Unimplemented, "method SubscribeFlushEvent not implemented") -} - func RegisterLogBackupServer(s *grpc.Server, srv LogBackupServer) { s.RegisterService(&_LogBackup_serviceDesc, srv) } @@ -593,7 +354,7 @@ var _LogBackup_serviceDesc = grpc.ServiceDesc{ func (m *RegionIdentity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -601,36 +362,27 @@ func (m *RegionIdentity) Marshal() (dAtA []byte, err error) { } func (m *RegionIdentity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Id)) } if m.EpochVersion != 0 { - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.EpochVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.EpochVersion)) } - if m.Id != 0 { - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RegionCheckpoint) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -638,55 +390,42 @@ func (m *RegionCheckpoint) Marshal() (dAtA []byte, err error) { } func (m *RegionCheckpoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Checkpoint != 0 { - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) - i-- - dAtA[i] = 0x18 + if m.Err != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Err.Size())) + n1, err := m.Err.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Err != nil { - { - size, err := m.Err.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Region.Size())) + n2, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n2 + } + if m.Checkpoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetLastFlushTSOfRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -694,40 +433,29 @@ func (m *GetLastFlushTSOfRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLastFlushTSOfRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLastFlushTSOfRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintLogbackuppb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *GetLastFlushTSOfRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -735,40 +463,29 @@ func (m *GetLastFlushTSOfRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *GetLastFlushTSOfRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetLastFlushTSOfRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Checkpoints) > 0 { - for iNdEx := len(m.Checkpoints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Checkpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Checkpoints { dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *SubscribeFlushEventRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -776,33 +493,23 @@ func (m *SubscribeFlushEventRequest) Marshal() (dAtA []byte, err error) { } func (m *SubscribeFlushEventRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubscribeFlushEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.ClientId) > 0 { - i -= len(m.ClientId) - copy(dAtA[i:], m.ClientId) - i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.ClientId))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.ClientId))) + i += copy(dAtA[i:], m.ClientId) } - return len(dAtA) - i, nil + return i, nil } func (m *SubscribeFlushEventResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -810,40 +517,29 @@ func (m *SubscribeFlushEventResponse) Marshal() (dAtA []byte, err error) { } func (m *SubscribeFlushEventResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubscribeFlushEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintLogbackuppb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Events { dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *FlushEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -851,56 +547,40 @@ func (m *FlushEvent) Marshal() (dAtA []byte, err error) { } func (m *FlushEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlushEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Checkpoint != 0 { - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) - i-- - dAtA[i] = 0x18 + if len(m.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa + if m.Checkpoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintLogbackuppb(dAtA []byte, offset int, v uint64) int { - offset -= sovLogbackuppb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *RegionIdentity) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -909,16 +589,10 @@ func (m *RegionIdentity) Size() (n int) { if m.EpochVersion != 0 { n += 1 + sovLogbackuppb(uint64(m.EpochVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionCheckpoint) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Err != nil { @@ -932,16 +606,10 @@ func (m *RegionCheckpoint) Size() (n int) { if m.Checkpoint != 0 { n += 1 + sovLogbackuppb(uint64(m.Checkpoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -950,16 +618,10 @@ func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Checkpoints) > 0 { @@ -968,32 +630,20 @@ func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SubscribeFlushEventRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ClientId) if l > 0 { n += 1 + l + sovLogbackuppb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SubscribeFlushEventResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Events) > 0 { @@ -1002,16 +652,10 @@ func (m *SubscribeFlushEventResponse) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlushEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -1025,14 +669,18 @@ func (m *FlushEvent) Size() (n int) { if m.Checkpoint != 0 { n += 1 + sovLogbackuppb(uint64(m.Checkpoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovLogbackuppb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozLogbackuppb(x uint64) (n int) { return sovLogbackuppb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1052,7 +700,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1080,7 +728,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1099,7 +747,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EpochVersion |= uint64(b&0x7F) << shift + m.EpochVersion |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1110,13 +758,12 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1141,7 +788,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1169,7 +816,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1178,9 +825,6 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1205,7 +849,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1214,9 +858,6 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1241,7 +882,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checkpoint |= uint64(b&0x7F) << shift + m.Checkpoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1252,13 +893,12 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1283,7 +923,7 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1311,7 +951,7 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1320,9 +960,6 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1337,13 +974,12 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1368,7 +1004,7 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1396,7 +1032,7 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1405,9 +1041,6 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1422,13 +1055,12 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1453,7 +1085,7 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1481,7 +1113,7 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1491,9 +1123,6 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1505,13 +1134,12 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1536,7 +1164,7 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1564,7 +1192,7 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1573,9 +1201,6 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1590,13 +1215,12 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1621,7 +1245,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1649,7 +1273,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1658,9 +1282,6 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1683,7 +1304,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1692,9 +1313,6 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthLogbackuppb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1717,7 +1335,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checkpoint |= uint64(b&0x7F) << shift + m.Checkpoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1728,13 +1346,12 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1747,7 +1364,6 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { func skipLogbackuppb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1779,8 +1395,10 @@ func skipLogbackuppb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1797,34 +1415,89 @@ func skipLogbackuppb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthLogbackuppb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupLogbackuppb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLogbackuppb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipLogbackuppb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthLogbackuppb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthLogbackuppb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowLogbackuppb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupLogbackuppb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthLogbackuppb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLogbackuppb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("logbackuppb.proto", fileDescriptorLogbackuppb) } + +var fileDescriptorLogbackuppb = []byte{ + // 474 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, + 0x18, 0xec, 0x26, 0x28, 0x4d, 0xbe, 0xb4, 0xa1, 0x2c, 0x7f, 0xc1, 0x11, 0x56, 0x64, 0x44, 0x55, + 0x0e, 0x18, 0x48, 0x4f, 0x1c, 0xb8, 0x14, 0x05, 0x54, 0x11, 0x09, 0xc9, 0xad, 0xb8, 0x46, 0xb1, + 0xfd, 0xe1, 0xac, 0x1c, 0xed, 0x9a, 0xdd, 0xb5, 0xa5, 0x3c, 0x01, 0xaf, 0xc0, 0x23, 0xf0, 0x28, + 0x1c, 0x39, 0x72, 0x44, 0x41, 0xe2, 0x39, 0x90, 0xd7, 0x76, 0x62, 0x44, 0xda, 0x70, 0xda, 0xd5, + 0xcc, 0xec, 0xcc, 0xf8, 0xfb, 0x64, 0xb8, 0xb5, 0x10, 0x91, 0x3f, 0x0b, 0xe2, 0x34, 0x49, 0x7c, + 0x37, 0x91, 0x42, 0x0b, 0xda, 0x59, 0x43, 0xd6, 0x9d, 0x48, 0x44, 0xc2, 0xa0, 0xcf, 0xf2, 0x5b, + 0x21, 0xb0, 0x6e, 0xca, 0x54, 0x69, 0x73, 0x2d, 0x81, 0x43, 0x94, 0x52, 0xc8, 0xca, 0xc0, 0x19, + 0x43, 0xcf, 0xc3, 0x88, 0x09, 0x7e, 0x1e, 0x22, 0xd7, 0x4c, 0x2f, 0x69, 0x0f, 0x1a, 0x2c, 0xec, + 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0xb1, 0xa7, 0xd0, 0xc2, 0x1c, 0xa8, 0x3a, 0xdd, 0xad, + 0x75, 0xaa, 0xc9, 0x4b, 0x91, 0xe3, 0x03, 0x6c, 0xd0, 0x3c, 0x58, 0xe9, 0x99, 0xd4, 0xd3, 0x18, + 0x97, 0x26, 0xf8, 0xc0, 0x6b, 0x1b, 0xe0, 0x1d, 0x2e, 0xe9, 0x7d, 0xd8, 0x47, 0x1e, 0x1a, 0xaa, + 0x61, 0xa8, 0x16, 0xf2, 0x30, 0x27, 0x76, 0xec, 0x68, 0xf4, 0x9b, 0x40, 0x67, 0x22, 0xa2, 0x33, + 0x53, 0x82, 0x0a, 0xb8, 0xb7, 0x7d, 0xb6, 0xf4, 0xa4, 0x56, 0xf5, 0xda, 0xa5, 0x5a, 0x4f, 0xfe, + 0x43, 0x59, 0xcc, 0xc3, 0xd9, 0xa3, 0x73, 0xb8, 0xbd, 0x65, 0x60, 0xf4, 0x71, 0xcd, 0xe3, 0xea, + 0x5d, 0x58, 0xc7, 0xbb, 0x64, 0x55, 0xce, 0x73, 0x72, 0x76, 0xfc, 0xe3, 0x6b, 0x9b, 0x7c, 0x5b, + 0xd9, 0xe4, 0xfb, 0xca, 0x26, 0x3f, 0x57, 0x36, 0xf9, 0xf2, 0xcb, 0xde, 0x83, 0x23, 0x21, 0x23, + 0x57, 0xb3, 0x38, 0x73, 0xe3, 0xcc, 0xfc, 0x85, 0x7e, 0xcb, 0x1c, 0xa7, 0x7f, 0x02, 0x00, 0x00, + 0xff, 0xff, 0xb9, 0x40, 0x0f, 0x40, 0xe2, 0x03, 0x00, 0x00, +} diff --git a/pkg/meta_storagepb/meta_storagepb.pb.go b/pkg/meta_storagepb/meta_storagepb.pb.go index 4d3958a0c..885bbf785 100644 --- a/pkg/meta_storagepb/meta_storagepb.pb.go +++ b/pkg/meta_storagepb/meta_storagepb.pb.go @@ -1,20 +1,40 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: meta_storagepb.proto +/* +Package meta_storagepb is a generated protocol buffer package. + +It is generated from these files: + + meta_storagepb.proto + +It has these top-level messages: + + Error + RequestHeader + ResponseHeader + WatchRequest + WatchResponse + GetRequest + GetResponse + PutRequest + PutResponse + KeyValue + Event +*/ package meta_storagepb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +46,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -42,7 +62,6 @@ var ErrorType_name = map[int32]string{ 1: "UNKNOWN", 2: "DATA_COMPACTED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -52,10 +71,7 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } - -func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{0} -} +func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{0} } type Event_EventType int32 @@ -68,7 +84,6 @@ var Event_EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } - var Event_EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -77,51 +92,19 @@ var Event_EventType_value = map[string]int32{ func (x Event_EventType) String() string { return proto.EnumName(Event_EventType_name, int32(x)) } - func (Event_EventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{10, 0} + return fileDescriptorMetaStoragepb, []int{10, 0} } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=meta_storagepb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{0} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=meta_storagepb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{0} } func (m *Error) GetType() ErrorType { if m != nil { @@ -141,44 +124,13 @@ type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // source is the source of the request. - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{1} -} -func (m *RequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestHeader.Merge(m, src) -} -func (m *RequestHeader) XXX_Size() int { - return m.Size() -} -func (m *RequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RequestHeader.DiscardUnknown(m) + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` } -var xxx_messageInfo_RequestHeader proto.InternalMessageInfo +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{1} } func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -196,46 +148,15 @@ func (m *RequestHeader) GetSource() string { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{2} -} -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) -} -func (m *ResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{2} } func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -260,48 +181,17 @@ func (m *ResponseHeader) GetRevision() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type WatchRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` - StartRevision int64 `protobuf:"varint,4,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` - PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchRequest) Reset() { *m = WatchRequest{} } -func (m *WatchRequest) String() string { return proto.CompactTextString(m) } -func (*WatchRequest) ProtoMessage() {} -func (*WatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{3} -} -func (m *WatchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchRequest.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 *WatchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchRequest.Merge(m, src) -} -func (m *WatchRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + StartRevision int64 `protobuf:"varint,4,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` + PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` } -var xxx_messageInfo_WatchRequest proto.InternalMessageInfo +func (m *WatchRequest) Reset() { *m = WatchRequest{} } +func (m *WatchRequest) String() string { return proto.CompactTextString(m) } +func (*WatchRequest) ProtoMessage() {} +func (*WatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{3} } func (m *WatchRequest) GetHeader() *RequestHeader { if m != nil { @@ -340,46 +230,15 @@ func (m *WatchRequest) GetPrevKv() bool { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type WatchResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - CompactRevision int64 `protobuf:"varint,2,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` - Events []*Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchResponse) Reset() { *m = WatchResponse{} } -func (m *WatchResponse) String() string { return proto.CompactTextString(m) } -func (*WatchResponse) ProtoMessage() {} -func (*WatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{4} -} -func (m *WatchResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchResponse.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 *WatchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchResponse.Merge(m, src) -} -func (m *WatchResponse) XXX_Size() int { - return m.Size() -} -func (m *WatchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WatchResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + CompactRevision int64 `protobuf:"varint,2,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` + Events []*Event `protobuf:"bytes,3,rep,name=events" json:"events,omitempty"` } -var xxx_messageInfo_WatchResponse proto.InternalMessageInfo +func (m *WatchResponse) Reset() { *m = WatchResponse{} } +func (m *WatchResponse) String() string { return proto.CompactTextString(m) } +func (*WatchResponse) ProtoMessage() {} +func (*WatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{4} } func (m *WatchResponse) GetHeader() *ResponseHeader { if m != nil { @@ -404,48 +263,17 @@ func (m *WatchResponse) GetEvents() []*Event { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type GetRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` - Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Revision int64 `protobuf:"varint,5,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{5} -} -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Revision int64 `protobuf:"varint,5,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{5} } func (m *GetRequest) GetHeader() *RequestHeader { if m != nil { @@ -484,47 +312,16 @@ func (m *GetRequest) GetRevision() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type GetResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` - More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` - Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{6} -} -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return m.Size() -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` + More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` + Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{6} } func (m *GetResponse) GetHeader() *ResponseHeader { if m != nil { @@ -556,48 +353,17 @@ func (m *GetResponse) GetCount() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type PutRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Lease int64 `protobuf:"varint,4,opt,name=lease,proto3" json:"lease,omitempty"` - PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{7} -} -func (m *PutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutRequest.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 *PutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest.Merge(m, src) -} -func (m *PutRequest) XXX_Size() int { - return m.Size() -} -func (m *PutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Lease int64 `protobuf:"varint,4,opt,name=lease,proto3" json:"lease,omitempty"` + PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` } -var xxx_messageInfo_PutRequest proto.InternalMessageInfo +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{7} } func (m *PutRequest) GetHeader() *RequestHeader { if m != nil { @@ -636,45 +402,14 @@ func (m *PutRequest) GetPrevKv() bool { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type PutResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - PrevKv *KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{8} -} -func (m *PutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutResponse.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 *PutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResponse.Merge(m, src) -} -func (m *PutResponse) XXX_Size() int { - return m.Size() -} -func (m *PutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + PrevKv *KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` } -var xxx_messageInfo_PutResponse proto.InternalMessageInfo +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{8} } func (m *PutResponse) GetHeader() *ResponseHeader { if m != nil { @@ -707,44 +442,13 @@ type KeyValue struct { // lease is the ID of the lease that attached to key. // When the attached lease expires, the key will be deleted. // If lease is 0, then no lease is attached to the key. - Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyValue) Reset() { *m = KeyValue{} } -func (m *KeyValue) String() string { return proto.CompactTextString(m) } -func (*KeyValue) ProtoMessage() {} -func (*KeyValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{9} -} -func (m *KeyValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyValue.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 *KeyValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValue.Merge(m, src) -} -func (m *KeyValue) XXX_Size() int { - return m.Size() -} -func (m *KeyValue) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValue.DiscardUnknown(m) + Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` } -var xxx_messageInfo_KeyValue proto.InternalMessageInfo +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{9} } func (m *KeyValue) GetKey() []byte { if m != nil { @@ -799,46 +503,15 @@ type Event struct { // A PUT event with kv.Version=1 indicates the creation of a key. // A DELETE/EXPIRE event contains the deleted key with // its modification revision set to the revision of deletion. - Kv *KeyValue `protobuf:"bytes,2,opt,name=kv,proto3" json:"kv,omitempty"` + Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"` // prev_kv holds the key-value pair before the event happens. - PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{10} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.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 *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` } -var xxx_messageInfo_Event proto.InternalMessageInfo +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{10} } func (m *Event) GetType() Event_EventType { if m != nil { @@ -862,8 +535,6 @@ func (m *Event) GetPrevKv() *KeyValue { } func init() { - proto.RegisterEnum("meta_storagepb.ErrorType", ErrorType_name, ErrorType_value) - proto.RegisterEnum("meta_storagepb.Event_EventType", Event_EventType_name, Event_EventType_value) proto.RegisterType((*Error)(nil), "meta_storagepb.Error") proto.RegisterType((*RequestHeader)(nil), "meta_storagepb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "meta_storagepb.ResponseHeader") @@ -875,61 +546,8 @@ func init() { proto.RegisterType((*PutResponse)(nil), "meta_storagepb.PutResponse") proto.RegisterType((*KeyValue)(nil), "meta_storagepb.KeyValue") proto.RegisterType((*Event)(nil), "meta_storagepb.Event") -} - -func init() { proto.RegisterFile("meta_storagepb.proto", fileDescriptor_5a2dc828c1dd8152) } - -var fileDescriptor_5a2dc828c1dd8152 = []byte{ - // 777 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0xda, 0x58, - 0x10, 0xe6, 0x61, 0x6c, 0x60, 0x20, 0xc4, 0x7a, 0x62, 0x77, 0xbd, 0x64, 0xc3, 0xb2, 0x96, 0x76, - 0x97, 0xcd, 0x2a, 0xec, 0x2e, 0xd9, 0xf6, 0xdc, 0x34, 0xa1, 0x49, 0x45, 0x93, 0x20, 0x97, 0x34, - 0x47, 0xe4, 0xc0, 0x88, 0x20, 0x02, 0xa6, 0xcf, 0xcf, 0x56, 0xf8, 0x27, 0x55, 0x7b, 0xaa, 0xd4, - 0x43, 0x4f, 0x3d, 0xf5, 0xd6, 0x3f, 0xd0, 0x63, 0x8f, 0x95, 0x7a, 0xa9, 0xd2, 0x3f, 0x52, 0xf9, - 0xd9, 0x18, 0xe3, 0x10, 0x29, 0x52, 0xaa, 0x5e, 0xe0, 0xcd, 0xbc, 0xf1, 0x37, 0xdf, 0x7c, 0x9a, - 0x99, 0x07, 0xc5, 0x11, 0x72, 0xb3, 0x63, 0x73, 0x8b, 0x99, 0x7d, 0x9c, 0x9c, 0xd6, 0x26, 0xcc, - 0xe2, 0x16, 0x2d, 0x2c, 0x7a, 0x4b, 0xc5, 0xbe, 0xd5, 0xb7, 0xc4, 0xd5, 0x3f, 0xde, 0xc9, 0x8f, - 0x2a, 0xad, 0x32, 0xc7, 0xe6, 0xe2, 0xe8, 0x3b, 0xf4, 0x16, 0xc8, 0x0d, 0xc6, 0x2c, 0x46, 0x37, - 0x21, 0xc5, 0xa7, 0x13, 0xd4, 0x48, 0x85, 0x54, 0x0b, 0xf5, 0x9f, 0x6b, 0xb1, 0x24, 0x22, 0xa8, - 0x3d, 0x9d, 0xa0, 0x21,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a, 0xce, 0x12, 0x84, 0xf9, 0xac, 0x5d, - 0x45, 0x88, 0xf4, 0xba, 0x9e, 0xb8, 0xff, 0xc7, 0xc7, 0xd7, 0x19, 0xf2, 0xfe, 0xb2, 0x4c, 0x3e, - 0x5c, 0x96, 0xc9, 0xe7, 0xcb, 0x32, 0x79, 0xf6, 0xa5, 0x9c, 0x00, 0xd5, 0x62, 0xfd, 0x1a, 0x1f, - 0x0c, 0xdd, 0xda, 0xd0, 0x15, 0xaf, 0xee, 0xa9, 0x22, 0xfe, 0xb6, 0xbe, 0x06, 0x00, 0x00, 0xff, - 0xff, 0xfd, 0xde, 0x7c, 0x36, 0xcb, 0x07, 0x00, 0x00, + proto.RegisterEnum("meta_storagepb.ErrorType", ErrorType_name, ErrorType_value) + proto.RegisterEnum("meta_storagepb.Event_EventType", Event_EventType_name, Event_EventType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -940,9 +558,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// MetaStorageClient is the client API for MetaStorage service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for MetaStorage service + type MetaStorageClient interface { Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetaStorage_WatchClient, error) // Get is the same as etcd Range which might be implemented in a more common way @@ -960,7 +577,7 @@ func NewMetaStorageClient(cc *grpc.ClientConn) MetaStorageClient { } func (c *metaStorageClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetaStorage_WatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_MetaStorage_serviceDesc.Streams[0], "/meta_storagepb.MetaStorage/Watch", opts...) + stream, err := grpc.NewClientStream(ctx, &_MetaStorage_serviceDesc.Streams[0], c.cc, "/meta_storagepb.MetaStorage/Watch", opts...) if err != nil { return nil, err } @@ -993,7 +610,7 @@ func (x *metaStorageWatchClient) Recv() (*WatchResponse, error) { func (c *metaStorageClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := c.cc.Invoke(ctx, "/meta_storagepb.MetaStorage/Get", in, out, opts...) + err := grpc.Invoke(ctx, "/meta_storagepb.MetaStorage/Get", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1002,14 +619,15 @@ func (c *metaStorageClient) Get(ctx context.Context, in *GetRequest, opts ...grp func (c *metaStorageClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { out := new(PutResponse) - err := c.cc.Invoke(ctx, "/meta_storagepb.MetaStorage/Put", in, out, opts...) + err := grpc.Invoke(ctx, "/meta_storagepb.MetaStorage/Put", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// MetaStorageServer is the server API for MetaStorage service. +// Server API for MetaStorage service + type MetaStorageServer interface { Watch(*WatchRequest, MetaStorage_WatchServer) error // Get is the same as etcd Range which might be implemented in a more common way @@ -1018,20 +636,6 @@ type MetaStorageServer interface { Put(context.Context, *PutRequest) (*PutResponse, error) } -// UnimplementedMetaStorageServer can be embedded to have forward compatible implementations. -type UnimplementedMetaStorageServer struct { -} - -func (*UnimplementedMetaStorageServer) Watch(req *WatchRequest, srv MetaStorage_WatchServer) error { - return status.Errorf(codes.Unimplemented, "method Watch not implemented") -} -func (*UnimplementedMetaStorageServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (*UnimplementedMetaStorageServer) Put(ctx context.Context, req *PutRequest) (*PutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Put not implemented") -} - func RegisterMetaStorageServer(s *grpc.Server, srv MetaStorageServer) { s.RegisterService(&_MetaStorage_serviceDesc, srv) } @@ -1119,7 +723,7 @@ var _MetaStorage_serviceDesc = grpc.ServiceDesc{ func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1127,38 +731,28 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Type != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1166,38 +760,28 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) } if len(m.Source) > 0 { - i -= len(m.Source) - copy(dAtA[i:], m.Source) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Source))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) } - if m.ClusterId != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1205,48 +789,37 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Error.Size())) + n1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.ClusterId != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) } - return len(dAtA) - i, nil + return i, nil } func (m *WatchRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1254,67 +827,54 @@ func (m *WatchRequest) Marshal() (dAtA []byte, err error) { } func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PrevKv { - i-- - if m.PrevKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x28 + i += n2 } - if m.StartRevision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.StartRevision)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.RangeEnd) > 0 { - i -= len(m.RangeEnd) - copy(dAtA[i:], m.RangeEnd) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) + i += copy(dAtA[i:], m.RangeEnd) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if m.StartRevision != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.StartRevision)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + if m.PrevKv { + dAtA[i] = 0x28 + i++ + if m.PrevKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *WatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1322,57 +882,44 @@ func (m *WatchResponse) Marshal() (dAtA []byte, err error) { } func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n3, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n3 } if m.CompactRevision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CompactRevision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CompactRevision)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Events) > 0 { + for _, msg := range m.Events { + dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1380,62 +927,49 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x28 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n4, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if m.Limit != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.RangeEnd) > 0 { - i -= len(m.RangeEnd) - copy(dAtA[i:], m.RangeEnd) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) + i += copy(dAtA[i:], m.RangeEnd) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if m.Limit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Limit)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Revision != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1443,67 +977,54 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if m.Count != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x20 + if len(m.Kvs) > 0 { + for _, msg := range m.Kvs { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.More { - i-- + dAtA[i] = 0x18 + i++ if m.More { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if len(m.Kvs) > 0 { - for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Count != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Count)) } - return len(dAtA) - i, nil + return i, nil } func (m *PutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1511,67 +1032,54 @@ func (m *PutRequest) Marshal() (dAtA []byte, err error) { } func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PrevKv { - i-- - if m.PrevKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x28 + i += n6 } - if m.Lease != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if m.Lease != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + if m.PrevKv { + dAtA[i] = 0x28 + i++ + if m.PrevKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *PutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1579,50 +1087,37 @@ func (m *PutResponse) Marshal() (dAtA []byte, err error) { } func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n7, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if m.PrevKv != nil { - { - size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.PrevKv.Size())) + n8, err := m.PrevKv.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1630,60 +1125,49 @@ func (m *KeyValue) Marshal() (dAtA []byte, err error) { } func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Lease != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) - i-- - dAtA[i] = 0x30 + if m.CreateRevision != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CreateRevision)) } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x2a + if m.ModRevision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ModRevision)) } if m.Version != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Version)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Version)) } - if m.ModRevision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ModRevision)) - i-- - dAtA[i] = 0x18 - } - if m.CreateRevision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CreateRevision)) - i-- - dAtA[i] = 0x10 + if len(m.Value) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if m.Lease != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) } - return len(dAtA) - i, nil + return i, nil } func (m *Event) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1691,66 +1175,48 @@ func (m *Event) Marshal() (dAtA []byte, err error) { } func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PrevKv != nil { - { - size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) } if m.Kv != nil { - { - size, err := m.Kv.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Kv.Size())) + n9, err := m.Kv.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - if m.Type != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.PrevKv != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.PrevKv.Size())) + n10, err := m.PrevKv.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintMetaStoragepb(dAtA []byte, offset int, v uint64) int { - offset -= sovMetaStoragepb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -1760,16 +1226,10 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovMetaStoragepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1779,16 +1239,10 @@ func (m *RequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovMetaStoragepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1801,16 +1255,10 @@ func (m *ResponseHeader) Size() (n int) { if m.Revision != 0 { n += 1 + sovMetaStoragepb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1831,16 +1279,10 @@ func (m *WatchRequest) Size() (n int) { if m.PrevKv { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1856,16 +1298,10 @@ func (m *WatchResponse) Size() (n int) { n += 1 + l + sovMetaStoragepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1886,16 +1322,10 @@ func (m *GetRequest) Size() (n int) { if m.Revision != 0 { n += 1 + sovMetaStoragepb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1914,16 +1344,10 @@ func (m *GetResponse) Size() (n int) { if m.Count != 0 { n += 1 + sovMetaStoragepb(uint64(m.Count)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1944,16 +1368,10 @@ func (m *PutRequest) Size() (n int) { if m.PrevKv { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1964,16 +1382,10 @@ func (m *PutResponse) Size() (n int) { l = m.PrevKv.Size() n += 1 + l + sovMetaStoragepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1996,16 +1408,10 @@ func (m *KeyValue) Size() (n int) { if m.Lease != 0 { n += 1 + sovMetaStoragepb(uint64(m.Lease)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Event) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -2019,14 +1425,18 @@ func (m *Event) Size() (n int) { l = m.PrevKv.Size() n += 1 + l + sovMetaStoragepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovMetaStoragepb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozMetaStoragepb(x uint64) (n int) { return sovMetaStoragepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2046,7 +1456,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2074,7 +1484,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ErrorType(b&0x7F) << shift + m.Type |= (ErrorType(b) & 0x7F) << shift if b < 0x80 { break } @@ -2093,7 +1503,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2103,9 +1513,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2117,13 +1524,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2148,7 +1554,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2176,7 +1582,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2195,7 +1601,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2205,9 +1611,6 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2219,13 +1622,12 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2250,7 +1652,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2278,7 +1680,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2297,7 +1699,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2306,9 +1708,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2333,7 +1732,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2344,13 +1743,12 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2375,7 +1773,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2403,7 +1801,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2412,9 +1810,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2439,7 +1834,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2448,9 +1843,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2473,7 +1865,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2482,9 +1874,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2507,7 +1896,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartRevision |= int64(b&0x7F) << shift + m.StartRevision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2526,7 +1915,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2538,13 +1927,12 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2569,7 +1957,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2597,7 +1985,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2606,9 +1994,6 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2633,7 +2018,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactRevision |= int64(b&0x7F) << shift + m.CompactRevision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2652,7 +2037,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2661,9 +2046,6 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2678,13 +2060,12 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2709,7 +2090,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2737,7 +2118,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2746,9 +2127,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2773,7 +2151,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2782,9 +2160,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2807,7 +2182,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2816,9 +2191,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2841,7 +2213,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int64(b&0x7F) << shift + m.Limit |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2860,7 +2232,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2871,13 +2243,12 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2902,7 +2273,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2930,7 +2301,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2939,9 +2310,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2966,7 +2334,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2975,9 +2343,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3000,7 +2365,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3020,7 +2385,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= int64(b&0x7F) << shift + m.Count |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3031,13 +2396,12 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3062,7 +2426,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3090,7 +2454,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3099,9 +2463,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3126,7 +2487,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3135,9 +2496,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3160,7 +2518,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3169,9 +2527,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3194,7 +2549,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Lease |= int64(b&0x7F) << shift + m.Lease |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3213,7 +2568,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3225,13 +2580,12 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3256,7 +2610,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3284,7 +2638,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3293,9 +2647,6 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3320,7 +2671,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3329,9 +2680,6 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3348,13 +2696,12 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3379,7 +2726,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3407,7 +2754,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3416,9 +2763,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3441,7 +2785,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreateRevision |= int64(b&0x7F) << shift + m.CreateRevision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3460,7 +2804,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ModRevision |= int64(b&0x7F) << shift + m.ModRevision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3479,7 +2823,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= int64(b&0x7F) << shift + m.Version |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3498,7 +2842,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3507,9 +2851,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3532,7 +2873,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Lease |= int64(b&0x7F) << shift + m.Lease |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3543,13 +2884,12 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3574,7 +2914,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3602,7 +2942,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= Event_EventType(b&0x7F) << shift + m.Type |= (Event_EventType(b) & 0x7F) << shift if b < 0x80 { break } @@ -3621,7 +2961,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3630,9 +2970,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3657,7 +2994,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3666,9 +3003,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3685,13 +3019,12 @@ func (m *Event) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3704,7 +3037,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { func skipMetaStoragepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3736,8 +3068,10 @@ func skipMetaStoragepb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3754,34 +3088,108 @@ func skipMetaStoragepb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthMetaStoragepb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMetaStoragepb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetaStoragepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipMetaStoragepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthMetaStoragepb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthMetaStoragepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetaStoragepb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMetaStoragepb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthMetaStoragepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetaStoragepb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("meta_storagepb.proto", fileDescriptorMetaStoragepb) } + +var fileDescriptorMetaStoragepb = []byte{ + // 777 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0xda, 0x58, + 0x10, 0xe6, 0x61, 0x6c, 0x60, 0x20, 0xc4, 0x7a, 0x62, 0x77, 0xbd, 0x64, 0xc3, 0xb2, 0x96, 0x76, + 0x97, 0xcd, 0x2a, 0xec, 0x2e, 0xd9, 0xf6, 0xdc, 0x34, 0xa1, 0x49, 0x45, 0x93, 0x20, 0x97, 0x34, + 0x47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pkg/metapb/metapb.pb.go b/pkg/metapb/metapb.pb.go index 7a962f0e8..4eed20b82 100644 --- a/pkg/metapb/metapb.pb.go +++ b/pkg/metapb/metapb.pb.go @@ -1,17 +1,35 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: metapb.proto +/* +Package metapb is a generated protocol buffer package. + +It is generated from these files: + + metapb.proto + +It has these top-level messages: + + Cluster + StoreLabel + Store + RegionEpoch + BucketStats + Buckets + Region + Peer +*/ package metapb import ( "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" + + _ "github.com/gogo/protobuf/gogoproto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -23,7 +41,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type StoreState int32 @@ -38,7 +56,6 @@ var StoreState_name = map[int32]string{ 1: "Offline", 2: "Tombstone", } - var StoreState_value = map[string]int32{ "Up": 0, "Offline": 1, @@ -48,10 +65,7 @@ var StoreState_value = map[string]int32{ func (x StoreState) String() string { return proto.EnumName(StoreState_name, int32(x)) } - -func (StoreState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{0} -} +func (StoreState) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{0} } // NodeState is going to replace StoreState to make the state concept more clear. // "Up" is devided into "Preparing" and "Serving" stages so that we can better describe the online process. @@ -72,7 +86,6 @@ var NodeState_name = map[int32]string{ 2: "Removing", 3: "Removed", } - var NodeState_value = map[string]int32{ "Preparing": 0, "Serving": 1, @@ -83,10 +96,7 @@ var NodeState_value = map[string]int32{ func (x NodeState) String() string { return proto.EnumName(NodeState_name, int32(x)) } - -func (NodeState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{1} -} +func (NodeState) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{1} } type PeerRole int32 @@ -107,7 +117,6 @@ var PeerRole_name = map[int32]string{ 2: "IncomingVoter", 3: "DemotingVoter", } - var PeerRole_value = map[string]int32{ "Voter": 0, "Learner": 1, @@ -118,53 +127,19 @@ var PeerRole_value = map[string]int32{ func (x PeerRole) String() string { return proto.EnumName(PeerRole_name, int32(x)) } - -func (PeerRole) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{2} -} +func (PeerRole) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{2} } type Cluster struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // max peer count for a region. // pd will do the auto-balance if region peer count mismatches. - MaxPeerCount uint32 `protobuf:"varint,2,opt,name=max_peer_count,json=maxPeerCount,proto3" json:"max_peer_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Cluster) Reset() { *m = Cluster{} } -func (m *Cluster) String() string { return proto.CompactTextString(m) } -func (*Cluster) ProtoMessage() {} -func (*Cluster) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{0} -} -func (m *Cluster) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Cluster.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 *Cluster) XXX_Merge(src proto.Message) { - xxx_messageInfo_Cluster.Merge(m, src) -} -func (m *Cluster) XXX_Size() int { - return m.Size() -} -func (m *Cluster) XXX_DiscardUnknown() { - xxx_messageInfo_Cluster.DiscardUnknown(m) + MaxPeerCount uint32 `protobuf:"varint,2,opt,name=max_peer_count,json=maxPeerCount,proto3" json:"max_peer_count,omitempty"` } -var xxx_messageInfo_Cluster proto.InternalMessageInfo +func (m *Cluster) Reset() { *m = Cluster{} } +func (m *Cluster) String() string { return proto.CompactTextString(m) } +func (*Cluster) ProtoMessage() {} +func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{0} } func (m *Cluster) GetId() uint64 { if m != nil { @@ -182,45 +157,14 @@ func (m *Cluster) GetMaxPeerCount() uint32 { // Case insensitive key/value for replica constraints. type StoreLabel struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreLabel) Reset() { *m = StoreLabel{} } -func (m *StoreLabel) String() string { return proto.CompactTextString(m) } -func (*StoreLabel) ProtoMessage() {} -func (*StoreLabel) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{1} -} -func (m *StoreLabel) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreLabel.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 *StoreLabel) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreLabel.Merge(m, src) -} -func (m *StoreLabel) XXX_Size() int { - return m.Size() -} -func (m *StoreLabel) XXX_DiscardUnknown() { - xxx_messageInfo_StoreLabel.DiscardUnknown(m) + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_StoreLabel proto.InternalMessageInfo +func (m *StoreLabel) Reset() { *m = StoreLabel{} } +func (m *StoreLabel) String() string { return proto.CompactTextString(m) } +func (*StoreLabel) ProtoMessage() {} +func (*StoreLabel) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{1} } func (m *StoreLabel) GetKey() string { if m != nil { @@ -241,7 +185,7 @@ type Store struct { // Address to handle client requests (kv, cop, etc.) Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` State StoreState `protobuf:"varint,3,opt,name=state,proto3,enum=metapb.StoreState" json:"state,omitempty"` - Labels []*StoreLabel `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` + Labels []*StoreLabel `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` // Address to handle peer requests (raft messages from other store). // Empty means same as address. @@ -257,44 +201,13 @@ type Store struct { // If the store is physically destroyed, which means it can never up again. PhysicallyDestroyed bool `protobuf:"varint,12,opt,name=physically_destroyed,json=physicallyDestroyed,proto3" json:"physically_destroyed,omitempty"` // NodeState is used to replace StoreState which will be deprecated in the future. - NodeState NodeState `protobuf:"varint,13,opt,name=node_state,json=nodeState,proto3,enum=metapb.NodeState" json:"node_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Store) Reset() { *m = Store{} } -func (m *Store) String() string { return proto.CompactTextString(m) } -func (*Store) ProtoMessage() {} -func (*Store) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{2} -} -func (m *Store) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Store) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Store.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 *Store) XXX_Merge(src proto.Message) { - xxx_messageInfo_Store.Merge(m, src) -} -func (m *Store) XXX_Size() int { - return m.Size() -} -func (m *Store) XXX_DiscardUnknown() { - xxx_messageInfo_Store.DiscardUnknown(m) + NodeState NodeState `protobuf:"varint,13,opt,name=node_state,json=nodeState,proto3,enum=metapb.NodeState" json:"node_state,omitempty"` } -var xxx_messageInfo_Store proto.InternalMessageInfo +func (m *Store) Reset() { *m = Store{} } +func (m *Store) String() string { return proto.CompactTextString(m) } +func (*Store) ProtoMessage() {} +func (*Store) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{2} } func (m *Store) GetId() uint64 { if m != nil { @@ -391,44 +304,13 @@ type RegionEpoch struct { // Conf change version, auto increment when add or remove peer ConfVer uint64 `protobuf:"varint,1,opt,name=conf_ver,json=confVer,proto3" json:"conf_ver,omitempty"` // Region version, auto increment when split or merge - Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionEpoch) Reset() { *m = RegionEpoch{} } -func (m *RegionEpoch) String() string { return proto.CompactTextString(m) } -func (*RegionEpoch) ProtoMessage() {} -func (*RegionEpoch) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{3} -} -func (m *RegionEpoch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionEpoch.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 *RegionEpoch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionEpoch.Merge(m, src) -} -func (m *RegionEpoch) XXX_Size() int { - return m.Size() -} -func (m *RegionEpoch) XXX_DiscardUnknown() { - xxx_messageInfo_RegionEpoch.DiscardUnknown(m) + Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` } -var xxx_messageInfo_RegionEpoch proto.InternalMessageInfo +func (m *RegionEpoch) Reset() { *m = RegionEpoch{} } +func (m *RegionEpoch) String() string { return proto.CompactTextString(m) } +func (*RegionEpoch) ProtoMessage() {} +func (*RegionEpoch) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{3} } func (m *RegionEpoch) GetConfVer() uint64 { if m != nil { @@ -446,54 +328,23 @@ func (m *RegionEpoch) GetVersion() uint64 { type BucketStats struct { // total read in bytes of each bucket - ReadBytes []uint64 `protobuf:"varint,1,rep,packed,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + ReadBytes []uint64 `protobuf:"varint,1,rep,packed,name=read_bytes,json=readBytes" json:"read_bytes,omitempty"` // total write in bytes of each bucket - WriteBytes []uint64 `protobuf:"varint,2,rep,packed,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` + WriteBytes []uint64 `protobuf:"varint,2,rep,packed,name=write_bytes,json=writeBytes" json:"write_bytes,omitempty"` // total read qps of each bucket - ReadQps []uint64 `protobuf:"varint,3,rep,packed,name=read_qps,json=readQps,proto3" json:"read_qps,omitempty"` + ReadQps []uint64 `protobuf:"varint,3,rep,packed,name=read_qps,json=readQps" json:"read_qps,omitempty"` // total write qps of each bucket - WriteQps []uint64 `protobuf:"varint,4,rep,packed,name=write_qps,json=writeQps,proto3" json:"write_qps,omitempty"` + WriteQps []uint64 `protobuf:"varint,4,rep,packed,name=write_qps,json=writeQps" json:"write_qps,omitempty"` // total read keys of each bucket - ReadKeys []uint64 `protobuf:"varint,5,rep,packed,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` + ReadKeys []uint64 `protobuf:"varint,5,rep,packed,name=read_keys,json=readKeys" json:"read_keys,omitempty"` // total write keys of each bucket - WriteKeys []uint64 `protobuf:"varint,6,rep,packed,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BucketStats) Reset() { *m = BucketStats{} } -func (m *BucketStats) String() string { return proto.CompactTextString(m) } -func (*BucketStats) ProtoMessage() {} -func (*BucketStats) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{4} -} -func (m *BucketStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BucketStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BucketStats.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 *BucketStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketStats.Merge(m, src) -} -func (m *BucketStats) XXX_Size() int { - return m.Size() -} -func (m *BucketStats) XXX_DiscardUnknown() { - xxx_messageInfo_BucketStats.DiscardUnknown(m) + WriteKeys []uint64 `protobuf:"varint,6,rep,packed,name=write_keys,json=writeKeys" json:"write_keys,omitempty"` } -var xxx_messageInfo_BucketStats proto.InternalMessageInfo +func (m *BucketStats) Reset() { *m = BucketStats{} } +func (m *BucketStats) String() string { return proto.CompactTextString(m) } +func (*BucketStats) ProtoMessage() {} +func (*BucketStats) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{4} } func (m *BucketStats) GetReadBytes() []uint64 { if m != nil { @@ -542,48 +393,17 @@ type Buckets struct { // A hint indicate if keys have changed. Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // keys of buckets, include start/end key of region - Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` // bucket stats - Stats *BucketStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"` + Stats *BucketStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` // The period in milliseconds that stats are collected with in - PeriodInMs uint64 `protobuf:"varint,5,opt,name=period_in_ms,json=periodInMs,proto3" json:"period_in_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Buckets) Reset() { *m = Buckets{} } -func (m *Buckets) String() string { return proto.CompactTextString(m) } -func (*Buckets) ProtoMessage() {} -func (*Buckets) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{5} -} -func (m *Buckets) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Buckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Buckets.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 *Buckets) XXX_Merge(src proto.Message) { - xxx_messageInfo_Buckets.Merge(m, src) -} -func (m *Buckets) XXX_Size() int { - return m.Size() -} -func (m *Buckets) XXX_DiscardUnknown() { - xxx_messageInfo_Buckets.DiscardUnknown(m) + PeriodInMs uint64 `protobuf:"varint,5,opt,name=period_in_ms,json=periodInMs,proto3" json:"period_in_ms,omitempty"` } -var xxx_messageInfo_Buckets proto.InternalMessageInfo +func (m *Buckets) Reset() { *m = Buckets{} } +func (m *Buckets) String() string { return proto.CompactTextString(m) } +func (*Buckets) ProtoMessage() {} +func (*Buckets) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{5} } func (m *Buckets) GetRegionId() uint64 { if m != nil { @@ -625,55 +445,24 @@ type Region struct { // Region key range [start_key, end_key). StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - RegionEpoch *RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - Peers []*Peer `protobuf:"bytes,5,rep,name=peers,proto3" json:"peers,omitempty"` + RegionEpoch *RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + Peers []*Peer `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"` // Encryption metadata for start_key and end_key. encryption_meta.iv is IV for start_key. // IV for end_key is calculated from (encryption_meta.iv + len(start_key)). // The field is only used by PD and should be ignored otherwise. // If encryption_meta is empty (i.e. nil), it means start_key and end_key are unencrypted. - EncryptionMeta *encryptionpb.EncryptionMeta `protobuf:"bytes,6,opt,name=encryption_meta,json=encryptionMeta,proto3" json:"encryption_meta,omitempty"` + EncryptionMeta *encryptionpb.EncryptionMeta `protobuf:"bytes,6,opt,name=encryption_meta,json=encryptionMeta" json:"encryption_meta,omitempty"` // The flashback state indicates whether this region is in the flashback state. // TODO: only check by `flashback_start_ts` in the future. Keep for compatibility now. IsInFlashback bool `protobuf:"varint,7,opt,name=is_in_flashback,json=isInFlashback,proto3" json:"is_in_flashback,omitempty"` // The start_ts that the current flashback progress is using. - FlashbackStartTs uint64 `protobuf:"varint,8,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Region) Reset() { *m = Region{} } -func (m *Region) String() string { return proto.CompactTextString(m) } -func (*Region) ProtoMessage() {} -func (*Region) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{6} -} -func (m *Region) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Region.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 *Region) XXX_Merge(src proto.Message) { - xxx_messageInfo_Region.Merge(m, src) -} -func (m *Region) XXX_Size() int { - return m.Size() -} -func (m *Region) XXX_DiscardUnknown() { - xxx_messageInfo_Region.DiscardUnknown(m) + FlashbackStartTs uint64 `protobuf:"varint,8,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` } -var xxx_messageInfo_Region proto.InternalMessageInfo +func (m *Region) Reset() { *m = Region{} } +func (m *Region) String() string { return proto.CompactTextString(m) } +func (*Region) ProtoMessage() {} +func (*Region) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{6} } func (m *Region) GetId() uint64 { if m != nil { @@ -732,47 +521,16 @@ func (m *Region) GetFlashbackStartTs() uint64 { } type Peer struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - Role PeerRole `protobuf:"varint,3,opt,name=role,proto3,enum=metapb.PeerRole" json:"role,omitempty"` - IsWitness bool `protobuf:"varint,4,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Peer) Reset() { *m = Peer{} } -func (m *Peer) String() string { return proto.CompactTextString(m) } -func (*Peer) ProtoMessage() {} -func (*Peer) Descriptor() ([]byte, []int) { - return fileDescriptor_77b4d575d5a68dda, []int{7} -} -func (m *Peer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Peer.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 *Peer) XXX_Merge(src proto.Message) { - xxx_messageInfo_Peer.Merge(m, src) -} -func (m *Peer) XXX_Size() int { - return m.Size() -} -func (m *Peer) XXX_DiscardUnknown() { - xxx_messageInfo_Peer.DiscardUnknown(m) + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + Role PeerRole `protobuf:"varint,3,opt,name=role,proto3,enum=metapb.PeerRole" json:"role,omitempty"` + IsWitness bool `protobuf:"varint,4,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` } -var xxx_messageInfo_Peer proto.InternalMessageInfo +func (m *Peer) Reset() { *m = Peer{} } +func (m *Peer) String() string { return proto.CompactTextString(m) } +func (*Peer) ProtoMessage() {} +func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{7} } func (m *Peer) GetId() uint64 { if m != nil { @@ -803,9 +561,6 @@ func (m *Peer) GetIsWitness() bool { } func init() { - proto.RegisterEnum("metapb.StoreState", StoreState_name, StoreState_value) - proto.RegisterEnum("metapb.NodeState", NodeState_name, NodeState_value) - proto.RegisterEnum("metapb.PeerRole", PeerRole_name, PeerRole_value) proto.RegisterType((*Cluster)(nil), "metapb.Cluster") proto.RegisterType((*StoreLabel)(nil), "metapb.StoreLabel") proto.RegisterType((*Store)(nil), "metapb.Store") @@ -814,80 +569,14 @@ func init() { proto.RegisterType((*Buckets)(nil), "metapb.Buckets") proto.RegisterType((*Region)(nil), "metapb.Region") proto.RegisterType((*Peer)(nil), "metapb.Peer") + proto.RegisterEnum("metapb.StoreState", StoreState_name, StoreState_value) + proto.RegisterEnum("metapb.NodeState", NodeState_name, NodeState_value) + proto.RegisterEnum("metapb.PeerRole", PeerRole_name, PeerRole_value) } - -func init() { proto.RegisterFile("metapb.proto", fileDescriptor_77b4d575d5a68dda) } - -var fileDescriptor_77b4d575d5a68dda = []byte{ - // 977 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 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0x23, 0xe8, 0x09, 0x2e, 0x95, 0xdd, 0x42, 0xf5, 0xe3, 0x87, 0x7f, 0xfe, 0xe2, - 0x7b, 0xbf, 0x5f, 0xed, 0x7b, 0x7f, 0x5c, 0xed, 0x7b, 0x7f, 0x5f, 0xed, 0x7b, 0x3f, 0xfd, 0xb3, - 0x7f, 0x07, 0x06, 0x4a, 0xcf, 0x0e, 0x6d, 0xba, 0x58, 0x1f, 0x2e, 0xd6, 0xfc, 0x5f, 0x35, 0x69, - 0xf1, 0xcf, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0xfc, 0x6d, 0x8c, 0x05, 0x07, 0x00, - 0x00, -} - func (m *Cluster) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -895,36 +584,27 @@ func (m *Cluster) Marshal() (dAtA []byte, err error) { } func (m *Cluster) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) } if m.MaxPeerCount != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.MaxPeerCount)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.MaxPeerCount)) } - if m.Id != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *StoreLabel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -932,40 +612,29 @@ func (m *StoreLabel) Marshal() (dAtA []byte, err error) { } func (m *StoreLabel) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreLabel) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *Store) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -973,117 +642,100 @@ func (m *Store) Marshal() (dAtA []byte, err error) { } func (m *Store) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Store) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) } - if m.NodeState != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.NodeState)) - i-- - dAtA[i] = 0x68 + if len(m.Address) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } - if m.PhysicallyDestroyed { - i-- - if m.PhysicallyDestroyed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.State != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.State)) + } + if len(m.Labels) > 0 { + for _, msg := range m.Labels { + dAtA[i] = 0x22 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i-- - dAtA[i] = 0x60 } - if m.LastHeartbeat != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.LastHeartbeat)) - i-- - dAtA[i] = 0x58 + if len(m.Version) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Version))) + i += copy(dAtA[i:], m.Version) } - if len(m.DeployPath) > 0 { - i -= len(m.DeployPath) - copy(dAtA[i:], m.DeployPath) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.DeployPath))) - i-- - dAtA[i] = 0x52 + if len(m.PeerAddress) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.PeerAddress))) + i += copy(dAtA[i:], m.PeerAddress) } - if m.StartTimestamp != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.StartTimestamp)) - i-- - dAtA[i] = 0x48 + if len(m.StatusAddress) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.StatusAddress))) + i += copy(dAtA[i:], m.StatusAddress) } if len(m.GitHash) > 0 { - i -= len(m.GitHash) - copy(dAtA[i:], m.GitHash) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.GitHash))) - i-- dAtA[i] = 0x42 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.GitHash))) + i += copy(dAtA[i:], m.GitHash) } - if len(m.StatusAddress) > 0 { - i -= len(m.StatusAddress) - copy(dAtA[i:], m.StatusAddress) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.StatusAddress))) - i-- - dAtA[i] = 0x3a + if m.StartTimestamp != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.StartTimestamp)) } - if len(m.PeerAddress) > 0 { - i -= len(m.PeerAddress) - copy(dAtA[i:], m.PeerAddress) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.PeerAddress))) - i-- - dAtA[i] = 0x32 + if len(m.DeployPath) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.DeployPath))) + i += copy(dAtA[i:], m.DeployPath) } - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x2a + if m.LastHeartbeat != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.LastHeartbeat)) } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetapb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.PhysicallyDestroyed { + dAtA[i] = 0x60 + i++ + if m.PhysicallyDestroyed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if m.State != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if m.Id != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if m.NodeState != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.NodeState)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionEpoch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1091,36 +743,27 @@ func (m *RegionEpoch) Marshal() (dAtA []byte, err error) { } func (m *RegionEpoch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ConfVer != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.ConfVer)) } if m.Version != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) } - if m.ConfVer != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.ConfVer)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *BucketStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1128,23 +771,14 @@ func (m *BucketStats) Marshal() (dAtA []byte, err error) { } func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.WriteKeys) > 0 { - dAtA2 := make([]byte, len(m.WriteKeys)*10) + if len(m.ReadBytes) > 0 { + dAtA2 := make([]byte, len(m.ReadBytes)*10) var j1 int - for _, num := range m.WriteKeys { + for _, num := range m.ReadBytes { for num >= 1<<7 { dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1153,16 +787,15 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) + dAtA[i] = 0xa + i++ i = encodeVarintMetapb(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0x32 + i += copy(dAtA[i:], dAtA2[:j1]) } - if len(m.ReadKeys) > 0 { - dAtA4 := make([]byte, len(m.ReadKeys)*10) + if len(m.WriteBytes) > 0 { + dAtA4 := make([]byte, len(m.WriteBytes)*10) var j3 int - for _, num := range m.ReadKeys { + for _, num := range m.WriteBytes { for num >= 1<<7 { dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1171,16 +804,15 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA4[j3] = uint8(num) j3++ } - i -= j3 - copy(dAtA[i:], dAtA4[:j3]) + dAtA[i] = 0x12 + i++ i = encodeVarintMetapb(dAtA, i, uint64(j3)) - i-- - dAtA[i] = 0x2a + i += copy(dAtA[i:], dAtA4[:j3]) } - if len(m.WriteQps) > 0 { - dAtA6 := make([]byte, len(m.WriteQps)*10) + if len(m.ReadQps) > 0 { + dAtA6 := make([]byte, len(m.ReadQps)*10) var j5 int - for _, num := range m.WriteQps { + for _, num := range m.ReadQps { for num >= 1<<7 { dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1189,16 +821,15 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA6[j5] = uint8(num) j5++ } - i -= j5 - copy(dAtA[i:], dAtA6[:j5]) + dAtA[i] = 0x1a + i++ i = encodeVarintMetapb(dAtA, i, uint64(j5)) - i-- - dAtA[i] = 0x22 + i += copy(dAtA[i:], dAtA6[:j5]) } - if len(m.ReadQps) > 0 { - dAtA8 := make([]byte, len(m.ReadQps)*10) + if len(m.WriteQps) > 0 { + dAtA8 := make([]byte, len(m.WriteQps)*10) var j7 int - for _, num := range m.ReadQps { + for _, num := range m.WriteQps { for num >= 1<<7 { dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1207,16 +838,15 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA8[j7] = uint8(num) j7++ } - i -= j7 - copy(dAtA[i:], dAtA8[:j7]) + dAtA[i] = 0x22 + i++ i = encodeVarintMetapb(dAtA, i, uint64(j7)) - i-- - dAtA[i] = 0x1a + i += copy(dAtA[i:], dAtA8[:j7]) } - if len(m.WriteBytes) > 0 { - dAtA10 := make([]byte, len(m.WriteBytes)*10) + if len(m.ReadKeys) > 0 { + dAtA10 := make([]byte, len(m.ReadKeys)*10) var j9 int - for _, num := range m.WriteBytes { + for _, num := range m.ReadKeys { for num >= 1<<7 { dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1225,16 +855,15 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA10[j9] = uint8(num) j9++ } - i -= j9 - copy(dAtA[i:], dAtA10[:j9]) + dAtA[i] = 0x2a + i++ i = encodeVarintMetapb(dAtA, i, uint64(j9)) - i-- - dAtA[i] = 0x12 + i += copy(dAtA[i:], dAtA10[:j9]) } - if len(m.ReadBytes) > 0 { - dAtA12 := make([]byte, len(m.ReadBytes)*10) + if len(m.WriteKeys) > 0 { + dAtA12 := make([]byte, len(m.WriteKeys)*10) var j11 int - for _, num := range m.ReadBytes { + for _, num := range m.WriteKeys { for num >= 1<<7 { dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1243,19 +872,18 @@ func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA12[j11] = uint8(num) j11++ } - i -= j11 - copy(dAtA[i:], dAtA12[:j11]) + dAtA[i] = 0x32 + i++ i = encodeVarintMetapb(dAtA, i, uint64(j11)) - i-- - dAtA[i] = 0xa + i += copy(dAtA[i:], dAtA12[:j11]) } - return len(dAtA) - i, nil + return i, nil } func (m *Buckets) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1263,62 +891,50 @@ func (m *Buckets) Marshal() (dAtA []byte, err error) { } func (m *Buckets) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Buckets) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PeriodInMs != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.PeriodInMs)) - i-- - dAtA[i] = 0x28 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.RegionId)) } - if m.Stats != nil { - { - size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetapb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Version != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) } 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 = encodeVarintMetapb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x1a + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Version != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x10 + if m.Stats != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Stats.Size())) + n13, err := m.Stats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - if m.RegionId != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.PeriodInMs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.PeriodInMs)) } - return len(dAtA) - i, nil + return i, nil } func (m *Region) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1326,98 +942,81 @@ func (m *Region) Marshal() (dAtA []byte, err error) { } func (m *Region) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.FlashbackStartTs != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.FlashbackStartTs)) - i-- - dAtA[i] = 0x40 + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) } - if m.IsInFlashback { - i-- - if m.IsInFlashback { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.EncryptionMeta != nil { - { - size, err := m.EncryptionMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetapb(dAtA, i, uint64(size)) + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintMetapb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) + } + if m.RegionEpoch != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.RegionEpoch.Size())) + n14, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n14 } 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 = encodeVarintMetapb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Peers { dAtA[i] = 0x2a - } - } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintMetapb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintMetapb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + if m.EncryptionMeta != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.EncryptionMeta.Size())) + n15, err := m.EncryptionMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintMetapb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 + if m.IsInFlashback { + dAtA[i] = 0x38 + i++ + if m.IsInFlashback { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.Id != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if m.FlashbackStartTs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.FlashbackStartTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *Peer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1425,62 +1024,48 @@ func (m *Peer) Marshal() (dAtA []byte, err error) { } func (m *Peer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + } + if m.StoreId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.StoreId)) + } + if m.Role != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Role)) } if m.IsWitness { - i-- + dAtA[i] = 0x20 + i++ if m.IsWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if m.Role != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Role)) - i-- - dAtA[i] = 0x18 + i++ } - if m.StoreId != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func encodeVarintMetapb(dAtA []byte, offset int, v uint64) int { - offset -= sovMetapb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *Cluster) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1489,16 +1074,10 @@ func (m *Cluster) Size() (n int) { if m.MaxPeerCount != 0 { n += 1 + sovMetapb(uint64(m.MaxPeerCount)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreLabel) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1509,16 +1088,10 @@ func (m *StoreLabel) Size() (n int) { if l > 0 { n += 1 + l + sovMetapb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Store) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1569,16 +1142,10 @@ func (m *Store) Size() (n int) { if m.NodeState != 0 { n += 1 + sovMetapb(uint64(m.NodeState)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionEpoch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ConfVer != 0 { @@ -1587,16 +1154,10 @@ func (m *RegionEpoch) Size() (n int) { if m.Version != 0 { n += 1 + sovMetapb(uint64(m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BucketStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.ReadBytes) > 0 { @@ -1641,16 +1202,10 @@ func (m *BucketStats) Size() (n int) { } n += 1 + sovMetapb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Buckets) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1672,16 +1227,10 @@ func (m *Buckets) Size() (n int) { if m.PeriodInMs != 0 { n += 1 + sovMetapb(uint64(m.PeriodInMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Region) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1715,16 +1264,10 @@ func (m *Region) Size() (n int) { if m.FlashbackStartTs != 0 { n += 1 + sovMetapb(uint64(m.FlashbackStartTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Peer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1739,14 +1282,18 @@ func (m *Peer) Size() (n int) { if m.IsWitness { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovMetapb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozMetapb(x uint64) (n int) { return sovMetapb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1766,7 +1313,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1794,7 +1341,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1813,7 +1360,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxPeerCount |= uint32(b&0x7F) << shift + m.MaxPeerCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1824,13 +1371,12 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1855,7 +1401,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1883,7 +1429,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1893,9 +1439,6 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1915,7 +1458,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1925,9 +1468,6 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1939,13 +1479,12 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1970,7 +1509,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1998,7 +1537,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2017,7 +1556,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2027,9 +1566,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2049,7 +1585,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= StoreState(b&0x7F) << shift + m.State |= (StoreState(b) & 0x7F) << shift if b < 0x80 { break } @@ -2068,7 +1604,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2077,9 +1613,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2102,7 +1635,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2112,9 +1645,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2134,7 +1664,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2144,9 +1674,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2166,7 +1693,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2176,9 +1703,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2198,7 +1722,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2208,9 +1732,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2230,7 +1751,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTimestamp |= int64(b&0x7F) << shift + m.StartTimestamp |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2249,7 +1770,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2259,9 +1780,6 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2281,7 +1799,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastHeartbeat |= int64(b&0x7F) << shift + m.LastHeartbeat |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2300,7 +1818,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2320,7 +1838,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeState |= NodeState(b&0x7F) << shift + m.NodeState |= (NodeState(b) & 0x7F) << shift if b < 0x80 { break } @@ -2331,13 +1849,12 @@ func (m *Store) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2362,7 +1879,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2390,7 +1907,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConfVer |= uint64(b&0x7F) << shift + m.ConfVer |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2409,7 +1926,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2420,13 +1937,12 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2451,7 +1967,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2477,7 +1993,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2494,7 +2010,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2503,23 +2019,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.ReadBytes) == 0 { - m.ReadBytes = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2531,7 +2033,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2553,7 +2055,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2570,7 +2072,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2579,23 +2081,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.WriteBytes) == 0 { - m.WriteBytes = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2607,7 +2095,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2629,7 +2117,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2646,7 +2134,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2655,23 +2143,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.ReadQps) == 0 { - m.ReadQps = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2683,7 +2157,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2705,7 +2179,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2722,7 +2196,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2731,23 +2205,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.WriteQps) == 0 { - m.WriteQps = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2759,7 +2219,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2781,7 +2241,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2798,7 +2258,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2807,23 +2267,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.ReadKeys) == 0 { - m.ReadKeys = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2835,7 +2281,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2857,7 +2303,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2874,7 +2320,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2883,23 +2329,9 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } 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.WriteKeys) == 0 { - m.WriteKeys = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2911,7 +2343,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2927,13 +2359,12 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2958,7 +2389,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2986,7 +2417,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3005,7 +2436,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3024,7 +2455,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3033,9 +2464,6 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3056,7 +2484,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3065,9 +2493,6 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3092,7 +2517,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeriodInMs |= uint64(b&0x7F) << shift + m.PeriodInMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3103,13 +2528,12 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3134,7 +2558,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3162,7 +2586,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3181,7 +2605,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3190,9 +2614,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3215,7 +2636,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3224,9 +2645,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3249,7 +2667,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3258,9 +2676,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3285,7 +2700,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3294,9 +2709,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3319,7 +2731,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3328,9 +2740,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3355,7 +2764,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3375,7 +2784,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FlashbackStartTs |= uint64(b&0x7F) << shift + m.FlashbackStartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3386,13 +2795,12 @@ func (m *Region) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3417,7 +2825,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3445,7 +2853,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3464,7 +2872,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3483,7 +2891,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Role |= PeerRole(b&0x7F) << shift + m.Role |= (PeerRole(b) & 0x7F) << shift if b < 0x80 { break } @@ -3502,7 +2910,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3514,13 +2922,12 @@ func (m *Peer) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3533,7 +2940,6 @@ func (m *Peer) Unmarshal(dAtA []byte) error { func skipMetapb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3565,8 +2971,10 @@ func skipMetapb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3583,34 +2991,121 @@ func skipMetapb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthMetapb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMetapb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetapb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipMetapb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthMetapb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMetapb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("metapb.proto", fileDescriptorMetapb) } + +var fileDescriptorMetapb = []byte{ + // 977 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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0x09, 0x2e, 0x95, 0xdd, 0x42, 0xf5, 0xe3, 0x87, 0x7f, 0xfe, 0xe2, + 0x7b, 0xbf, 0x5f, 0xed, 0x7b, 0x7f, 0x5c, 0xed, 0x7b, 0x7f, 0x5f, 0xed, 0x7b, 0x3f, 0xfd, 0xb3, + 0x7f, 0x07, 0x06, 0x4a, 0xcf, 0x0e, 0x6d, 0xba, 0x58, 0x1f, 0x2e, 0xd6, 0xfc, 0x5f, 0x35, 0x69, + 0xf1, 0xcf, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0xfc, 0x6d, 0x8c, 0x05, 0x07, 0x00, + 0x00, +} diff --git a/pkg/mpp/mpp.pb.go b/pkg/mpp/mpp.pb.go index 2b8bcbac1..7e4abd37b 100644 --- a/pkg/mpp/mpp.pb.go +++ b/pkg/mpp/mpp.pb.go @@ -1,19 +1,43 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: mpp.proto +/* +Package mpp is a generated protocol buffer package. + +It is generated from these files: + + mpp.proto + +It has these top-level messages: + + TaskMeta + IsAliveRequest + IsAliveResponse + DispatchTaskRequest + DispatchTaskResponse + CancelTaskRequest + CancelTaskResponse + ReportTaskStatusRequest + ReportTaskStatusResponse + EstablishMPPConnectionRequest + MPPDataPacket + Error +*/ package mpp import ( "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -25,7 +49,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // TaskMeta contains meta of a mpp plan, including query's ts and task address. type TaskMeta struct { @@ -43,43 +67,12 @@ type TaskMeta struct { ReportExecutionSummary bool `protobuf:"varint,12,opt,name=report_execution_summary,json=reportExecutionSummary,proto3" json:"report_execution_summary,omitempty"` ApiVersion kvrpcpb.APIVersion `protobuf:"varint,16,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` ResourceGroupName string `protobuf:"bytes,17,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskMeta) Reset() { *m = TaskMeta{} } -func (m *TaskMeta) String() string { return proto.CompactTextString(m) } -func (*TaskMeta) ProtoMessage() {} -func (*TaskMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{0} -} -func (m *TaskMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskMeta.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 *TaskMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskMeta.Merge(m, src) -} -func (m *TaskMeta) XXX_Size() int { - return m.Size() -} -func (m *TaskMeta) XXX_DiscardUnknown() { - xxx_messageInfo_TaskMeta.DiscardUnknown(m) } -var xxx_messageInfo_TaskMeta proto.InternalMessageInfo +func (m *TaskMeta) Reset() { *m = TaskMeta{} } +func (m *TaskMeta) String() string { return proto.CompactTextString(m) } +func (*TaskMeta) ProtoMessage() {} +func (*TaskMeta) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{0} } func (m *TaskMeta) GetStartTs() uint64 { if m != nil { @@ -180,84 +173,22 @@ func (m *TaskMeta) GetResourceGroupName() string { } type IsAliveRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsAliveRequest) Reset() { *m = IsAliveRequest{} } -func (m *IsAliveRequest) String() string { return proto.CompactTextString(m) } -func (*IsAliveRequest) ProtoMessage() {} -func (*IsAliveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{1} -} -func (m *IsAliveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsAliveRequest.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 *IsAliveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsAliveRequest.Merge(m, src) -} -func (m *IsAliveRequest) XXX_Size() int { - return m.Size() -} -func (m *IsAliveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsAliveRequest.DiscardUnknown(m) } -var xxx_messageInfo_IsAliveRequest proto.InternalMessageInfo +func (m *IsAliveRequest) Reset() { *m = IsAliveRequest{} } +func (m *IsAliveRequest) String() string { return proto.CompactTextString(m) } +func (*IsAliveRequest) ProtoMessage() {} +func (*IsAliveRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{1} } type IsAliveResponse struct { - Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` - MppVersion int64 `protobuf:"varint,2,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsAliveResponse) Reset() { *m = IsAliveResponse{} } -func (m *IsAliveResponse) String() string { return proto.CompactTextString(m) } -func (*IsAliveResponse) ProtoMessage() {} -func (*IsAliveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{2} -} -func (m *IsAliveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsAliveResponse.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 *IsAliveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsAliveResponse.Merge(m, src) -} -func (m *IsAliveResponse) XXX_Size() int { - return m.Size() -} -func (m *IsAliveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsAliveResponse.DiscardUnknown(m) + Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` + MppVersion int64 `protobuf:"varint,2,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` } -var xxx_messageInfo_IsAliveResponse proto.InternalMessageInfo +func (m *IsAliveResponse) Reset() { *m = IsAliveResponse{} } +func (m *IsAliveResponse) String() string { return proto.CompactTextString(m) } +func (*IsAliveResponse) ProtoMessage() {} +func (*IsAliveResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{2} } func (m *IsAliveResponse) GetAvailable() bool { if m != nil { @@ -275,51 +206,20 @@ func (m *IsAliveResponse) GetMppVersion() int64 { // Dipsatch the task request to different tiflash servers. type DispatchTaskRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` EncodedPlan []byte `protobuf:"bytes,2,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` - Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` // If this task contains table scan, we still need their region info. SchemaVer int64 `protobuf:"varint,5,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for partition table scan - TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} } -func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) } -func (*DispatchTaskRequest) ProtoMessage() {} -func (*DispatchTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{3} -} -func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DispatchTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DispatchTaskRequest.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 *DispatchTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DispatchTaskRequest.Merge(m, src) -} -func (m *DispatchTaskRequest) XXX_Size() int { - return m.Size() -} -func (m *DispatchTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DispatchTaskRequest.DiscardUnknown(m) + TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` } -var xxx_messageInfo_DispatchTaskRequest proto.InternalMessageInfo +func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} } +func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) } +func (*DispatchTaskRequest) ProtoMessage() {} +func (*DispatchTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{3} } func (m *DispatchTaskRequest) GetMeta() *TaskMeta { if m != nil { @@ -365,45 +265,14 @@ func (m *DispatchTaskRequest) GetTableRegions() []*coprocessor.TableRegions { // Get response of DispatchTaskRequest. type DispatchTaskResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - RetryRegions []*metapb.Region `protobuf:"bytes,2,rep,name=retry_regions,json=retryRegions,proto3" json:"retry_regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} } -func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) } -func (*DispatchTaskResponse) ProtoMessage() {} -func (*DispatchTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{4} -} -func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DispatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DispatchTaskResponse.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 *DispatchTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DispatchTaskResponse.Merge(m, src) -} -func (m *DispatchTaskResponse) XXX_Size() int { - return m.Size() -} -func (m *DispatchTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DispatchTaskResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + RetryRegions []*metapb.Region `protobuf:"bytes,2,rep,name=retry_regions,json=retryRegions" json:"retry_regions,omitempty"` } -var xxx_messageInfo_DispatchTaskResponse proto.InternalMessageInfo +func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} } +func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) } +func (*DispatchTaskResponse) ProtoMessage() {} +func (*DispatchTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{4} } func (m *DispatchTaskResponse) GetError() *Error { if m != nil { @@ -421,45 +290,14 @@ func (m *DispatchTaskResponse) GetRetryRegions() []*metapb.Region { // CancelTaskRequest closes the execution of a task. type CancelTaskRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelTaskRequest) Reset() { *m = CancelTaskRequest{} } -func (m *CancelTaskRequest) String() string { return proto.CompactTextString(m) } -func (*CancelTaskRequest) ProtoMessage() {} -func (*CancelTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{5} -} -func (m *CancelTaskRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelTaskRequest.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 *CancelTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelTaskRequest.Merge(m, src) -} -func (m *CancelTaskRequest) XXX_Size() int { - return m.Size() -} -func (m *CancelTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelTaskRequest.DiscardUnknown(m) + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_CancelTaskRequest proto.InternalMessageInfo +func (m *CancelTaskRequest) Reset() { *m = CancelTaskRequest{} } +func (m *CancelTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CancelTaskRequest) ProtoMessage() {} +func (*CancelTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{5} } func (m *CancelTaskRequest) GetMeta() *TaskMeta { if m != nil { @@ -476,44 +314,13 @@ func (m *CancelTaskRequest) GetError() *Error { } type CancelTaskResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelTaskResponse) Reset() { *m = CancelTaskResponse{} } -func (m *CancelTaskResponse) String() string { return proto.CompactTextString(m) } -func (*CancelTaskResponse) ProtoMessage() {} -func (*CancelTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{6} -} -func (m *CancelTaskResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CancelTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CancelTaskResponse.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 *CancelTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelTaskResponse.Merge(m, src) -} -func (m *CancelTaskResponse) XXX_Size() int { - return m.Size() -} -func (m *CancelTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelTaskResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_CancelTaskResponse proto.InternalMessageInfo +func (m *CancelTaskResponse) Reset() { *m = CancelTaskResponse{} } +func (m *CancelTaskResponse) String() string { return proto.CompactTextString(m) } +func (*CancelTaskResponse) ProtoMessage() {} +func (*CancelTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{6} } func (m *CancelTaskResponse) GetError() *Error { if m != nil { @@ -525,46 +332,15 @@ func (m *CancelTaskResponse) GetError() *Error { // ReportTaskStatus reports the execution status of a task. // when TiFlash reports status to TiDB, ReportTaskStatusRequest serialize tipb.TiFlashExecutionInfo into data; type ReportTaskStatusRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportTaskStatusRequest) Reset() { *m = ReportTaskStatusRequest{} } -func (m *ReportTaskStatusRequest) String() string { return proto.CompactTextString(m) } -func (*ReportTaskStatusRequest) ProtoMessage() {} -func (*ReportTaskStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{7} -} -func (m *ReportTaskStatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportTaskStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportTaskStatusRequest.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 *ReportTaskStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportTaskStatusRequest.Merge(m, src) -} -func (m *ReportTaskStatusRequest) XXX_Size() int { - return m.Size() -} -func (m *ReportTaskStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportTaskStatusRequest.DiscardUnknown(m) + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ReportTaskStatusRequest proto.InternalMessageInfo +func (m *ReportTaskStatusRequest) Reset() { *m = ReportTaskStatusRequest{} } +func (m *ReportTaskStatusRequest) String() string { return proto.CompactTextString(m) } +func (*ReportTaskStatusRequest) ProtoMessage() {} +func (*ReportTaskStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{7} } func (m *ReportTaskStatusRequest) GetMeta() *TaskMeta { if m != nil { @@ -588,44 +364,13 @@ func (m *ReportTaskStatusRequest) GetError() *Error { } type ReportTaskStatusResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportTaskStatusResponse) Reset() { *m = ReportTaskStatusResponse{} } -func (m *ReportTaskStatusResponse) String() string { return proto.CompactTextString(m) } -func (*ReportTaskStatusResponse) ProtoMessage() {} -func (*ReportTaskStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{8} -} -func (m *ReportTaskStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportTaskStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportTaskStatusResponse.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 *ReportTaskStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportTaskStatusResponse.Merge(m, src) -} -func (m *ReportTaskStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *ReportTaskStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportTaskStatusResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ReportTaskStatusResponse proto.InternalMessageInfo +func (m *ReportTaskStatusResponse) Reset() { *m = ReportTaskStatusResponse{} } +func (m *ReportTaskStatusResponse) String() string { return proto.CompactTextString(m) } +func (*ReportTaskStatusResponse) ProtoMessage() {} +func (*ReportTaskStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{8} } func (m *ReportTaskStatusResponse) GetError() *Error { if m != nil { @@ -636,46 +381,17 @@ func (m *ReportTaskStatusResponse) GetError() *Error { // build connection between different tasks. Data is sent by the tasks that are closer to the data sources. type EstablishMPPConnectionRequest struct { - SenderMeta *TaskMeta `protobuf:"bytes,1,opt,name=sender_meta,json=senderMeta,proto3" json:"sender_meta,omitempty"` - ReceiverMeta *TaskMeta `protobuf:"bytes,2,opt,name=receiver_meta,json=receiverMeta,proto3" json:"receiver_meta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SenderMeta *TaskMeta `protobuf:"bytes,1,opt,name=sender_meta,json=senderMeta" json:"sender_meta,omitempty"` + ReceiverMeta *TaskMeta `protobuf:"bytes,2,opt,name=receiver_meta,json=receiverMeta" json:"receiver_meta,omitempty"` } func (m *EstablishMPPConnectionRequest) Reset() { *m = EstablishMPPConnectionRequest{} } func (m *EstablishMPPConnectionRequest) String() string { return proto.CompactTextString(m) } func (*EstablishMPPConnectionRequest) ProtoMessage() {} func (*EstablishMPPConnectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{9} -} -func (m *EstablishMPPConnectionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EstablishMPPConnectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EstablishMPPConnectionRequest.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 *EstablishMPPConnectionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EstablishMPPConnectionRequest.Merge(m, src) -} -func (m *EstablishMPPConnectionRequest) XXX_Size() int { - return m.Size() -} -func (m *EstablishMPPConnectionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EstablishMPPConnectionRequest.DiscardUnknown(m) + return fileDescriptorMpp, []int{9} } -var xxx_messageInfo_EstablishMPPConnectionRequest proto.InternalMessageInfo - func (m *EstablishMPPConnectionRequest) GetSenderMeta() *TaskMeta { if m != nil { return m.SenderMeta @@ -693,48 +409,17 @@ func (m *EstablishMPPConnectionRequest) GetReceiverMeta() *TaskMeta { // when TiFlash sends data to TiDB, Data packets wrap tipb.SelectResponse, i.e., serialize tipb.SelectResponse into data; // when TiFlash sends data to TiFlash, data blocks are serialized into chunks, and the execution_summaries in tipb.SelectResponse are serialized into data only for the last packet. type MPPDataPacket struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"` - StreamIds []uint64 `protobuf:"varint,4,rep,packed,name=stream_ids,json=streamIds,proto3" json:"stream_ids,omitempty"` - Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPPDataPacket) Reset() { *m = MPPDataPacket{} } -func (m *MPPDataPacket) String() string { return proto.CompactTextString(m) } -func (*MPPDataPacket) ProtoMessage() {} -func (*MPPDataPacket) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{10} -} -func (m *MPPDataPacket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MPPDataPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MPPDataPacket.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 *MPPDataPacket) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPPDataPacket.Merge(m, src) -} -func (m *MPPDataPacket) XXX_Size() int { - return m.Size() -} -func (m *MPPDataPacket) XXX_DiscardUnknown() { - xxx_messageInfo_MPPDataPacket.DiscardUnknown(m) + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"` + StreamIds []uint64 `protobuf:"varint,4,rep,packed,name=stream_ids,json=streamIds" json:"stream_ids,omitempty"` + Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` } -var xxx_messageInfo_MPPDataPacket proto.InternalMessageInfo +func (m *MPPDataPacket) Reset() { *m = MPPDataPacket{} } +func (m *MPPDataPacket) String() string { return proto.CompactTextString(m) } +func (*MPPDataPacket) ProtoMessage() {} +func (*MPPDataPacket) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{10} } func (m *MPPDataPacket) GetData() []byte { if m != nil { @@ -772,46 +457,15 @@ func (m *MPPDataPacket) GetVersion() int64 { } type Error struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - MppVersion int64 `protobuf:"varint,3,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{11} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + MppVersion int64 `protobuf:"varint,3,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{11} } func (m *Error) GetCode() int32 { if m != nil { @@ -848,72 +502,10 @@ func init() { proto.RegisterType((*MPPDataPacket)(nil), "mpp.MPPDataPacket") proto.RegisterType((*Error)(nil), "mpp.Error") } - -func init() { proto.RegisterFile("mpp.proto", fileDescriptor_819623c7fa76fc55) } - -var fileDescriptor_819623c7fa76fc55 = []byte{ - // 874 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6e, 0xdb, 0x46, - 0x10, 0x2d, 0x45, 0xd9, 0x92, 0x46, 0x94, 0x6b, 0xaf, 0x83, 0x98, 0x49, 0x1b, 0x57, 0x21, 0x7a, - 0xd0, 0x89, 0x41, 0x9d, 0xa2, 0xe8, 0xa1, 0x28, 0xe0, 0x26, 0x46, 0xc1, 0x83, 0x03, 0x75, 0x63, - 0x04, 0xbd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a5, 0xdb, 0x96, 0x3e, 0x1d, 0x39, 0x24, - 0x2b, 0x95, 0xd9, 0x31, 0xbf, 0xde, 0x6e, 0x27, 0xbc, 0x99, 0xbc, 0x80, 0x1d, 0x5b, 0xc0, 0xf0, - 0x31, 0x3b, 0x69, 0xf9, 0xec, 0x50, 0x7b, 0x26, 0xfb, 0x10, 0xd6, 0x6a, 0x61, 0xd9, 0x8c, 0xa8, - 0x39, 0xde, 0xfe, 0x56, 0x84, 0xb7, 0xbf, 0x15, 0x3f, 0x24, 0x7f, 0x5f, 0x1f, 0x07, 0xff, 0x5c, - 0x1f, 0x07, 0xff, 0x5e, 0x1f, 0x07, 0x7f, 0xfd, 0x77, 0xfc, 0x09, 0xec, 0x73, 0xb9, 0x48, 0x75, - 0xb5, 0xda, 0xa4, 0xab, 0x8d, 0xfd, 0xff, 0xba, 0xdc, 0xb5, 0x3f, 0x4f, 0xff, 0x0f, 0x00, 0x00, - 0xff, 0xff, 0x96, 0xda, 0x95, 0x17, 0x1e, 0x07, 0x00, 0x00, -} - func (m *TaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -921,111 +513,99 @@ func (m *TaskMeta) Marshal() (dAtA []byte, err error) { } func (m *TaskMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) } - if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintMpp(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + if m.TaskId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) } - if m.ApiVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.PartitionId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) } - if m.ReportExecutionSummary { - i-- - if m.ReportExecutionSummary { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 + if len(m.Address) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } - if len(m.CoordinatorAddress) > 0 { - i -= len(m.CoordinatorAddress) - copy(dAtA[i:], m.CoordinatorAddress) - i = encodeVarintMpp(dAtA, i, uint64(len(m.CoordinatorAddress))) - i-- - dAtA[i] = 0x5a + if m.GatherId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) } - if m.KeyspaceId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x50 + if m.QueryTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) } - if m.MppVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) - i-- - dAtA[i] = 0x48 + if m.LocalQueryId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) } if m.ServerId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.ServerId)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ServerId)) } - if m.LocalQueryId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) - i-- - dAtA[i] = 0x38 - } - if m.QueryTs != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) - i-- - dAtA[i] = 0x30 + if m.MppVersion != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) } - if m.GatherId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) - i-- - dAtA[i] = 0x28 + if m.KeyspaceId != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x22 + if len(m.CoordinatorAddress) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.CoordinatorAddress))) + i += copy(dAtA[i:], m.CoordinatorAddress) } - if m.PartitionId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) - i-- - dAtA[i] = 0x18 + if m.ReportExecutionSummary { + dAtA[i] = 0x60 + i++ + if m.ReportExecutionSummary { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.TaskId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x10 + if m.ApiVersion != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) } - if m.StartTs != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - return len(dAtA) - i, nil + return i, nil } func (m *IsAliveRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1033,26 +613,17 @@ func (m *IsAliveRequest) Marshal() (dAtA []byte, err error) { } func (m *IsAliveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *IsAliveResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1060,41 +631,32 @@ func (m *IsAliveResponse) Marshal() (dAtA []byte, err error) { } func (m *IsAliveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MppVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) - i-- - dAtA[i] = 0x10 - } if m.Available { - i-- + dAtA[i] = 0x8 + i++ if m.Available { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ + } + if m.MppVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) } - return len(dAtA) - i, nil + return i, nil } func (m *DispatchTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1102,83 +664,67 @@ func (m *DispatchTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *DispatchTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DispatchTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.TableRegions) > 0 { - for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) + n1, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n1 } - if m.SchemaVer != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.SchemaVer)) - i-- - dAtA[i] = 0x28 + if len(m.EncodedPlan) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.EncodedPlan))) + i += copy(dAtA[i:], m.EncodedPlan) + } + if m.Timeout != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Timeout)) } 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 = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0x22 + i++ + i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.Timeout != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.Timeout)) - i-- - dAtA[i] = 0x18 - } - if len(m.EncodedPlan) > 0 { - i -= len(m.EncodedPlan) - copy(dAtA[i:], m.EncodedPlan) - i = encodeVarintMpp(dAtA, i, uint64(len(m.EncodedPlan))) - i-- - dAtA[i] = 0x12 + if m.SchemaVer != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.SchemaVer)) } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if len(m.TableRegions) > 0 { + for _, msg := range m.TableRegions { + dAtA[i] = 0x32 + i++ + i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *DispatchTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1186,52 +732,39 @@ func (m *DispatchTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *DispatchTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DispatchTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if len(m.RetryRegions) > 0 { - for iNdEx := len(m.RetryRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RetryRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.RetryRegions { dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *CancelTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1239,50 +772,37 @@ func (m *CancelTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *CancelTaskRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) + n3, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *CancelTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1290,38 +810,27 @@ func (m *CancelTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *CancelTaskResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n5, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *ReportTaskStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1329,96 +838,71 @@ func (m *ReportTaskStatusRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportTaskStatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportTaskStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) + n6, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n6 } if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + if m.Error != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n7, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n7 } - return len(dAtA) - i, nil + return i, nil } func (m *ReportTaskStatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *ReportTaskStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return dAtA[:n], nil } -func (m *ReportTaskStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *ReportTaskStatusResponse) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n8, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *EstablishMPPConnectionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1426,50 +910,37 @@ func (m *EstablishMPPConnectionRequest) Marshal() (dAtA []byte, err error) { } func (m *EstablishMPPConnectionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EstablishMPPConnectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.SenderMeta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.SenderMeta.Size())) + n9, err := m.SenderMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } if m.ReceiverMeta != nil { - { - size, err := m.ReceiverMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.SenderMeta != nil { - { - size, err := m.SenderMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ReceiverMeta.Size())) + n10, err := m.ReceiverMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *MPPDataPacket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1477,77 +948,63 @@ func (m *MPPDataPacket) Marshal() (dAtA []byte, err error) { } func (m *MPPDataPacket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MPPDataPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x28 + if len(m.Data) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - if len(m.StreamIds) > 0 { - dAtA12 := make([]byte, len(m.StreamIds)*10) - var j11 int - for _, num := range m.StreamIds { - for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j11++ - } - dAtA12[j11] = uint8(num) - j11++ + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n11, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i -= j11 - copy(dAtA[i:], dAtA12[:j11]) - i = encodeVarintMpp(dAtA, i, uint64(j11)) - i-- - dAtA[i] = 0x22 + i += n11 } if len(m.Chunks) > 0 { - for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Chunks[iNdEx]) - copy(dAtA[i:], m.Chunks[iNdEx]) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Chunks[iNdEx]))) - i-- + for _, b := range m.Chunks { dAtA[i] = 0x1a + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.StreamIds) > 0 { + dAtA13 := make([]byte, len(m.StreamIds)*10) + var j12 int + for _, num := range m.StreamIds { + for num >= 1<<7 { + dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j12++ } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) + dAtA13[j12] = uint8(num) + j12++ } - i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 + i++ + i = encodeVarintMpp(dAtA, i, uint64(j12)) + i += copy(dAtA[i:], dAtA13[:j12]) } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0xa + if m.Version != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Version)) } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1555,54 +1012,39 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MppVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) - i-- - dAtA[i] = 0x18 + if m.Code != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Code)) } if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Msg))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } - if m.Code != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x8 + if m.MppVersion != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintMpp(dAtA []byte, offset int, v uint64) int { - offset -= sovMpp(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *TaskMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -1650,28 +1092,16 @@ func (m *TaskMeta) Size() (n int) { if l > 0 { n += 2 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsAliveRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsAliveResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Available { @@ -1680,16 +1110,10 @@ func (m *IsAliveResponse) Size() (n int) { if m.MppVersion != 0 { n += 1 + sovMpp(uint64(m.MppVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DispatchTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1718,16 +1142,10 @@ func (m *DispatchTaskRequest) Size() (n int) { n += 1 + l + sovMpp(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DispatchTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1740,16 +1158,10 @@ func (m *DispatchTaskResponse) Size() (n int) { n += 1 + l + sovMpp(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CancelTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1760,32 +1172,20 @@ func (m *CancelTaskRequest) Size() (n int) { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CancelTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportTaskStatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1800,32 +1200,20 @@ func (m *ReportTaskStatusRequest) Size() (n int) { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportTaskStatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EstablishMPPConnectionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SenderMeta != nil { @@ -1836,16 +1224,10 @@ func (m *EstablishMPPConnectionRequest) Size() (n int) { l = m.ReceiverMeta.Size() n += 1 + l + sovMpp(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MPPDataPacket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Data) @@ -1872,16 +1254,10 @@ func (m *MPPDataPacket) Size() (n int) { if m.Version != 0 { n += 1 + sovMpp(uint64(m.Version)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -1894,14 +1270,18 @@ func (m *Error) Size() (n int) { if m.MppVersion != 0 { n += 1 + sovMpp(uint64(m.MppVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovMpp(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozMpp(x uint64) (n int) { return sovMpp(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1921,7 +1301,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1949,7 +1329,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1968,7 +1348,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= int64(b&0x7F) << shift + m.TaskId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1987,7 +1367,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PartitionId |= int64(b&0x7F) << shift + m.PartitionId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2006,7 +1386,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2016,9 +1396,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2038,7 +1415,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GatherId |= uint64(b&0x7F) << shift + m.GatherId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2057,7 +1434,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.QueryTs |= uint64(b&0x7F) << shift + m.QueryTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2076,7 +1453,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LocalQueryId |= uint64(b&0x7F) << shift + m.LocalQueryId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2095,7 +1472,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ServerId |= uint64(b&0x7F) << shift + m.ServerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2114,7 +1491,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= int64(b&0x7F) << shift + m.MppVersion |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2133,7 +1510,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2152,7 +1529,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2162,9 +1539,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2184,7 +1558,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2204,7 +1578,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -2223,7 +1597,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2233,9 +1607,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2247,13 +1618,12 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2278,7 +1648,7 @@ func (m *IsAliveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2298,13 +1668,12 @@ func (m *IsAliveRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2329,7 +1698,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2357,7 +1726,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2377,7 +1746,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= int64(b&0x7F) << shift + m.MppVersion |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2388,13 +1757,12 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2419,7 +1787,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2447,7 +1815,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2456,9 +1824,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2483,7 +1848,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2492,9 +1857,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2517,7 +1879,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= int64(b&0x7F) << shift + m.Timeout |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2536,7 +1898,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2545,9 +1907,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2570,7 +1929,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= int64(b&0x7F) << shift + m.SchemaVer |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2589,7 +1948,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2598,9 +1957,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2615,13 +1971,12 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2646,7 +2001,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2674,7 +2029,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2683,9 +2038,6 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2710,7 +2062,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2719,9 +2071,6 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2736,13 +2085,12 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2767,7 +2115,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2795,7 +2143,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2804,9 +2152,6 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2831,7 +2176,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2840,9 +2185,6 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2859,13 +2201,12 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2890,7 +2231,7 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2918,7 +2259,7 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2927,9 +2268,6 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2946,13 +2284,12 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2977,7 +2314,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3005,7 +2342,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3014,9 +2351,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3041,7 +2375,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3050,9 +2384,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3075,7 +2406,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3084,9 +2415,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3103,13 +2431,12 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3134,7 +2461,7 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3162,7 +2489,7 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3171,9 +2498,6 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3190,13 +2514,12 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3221,7 +2544,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3249,7 +2572,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3258,9 +2581,6 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3285,7 +2605,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3294,9 +2614,6 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3313,13 +2630,12 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3344,7 +2660,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3372,7 +2688,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3381,9 +2697,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3406,7 +2719,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3415,9 +2728,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3442,7 +2752,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3451,9 +2761,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3472,7 +2779,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3489,7 +2796,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3498,23 +2805,9 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } 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.StreamIds) == 0 { - m.StreamIds = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3526,7 +2819,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3550,7 +2843,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= int64(b&0x7F) << shift + m.Version |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3561,13 +2854,12 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3592,7 +2884,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3620,7 +2912,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= int32(b&0x7F) << shift + m.Code |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3639,7 +2931,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3649,9 +2941,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3671,7 +2960,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= int64(b&0x7F) << shift + m.MppVersion |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3682,13 +2971,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3701,7 +2989,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { func skipMpp(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3733,8 +3020,10 @@ func skipMpp(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3751,34 +3040,114 @@ func skipMpp(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthMpp } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMpp + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMpp + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipMpp(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthMpp - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthMpp = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMpp = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMpp = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthMpp = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMpp = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("mpp.proto", fileDescriptorMpp) } + +var fileDescriptorMpp = []byte{ + // 874 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6e, 0xdb, 0x46, + 0x10, 0x2d, 0x45, 0xd9, 0x92, 0x46, 0x94, 0x6b, 0xaf, 0x83, 0x98, 0x49, 0x1b, 0x57, 0x21, 0x7a, + 0xd0, 0x89, 0x41, 0x9d, 0xa2, 0xe8, 0xa1, 0x28, 0xe0, 0x26, 0x46, 0xc1, 0x83, 0x03, 0x75, 0x63, + 0x04, 0xbd, 0x11, 0x6b, 0x72, 0x2a, 0x11, 0x12, 0xb9, 0x9b, 0xdd, 0xa5, 0x50, 0x9f, 0x7b, 0x28, + 0xfa, 0x03, 0x45, 0x3f, 0xa9, 0xc7, 0x7e, 0x42, 0xe1, 0xfe, 0x48, 0xb1, 0xbb, 0x5c, 0xc5, 0x71, + 0x62, 0x20, 0x39, 0x69, 0xe7, 0xcd, 0xec, 0xcc, 0x9b, 0xd9, 0x37, 0x14, 0x8c, 0x6a, 0x21, 0x52, + 0x21, 0xb9, 0xe6, 0x24, 0xac, 0x85, 0x78, 0x78, 0x6f, 0xc1, 0x17, 0xdc, 0xda, 0x4f, 0xcc, 0xc9, + 0xb9, 0x1e, 0x1e, 0x14, 0x06, 0x2b, 0x50, 0x29, 0x2e, 0x3b, 0x28, 0xaa, 0x51, 0x33, 0x71, 0xd9, + 0x59, 0x93, 0xd5, 0x46, 0x8a, 0xc2, 0x9b, 0xc9, 0x1f, 0x7d, 0x18, 0x5e, 0x30, 0xb5, 0x3a, 0x47, + 0xcd, 0xc8, 0x03, 0x18, 0x2a, 0xcd, 0xa4, 0xce, 0xb5, 0x8a, 0x83, 0x69, 0x30, 0xeb, 0xd3, 0x81, + 0xb5, 0x2f, 0x14, 0x39, 0x82, 0x81, 0x66, 0x6a, 0x95, 0x57, 0x65, 0xdc, 0x9b, 0x06, 0xb3, 0x90, + 0xee, 0x1a, 0x33, 0x2b, 0xc9, 0x63, 0x88, 0x04, 0x93, 0xba, 0xd2, 0x15, 0x6f, 0x8c, 0x37, 0xb4, + 0xde, 0xf1, 0x16, 0xcb, 0x4a, 0x12, 0xc3, 0x80, 0x95, 0xa5, 0x44, 0xa5, 0xe2, 0xfe, 0x34, 0x98, + 0x8d, 0xa8, 0x37, 0xc9, 0x67, 0x30, 0x5a, 0x30, 0xbd, 0x44, 0x69, 0x6e, 0xee, 0xd8, 0x8a, 0x43, + 0x07, 0x64, 0xa5, 0x61, 0xf3, 0xba, 0x45, 0x79, 0x65, 0xd8, 0xec, 0x3a, 0x36, 0xd6, 0xbe, 0x50, + 0xe4, 0x4b, 0xd8, 0x5b, 0xf3, 0x82, 0xad, 0x73, 0x17, 0x50, 0x95, 0xf1, 0xc0, 0x06, 0x44, 0x16, + 0xfd, 0xc9, 0x80, 0x59, 0x69, 0xb2, 0x2b, 0x94, 0x1b, 0x97, 0x7d, 0xe8, 0xb2, 0x3b, 0x20, 0x2b, + 0xc9, 0x17, 0x30, 0xae, 0x85, 0xc8, 0x37, 0x28, 0x55, 0xc5, 0x9b, 0x78, 0x64, 0x69, 0x43, 0x2d, + 0xc4, 0x2b, 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 0x07, 0xff, 0x5e, 0x1f, 0x07, 0x7f, 0xfd, 0x77, 0xfc, 0x09, 0xec, 0x73, 0xb9, 0x48, 0x75, + 0xb5, 0xda, 0xa4, 0xab, 0x8d, 0xfd, 0xff, 0xba, 0xdc, 0xb5, 0x3f, 0x4f, 0xff, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x96, 0xda, 0x95, 0x17, 0x1e, 0x07, 0x00, 0x00, +} diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 8128a9f6c..296780c7f 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -1,25 +1,161 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pdpb.proto +/* +Package pdpb is a generated protocol buffer package. + +It is generated from these files: + + pdpb.proto + +It has these top-level messages: + + WatchGlobalConfigRequest + WatchGlobalConfigResponse + StoreGlobalConfigRequest + StoreGlobalConfigResponse + LoadGlobalConfigRequest + LoadGlobalConfigResponse + GlobalConfigItem + RequestHeader + ResponseHeader + Error + TsoRequest + Timestamp + TsoResponse + BootstrapRequest + BootstrapResponse + IsBootstrappedRequest + IsBootstrappedResponse + AllocIDRequest + AllocIDResponse + IsSnapshotRecoveringRequest + IsSnapshotRecoveringResponse + GetStoreRequest + GetStoreResponse + PutStoreRequest + PutStoreResponse + GetAllStoresRequest + GetAllStoresResponse + GetRegionRequest + GetRegionResponse + GetRegionByIDRequest + ScanRegionsRequest + Region + ScanRegionsResponse + GetClusterConfigRequest + GetClusterConfigResponse + PutClusterConfigRequest + PutClusterConfigResponse + Member + GetMembersRequest + GetMembersResponse + GetClusterInfoRequest + GetClusterInfoResponse + PeerStats + RegionHeartbeatRequest + ChangePeer + ChangePeerV2 + TransferLeader + Merge + SplitRegion + SwitchWitness + BatchSwitchWitness + RegionHeartbeatResponse + AskSplitRequest + AskSplitResponse + ReportSplitRequest + ReportSplitResponse + AskBatchSplitRequest + SplitID + AskBatchSplitResponse + ReportBatchSplitRequest + ReportBatchSplitResponse + TimeInterval + RecordPair + PeerStat + StoreStats + SlowTrend + SnapshotStat + PeerReport + StoreReport + StoreHeartbeatRequest + DemoteFailedVoters + ForceLeader + RecoveryPlan + AwakenRegions + ControlGrpc + StoreHeartbeatResponse + ScatterRegionRequest + ScatterRegionResponse + GetGCSafePointRequest + GetGCSafePointResponse + UpdateGCSafePointRequest + UpdateGCSafePointResponse + UpdateServiceGCSafePointRequest + UpdateServiceGCSafePointResponse + GetGCSafePointV2Request + GetGCSafePointV2Response + WatchGCSafePointV2Request + SafePointEvent + WatchGCSafePointV2Response + UpdateGCSafePointV2Request + UpdateGCSafePointV2Response + UpdateServiceSafePointV2Request + UpdateServiceSafePointV2Response + GetAllGCSafePointV2Request + GCSafePointV2 + GetAllGCSafePointV2Response + RegionStat + SyncRegionRequest + PeersStats + Peers + SyncRegionResponse + GetOperatorRequest + GetOperatorResponse + SyncMaxTSRequest + SyncMaxTSResponse + SplitRegionsRequest + SplitRegionsResponse + SplitAndScatterRegionsRequest + SplitAndScatterRegionsResponse + GetDCLocationInfoRequest + GetDCLocationInfoResponse + QueryStats + ReportBucketsRequest + ReportBucketsResponse + ReportMinResolvedTsRequest + ReportMinResolvedTsResponse + SetExternalTimestampRequest + SetExternalTimestampResponse + GetExternalTimestampRequest + GetExternalTimestampResponse + GetMinTSRequest + GetMinTSResponse +*/ package pdpb import ( - "context" - encoding_binary "encoding/binary" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" metapb "github.com/pingcap/kvproto/pkg/metapb" + + eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" + replication_modepb "github.com/pingcap/kvproto/pkg/replication_modepb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + + encoding_binary "encoding/binary" ) // Reference imports to suppress errors if they are not otherwise used. @@ -31,7 +167,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type EventType int32 @@ -44,7 +180,6 @@ var EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } - var EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -53,10 +188,7 @@ var EventType_value = map[string]int32{ func (x EventType) String() string { return proto.EnumName(EventType_name, int32(x)) } - -func (EventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{0} -} +func (EventType) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{0} } type ErrorType int32 @@ -90,7 +222,6 @@ var ErrorType_name = map[int32]string{ 10: "INVALID_VALUE", 11: "DATA_COMPACTED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -109,10 +240,7 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } - -func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{1} -} +func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{1} } type ServiceMode int32 @@ -127,7 +255,6 @@ var ServiceMode_name = map[int32]string{ 1: "PD_SVC_MODE", 2: "API_SVC_MODE", } - var ServiceMode_value = map[string]int32{ "UNKNOWN_SVC_MODE": 0, "PD_SVC_MODE": 1, @@ -137,10 +264,7 @@ var ServiceMode_value = map[string]int32{ func (x ServiceMode) String() string { return proto.EnumName(ServiceMode_name, int32(x)) } - -func (ServiceMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{2} -} +func (ServiceMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{2} } type CheckPolicy int32 @@ -155,7 +279,6 @@ var CheckPolicy_name = map[int32]string{ 1: "APPROXIMATE", 2: "USEKEY", } - var CheckPolicy_value = map[string]int32{ "SCAN": 0, "APPROXIMATE": 1, @@ -165,10 +288,7 @@ var CheckPolicy_value = map[string]int32{ func (x CheckPolicy) String() string { return proto.EnumName(CheckPolicy_name, int32(x)) } - -func (CheckPolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{3} -} +func (CheckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{3} } type ControlGrpcEvent int32 @@ -183,7 +303,6 @@ var ControlGrpcEvent_name = map[int32]string{ 0: "PAUSE", 1: "RESUME", } - var ControlGrpcEvent_value = map[string]int32{ "PAUSE": 0, "RESUME": 1, @@ -192,10 +311,7 @@ var ControlGrpcEvent_value = map[string]int32{ func (x ControlGrpcEvent) String() string { return proto.EnumName(ControlGrpcEvent_name, int32(x)) } - -func (ControlGrpcEvent) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{4} -} +func (ControlGrpcEvent) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{4} } type OperatorStatus int32 @@ -214,7 +330,6 @@ var OperatorStatus_name = map[int32]string{ 3: "REPLACE", 4: "RUNNING", } - var OperatorStatus_value = map[string]int32{ "SUCCESS": 0, "TIMEOUT": 1, @@ -226,10 +341,7 @@ var OperatorStatus_value = map[string]int32{ func (x OperatorStatus) String() string { return proto.EnumName(OperatorStatus_name, int32(x)) } - -func (OperatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{5} -} +func (OperatorStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{5} } type QueryKind int32 @@ -262,7 +374,6 @@ var QueryKind_name = map[int32]string{ 10: "Commit", 11: "Rollback", } - var QueryKind_value = map[string]int32{ "Others": 0, "GC": 1, @@ -281,51 +392,17 @@ var QueryKind_value = map[string]int32{ func (x QueryKind) String() string { return proto.EnumName(QueryKind_name, int32(x)) } - -func (QueryKind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{6} -} +func (QueryKind) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{6} } type WatchGlobalConfigRequest struct { - ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigRequest{} } -func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*WatchGlobalConfigRequest) ProtoMessage() {} -func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{0} -} -func (m *WatchGlobalConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchGlobalConfigRequest.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 *WatchGlobalConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchGlobalConfigRequest.Merge(m, src) -} -func (m *WatchGlobalConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *WatchGlobalConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WatchGlobalConfigRequest.DiscardUnknown(m) + ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_WatchGlobalConfigRequest proto.InternalMessageInfo +func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigRequest{} } +func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*WatchGlobalConfigRequest) ProtoMessage() {} +func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{0} } func (m *WatchGlobalConfigRequest) GetConfigPath() string { if m != nil { @@ -342,46 +419,15 @@ func (m *WatchGlobalConfigRequest) GetRevision() int64 { } type WatchGlobalConfigResponse struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - Header *ResponseHeader `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResponse{} } -func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*WatchGlobalConfigResponse) ProtoMessage() {} -func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{1} -} -func (m *WatchGlobalConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchGlobalConfigResponse.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 *WatchGlobalConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchGlobalConfigResponse.Merge(m, src) -} -func (m *WatchGlobalConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *WatchGlobalConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WatchGlobalConfigResponse.DiscardUnknown(m) + Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + Header *ResponseHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_WatchGlobalConfigResponse proto.InternalMessageInfo +func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResponse{} } +func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*WatchGlobalConfigResponse) ProtoMessage() {} +func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{1} } func (m *WatchGlobalConfigResponse) GetChanges() []*GlobalConfigItem { if m != nil { @@ -405,45 +451,14 @@ func (m *WatchGlobalConfigResponse) GetHeader() *ResponseHeader { } type StoreGlobalConfigRequest struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigRequest{} } -func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*StoreGlobalConfigRequest) ProtoMessage() {} -func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{2} -} -func (m *StoreGlobalConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreGlobalConfigRequest.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 *StoreGlobalConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreGlobalConfigRequest.Merge(m, src) -} -func (m *StoreGlobalConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *StoreGlobalConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StoreGlobalConfigRequest.DiscardUnknown(m) + Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` + ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` } -var xxx_messageInfo_StoreGlobalConfigRequest proto.InternalMessageInfo +func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigRequest{} } +func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*StoreGlobalConfigRequest) ProtoMessage() {} +func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{2} } func (m *StoreGlobalConfigRequest) GetChanges() []*GlobalConfigItem { if m != nil { @@ -460,44 +475,13 @@ func (m *StoreGlobalConfigRequest) GetConfigPath() string { } type StoreGlobalConfigResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResponse{} } -func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*StoreGlobalConfigResponse) ProtoMessage() {} -func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{3} -} -func (m *StoreGlobalConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreGlobalConfigResponse.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 *StoreGlobalConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreGlobalConfigResponse.Merge(m, src) -} -func (m *StoreGlobalConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *StoreGlobalConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StoreGlobalConfigResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_StoreGlobalConfigResponse proto.InternalMessageInfo +func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResponse{} } +func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*StoreGlobalConfigResponse) ProtoMessage() {} +func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{3} } func (m *StoreGlobalConfigResponse) GetError() *Error { if m != nil { @@ -507,45 +491,14 @@ func (m *StoreGlobalConfigResponse) GetError() *Error { } type LoadGlobalConfigRequest struct { - Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` - ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadGlobalConfigRequest) Reset() { *m = LoadGlobalConfigRequest{} } -func (m *LoadGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*LoadGlobalConfigRequest) ProtoMessage() {} -func (*LoadGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{4} -} -func (m *LoadGlobalConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadGlobalConfigRequest.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 *LoadGlobalConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadGlobalConfigRequest.Merge(m, src) -} -func (m *LoadGlobalConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *LoadGlobalConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadGlobalConfigRequest.DiscardUnknown(m) + Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"` + ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` } -var xxx_messageInfo_LoadGlobalConfigRequest proto.InternalMessageInfo +func (m *LoadGlobalConfigRequest) Reset() { *m = LoadGlobalConfigRequest{} } +func (m *LoadGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*LoadGlobalConfigRequest) ProtoMessage() {} +func (*LoadGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{4} } func (m *LoadGlobalConfigRequest) GetNames() []string { if m != nil { @@ -562,45 +515,14 @@ func (m *LoadGlobalConfigRequest) GetConfigPath() string { } type LoadGlobalConfigResponse struct { - Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigResponse{} } -func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*LoadGlobalConfigResponse) ProtoMessage() {} -func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{5} -} -func (m *LoadGlobalConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LoadGlobalConfigResponse.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 *LoadGlobalConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadGlobalConfigResponse.Merge(m, src) -} -func (m *LoadGlobalConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *LoadGlobalConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadGlobalConfigResponse.DiscardUnknown(m) + Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_LoadGlobalConfigResponse proto.InternalMessageInfo +func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigResponse{} } +func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*LoadGlobalConfigResponse) ProtoMessage() {} +func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{5} } func (m *LoadGlobalConfigResponse) GetItems() []*GlobalConfigItem { if m != nil { @@ -620,48 +542,17 @@ type GlobalConfigItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // this field 'value' is replaced by the field 'payload'. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` Kind EventType `protobuf:"varint,4,opt,name=kind,proto3,enum=pdpb.EventType" json:"kind,omitempty"` // Since item value needs to support marshal of different struct types, // it should be set to bytes instead of string. - Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GlobalConfigItem) Reset() { *m = GlobalConfigItem{} } -func (m *GlobalConfigItem) String() string { return proto.CompactTextString(m) } -func (*GlobalConfigItem) ProtoMessage() {} -func (*GlobalConfigItem) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{6} -} -func (m *GlobalConfigItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GlobalConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GlobalConfigItem.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 *GlobalConfigItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_GlobalConfigItem.Merge(m, src) -} -func (m *GlobalConfigItem) XXX_Size() int { - return m.Size() -} -func (m *GlobalConfigItem) XXX_DiscardUnknown() { - xxx_messageInfo_GlobalConfigItem.DiscardUnknown(m) + Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` } -var xxx_messageInfo_GlobalConfigItem proto.InternalMessageInfo +func (m *GlobalConfigItem) Reset() { *m = GlobalConfigItem{} } +func (m *GlobalConfigItem) String() string { return proto.CompactTextString(m) } +func (*GlobalConfigItem) ProtoMessage() {} +func (*GlobalConfigItem) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{6} } func (m *GlobalConfigItem) GetName() string { if m != nil { @@ -702,44 +593,13 @@ type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // sender_id is the ID of the sender server, also member ID or etcd ID. - SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{7} -} -func (m *RequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestHeader.Merge(m, src) -} -func (m *RequestHeader) XXX_Size() int { - return m.Size() -} -func (m *RequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RequestHeader.DiscardUnknown(m) + SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` } -var xxx_messageInfo_RequestHeader proto.InternalMessageInfo +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{7} } func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -757,45 +617,14 @@ func (m *RequestHeader) GetSenderId() uint64 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{8} -} -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) -} -func (m *ResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{8} } func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -812,45 +641,14 @@ func (m *ResponseHeader) GetError() *Error { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=pdpb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{9} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=pdpb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{9} } func (m *Error) GetType() ErrorType { if m != nil { @@ -867,46 +665,15 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TsoRequest) Reset() { *m = TsoRequest{} } -func (m *TsoRequest) String() string { return proto.CompactTextString(m) } -func (*TsoRequest) ProtoMessage() {} -func (*TsoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{10} -} -func (m *TsoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TsoRequest.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 *TsoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TsoRequest.Merge(m, src) -} -func (m *TsoRequest) XXX_Size() int { - return m.Size() -} -func (m *TsoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TsoRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -var xxx_messageInfo_TsoRequest proto.InternalMessageInfo +func (m *TsoRequest) Reset() { *m = TsoRequest{} } +func (m *TsoRequest) String() string { return proto.CompactTextString(m) } +func (*TsoRequest) ProtoMessage() {} +func (*TsoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{10} } func (m *TsoRequest) GetHeader() *RequestHeader { if m != nil { @@ -934,44 +701,13 @@ type Timestamp struct { Logical int64 `protobuf:"varint,2,opt,name=logical,proto3" json:"logical,omitempty"` // Number of suffix bits used for global distinction, // PD client will use this to compute a TSO's logical part. - SuffixBits uint32 `protobuf:"varint,3,opt,name=suffix_bits,json=suffixBits,proto3" json:"suffix_bits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{11} -} -func (m *Timestamp) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Timestamp.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 *Timestamp) XXX_Merge(src proto.Message) { - xxx_messageInfo_Timestamp.Merge(m, src) -} -func (m *Timestamp) XXX_Size() int { - return m.Size() -} -func (m *Timestamp) XXX_DiscardUnknown() { - xxx_messageInfo_Timestamp.DiscardUnknown(m) + SuffixBits uint32 `protobuf:"varint,3,opt,name=suffix_bits,json=suffixBits,proto3" json:"suffix_bits,omitempty"` } -var xxx_messageInfo_Timestamp proto.InternalMessageInfo +func (m *Timestamp) Reset() { *m = Timestamp{} } +func (m *Timestamp) String() string { return proto.CompactTextString(m) } +func (*Timestamp) ProtoMessage() {} +func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{11} } func (m *Timestamp) GetPhysical() int64 { if m != nil { @@ -995,46 +731,15 @@ func (m *Timestamp) GetSuffixBits() uint32 { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TsoResponse) Reset() { *m = TsoResponse{} } -func (m *TsoResponse) String() string { return proto.CompactTextString(m) } -func (*TsoResponse) ProtoMessage() {} -func (*TsoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{12} -} -func (m *TsoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TsoResponse.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 *TsoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TsoResponse.Merge(m, src) -} -func (m *TsoResponse) XXX_Size() int { - return m.Size() -} -func (m *TsoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TsoResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` } -var xxx_messageInfo_TsoResponse proto.InternalMessageInfo +func (m *TsoResponse) Reset() { *m = TsoResponse{} } +func (m *TsoResponse) String() string { return proto.CompactTextString(m) } +func (*TsoResponse) ProtoMessage() {} +func (*TsoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{12} } func (m *TsoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1058,46 +763,15 @@ func (m *TsoResponse) GetTimestamp() *Timestamp { } type BootstrapRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` - Region *metapb.Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BootstrapRequest) Reset() { *m = BootstrapRequest{} } -func (m *BootstrapRequest) String() string { return proto.CompactTextString(m) } -func (*BootstrapRequest) ProtoMessage() {} -func (*BootstrapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{13} -} -func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BootstrapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BootstrapRequest.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 *BootstrapRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BootstrapRequest.Merge(m, src) -} -func (m *BootstrapRequest) XXX_Size() int { - return m.Size() -} -func (m *BootstrapRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BootstrapRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` + Region *metapb.Region `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` } -var xxx_messageInfo_BootstrapRequest proto.InternalMessageInfo +func (m *BootstrapRequest) Reset() { *m = BootstrapRequest{} } +func (m *BootstrapRequest) String() string { return proto.CompactTextString(m) } +func (*BootstrapRequest) ProtoMessage() {} +func (*BootstrapRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{13} } func (m *BootstrapRequest) GetHeader() *RequestHeader { if m != nil { @@ -1121,45 +795,14 @@ func (m *BootstrapRequest) GetRegion() *metapb.Region { } type BootstrapResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BootstrapResponse) Reset() { *m = BootstrapResponse{} } -func (m *BootstrapResponse) String() string { return proto.CompactTextString(m) } -func (*BootstrapResponse) ProtoMessage() {} -func (*BootstrapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{14} -} -func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BootstrapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BootstrapResponse.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 *BootstrapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BootstrapResponse.Merge(m, src) -} -func (m *BootstrapResponse) XXX_Size() int { - return m.Size() -} -func (m *BootstrapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BootstrapResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` } -var xxx_messageInfo_BootstrapResponse proto.InternalMessageInfo +func (m *BootstrapResponse) Reset() { *m = BootstrapResponse{} } +func (m *BootstrapResponse) String() string { return proto.CompactTextString(m) } +func (*BootstrapResponse) ProtoMessage() {} +func (*BootstrapResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{14} } func (m *BootstrapResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1176,44 +819,13 @@ func (m *BootstrapResponse) GetReplicationStatus() *replication_modepb.Replicati } type IsBootstrappedRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsBootstrappedRequest) Reset() { *m = IsBootstrappedRequest{} } -func (m *IsBootstrappedRequest) String() string { return proto.CompactTextString(m) } -func (*IsBootstrappedRequest) ProtoMessage() {} -func (*IsBootstrappedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{15} -} -func (m *IsBootstrappedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsBootstrappedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsBootstrappedRequest.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 *IsBootstrappedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsBootstrappedRequest.Merge(m, src) -} -func (m *IsBootstrappedRequest) XXX_Size() int { - return m.Size() -} -func (m *IsBootstrappedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsBootstrappedRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_IsBootstrappedRequest proto.InternalMessageInfo +func (m *IsBootstrappedRequest) Reset() { *m = IsBootstrappedRequest{} } +func (m *IsBootstrappedRequest) String() string { return proto.CompactTextString(m) } +func (*IsBootstrappedRequest) ProtoMessage() {} +func (*IsBootstrappedRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{15} } func (m *IsBootstrappedRequest) GetHeader() *RequestHeader { if m != nil { @@ -1223,45 +835,14 @@ func (m *IsBootstrappedRequest) GetHeader() *RequestHeader { } type IsBootstrappedResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Bootstrapped bool `protobuf:"varint,2,opt,name=bootstrapped,proto3" json:"bootstrapped,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsBootstrappedResponse) Reset() { *m = IsBootstrappedResponse{} } -func (m *IsBootstrappedResponse) String() string { return proto.CompactTextString(m) } -func (*IsBootstrappedResponse) ProtoMessage() {} -func (*IsBootstrappedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{16} -} -func (m *IsBootstrappedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsBootstrappedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsBootstrappedResponse.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 *IsBootstrappedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsBootstrappedResponse.Merge(m, src) -} -func (m *IsBootstrappedResponse) XXX_Size() int { - return m.Size() -} -func (m *IsBootstrappedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsBootstrappedResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Bootstrapped bool `protobuf:"varint,2,opt,name=bootstrapped,proto3" json:"bootstrapped,omitempty"` } -var xxx_messageInfo_IsBootstrappedResponse proto.InternalMessageInfo +func (m *IsBootstrappedResponse) Reset() { *m = IsBootstrappedResponse{} } +func (m *IsBootstrappedResponse) String() string { return proto.CompactTextString(m) } +func (*IsBootstrappedResponse) ProtoMessage() {} +func (*IsBootstrappedResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{16} } func (m *IsBootstrappedResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1278,44 +859,13 @@ func (m *IsBootstrappedResponse) GetBootstrapped() bool { } type AllocIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} } -func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) } -func (*AllocIDRequest) ProtoMessage() {} -func (*AllocIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{17} -} -func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllocIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AllocIDRequest.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 *AllocIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllocIDRequest.Merge(m, src) -} -func (m *AllocIDRequest) XXX_Size() int { - return m.Size() -} -func (m *AllocIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AllocIDRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_AllocIDRequest proto.InternalMessageInfo +func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} } +func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) } +func (*AllocIDRequest) ProtoMessage() {} +func (*AllocIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{17} } func (m *AllocIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -1325,45 +875,14 @@ func (m *AllocIDRequest) GetHeader() *RequestHeader { } type AllocIDResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} } -func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) } -func (*AllocIDResponse) ProtoMessage() {} -func (*AllocIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{18} -} -func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllocIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AllocIDResponse.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 *AllocIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllocIDResponse.Merge(m, src) -} -func (m *AllocIDResponse) XXX_Size() int { - return m.Size() -} -func (m *AllocIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AllocIDResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` } -var xxx_messageInfo_AllocIDResponse proto.InternalMessageInfo +func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} } +func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) } +func (*AllocIDResponse) ProtoMessage() {} +func (*AllocIDResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{18} } func (m *AllocIDResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1380,44 +899,15 @@ func (m *AllocIDResponse) GetId() uint64 { } type IsSnapshotRecoveringRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } func (m *IsSnapshotRecoveringRequest) Reset() { *m = IsSnapshotRecoveringRequest{} } func (m *IsSnapshotRecoveringRequest) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringRequest) ProtoMessage() {} func (*IsSnapshotRecoveringRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{19} -} -func (m *IsSnapshotRecoveringRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsSnapshotRecoveringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsSnapshotRecoveringRequest.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 *IsSnapshotRecoveringRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsSnapshotRecoveringRequest.Merge(m, src) -} -func (m *IsSnapshotRecoveringRequest) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{19} } -func (m *IsSnapshotRecoveringRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsSnapshotRecoveringRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IsSnapshotRecoveringRequest proto.InternalMessageInfo func (m *IsSnapshotRecoveringRequest) GetHeader() *RequestHeader { if m != nil { @@ -1427,46 +917,17 @@ func (m *IsSnapshotRecoveringRequest) GetHeader() *RequestHeader { } type IsSnapshotRecoveringResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` } func (m *IsSnapshotRecoveringResponse) Reset() { *m = IsSnapshotRecoveringResponse{} } func (m *IsSnapshotRecoveringResponse) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringResponse) ProtoMessage() {} func (*IsSnapshotRecoveringResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{20} -} -func (m *IsSnapshotRecoveringResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IsSnapshotRecoveringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IsSnapshotRecoveringResponse.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 *IsSnapshotRecoveringResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsSnapshotRecoveringResponse.Merge(m, src) -} -func (m *IsSnapshotRecoveringResponse) XXX_Size() int { - return m.Size() -} -func (m *IsSnapshotRecoveringResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsSnapshotRecoveringResponse.DiscardUnknown(m) + return fileDescriptorPdpb, []int{20} } -var xxx_messageInfo_IsSnapshotRecoveringResponse proto.InternalMessageInfo - func (m *IsSnapshotRecoveringResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -1482,45 +943,14 @@ func (m *IsSnapshotRecoveringResponse) GetMarked() bool { } type GetStoreRequest 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStoreRequest) Reset() { *m = GetStoreRequest{} } -func (m *GetStoreRequest) String() string { return proto.CompactTextString(m) } -func (*GetStoreRequest) ProtoMessage() {} -func (*GetStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{21} -} -func (m *GetStoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStoreRequest.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 *GetStoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStoreRequest.Merge(m, src) -} -func (m *GetStoreRequest) XXX_Size() int { - return m.Size() -} -func (m *GetStoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetStoreRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } -var xxx_messageInfo_GetStoreRequest proto.InternalMessageInfo +func (m *GetStoreRequest) Reset() { *m = GetStoreRequest{} } +func (m *GetStoreRequest) String() string { return proto.CompactTextString(m) } +func (*GetStoreRequest) ProtoMessage() {} +func (*GetStoreRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{21} } func (m *GetStoreRequest) GetHeader() *RequestHeader { if m != nil { @@ -1537,46 +967,15 @@ func (m *GetStoreRequest) GetStoreId() uint64 { } type GetStoreResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` - Stats *StoreStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStoreResponse) Reset() { *m = GetStoreResponse{} } -func (m *GetStoreResponse) String() string { return proto.CompactTextString(m) } -func (*GetStoreResponse) ProtoMessage() {} -func (*GetStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{22} -} -func (m *GetStoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetStoreResponse.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 *GetStoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStoreResponse.Merge(m, src) -} -func (m *GetStoreResponse) XXX_Size() int { - return m.Size() -} -func (m *GetStoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetStoreResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` + Stats *StoreStats `protobuf:"bytes,3,opt,name=stats" json:"stats,omitempty"` } -var xxx_messageInfo_GetStoreResponse proto.InternalMessageInfo +func (m *GetStoreResponse) Reset() { *m = GetStoreResponse{} } +func (m *GetStoreResponse) String() string { return proto.CompactTextString(m) } +func (*GetStoreResponse) ProtoMessage() {} +func (*GetStoreResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{22} } func (m *GetStoreResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1600,45 +999,14 @@ func (m *GetStoreResponse) GetStats() *StoreStats { } type PutStoreRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutStoreRequest) Reset() { *m = PutStoreRequest{} } -func (m *PutStoreRequest) String() string { return proto.CompactTextString(m) } -func (*PutStoreRequest) ProtoMessage() {} -func (*PutStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{23} -} -func (m *PutStoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutStoreRequest.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 *PutStoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutStoreRequest.Merge(m, src) -} -func (m *PutStoreRequest) XXX_Size() int { - return m.Size() -} -func (m *PutStoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutStoreRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` } -var xxx_messageInfo_PutStoreRequest proto.InternalMessageInfo +func (m *PutStoreRequest) Reset() { *m = PutStoreRequest{} } +func (m *PutStoreRequest) String() string { return proto.CompactTextString(m) } +func (*PutStoreRequest) ProtoMessage() {} +func (*PutStoreRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{23} } func (m *PutStoreRequest) GetHeader() *RequestHeader { if m != nil { @@ -1655,45 +1023,14 @@ func (m *PutStoreRequest) GetStore() *metapb.Store { } type PutStoreResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutStoreResponse) Reset() { *m = PutStoreResponse{} } -func (m *PutStoreResponse) String() string { return proto.CompactTextString(m) } -func (*PutStoreResponse) ProtoMessage() {} -func (*PutStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{24} -} -func (m *PutStoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutStoreResponse.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 *PutStoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutStoreResponse.Merge(m, src) -} -func (m *PutStoreResponse) XXX_Size() int { - return m.Size() -} -func (m *PutStoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutStoreResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` } -var xxx_messageInfo_PutStoreResponse proto.InternalMessageInfo +func (m *PutStoreResponse) Reset() { *m = PutStoreResponse{} } +func (m *PutStoreResponse) String() string { return proto.CompactTextString(m) } +func (*PutStoreResponse) ProtoMessage() {} +func (*PutStoreResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{24} } func (m *PutStoreResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1710,46 +1047,15 @@ func (m *PutStoreResponse) GetReplicationStatus() *replication_modepb.Replicatio } type GetAllStoresRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Do NOT return tombstone stores if set to true. - ExcludeTombstoneStores bool `protobuf:"varint,2,opt,name=exclude_tombstone_stores,json=excludeTombstoneStores,proto3" json:"exclude_tombstone_stores,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAllStoresRequest) Reset() { *m = GetAllStoresRequest{} } -func (m *GetAllStoresRequest) String() string { return proto.CompactTextString(m) } -func (*GetAllStoresRequest) ProtoMessage() {} -func (*GetAllStoresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{25} -} -func (m *GetAllStoresRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllStoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllStoresRequest.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 *GetAllStoresRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllStoresRequest.Merge(m, src) -} -func (m *GetAllStoresRequest) XXX_Size() int { - return m.Size() -} -func (m *GetAllStoresRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllStoresRequest.DiscardUnknown(m) + ExcludeTombstoneStores bool `protobuf:"varint,2,opt,name=exclude_tombstone_stores,json=excludeTombstoneStores,proto3" json:"exclude_tombstone_stores,omitempty"` } -var xxx_messageInfo_GetAllStoresRequest proto.InternalMessageInfo +func (m *GetAllStoresRequest) Reset() { *m = GetAllStoresRequest{} } +func (m *GetAllStoresRequest) String() string { return proto.CompactTextString(m) } +func (*GetAllStoresRequest) ProtoMessage() {} +func (*GetAllStoresRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{25} } func (m *GetAllStoresRequest) GetHeader() *RequestHeader { if m != nil { @@ -1766,45 +1072,14 @@ func (m *GetAllStoresRequest) GetExcludeTombstoneStores() bool { } type GetAllStoresResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Stores []*metapb.Store `protobuf:"bytes,2,rep,name=stores,proto3" json:"stores,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAllStoresResponse) Reset() { *m = GetAllStoresResponse{} } -func (m *GetAllStoresResponse) String() string { return proto.CompactTextString(m) } -func (*GetAllStoresResponse) ProtoMessage() {} -func (*GetAllStoresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{26} -} -func (m *GetAllStoresResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllStoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllStoresResponse.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 *GetAllStoresResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllStoresResponse.Merge(m, src) -} -func (m *GetAllStoresResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAllStoresResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllStoresResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Stores []*metapb.Store `protobuf:"bytes,2,rep,name=stores" json:"stores,omitempty"` } -var xxx_messageInfo_GetAllStoresResponse proto.InternalMessageInfo +func (m *GetAllStoresResponse) Reset() { *m = GetAllStoresResponse{} } +func (m *GetAllStoresResponse) String() string { return proto.CompactTextString(m) } +func (*GetAllStoresResponse) ProtoMessage() {} +func (*GetAllStoresResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{26} } func (m *GetAllStoresResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1821,46 +1096,15 @@ func (m *GetAllStoresResponse) GetStores() []*metapb.Store { } type GetRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - RegionKey []byte `protobuf:"bytes,2,opt,name=region_key,json=regionKey,proto3" json:"region_key,omitempty"` - NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRegionRequest) Reset() { *m = GetRegionRequest{} } -func (m *GetRegionRequest) String() string { return proto.CompactTextString(m) } -func (*GetRegionRequest) ProtoMessage() {} -func (*GetRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{27} -} -func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionRequest.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 *GetRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionRequest.Merge(m, src) -} -func (m *GetRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + RegionKey []byte `protobuf:"bytes,2,opt,name=region_key,json=regionKey,proto3" json:"region_key,omitempty"` + NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` } -var xxx_messageInfo_GetRegionRequest proto.InternalMessageInfo +func (m *GetRegionRequest) Reset() { *m = GetRegionRequest{} } +func (m *GetRegionRequest) String() string { return proto.CompactTextString(m) } +func (*GetRegionRequest) ProtoMessage() {} +func (*GetRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{27} } func (m *GetRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -1884,53 +1128,22 @@ func (m *GetRegionRequest) GetNeedBuckets() bool { } type GetRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` // buckets isn't nil if GetRegion.* requests set need_buckets. - Buckets *metapb.Buckets `protobuf:"bytes,7,opt,name=buckets,proto3" json:"buckets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRegionResponse) Reset() { *m = GetRegionResponse{} } -func (m *GetRegionResponse) String() string { return proto.CompactTextString(m) } -func (*GetRegionResponse) ProtoMessage() {} -func (*GetRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{28} -} -func (m *GetRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionResponse.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 *GetRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionResponse.Merge(m, src) -} -func (m *GetRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *GetRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionResponse.DiscardUnknown(m) + Buckets *metapb.Buckets `protobuf:"bytes,7,opt,name=buckets" json:"buckets,omitempty"` } -var xxx_messageInfo_GetRegionResponse proto.InternalMessageInfo +func (m *GetRegionResponse) Reset() { *m = GetRegionResponse{} } +func (m *GetRegionResponse) String() string { return proto.CompactTextString(m) } +func (*GetRegionResponse) ProtoMessage() {} +func (*GetRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{28} } func (m *GetRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1975,46 +1188,15 @@ func (m *GetRegionResponse) GetBuckets() *metapb.Buckets { } type GetRegionByIDRequest 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"` - NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRegionByIDRequest) Reset() { *m = GetRegionByIDRequest{} } -func (m *GetRegionByIDRequest) String() string { return proto.CompactTextString(m) } -func (*GetRegionByIDRequest) ProtoMessage() {} -func (*GetRegionByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{29} -} -func (m *GetRegionByIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRegionByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRegionByIDRequest.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 *GetRegionByIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionByIDRequest.Merge(m, src) -} -func (m *GetRegionByIDRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRegionByIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRegionByIDRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` } -var xxx_messageInfo_GetRegionByIDRequest proto.InternalMessageInfo +func (m *GetRegionByIDRequest) Reset() { *m = GetRegionByIDRequest{} } +func (m *GetRegionByIDRequest) String() string { return proto.CompactTextString(m) } +func (*GetRegionByIDRequest) ProtoMessage() {} +func (*GetRegionByIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{29} } func (m *GetRegionByIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -2038,47 +1220,16 @@ func (m *GetRegionByIDRequest) GetNeedBuckets() bool { } type ScanRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanRegionsRequest) Reset() { *m = ScanRegionsRequest{} } -func (m *ScanRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*ScanRegionsRequest) ProtoMessage() {} -func (*ScanRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{30} -} -func (m *ScanRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanRegionsRequest.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 *ScanRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanRegionsRequest.Merge(m, src) -} -func (m *ScanRegionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ScanRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanRegionsRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` } -var xxx_messageInfo_ScanRegionsRequest proto.InternalMessageInfo +func (m *ScanRegionsRequest) Reset() { *m = ScanRegionsRequest{} } +func (m *ScanRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*ScanRegionsRequest) ProtoMessage() {} +func (*ScanRegionsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{30} } func (m *ScanRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -2109,50 +1260,19 @@ func (m *ScanRegionsRequest) GetEndKey() []byte { } type Region struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,3,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,3,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,4,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Region) Reset() { *m = Region{} } -func (m *Region) String() string { return proto.CompactTextString(m) } -func (*Region) ProtoMessage() {} -func (*Region) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{31} -} -func (m *Region) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Region.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 *Region) XXX_Merge(src proto.Message) { - xxx_messageInfo_Region.Merge(m, src) -} -func (m *Region) XXX_Size() int { - return m.Size() -} -func (m *Region) XXX_DiscardUnknown() { - xxx_messageInfo_Region.DiscardUnknown(m) + PendingPeers []*metapb.Peer `protobuf:"bytes,4,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` } -var xxx_messageInfo_Region proto.InternalMessageInfo +func (m *Region) Reset() { *m = Region{} } +func (m *Region) String() string { return proto.CompactTextString(m) } +func (*Region) ProtoMessage() {} +func (*Region) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{31} } func (m *Region) GetRegion() *metapb.Region { if m != nil { @@ -2183,49 +1303,18 @@ func (m *Region) GetPendingPeers() []*metapb.Peer { } type ScanRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Keep for backword compatibability. - RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas,proto3" json:"region_metas,omitempty"` - Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders,proto3" json:"leaders,omitempty"` + RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas" json:"region_metas,omitempty"` + Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders" json:"leaders,omitempty"` // Extended region info with down/pending peers. - Regions []*Region `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScanRegionsResponse) Reset() { *m = ScanRegionsResponse{} } -func (m *ScanRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*ScanRegionsResponse) ProtoMessage() {} -func (*ScanRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{32} -} -func (m *ScanRegionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScanRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScanRegionsResponse.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 *ScanRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanRegionsResponse.Merge(m, src) -} -func (m *ScanRegionsResponse) XXX_Size() int { - return m.Size() -} -func (m *ScanRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanRegionsResponse.DiscardUnknown(m) + Regions []*Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_ScanRegionsResponse proto.InternalMessageInfo +func (m *ScanRegionsResponse) Reset() { *m = ScanRegionsResponse{} } +func (m *ScanRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*ScanRegionsResponse) ProtoMessage() {} +func (*ScanRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{32} } func (m *ScanRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2256,44 +1345,13 @@ func (m *ScanRegionsResponse) GetRegions() []*Region { } type GetClusterConfigRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest{} } -func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterConfigRequest) ProtoMessage() {} -func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{33} -} -func (m *GetClusterConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterConfigRequest.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 *GetClusterConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterConfigRequest.Merge(m, src) -} -func (m *GetClusterConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *GetClusterConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterConfigRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetClusterConfigRequest proto.InternalMessageInfo +func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest{} } +func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterConfigRequest) ProtoMessage() {} +func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{33} } func (m *GetClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { @@ -2303,45 +1361,14 @@ func (m *GetClusterConfigRequest) GetHeader() *RequestHeader { } type GetClusterConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigResponse{} } -func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterConfigResponse) ProtoMessage() {} -func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{34} -} -func (m *GetClusterConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterConfigResponse.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 *GetClusterConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterConfigResponse.Merge(m, src) -} -func (m *GetClusterConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *GetClusterConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterConfigResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` } -var xxx_messageInfo_GetClusterConfigResponse proto.InternalMessageInfo +func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigResponse{} } +func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterConfigResponse) ProtoMessage() {} +func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{34} } func (m *GetClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2358,45 +1385,14 @@ func (m *GetClusterConfigResponse) GetCluster() *metapb.Cluster { } type PutClusterConfigRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest{} } -func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } -func (*PutClusterConfigRequest) ProtoMessage() {} -func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{35} -} -func (m *PutClusterConfigRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutClusterConfigRequest.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 *PutClusterConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutClusterConfigRequest.Merge(m, src) -} -func (m *PutClusterConfigRequest) XXX_Size() int { - return m.Size() -} -func (m *PutClusterConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutClusterConfigRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` } -var xxx_messageInfo_PutClusterConfigRequest proto.InternalMessageInfo +func (m *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest{} } +func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } +func (*PutClusterConfigRequest) ProtoMessage() {} +func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{35} } func (m *PutClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { @@ -2413,44 +1409,13 @@ func (m *PutClusterConfigRequest) GetCluster() *metapb.Cluster { } type PutClusterConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigResponse{} } -func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } -func (*PutClusterConfigResponse) ProtoMessage() {} -func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{36} -} -func (m *PutClusterConfigResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutClusterConfigResponse.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 *PutClusterConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutClusterConfigResponse.Merge(m, src) -} -func (m *PutClusterConfigResponse) XXX_Size() int { - return m.Size() -} -func (m *PutClusterConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutClusterConfigResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_PutClusterConfigResponse proto.InternalMessageInfo +func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigResponse{} } +func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } +func (*PutClusterConfigResponse) ProtoMessage() {} +func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{36} } func (m *PutClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2463,51 +1428,20 @@ type Member struct { // name is the name of the PD member. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // member_id is the unique id of the PD member. - MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` - PeerUrls []string `protobuf:"bytes,3,rep,name=peer_urls,json=peerUrls,proto3" json:"peer_urls,omitempty"` - ClientUrls []string `protobuf:"bytes,4,rep,name=client_urls,json=clientUrls,proto3" json:"client_urls,omitempty"` - LeaderPriority int32 `protobuf:"varint,5,opt,name=leader_priority,json=leaderPriority,proto3" json:"leader_priority,omitempty"` - DeployPath string `protobuf:"bytes,6,opt,name=deploy_path,json=deployPath,proto3" json:"deploy_path,omitempty"` - BinaryVersion string `protobuf:"bytes,7,opt,name=binary_version,json=binaryVersion,proto3" json:"binary_version,omitempty"` - GitHash string `protobuf:"bytes,8,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"` - DcLocation string `protobuf:"bytes,9,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Member) Reset() { *m = Member{} } -func (m *Member) String() string { return proto.CompactTextString(m) } -func (*Member) ProtoMessage() {} -func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{37} -} -func (m *Member) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Member.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 *Member) XXX_Merge(src proto.Message) { - xxx_messageInfo_Member.Merge(m, src) -} -func (m *Member) XXX_Size() int { - return m.Size() -} -func (m *Member) XXX_DiscardUnknown() { - xxx_messageInfo_Member.DiscardUnknown(m) + MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` + PeerUrls []string `protobuf:"bytes,3,rep,name=peer_urls,json=peerUrls" json:"peer_urls,omitempty"` + ClientUrls []string `protobuf:"bytes,4,rep,name=client_urls,json=clientUrls" json:"client_urls,omitempty"` + LeaderPriority int32 `protobuf:"varint,5,opt,name=leader_priority,json=leaderPriority,proto3" json:"leader_priority,omitempty"` + DeployPath string `protobuf:"bytes,6,opt,name=deploy_path,json=deployPath,proto3" json:"deploy_path,omitempty"` + BinaryVersion string `protobuf:"bytes,7,opt,name=binary_version,json=binaryVersion,proto3" json:"binary_version,omitempty"` + GitHash string `protobuf:"bytes,8,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"` + DcLocation string `protobuf:"bytes,9,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -var xxx_messageInfo_Member proto.InternalMessageInfo +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{37} } func (m *Member) GetName() string { if m != nil { @@ -2573,44 +1507,13 @@ func (m *Member) GetDcLocation() string { } type GetMembersRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } -func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } -func (*GetMembersRequest) ProtoMessage() {} -func (*GetMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{38} -} -func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMembersRequest.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 *GetMembersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMembersRequest.Merge(m, src) -} -func (m *GetMembersRequest) XXX_Size() int { - return m.Size() -} -func (m *GetMembersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMembersRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetMembersRequest proto.InternalMessageInfo +func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } +func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } +func (*GetMembersRequest) ProtoMessage() {} +func (*GetMembersRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{38} } func (m *GetMembersRequest) GetHeader() *RequestHeader { if m != nil { @@ -2620,48 +1523,17 @@ func (m *GetMembersRequest) GetHeader() *RequestHeader { } type GetMembersResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` - Leader *Member `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` - EtcdLeader *Member `protobuf:"bytes,4,opt,name=etcd_leader,json=etcdLeader,proto3" json:"etcd_leader,omitempty"` - TsoAllocatorLeaders map[string]*Member `protobuf:"bytes,5,rep,name=tso_allocator_leaders,json=tsoAllocatorLeaders,proto3" json:"tso_allocator_leaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } -func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } -func (*GetMembersResponse) ProtoMessage() {} -func (*GetMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{39} -} -func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetMembersResponse.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 *GetMembersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMembersResponse.Merge(m, src) -} -func (m *GetMembersResponse) XXX_Size() int { - return m.Size() -} -func (m *GetMembersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMembersResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` + Leader *Member `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` + EtcdLeader *Member `protobuf:"bytes,4,opt,name=etcd_leader,json=etcdLeader" json:"etcd_leader,omitempty"` + TsoAllocatorLeaders map[string]*Member `protobuf:"bytes,5,rep,name=tso_allocator_leaders,json=tsoAllocatorLeaders" json:"tso_allocator_leaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` } -var xxx_messageInfo_GetMembersResponse proto.InternalMessageInfo +func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } +func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } +func (*GetMembersResponse) ProtoMessage() {} +func (*GetMembersResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{39} } func (m *GetMembersResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2699,44 +1571,13 @@ func (m *GetMembersResponse) GetTsoAllocatorLeaders() map[string]*Member { } type GetClusterInfoRequest struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } -func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoRequest) ProtoMessage() {} -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{40} -} -func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoRequest.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 *GetClusterInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoRequest.Merge(m, src) -} -func (m *GetClusterInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoRequest.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetClusterInfoRequest proto.InternalMessageInfo +func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } +func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoRequest) ProtoMessage() {} +func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{40} } func (m *GetClusterInfoRequest) GetHeader() *ResponseHeader { if m != nil { @@ -2746,48 +1587,17 @@ func (m *GetClusterInfoRequest) GetHeader() *ResponseHeader { } type GetClusterInfoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ServiceModes []ServiceMode `protobuf:"varint,2,rep,packed,name=serviceModes,proto3,enum=pdpb.ServiceMode" json:"serviceModes,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ServiceModes []ServiceMode `protobuf:"varint,2,rep,packed,name=serviceModes,enum=pdpb.ServiceMode" json:"serviceModes,omitempty"` // If service mode is API_SVC_MODE, this field will be set to the // registered tso service addresses. - TsoUrls []string `protobuf:"bytes,3,rep,name=tso_urls,json=tsoUrls,proto3" json:"tso_urls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } -func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoResponse) ProtoMessage() {} -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{41} -} -func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetClusterInfoResponse.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 *GetClusterInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetClusterInfoResponse.Merge(m, src) -} -func (m *GetClusterInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetClusterInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetClusterInfoResponse.DiscardUnknown(m) + TsoUrls []string `protobuf:"bytes,3,rep,name=tso_urls,json=tsoUrls" json:"tso_urls,omitempty"` } -var xxx_messageInfo_GetClusterInfoResponse proto.InternalMessageInfo +func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } +func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoResponse) ProtoMessage() {} +func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{41} } func (m *GetClusterInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2811,45 +1621,14 @@ func (m *GetClusterInfoResponse) GetTsoUrls() []string { } type PeerStats struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - DownSeconds uint64 `protobuf:"varint,2,opt,name=down_seconds,json=downSeconds,proto3" json:"down_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PeerStats) Reset() { *m = PeerStats{} } -func (m *PeerStats) String() string { return proto.CompactTextString(m) } -func (*PeerStats) ProtoMessage() {} -func (*PeerStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{42} -} -func (m *PeerStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerStats.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 *PeerStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerStats.Merge(m, src) -} -func (m *PeerStats) XXX_Size() int { - return m.Size() -} -func (m *PeerStats) XXX_DiscardUnknown() { - xxx_messageInfo_PeerStats.DiscardUnknown(m) + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + DownSeconds uint64 `protobuf:"varint,2,opt,name=down_seconds,json=downSeconds,proto3" json:"down_seconds,omitempty"` } -var xxx_messageInfo_PeerStats proto.InternalMessageInfo +func (m *PeerStats) Reset() { *m = PeerStats{} } +func (m *PeerStats) String() string { return proto.CompactTextString(m) } +func (*PeerStats) ProtoMessage() {} +func (*PeerStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{42} } func (m *PeerStats) GetPeer() *metapb.Peer { if m != nil { @@ -2866,15 +1645,15 @@ func (m *PeerStats) GetDownSeconds() uint64 { } type RegionHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` // Leader Peer sending the heartbeat. - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` // Bytes read/written during this period. BytesWritten uint64 `protobuf:"varint,6,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` BytesRead uint64 `protobuf:"varint,7,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` @@ -2884,57 +1663,26 @@ type RegionHeartbeatRequest struct { // Approximate region size. ApproximateSize uint64 `protobuf:"varint,10,opt,name=approximate_size,json=approximateSize,proto3" json:"approximate_size,omitempty"` // Actually reported time interval - Interval *TimeInterval `protobuf:"bytes,12,opt,name=interval,proto3" json:"interval,omitempty"` + Interval *TimeInterval `protobuf:"bytes,12,opt,name=interval" json:"interval,omitempty"` // Approximate number of keys. ApproximateKeys uint64 `protobuf:"varint,13,opt,name=approximate_keys,json=approximateKeys,proto3" json:"approximate_keys,omitempty"` // Term is the term of raft group. Term uint64 `protobuf:"varint,14,opt,name=term,proto3" json:"term,omitempty"` - ReplicationStatus *replication_modepb.RegionReplicationStatus `protobuf:"bytes,15,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` + ReplicationStatus *replication_modepb.RegionReplicationStatus `protobuf:"bytes,15,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` // QueryStats reported write query stats, and there are read query stats in store heartbeat - QueryStats *QueryStats `protobuf:"bytes,16,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,16,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` // cpu_usage is the CPU time usage of the leader region since the last heartbeat, // which is calculated by cpu_time_delta/heartbeat_reported_interval. CpuUsage uint64 `protobuf:"varint,17,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"` // (Serverless) Approximate size of key-value pairs for billing. // It's counted on size of user key & value (excluding metadata fields), before compression, and latest versions only. - ApproximateKvSize uint64 `protobuf:"varint,18,opt,name=approximate_kv_size,json=approximateKvSize,proto3" json:"approximate_kv_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} } -func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } -func (*RegionHeartbeatRequest) ProtoMessage() {} -func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{43} -} -func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionHeartbeatRequest.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 *RegionHeartbeatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionHeartbeatRequest.Merge(m, src) -} -func (m *RegionHeartbeatRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionHeartbeatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionHeartbeatRequest.DiscardUnknown(m) + ApproximateKvSize uint64 `protobuf:"varint,18,opt,name=approximate_kv_size,json=approximateKvSize,proto3" json:"approximate_kv_size,omitempty"` } -var xxx_messageInfo_RegionHeartbeatRequest proto.InternalMessageInfo +func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} } +func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } +func (*RegionHeartbeatRequest) ProtoMessage() {} +func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{43} } func (m *RegionHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -3056,45 +1804,14 @@ func (m *RegionHeartbeatRequest) GetApproximateKvSize() uint64 { } type ChangePeer struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - ChangeType eraftpb.ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeer) Reset() { *m = ChangePeer{} } -func (m *ChangePeer) String() string { return proto.CompactTextString(m) } -func (*ChangePeer) ProtoMessage() {} -func (*ChangePeer) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{44} -} -func (m *ChangePeer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeer.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 *ChangePeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeer.Merge(m, src) -} -func (m *ChangePeer) XXX_Size() int { - return m.Size() -} -func (m *ChangePeer) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeer.DiscardUnknown(m) + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + ChangeType eraftpb.ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` } -var xxx_messageInfo_ChangePeer proto.InternalMessageInfo +func (m *ChangePeer) Reset() { *m = ChangePeer{} } +func (m *ChangePeer) String() string { return proto.CompactTextString(m) } +func (*ChangePeer) ProtoMessage() {} +func (*ChangePeer) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{44} } func (m *ChangePeer) GetPeer() *metapb.Peer { if m != nil { @@ -3112,44 +1829,13 @@ func (m *ChangePeer) GetChangeType() eraftpb.ConfChangeType { type ChangePeerV2 struct { // If changes is empty, it means that to exit joint state. - Changes []*ChangePeer `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } -func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2) ProtoMessage() {} -func (*ChangePeerV2) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{45} -} -func (m *ChangePeerV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeerV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeerV2.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 *ChangePeerV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeerV2.Merge(m, src) -} -func (m *ChangePeerV2) XXX_Size() int { - return m.Size() -} -func (m *ChangePeerV2) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeerV2.DiscardUnknown(m) + Changes []*ChangePeer `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` } -var xxx_messageInfo_ChangePeerV2 proto.InternalMessageInfo +func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } +func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2) ProtoMessage() {} +func (*ChangePeerV2) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{45} } func (m *ChangePeerV2) GetChanges() []*ChangePeer { if m != nil { @@ -3159,45 +1845,14 @@ func (m *ChangePeerV2) GetChanges() []*ChangePeer { } type TransferLeader struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TransferLeader) Reset() { *m = TransferLeader{} } -func (m *TransferLeader) String() string { return proto.CompactTextString(m) } -func (*TransferLeader) ProtoMessage() {} -func (*TransferLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{46} -} -func (m *TransferLeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TransferLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TransferLeader.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 *TransferLeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferLeader.Merge(m, src) -} -func (m *TransferLeader) XXX_Size() int { - return m.Size() -} -func (m *TransferLeader) XXX_DiscardUnknown() { - xxx_messageInfo_TransferLeader.DiscardUnknown(m) + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` } -var xxx_messageInfo_TransferLeader proto.InternalMessageInfo +func (m *TransferLeader) Reset() { *m = TransferLeader{} } +func (m *TransferLeader) String() string { return proto.CompactTextString(m) } +func (*TransferLeader) ProtoMessage() {} +func (*TransferLeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{46} } func (m *TransferLeader) GetPeer() *metapb.Peer { if m != nil { @@ -3214,44 +1869,13 @@ func (m *TransferLeader) GetPeers() []*metapb.Peer { } type Merge struct { - Target *metapb.Region `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Merge) Reset() { *m = Merge{} } -func (m *Merge) String() string { return proto.CompactTextString(m) } -func (*Merge) ProtoMessage() {} -func (*Merge) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{47} -} -func (m *Merge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Merge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Merge.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 *Merge) XXX_Merge(src proto.Message) { - xxx_messageInfo_Merge.Merge(m, src) -} -func (m *Merge) XXX_Size() int { - return m.Size() -} -func (m *Merge) XXX_DiscardUnknown() { - xxx_messageInfo_Merge.DiscardUnknown(m) + Target *metapb.Region `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` } -var xxx_messageInfo_Merge proto.InternalMessageInfo +func (m *Merge) Reset() { *m = Merge{} } +func (m *Merge) String() string { return proto.CompactTextString(m) } +func (*Merge) ProtoMessage() {} +func (*Merge) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{47} } func (m *Merge) GetTarget() *metapb.Region { if m != nil { @@ -3261,45 +1885,14 @@ func (m *Merge) GetTarget() *metapb.Region { } type SplitRegion struct { - Policy CheckPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=pdpb.CheckPolicy" json:"policy,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitRegion) Reset() { *m = SplitRegion{} } -func (m *SplitRegion) String() string { return proto.CompactTextString(m) } -func (*SplitRegion) ProtoMessage() {} -func (*SplitRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{48} -} -func (m *SplitRegion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRegion.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 *SplitRegion) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegion.Merge(m, src) -} -func (m *SplitRegion) XXX_Size() int { - return m.Size() -} -func (m *SplitRegion) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegion.DiscardUnknown(m) + Policy CheckPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=pdpb.CheckPolicy" json:"policy,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` } -var xxx_messageInfo_SplitRegion proto.InternalMessageInfo +func (m *SplitRegion) Reset() { *m = SplitRegion{} } +func (m *SplitRegion) String() string { return proto.CompactTextString(m) } +func (*SplitRegion) ProtoMessage() {} +func (*SplitRegion) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{48} } func (m *SplitRegion) GetPolicy() CheckPolicy { if m != nil { @@ -3316,45 +1909,14 @@ func (m *SplitRegion) GetKeys() [][]byte { } type SwitchWitness struct { - PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchWitness) Reset() { *m = SwitchWitness{} } -func (m *SwitchWitness) String() string { return proto.CompactTextString(m) } -func (*SwitchWitness) ProtoMessage() {} -func (*SwitchWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{49} -} -func (m *SwitchWitness) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchWitness.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 *SwitchWitness) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchWitness.Merge(m, src) -} -func (m *SwitchWitness) XXX_Size() int { - return m.Size() -} -func (m *SwitchWitness) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchWitness.DiscardUnknown(m) + PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` } -var xxx_messageInfo_SwitchWitness proto.InternalMessageInfo +func (m *SwitchWitness) Reset() { *m = SwitchWitness{} } +func (m *SwitchWitness) String() string { return proto.CompactTextString(m) } +func (*SwitchWitness) ProtoMessage() {} +func (*SwitchWitness) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{49} } func (m *SwitchWitness) GetPeerId() uint64 { if m != nil { @@ -3371,44 +1933,13 @@ func (m *SwitchWitness) GetIsWitness() bool { } type BatchSwitchWitness struct { - SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchSwitchWitness) Reset() { *m = BatchSwitchWitness{} } -func (m *BatchSwitchWitness) String() string { return proto.CompactTextString(m) } -func (*BatchSwitchWitness) ProtoMessage() {} -func (*BatchSwitchWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{50} -} -func (m *BatchSwitchWitness) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchSwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchSwitchWitness.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 *BatchSwitchWitness) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchSwitchWitness.Merge(m, src) -} -func (m *BatchSwitchWitness) XXX_Size() int { - return m.Size() -} -func (m *BatchSwitchWitness) XXX_DiscardUnknown() { - xxx_messageInfo_BatchSwitchWitness.DiscardUnknown(m) + SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` } -var xxx_messageInfo_BatchSwitchWitness proto.InternalMessageInfo +func (m *BatchSwitchWitness) Reset() { *m = BatchSwitchWitness{} } +func (m *BatchSwitchWitness) String() string { return proto.CompactTextString(m) } +func (*BatchSwitchWitness) ProtoMessage() {} +func (*BatchSwitchWitness) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{50} } func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { if m != nil { @@ -3418,7 +1949,7 @@ func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { } type RegionHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Notice, Pd only allows handling reported epoch >= current pd's. // Leader peer reports region status with RegionHeartbeatRequest // to pd regularly, pd will determine whether this region @@ -3433,62 +1964,31 @@ type RegionHeartbeatResponse struct { // 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange // finished, pd stills responses ChangePeer Adding 2, of course, we must // guarantee the second ChangePeer can't be applied in TiKV. - ChangePeer *ChangePeer `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` + ChangePeer *ChangePeer `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` // Pd can return transfer_leader to let TiKV does leader transfer itself. - TransferLeader *TransferLeader `protobuf:"bytes,3,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` + TransferLeader *TransferLeader `protobuf:"bytes,3,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` // ID of the region RegionId uint64 `protobuf:"varint,4,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` // Leader of the region at the moment of the corresponding request was made. - TargetPeer *metapb.Peer `protobuf:"bytes,6,opt,name=target_peer,json=targetPeer,proto3" json:"target_peer,omitempty"` - Merge *Merge `protobuf:"bytes,7,opt,name=merge,proto3" json:"merge,omitempty"` + TargetPeer *metapb.Peer `protobuf:"bytes,6,opt,name=target_peer,json=targetPeer" json:"target_peer,omitempty"` + Merge *Merge `protobuf:"bytes,7,opt,name=merge" json:"merge,omitempty"` // PD sends split_region to let TiKV split a region into two regions. - SplitRegion *SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion,proto3" json:"split_region,omitempty"` + SplitRegion *SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion" json:"split_region,omitempty"` // Multiple change peer operations atomically. // Note: PD can use both ChangePeer and ChangePeerV2 at the same time // (not in the same RegionHeartbeatResponse). // Now, PD use ChangePeerV2 in following scenarios: // 1. replacing peers // 2. demoting voter directly - ChangePeerV2 *ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` - SwitchWitnesses *BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse{} } -func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } -func (*RegionHeartbeatResponse) ProtoMessage() {} -func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{51} -} -func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionHeartbeatResponse.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 *RegionHeartbeatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionHeartbeatResponse.Merge(m, src) -} -func (m *RegionHeartbeatResponse) XXX_Size() int { - return m.Size() -} -func (m *RegionHeartbeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionHeartbeatResponse.DiscardUnknown(m) + ChangePeerV2 *ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` + SwitchWitnesses *BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` } -var xxx_messageInfo_RegionHeartbeatResponse proto.InternalMessageInfo +func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse{} } +func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } +func (*RegionHeartbeatResponse) ProtoMessage() {} +func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{51} } func (m *RegionHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3561,45 +2061,14 @@ func (m *RegionHeartbeatResponse) GetSwitchWitnesses() *BatchSwitchWitness { } type AskSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } -func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } -func (*AskSplitRequest) ProtoMessage() {} -func (*AskSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{52} -} -func (m *AskSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AskSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AskSplitRequest.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 *AskSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AskSplitRequest.Merge(m, src) -} -func (m *AskSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *AskSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AskSplitRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` } -var xxx_messageInfo_AskSplitRequest proto.InternalMessageInfo +func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } +func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } +func (*AskSplitRequest) ProtoMessage() {} +func (*AskSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{52} } func (m *AskSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -3616,50 +2085,19 @@ func (m *AskSplitRequest) GetRegion() *metapb.Region { } type AskSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // We split the region into two, first uses the origin // parent region id, and the second uses the new_region_id. // We must guarantee that the new_region_id is global unique. NewRegionId uint64 `protobuf:"varint,2,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` // The peer ids for the new split region. - NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } -func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } -func (*AskSplitResponse) ProtoMessage() {} -func (*AskSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{53} -} -func (m *AskSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AskSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AskSplitResponse.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 *AskSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AskSplitResponse.Merge(m, src) -} -func (m *AskSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *AskSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AskSplitResponse.DiscardUnknown(m) + NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` } -var xxx_messageInfo_AskSplitResponse proto.InternalMessageInfo +func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } +func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } +func (*AskSplitResponse) ProtoMessage() {} +func (*AskSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{53} } func (m *AskSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3683,46 +2121,15 @@ func (m *AskSplitResponse) GetNewPeerIds() []uint64 { } type ReportSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Left *metapb.Region `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"` - Right *metapb.Region `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } -func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } -func (*ReportSplitRequest) ProtoMessage() {} -func (*ReportSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{54} -} -func (m *ReportSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportSplitRequest.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 *ReportSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportSplitRequest.Merge(m, src) -} -func (m *ReportSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *ReportSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportSplitRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Left *metapb.Region `protobuf:"bytes,2,opt,name=left" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"` } -var xxx_messageInfo_ReportSplitRequest proto.InternalMessageInfo +func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } +func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } +func (*ReportSplitRequest) ProtoMessage() {} +func (*ReportSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{54} } func (m *ReportSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -3746,44 +2153,13 @@ func (m *ReportSplitRequest) GetRight() *metapb.Region { } type ReportSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } -func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } -func (*ReportSplitResponse) ProtoMessage() {} -func (*ReportSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{55} -} -func (m *ReportSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportSplitResponse.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 *ReportSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportSplitResponse.Merge(m, src) -} -func (m *ReportSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *ReportSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportSplitResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_ReportSplitResponse proto.InternalMessageInfo +func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } +func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } +func (*ReportSplitResponse) ProtoMessage() {} +func (*ReportSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{55} } func (m *ReportSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3793,46 +2169,15 @@ func (m *ReportSplitResponse) GetHeader() *ResponseHeader { } type AskBatchSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - SplitCount uint32 `protobuf:"varint,3,opt,name=split_count,json=splitCount,proto3" json:"split_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } -func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*AskBatchSplitRequest) ProtoMessage() {} -func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{56} -} -func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AskBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AskBatchSplitRequest.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 *AskBatchSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AskBatchSplitRequest.Merge(m, src) -} -func (m *AskBatchSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *AskBatchSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AskBatchSplitRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + SplitCount uint32 `protobuf:"varint,3,opt,name=split_count,json=splitCount,proto3" json:"split_count,omitempty"` } -var xxx_messageInfo_AskBatchSplitRequest proto.InternalMessageInfo +func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } +func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitRequest) ProtoMessage() {} +func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{56} } func (m *AskBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -3856,45 +2201,14 @@ func (m *AskBatchSplitRequest) GetSplitCount() uint32 { } type SplitID struct { - NewRegionId uint64 `protobuf:"varint,1,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` - NewPeerIds []uint64 `protobuf:"varint,2,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitID) Reset() { *m = SplitID{} } -func (m *SplitID) String() string { return proto.CompactTextString(m) } -func (*SplitID) ProtoMessage() {} -func (*SplitID) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{57} -} -func (m *SplitID) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitID.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 *SplitID) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitID.Merge(m, src) -} -func (m *SplitID) XXX_Size() int { - return m.Size() -} -func (m *SplitID) XXX_DiscardUnknown() { - xxx_messageInfo_SplitID.DiscardUnknown(m) + NewRegionId uint64 `protobuf:"varint,1,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` + NewPeerIds []uint64 `protobuf:"varint,2,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` } -var xxx_messageInfo_SplitID proto.InternalMessageInfo +func (m *SplitID) Reset() { *m = SplitID{} } +func (m *SplitID) String() string { return proto.CompactTextString(m) } +func (*SplitID) ProtoMessage() {} +func (*SplitID) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{57} } func (m *SplitID) GetNewRegionId() uint64 { if m != nil { @@ -3911,45 +2225,14 @@ func (m *SplitID) GetNewPeerIds() []uint64 { } type AskBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Ids []*SplitID `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } -func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*AskBatchSplitResponse) ProtoMessage() {} -func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{58} -} -func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AskBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AskBatchSplitResponse.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 *AskBatchSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AskBatchSplitResponse.Merge(m, src) -} -func (m *AskBatchSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *AskBatchSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AskBatchSplitResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Ids []*SplitID `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"` } -var xxx_messageInfo_AskBatchSplitResponse proto.InternalMessageInfo +func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } +func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitResponse) ProtoMessage() {} +func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{58} } func (m *AskBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3966,45 +2249,14 @@ func (m *AskBatchSplitResponse) GetIds() []*SplitID { } type ReportBatchSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest{} } -func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*ReportBatchSplitRequest) ProtoMessage() {} -func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{59} -} -func (m *ReportBatchSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportBatchSplitRequest.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 *ReportBatchSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBatchSplitRequest.Merge(m, src) -} -func (m *ReportBatchSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *ReportBatchSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBatchSplitRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_ReportBatchSplitRequest proto.InternalMessageInfo +func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest{} } +func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*ReportBatchSplitRequest) ProtoMessage() {} +func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{59} } func (m *ReportBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -4021,44 +2273,13 @@ func (m *ReportBatchSplitRequest) GetRegions() []*metapb.Region { } type ReportBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitResponse{} } -func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*ReportBatchSplitResponse) ProtoMessage() {} -func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{60} -} -func (m *ReportBatchSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReportBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReportBatchSplitResponse.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 *ReportBatchSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBatchSplitResponse.Merge(m, src) -} -func (m *ReportBatchSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *ReportBatchSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBatchSplitResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_ReportBatchSplitResponse proto.InternalMessageInfo +func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitResponse{} } +func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*ReportBatchSplitResponse) ProtoMessage() {} +func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{60} } func (m *ReportBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4071,44 +2292,13 @@ type TimeInterval struct { // The unix timestamp in seconds of the start of this period. StartTimestamp uint64 `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` // The unix timestamp in seconds of the end of this period. - EndTimestamp uint64 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TimeInterval) Reset() { *m = TimeInterval{} } -func (m *TimeInterval) String() string { return proto.CompactTextString(m) } -func (*TimeInterval) ProtoMessage() {} -func (*TimeInterval) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{61} -} -func (m *TimeInterval) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimeInterval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeInterval.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 *TimeInterval) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeInterval.Merge(m, src) -} -func (m *TimeInterval) XXX_Size() int { - return m.Size() -} -func (m *TimeInterval) XXX_DiscardUnknown() { - xxx_messageInfo_TimeInterval.DiscardUnknown(m) + EndTimestamp uint64 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` } -var xxx_messageInfo_TimeInterval proto.InternalMessageInfo +func (m *TimeInterval) Reset() { *m = TimeInterval{} } +func (m *TimeInterval) String() string { return proto.CompactTextString(m) } +func (*TimeInterval) ProtoMessage() {} +func (*TimeInterval) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{61} } func (m *TimeInterval) GetStartTimestamp() uint64 { if m != nil { @@ -4125,45 +2315,14 @@ func (m *TimeInterval) GetEndTimestamp() uint64 { } type RecordPair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RecordPair) Reset() { *m = RecordPair{} } -func (m *RecordPair) String() string { return proto.CompactTextString(m) } -func (*RecordPair) ProtoMessage() {} -func (*RecordPair) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{62} -} -func (m *RecordPair) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordPair.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 *RecordPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordPair.Merge(m, src) -} -func (m *RecordPair) XXX_Size() int { - return m.Size() -} -func (m *RecordPair) XXX_DiscardUnknown() { - xxx_messageInfo_RecordPair.DiscardUnknown(m) + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_RecordPair proto.InternalMessageInfo +func (m *RecordPair) Reset() { *m = RecordPair{} } +func (m *RecordPair) String() string { return proto.CompactTextString(m) } +func (*RecordPair) ProtoMessage() {} +func (*RecordPair) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{62} } func (m *RecordPair) GetKey() string { if m != nil { @@ -4180,49 +2339,18 @@ func (m *RecordPair) GetValue() uint64 { } type PeerStat struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - ReadKeys uint64 `protobuf:"varint,2,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` - ReadBytes uint64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` - QueryStats *QueryStats `protobuf:"bytes,4,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` - WrittenKeys uint64 `protobuf:"varint,5,opt,name=written_keys,json=writtenKeys,proto3" json:"written_keys,omitempty"` - WrittenBytes uint64 `protobuf:"varint,6,opt,name=written_bytes,json=writtenBytes,proto3" json:"written_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PeerStat) Reset() { *m = PeerStat{} } -func (m *PeerStat) String() string { return proto.CompactTextString(m) } -func (*PeerStat) ProtoMessage() {} -func (*PeerStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{63} -} -func (m *PeerStat) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeerStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerStat.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 *PeerStat) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerStat.Merge(m, src) -} -func (m *PeerStat) XXX_Size() int { - return m.Size() -} -func (m *PeerStat) XXX_DiscardUnknown() { - xxx_messageInfo_PeerStat.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + ReadKeys uint64 `protobuf:"varint,2,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` + ReadBytes uint64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,4,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` + WrittenKeys uint64 `protobuf:"varint,5,opt,name=written_keys,json=writtenKeys,proto3" json:"written_keys,omitempty"` + WrittenBytes uint64 `protobuf:"varint,6,opt,name=written_bytes,json=writtenBytes,proto3" json:"written_bytes,omitempty"` } -var xxx_messageInfo_PeerStat proto.InternalMessageInfo +func (m *PeerStat) Reset() { *m = PeerStat{} } +func (m *PeerStat) String() string { return proto.CompactTextString(m) } +func (*PeerStat) ProtoMessage() {} +func (*PeerStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{63} } func (m *PeerStat) GetRegionId() uint64 { if m != nil { @@ -4295,67 +2423,36 @@ type StoreStats struct { // Keys read for the store during this period. KeysRead uint64 `protobuf:"varint,14,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"` // Actually reported time interval - Interval *TimeInterval `protobuf:"bytes,15,opt,name=interval,proto3" json:"interval,omitempty"` + Interval *TimeInterval `protobuf:"bytes,15,opt,name=interval" json:"interval,omitempty"` // Threads' CPU usages in the store - CpuUsages []*RecordPair `protobuf:"bytes,16,rep,name=cpu_usages,json=cpuUsages,proto3" json:"cpu_usages,omitempty"` + CpuUsages []*RecordPair `protobuf:"bytes,16,rep,name=cpu_usages,json=cpuUsages" json:"cpu_usages,omitempty"` // Threads' read disk I/O rates in the store - ReadIoRates []*RecordPair `protobuf:"bytes,17,rep,name=read_io_rates,json=readIoRates,proto3" json:"read_io_rates,omitempty"` + ReadIoRates []*RecordPair `protobuf:"bytes,17,rep,name=read_io_rates,json=readIoRates" json:"read_io_rates,omitempty"` // Threads' write disk I/O rates in the store - WriteIoRates []*RecordPair `protobuf:"bytes,18,rep,name=write_io_rates,json=writeIoRates,proto3" json:"write_io_rates,omitempty"` + WriteIoRates []*RecordPair `protobuf:"bytes,18,rep,name=write_io_rates,json=writeIoRates" json:"write_io_rates,omitempty"` // Operations' latencies in the store - OpLatencies []*RecordPair `protobuf:"bytes,19,rep,name=op_latencies,json=opLatencies,proto3" json:"op_latencies,omitempty"` + OpLatencies []*RecordPair `protobuf:"bytes,19,rep,name=op_latencies,json=opLatencies" json:"op_latencies,omitempty"` // Hot peer stat in the store - PeerStats []*PeerStat `protobuf:"bytes,20,rep,name=peer_stats,json=peerStats,proto3" json:"peer_stats,omitempty"` + PeerStats []*PeerStat `protobuf:"bytes,20,rep,name=peer_stats,json=peerStats" json:"peer_stats,omitempty"` // Store query stats - QueryStats *QueryStats `protobuf:"bytes,21,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,21,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` // Score that represents the speed of the store, ranges in [1, 100], lower is better. SlowScore uint64 `protobuf:"varint,22,opt,name=slow_score,json=slowScore,proto3" json:"slow_score,omitempty"` // Damaged regions on the store that need to be removed by PD. - DamagedRegionsId []uint64 `protobuf:"varint,23,rep,packed,name=damaged_regions_id,json=damagedRegionsId,proto3" json:"damaged_regions_id,omitempty"` + DamagedRegionsId []uint64 `protobuf:"varint,23,rep,packed,name=damaged_regions_id,json=damagedRegionsId" json:"damaged_regions_id,omitempty"` // If the apply worker is busy, namely high apply wait duration IsApplyBusy bool `protobuf:"varint,24,opt,name=is_apply_busy,json=isApplyBusy,proto3" json:"is_apply_busy,omitempty"` // Snapshot stats in the store - SnapshotStats []*SnapshotStat `protobuf:"bytes,25,rep,name=snapshot_stats,json=snapshotStats,proto3" json:"snapshot_stats,omitempty"` - SlowTrend *SlowTrend `protobuf:"bytes,26,opt,name=slow_trend,json=slowTrend,proto3" json:"slow_trend,omitempty"` + SnapshotStats []*SnapshotStat `protobuf:"bytes,25,rep,name=snapshot_stats,json=snapshotStats" json:"snapshot_stats,omitempty"` + SlowTrend *SlowTrend `protobuf:"bytes,26,opt,name=slow_trend,json=slowTrend" json:"slow_trend,omitempty"` // If the grpc server is paused. - IsGrpcPaused bool `protobuf:"varint,27,opt,name=is_grpc_paused,json=isGrpcPaused,proto3" json:"is_grpc_paused,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreStats) Reset() { *m = StoreStats{} } -func (m *StoreStats) String() string { return proto.CompactTextString(m) } -func (*StoreStats) ProtoMessage() {} -func (*StoreStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{64} -} -func (m *StoreStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreStats.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 *StoreStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreStats.Merge(m, src) -} -func (m *StoreStats) XXX_Size() int { - return m.Size() -} -func (m *StoreStats) XXX_DiscardUnknown() { - xxx_messageInfo_StoreStats.DiscardUnknown(m) + IsGrpcPaused bool `protobuf:"varint,27,opt,name=is_grpc_paused,json=isGrpcPaused,proto3" json:"is_grpc_paused,omitempty"` } -var xxx_messageInfo_StoreStats proto.InternalMessageInfo +func (m *StoreStats) Reset() { *m = StoreStats{} } +func (m *StoreStats) String() string { return proto.CompactTextString(m) } +func (*StoreStats) ProtoMessage() {} +func (*StoreStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{64} } func (m *StoreStats) GetStoreId() uint64 { if m != nil { @@ -4547,47 +2644,16 @@ func (m *StoreStats) GetIsGrpcPaused() bool { } type SlowTrend struct { - CauseValue float64 `protobuf:"fixed64,1,opt,name=cause_value,json=causeValue,proto3" json:"cause_value,omitempty"` - CauseRate float64 `protobuf:"fixed64,2,opt,name=cause_rate,json=causeRate,proto3" json:"cause_rate,omitempty"` - ResultValue float64 `protobuf:"fixed64,3,opt,name=result_value,json=resultValue,proto3" json:"result_value,omitempty"` - ResultRate float64 `protobuf:"fixed64,4,opt,name=result_rate,json=resultRate,proto3" json:"result_rate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SlowTrend) Reset() { *m = SlowTrend{} } -func (m *SlowTrend) String() string { return proto.CompactTextString(m) } -func (*SlowTrend) ProtoMessage() {} -func (*SlowTrend) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{65} -} -func (m *SlowTrend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SlowTrend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SlowTrend.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 *SlowTrend) XXX_Merge(src proto.Message) { - xxx_messageInfo_SlowTrend.Merge(m, src) -} -func (m *SlowTrend) XXX_Size() int { - return m.Size() -} -func (m *SlowTrend) XXX_DiscardUnknown() { - xxx_messageInfo_SlowTrend.DiscardUnknown(m) + CauseValue float64 `protobuf:"fixed64,1,opt,name=cause_value,json=causeValue,proto3" json:"cause_value,omitempty"` + CauseRate float64 `protobuf:"fixed64,2,opt,name=cause_rate,json=causeRate,proto3" json:"cause_rate,omitempty"` + ResultValue float64 `protobuf:"fixed64,3,opt,name=result_value,json=resultValue,proto3" json:"result_value,omitempty"` + ResultRate float64 `protobuf:"fixed64,4,opt,name=result_rate,json=resultRate,proto3" json:"result_rate,omitempty"` } -var xxx_messageInfo_SlowTrend proto.InternalMessageInfo +func (m *SlowTrend) Reset() { *m = SlowTrend{} } +func (m *SlowTrend) String() string { return proto.CompactTextString(m) } +func (*SlowTrend) ProtoMessage() {} +func (*SlowTrend) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{65} } func (m *SlowTrend) GetCauseValue() float64 { if m != nil { @@ -4628,44 +2694,13 @@ type SnapshotStat struct { // Total duration include waiting and executing duration TotalDurationSec uint64 `protobuf:"varint,4,opt,name=total_duration_sec,json=totalDurationSec,proto3" json:"total_duration_sec,omitempty"` // Size is the transport data size - TransportSize uint64 `protobuf:"varint,5,opt,name=transport_size,json=transportSize,proto3" json:"transport_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotStat) Reset() { *m = SnapshotStat{} } -func (m *SnapshotStat) String() string { return proto.CompactTextString(m) } -func (*SnapshotStat) ProtoMessage() {} -func (*SnapshotStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{66} -} -func (m *SnapshotStat) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotStat.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 *SnapshotStat) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotStat.Merge(m, src) -} -func (m *SnapshotStat) XXX_Size() int { - return m.Size() -} -func (m *SnapshotStat) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotStat.DiscardUnknown(m) + TransportSize uint64 `protobuf:"varint,5,opt,name=transport_size,json=transportSize,proto3" json:"transport_size,omitempty"` } -var xxx_messageInfo_SnapshotStat proto.InternalMessageInfo +func (m *SnapshotStat) Reset() { *m = SnapshotStat{} } +func (m *SnapshotStat) String() string { return proto.CompactTextString(m) } +func (*SnapshotStat) ProtoMessage() {} +func (*SnapshotStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{66} } func (m *SnapshotStat) GetRegionId() uint64 { if m != nil { @@ -4703,48 +2738,17 @@ func (m *SnapshotStat) GetTransportSize() uint64 { } type PeerReport struct { - RaftState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_state,json=raftState,proto3" json:"raft_state,omitempty"` - RegionState *raft_serverpb.RegionLocalState `protobuf:"bytes,2,opt,name=region_state,json=regionState,proto3" json:"region_state,omitempty"` + RaftState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_state,json=raftState" json:"raft_state,omitempty"` + RegionState *raft_serverpb.RegionLocalState `protobuf:"bytes,2,opt,name=region_state,json=regionState" json:"region_state,omitempty"` IsForceLeader bool `protobuf:"varint,3,opt,name=is_force_leader,json=isForceLeader,proto3" json:"is_force_leader,omitempty"` // The peer has proposed but uncommitted commit merge. - HasCommitMerge bool `protobuf:"varint,4,opt,name=has_commit_merge,json=hasCommitMerge,proto3" json:"has_commit_merge,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PeerReport) Reset() { *m = PeerReport{} } -func (m *PeerReport) String() string { return proto.CompactTextString(m) } -func (*PeerReport) ProtoMessage() {} -func (*PeerReport) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{67} -} -func (m *PeerReport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeerReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerReport.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 *PeerReport) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerReport.Merge(m, src) -} -func (m *PeerReport) XXX_Size() int { - return m.Size() -} -func (m *PeerReport) XXX_DiscardUnknown() { - xxx_messageInfo_PeerReport.DiscardUnknown(m) + HasCommitMerge bool `protobuf:"varint,4,opt,name=has_commit_merge,json=hasCommitMerge,proto3" json:"has_commit_merge,omitempty"` } -var xxx_messageInfo_PeerReport proto.InternalMessageInfo +func (m *PeerReport) Reset() { *m = PeerReport{} } +func (m *PeerReport) String() string { return proto.CompactTextString(m) } +func (*PeerReport) ProtoMessage() {} +func (*PeerReport) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{67} } func (m *PeerReport) GetRaftState() *raft_serverpb.RaftLocalState { if m != nil { @@ -4775,45 +2779,14 @@ func (m *PeerReport) GetHasCommitMerge() bool { } type StoreReport struct { - PeerReports []*PeerReport `protobuf:"bytes,1,rep,name=peer_reports,json=peerReports,proto3" json:"peer_reports,omitempty"` - Step uint64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreReport) Reset() { *m = StoreReport{} } -func (m *StoreReport) String() string { return proto.CompactTextString(m) } -func (*StoreReport) ProtoMessage() {} -func (*StoreReport) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{68} -} -func (m *StoreReport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreReport.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 *StoreReport) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreReport.Merge(m, src) -} -func (m *StoreReport) XXX_Size() int { - return m.Size() -} -func (m *StoreReport) XXX_DiscardUnknown() { - xxx_messageInfo_StoreReport.DiscardUnknown(m) + PeerReports []*PeerReport `protobuf:"bytes,1,rep,name=peer_reports,json=peerReports" json:"peer_reports,omitempty"` + Step uint64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` } -var xxx_messageInfo_StoreReport proto.InternalMessageInfo +func (m *StoreReport) Reset() { *m = StoreReport{} } +func (m *StoreReport) String() string { return proto.CompactTextString(m) } +func (*StoreReport) ProtoMessage() {} +func (*StoreReport) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{68} } func (m *StoreReport) GetPeerReports() []*PeerReport { if m != nil { @@ -4830,48 +2803,17 @@ func (m *StoreReport) GetStep() uint64 { } type StoreHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Stats *StoreStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Stats *StoreStats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"` // Detailed store report that is only filled up on PD's demand for online unsafe recovery. - StoreReport *StoreReport `protobuf:"bytes,3,opt,name=store_report,json=storeReport,proto3" json:"store_report,omitempty"` - DrAutosyncStatus *replication_modepb.StoreDRAutoSyncStatus `protobuf:"bytes,4,opt,name=dr_autosync_status,json=drAutosyncStatus,proto3" json:"dr_autosync_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } -func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } -func (*StoreHeartbeatRequest) ProtoMessage() {} -func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{69} -} -func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreHeartbeatRequest.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 *StoreHeartbeatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreHeartbeatRequest.Merge(m, src) -} -func (m *StoreHeartbeatRequest) XXX_Size() int { - return m.Size() -} -func (m *StoreHeartbeatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StoreHeartbeatRequest.DiscardUnknown(m) + StoreReport *StoreReport `protobuf:"bytes,3,opt,name=store_report,json=storeReport" json:"store_report,omitempty"` + DrAutosyncStatus *replication_modepb.StoreDRAutoSyncStatus `protobuf:"bytes,4,opt,name=dr_autosync_status,json=drAutosyncStatus" json:"dr_autosync_status,omitempty"` } -var xxx_messageInfo_StoreHeartbeatRequest proto.InternalMessageInfo +func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } +func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } +func (*StoreHeartbeatRequest) ProtoMessage() {} +func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{69} } func (m *StoreHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -4902,45 +2844,14 @@ func (m *StoreHeartbeatRequest) GetDrAutosyncStatus() *replication_modepb.StoreD } type DemoteFailedVoters struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FailedVoters []*metapb.Peer `protobuf:"bytes,2,rep,name=failed_voters,json=failedVoters,proto3" json:"failed_voters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DemoteFailedVoters) Reset() { *m = DemoteFailedVoters{} } -func (m *DemoteFailedVoters) String() string { return proto.CompactTextString(m) } -func (*DemoteFailedVoters) ProtoMessage() {} -func (*DemoteFailedVoters) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{70} -} -func (m *DemoteFailedVoters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DemoteFailedVoters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DemoteFailedVoters.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 *DemoteFailedVoters) XXX_Merge(src proto.Message) { - xxx_messageInfo_DemoteFailedVoters.Merge(m, src) -} -func (m *DemoteFailedVoters) XXX_Size() int { - return m.Size() -} -func (m *DemoteFailedVoters) XXX_DiscardUnknown() { - xxx_messageInfo_DemoteFailedVoters.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + FailedVoters []*metapb.Peer `protobuf:"bytes,2,rep,name=failed_voters,json=failedVoters" json:"failed_voters,omitempty"` } -var xxx_messageInfo_DemoteFailedVoters proto.InternalMessageInfo +func (m *DemoteFailedVoters) Reset() { *m = DemoteFailedVoters{} } +func (m *DemoteFailedVoters) String() string { return proto.CompactTextString(m) } +func (*DemoteFailedVoters) ProtoMessage() {} +func (*DemoteFailedVoters) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{70} } func (m *DemoteFailedVoters) GetRegionId() uint64 { if m != nil { @@ -4958,46 +2869,15 @@ func (m *DemoteFailedVoters) GetFailedVoters() []*metapb.Peer { type ForceLeader struct { // The store ids of the failed stores, TiKV uses it to decide if a peer is alive. - FailedStores []uint64 `protobuf:"varint,1,rep,packed,name=failed_stores,json=failedStores,proto3" json:"failed_stores,omitempty"` + FailedStores []uint64 `protobuf:"varint,1,rep,packed,name=failed_stores,json=failedStores" json:"failed_stores,omitempty"` // The region ids of the peer which is to be force leader. - EnterForceLeaders []uint64 `protobuf:"varint,2,rep,packed,name=enter_force_leaders,json=enterForceLeaders,proto3" json:"enter_force_leaders,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ForceLeader) Reset() { *m = ForceLeader{} } -func (m *ForceLeader) String() string { return proto.CompactTextString(m) } -func (*ForceLeader) ProtoMessage() {} -func (*ForceLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{71} -} -func (m *ForceLeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ForceLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ForceLeader.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 *ForceLeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ForceLeader.Merge(m, src) -} -func (m *ForceLeader) XXX_Size() int { - return m.Size() -} -func (m *ForceLeader) XXX_DiscardUnknown() { - xxx_messageInfo_ForceLeader.DiscardUnknown(m) + EnterForceLeaders []uint64 `protobuf:"varint,2,rep,packed,name=enter_force_leaders,json=enterForceLeaders" json:"enter_force_leaders,omitempty"` } -var xxx_messageInfo_ForceLeader proto.InternalMessageInfo +func (m *ForceLeader) Reset() { *m = ForceLeader{} } +func (m *ForceLeader) String() string { return proto.CompactTextString(m) } +func (*ForceLeader) ProtoMessage() {} +func (*ForceLeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{71} } func (m *ForceLeader) GetFailedStores() []uint64 { if m != nil { @@ -5015,55 +2895,24 @@ func (m *ForceLeader) GetEnterForceLeaders() []uint64 { type RecoveryPlan struct { // Create empty regions to fill the key range hole. - Creates []*metapb.Region `protobuf:"bytes,1,rep,name=creates,proto3" json:"creates,omitempty"` + Creates []*metapb.Region `protobuf:"bytes,1,rep,name=creates" json:"creates,omitempty"` // Update the meta of the regions, including peer lists, epoch and key range. - Updates []*metapb.Region `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // Deprecated: Do not use. + Updates []*metapb.Region `protobuf:"bytes,2,rep,name=updates" json:"updates,omitempty"` // Tombstone the peers on the store locally. - Tombstones []uint64 `protobuf:"varint,3,rep,packed,name=tombstones,proto3" json:"tombstones,omitempty"` + Tombstones []uint64 `protobuf:"varint,3,rep,packed,name=tombstones" json:"tombstones,omitempty"` // Issue conf change that demote voters on failed stores to learners on the regions. - Demotes []*DemoteFailedVoters `protobuf:"bytes,4,rep,name=demotes,proto3" json:"demotes,omitempty"` + Demotes []*DemoteFailedVoters `protobuf:"bytes,4,rep,name=demotes" json:"demotes,omitempty"` // Make the peers to be force leaders. - ForceLeader *ForceLeader `protobuf:"bytes,5,opt,name=force_leader,json=forceLeader,proto3" json:"force_leader,omitempty"` + ForceLeader *ForceLeader `protobuf:"bytes,5,opt,name=force_leader,json=forceLeader" json:"force_leader,omitempty"` // Step is an increasing number to note the round of recovery, // It should be filled in the corresponding store report. - Step uint64 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } -func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } -func (*RecoveryPlan) ProtoMessage() {} -func (*RecoveryPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{72} -} -func (m *RecoveryPlan) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoveryPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoveryPlan.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 *RecoveryPlan) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoveryPlan.Merge(m, src) -} -func (m *RecoveryPlan) XXX_Size() int { - return m.Size() -} -func (m *RecoveryPlan) XXX_DiscardUnknown() { - xxx_messageInfo_RecoveryPlan.DiscardUnknown(m) + Step uint64 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` } -var xxx_messageInfo_RecoveryPlan proto.InternalMessageInfo +func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } +func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } +func (*RecoveryPlan) ProtoMessage() {} +func (*RecoveryPlan) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{72} } func (m *RecoveryPlan) GetCreates() []*metapb.Region { if m != nil { @@ -5072,7 +2921,6 @@ func (m *RecoveryPlan) GetCreates() []*metapb.Region { return nil } -// Deprecated: Do not use. func (m *RecoveryPlan) GetUpdates() []*metapb.Region { if m != nil { return m.Updates @@ -5110,44 +2958,13 @@ func (m *RecoveryPlan) GetStep() uint64 { type AwakenRegions struct { // Awake all regions if abnormal_stores is empty. - AbnormalStores []uint64 `protobuf:"varint,1,rep,packed,name=abnormal_stores,json=abnormalStores,proto3" json:"abnormal_stores,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AwakenRegions) Reset() { *m = AwakenRegions{} } -func (m *AwakenRegions) String() string { return proto.CompactTextString(m) } -func (*AwakenRegions) ProtoMessage() {} -func (*AwakenRegions) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{73} -} -func (m *AwakenRegions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AwakenRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AwakenRegions.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 *AwakenRegions) XXX_Merge(src proto.Message) { - xxx_messageInfo_AwakenRegions.Merge(m, src) -} -func (m *AwakenRegions) XXX_Size() int { - return m.Size() -} -func (m *AwakenRegions) XXX_DiscardUnknown() { - xxx_messageInfo_AwakenRegions.DiscardUnknown(m) + AbnormalStores []uint64 `protobuf:"varint,1,rep,packed,name=abnormal_stores,json=abnormalStores" json:"abnormal_stores,omitempty"` } -var xxx_messageInfo_AwakenRegions proto.InternalMessageInfo +func (m *AwakenRegions) Reset() { *m = AwakenRegions{} } +func (m *AwakenRegions) String() string { return proto.CompactTextString(m) } +func (*AwakenRegions) ProtoMessage() {} +func (*AwakenRegions) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{73} } func (m *AwakenRegions) GetAbnormalStores() []uint64 { if m != nil { @@ -5157,44 +2974,13 @@ func (m *AwakenRegions) GetAbnormalStores() []uint64 { } type ControlGrpc struct { - CtrlEvent ControlGrpcEvent `protobuf:"varint,1,opt,name=ctrl_event,json=ctrlEvent,proto3,enum=pdpb.ControlGrpcEvent" json:"ctrl_event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ControlGrpc) Reset() { *m = ControlGrpc{} } -func (m *ControlGrpc) String() string { return proto.CompactTextString(m) } -func (*ControlGrpc) ProtoMessage() {} -func (*ControlGrpc) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{74} -} -func (m *ControlGrpc) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControlGrpc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ControlGrpc.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 *ControlGrpc) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControlGrpc.Merge(m, src) -} -func (m *ControlGrpc) XXX_Size() int { - return m.Size() -} -func (m *ControlGrpc) XXX_DiscardUnknown() { - xxx_messageInfo_ControlGrpc.DiscardUnknown(m) + CtrlEvent ControlGrpcEvent `protobuf:"varint,1,opt,name=ctrl_event,json=ctrlEvent,proto3,enum=pdpb.ControlGrpcEvent" json:"ctrl_event,omitempty"` } -var xxx_messageInfo_ControlGrpc proto.InternalMessageInfo +func (m *ControlGrpc) Reset() { *m = ControlGrpc{} } +func (m *ControlGrpc) String() string { return proto.CompactTextString(m) } +func (*ControlGrpc) ProtoMessage() {} +func (*ControlGrpc) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{74} } func (m *ControlGrpc) GetCtrlEvent() ControlGrpcEvent { if m != nil { @@ -5204,57 +2990,26 @@ func (m *ControlGrpc) GetCtrlEvent() ControlGrpcEvent { } type StoreHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` ClusterVersion string `protobuf:"bytes,3,opt,name=cluster_version,json=clusterVersion,proto3" json:"cluster_version,omitempty"` // Used by online unsafe recovery to request store report. // Now it's substituted by reusing recovery_plan field. PD will send a empty // recovery plan instead to request store report. - RequireDetailedReport bool `protobuf:"varint,4,opt,name=require_detailed_report,json=requireDetailedReport,proto3" json:"require_detailed_report,omitempty"` // Deprecated: Do not use. + RequireDetailedReport bool `protobuf:"varint,4,opt,name=require_detailed_report,json=requireDetailedReport,proto3" json:"require_detailed_report,omitempty"` // Operations of recovery. After the plan is executed, TiKV should attach the // store report in store heartbeat. - RecoveryPlan *RecoveryPlan `protobuf:"bytes,5,opt,name=recovery_plan,json=recoveryPlan,proto3" json:"recovery_plan,omitempty"` + RecoveryPlan *RecoveryPlan `protobuf:"bytes,5,opt,name=recovery_plan,json=recoveryPlan" json:"recovery_plan,omitempty"` // Pd can return awaken_regions to let TiKV awaken hibernated regions itself. - AwakenRegions *AwakenRegions `protobuf:"bytes,6,opt,name=awaken_regions,json=awakenRegions,proto3" json:"awaken_regions,omitempty"` + AwakenRegions *AwakenRegions `protobuf:"bytes,6,opt,name=awaken_regions,json=awakenRegions" json:"awaken_regions,omitempty"` // Pd can return operations to let TiKV forcely PAUSE | RESUME grpc server. - ControlGrpc *ControlGrpc `protobuf:"bytes,7,opt,name=control_grpc,json=controlGrpc,proto3" json:"control_grpc,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} } -func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } -func (*StoreHeartbeatResponse) ProtoMessage() {} -func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{75} -} -func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreHeartbeatResponse.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 *StoreHeartbeatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreHeartbeatResponse.Merge(m, src) -} -func (m *StoreHeartbeatResponse) XXX_Size() int { - return m.Size() -} -func (m *StoreHeartbeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StoreHeartbeatResponse.DiscardUnknown(m) + ControlGrpc *ControlGrpc `protobuf:"bytes,7,opt,name=control_grpc,json=controlGrpc" json:"control_grpc,omitempty"` } -var xxx_messageInfo_StoreHeartbeatResponse proto.InternalMessageInfo +func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} } +func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } +func (*StoreHeartbeatResponse) ProtoMessage() {} +func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{75} } func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5277,7 +3032,6 @@ func (m *StoreHeartbeatResponse) GetClusterVersion() string { return "" } -// Deprecated: Do not use. func (m *StoreHeartbeatResponse) GetRequireDetailedReport() bool { if m != nil { return m.RequireDetailedReport @@ -5307,56 +3061,25 @@ func (m *StoreHeartbeatResponse) GetControlGrpc() *ControlGrpc { } type ScatterRegionRequest 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"` // Deprecated: Do not use. + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // PD will use these region information if it can't find the region. // For example, the region is just split and hasn't report to PD yet. - Region *metapb.Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,4,opt,name=leader,proto3" json:"leader,omitempty"` + Region *metapb.Region `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,4,opt,name=leader" json:"leader,omitempty"` // If group is defined, the regions with the same group would be scattered as a whole group. // If not defined, the regions would be scattered in a cluster level. Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"` // If regions_id is defined, the region_id would be ignored. - RegionsId []uint64 `protobuf:"varint,6,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` - RetryLimit uint64 `protobuf:"varint,7,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` - SkipStoreLimit bool `protobuf:"varint,8,opt,name=skip_store_limit,json=skipStoreLimit,proto3" json:"skip_store_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } -func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } -func (*ScatterRegionRequest) ProtoMessage() {} -func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{76} -} -func (m *ScatterRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScatterRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScatterRegionRequest.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 *ScatterRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScatterRegionRequest.Merge(m, src) -} -func (m *ScatterRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *ScatterRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScatterRegionRequest.DiscardUnknown(m) + RegionsId []uint64 `protobuf:"varint,6,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` + RetryLimit uint64 `protobuf:"varint,7,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` + SkipStoreLimit bool `protobuf:"varint,8,opt,name=skip_store_limit,json=skipStoreLimit,proto3" json:"skip_store_limit,omitempty"` } -var xxx_messageInfo_ScatterRegionRequest proto.InternalMessageInfo +func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } +func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } +func (*ScatterRegionRequest) ProtoMessage() {} +func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{76} } func (m *ScatterRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -5365,7 +3088,6 @@ func (m *ScatterRegionRequest) GetHeader() *RequestHeader { return nil } -// Deprecated: Do not use. func (m *ScatterRegionRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -5416,45 +3138,14 @@ func (m *ScatterRegionRequest) GetSkipStoreLimit() bool { } type ScatterRegionResponse 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } -func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } -func (*ScatterRegionResponse) ProtoMessage() {} -func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{77} -} -func (m *ScatterRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScatterRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScatterRegionResponse.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 *ScatterRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScatterRegionResponse.Merge(m, src) -} -func (m *ScatterRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *ScatterRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScatterRegionResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + FinishedPercentage uint64 `protobuf:"varint,2,opt,name=finished_percentage,json=finishedPercentage,proto3" json:"finished_percentage,omitempty"` } -var xxx_messageInfo_ScatterRegionResponse proto.InternalMessageInfo +func (m *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } +func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } +func (*ScatterRegionResponse) ProtoMessage() {} +func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{77} } func (m *ScatterRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5471,44 +3162,13 @@ func (m *ScatterRegionResponse) GetFinishedPercentage() uint64 { } type GetGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } -func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointRequest) ProtoMessage() {} -func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{78} -} -func (m *GetGCSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGCSafePointRequest.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 *GetGCSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGCSafePointRequest.Merge(m, src) -} -func (m *GetGCSafePointRequest) XXX_Size() int { - return m.Size() -} -func (m *GetGCSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetGCSafePointRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetGCSafePointRequest proto.InternalMessageInfo +func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } +func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointRequest) ProtoMessage() {} +func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{78} } func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -5518,45 +3178,14 @@ func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { } type GetGCSafePointResponse struct { - Header *ResponseHeader `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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} } -func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointResponse) ProtoMessage() {} -func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{79} -} -func (m *GetGCSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGCSafePointResponse.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 *GetGCSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGCSafePointResponse.Merge(m, src) -} -func (m *GetGCSafePointResponse) XXX_Size() int { - return m.Size() -} -func (m *GetGCSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetGCSafePointResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } -var xxx_messageInfo_GetGCSafePointResponse proto.InternalMessageInfo +func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} } +func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointResponse) ProtoMessage() {} +func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{79} } func (m *GetGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5573,45 +3202,14 @@ 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{80} -} -func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointRequest.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 *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointRequest.Merge(m, src) -} -func (m *UpdateGCSafePointRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateGCSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } -var xxx_messageInfo_UpdateGCSafePointRequest proto.InternalMessageInfo +func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } +func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointRequest) ProtoMessage() {} +func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{80} } func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -5628,45 +3226,14 @@ func (m *UpdateGCSafePointRequest) GetSafePoint() uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } -func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointResponse) ProtoMessage() {} -func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{81} -} -func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointResponse.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 *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointResponse.Merge(m, src) -} -func (m *UpdateGCSafePointResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateGCSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + NewSafePoint uint64 `protobuf:"varint,2,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` } -var xxx_messageInfo_UpdateGCSafePointResponse proto.InternalMessageInfo +func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } +func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointResponse) ProtoMessage() {} +func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{81} } func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5683,47 +3250,18 @@ func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { } type UpdateServiceGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` - SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` + SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } func (m *UpdateServiceGCSafePointRequest) Reset() { *m = UpdateServiceGCSafePointRequest{} } func (m *UpdateServiceGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointRequest) ProtoMessage() {} func (*UpdateServiceGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{82} -} -func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateServiceGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceGCSafePointRequest.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 *UpdateServiceGCSafePointRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceGCSafePointRequest.Merge(m, src) -} -func (m *UpdateServiceGCSafePointRequest) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{82} } -func (m *UpdateServiceGCSafePointRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceGCSafePointRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateServiceGCSafePointRequest proto.InternalMessageInfo func (m *UpdateServiceGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -5754,48 +3292,19 @@ func (m *UpdateServiceGCSafePointRequest) GetSafePoint() uint64 { } type UpdateServiceGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` - MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` + MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` } func (m *UpdateServiceGCSafePointResponse) Reset() { *m = UpdateServiceGCSafePointResponse{} } func (m *UpdateServiceGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointResponse) ProtoMessage() {} func (*UpdateServiceGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{83} -} -func (m *UpdateServiceGCSafePointResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateServiceGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceGCSafePointResponse.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 *UpdateServiceGCSafePointResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceGCSafePointResponse.Merge(m, src) -} -func (m *UpdateServiceGCSafePointResponse) XXX_Size() int { - return m.Size() -} -func (m *UpdateServiceGCSafePointResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceGCSafePointResponse.DiscardUnknown(m) + return fileDescriptorPdpb, []int{83} } -var xxx_messageInfo_UpdateServiceGCSafePointResponse proto.InternalMessageInfo - func (m *UpdateServiceGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -5825,45 +3334,14 @@ func (m *UpdateServiceGCSafePointResponse) GetMinSafePoint() uint64 { } type GetGCSafePointV2Request 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{84} -} -func (m *GetGCSafePointV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGCSafePointV2Request.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 *GetGCSafePointV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGCSafePointV2Request.Merge(m, src) -} -func (m *GetGCSafePointV2Request) XXX_Size() int { - return m.Size() -} -func (m *GetGCSafePointV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_GetGCSafePointV2Request.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` } -var xxx_messageInfo_GetGCSafePointV2Request proto.InternalMessageInfo +func (m *GetGCSafePointV2Request) Reset() { *m = GetGCSafePointV2Request{} } +func (m *GetGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointV2Request) ProtoMessage() {} +func (*GetGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{84} } func (m *GetGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -5880,45 +3358,14 @@ func (m *GetGCSafePointV2Request) GetKeyspaceId() uint32 { } type GetGCSafePointV2Response struct { - Header *ResponseHeader `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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Response{} } -func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointV2Response) ProtoMessage() {} -func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{85} -} -func (m *GetGCSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetGCSafePointV2Response.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 *GetGCSafePointV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetGCSafePointV2Response.Merge(m, src) -} -func (m *GetGCSafePointV2Response) XXX_Size() int { - return m.Size() -} -func (m *GetGCSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_GetGCSafePointV2Response.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } -var xxx_messageInfo_GetGCSafePointV2Response proto.InternalMessageInfo +func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Response{} } +func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointV2Response) ProtoMessage() {} +func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{85} } func (m *GetGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -5935,45 +3382,14 @@ func (m *GetGCSafePointV2Response) GetSafePoint() uint64 { } type WatchGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Request{} } -func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*WatchGCSafePointV2Request) ProtoMessage() {} -func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{86} -} -func (m *WatchGCSafePointV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchGCSafePointV2Request.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 *WatchGCSafePointV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchGCSafePointV2Request.Merge(m, src) -} -func (m *WatchGCSafePointV2Request) XXX_Size() int { - return m.Size() -} -func (m *WatchGCSafePointV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_WatchGCSafePointV2Request.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_WatchGCSafePointV2Request proto.InternalMessageInfo +func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Request{} } +func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*WatchGCSafePointV2Request) ProtoMessage() {} +func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{86} } func (m *WatchGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -5991,46 +3407,15 @@ func (m *WatchGCSafePointV2Request) GetRevision() int64 { // SafePointEvent is for the rpc WatchGCSafePointV2. type SafePointEvent struct { - KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=pdpb.EventType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{87} -} -func (m *SafePointEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SafePointEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SafePointEvent.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 *SafePointEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_SafePointEvent.Merge(m, src) -} -func (m *SafePointEvent) XXX_Size() int { - return m.Size() -} -func (m *SafePointEvent) XXX_DiscardUnknown() { - xxx_messageInfo_SafePointEvent.DiscardUnknown(m) + KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=pdpb.EventType" json:"type,omitempty"` } -var xxx_messageInfo_SafePointEvent proto.InternalMessageInfo +func (m *SafePointEvent) Reset() { *m = SafePointEvent{} } +func (m *SafePointEvent) String() string { return proto.CompactTextString(m) } +func (*SafePointEvent) ProtoMessage() {} +func (*SafePointEvent) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{87} } func (m *SafePointEvent) GetKeyspaceId() uint32 { if m != nil { @@ -6054,46 +3439,15 @@ func (m *SafePointEvent) GetType() EventType { } type WatchGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Events []*SafePointEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Response{} } -func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } -func (*WatchGCSafePointV2Response) ProtoMessage() {} -func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{88} -} -func (m *WatchGCSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WatchGCSafePointV2Response.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 *WatchGCSafePointV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchGCSafePointV2Response.Merge(m, src) -} -func (m *WatchGCSafePointV2Response) XXX_Size() int { - return m.Size() -} -func (m *WatchGCSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_WatchGCSafePointV2Response.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Events []*SafePointEvent `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` } -var xxx_messageInfo_WatchGCSafePointV2Response proto.InternalMessageInfo +func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Response{} } +func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } +func (*WatchGCSafePointV2Response) ProtoMessage() {} +func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{88} } func (m *WatchGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6117,46 +3471,15 @@ func (m *WatchGCSafePointV2Response) GetRevision() int64 { } type UpdateGCSafePointV2Request 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"` - SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2Request{} } -func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointV2Request) ProtoMessage() {} -func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{89} -} -func (m *UpdateGCSafePointV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointV2Request.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 *UpdateGCSafePointV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointV2Request.Merge(m, src) -} -func (m *UpdateGCSafePointV2Request) XXX_Size() int { - return m.Size() -} -func (m *UpdateGCSafePointV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointV2Request.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` } -var xxx_messageInfo_UpdateGCSafePointV2Request proto.InternalMessageInfo +func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2Request{} } +func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointV2Request) ProtoMessage() {} +func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{89} } func (m *UpdateGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6180,45 +3503,16 @@ func (m *UpdateGCSafePointV2Request) GetSafePoint() uint64 { } type UpdateGCSafePointV2Response 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + NewSafePoint uint64 `protobuf:"varint,2,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` } func (m *UpdateGCSafePointV2Response) Reset() { *m = UpdateGCSafePointV2Response{} } func (m *UpdateGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Response) ProtoMessage() {} func (*UpdateGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{90} -} -func (m *UpdateGCSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGCSafePointV2Response.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 *UpdateGCSafePointV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGCSafePointV2Response.Merge(m, src) -} -func (m *UpdateGCSafePointV2Response) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{90} } -func (m *UpdateGCSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGCSafePointV2Response.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateGCSafePointV2Response proto.InternalMessageInfo func (m *UpdateGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6235,7 +3529,7 @@ func (m *UpdateGCSafePointV2Response) GetNewSafePoint() uint64 { } type UpdateServiceSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` ServiceId []byte `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` @@ -6244,45 +3538,16 @@ type UpdateServiceSafePointV2Request struct { // pass in MAX_INT64 to set a safe point that never expire. // This should be set by component that may crash unexpectedly so that it doesn't block // cluster garbage collection. - Ttl int64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Ttl int64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` } func (m *UpdateServiceSafePointV2Request) Reset() { *m = UpdateServiceSafePointV2Request{} } func (m *UpdateServiceSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Request) ProtoMessage() {} func (*UpdateServiceSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{91} -} -func (m *UpdateServiceSafePointV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateServiceSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceSafePointV2Request.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 *UpdateServiceSafePointV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceSafePointV2Request.Merge(m, src) -} -func (m *UpdateServiceSafePointV2Request) XXX_Size() int { - return m.Size() -} -func (m *UpdateServiceSafePointV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceSafePointV2Request.DiscardUnknown(m) + return fileDescriptorPdpb, []int{91} } -var xxx_messageInfo_UpdateServiceSafePointV2Request proto.InternalMessageInfo - func (m *UpdateServiceSafePointV2Request) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -6319,47 +3584,18 @@ func (m *UpdateServiceSafePointV2Request) GetTtl() int64 { } type UpdateServiceSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` - MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` } func (m *UpdateServiceSafePointV2Response) Reset() { *m = UpdateServiceSafePointV2Response{} } func (m *UpdateServiceSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Response) ProtoMessage() {} func (*UpdateServiceSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{92} -} -func (m *UpdateServiceSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{92} } -func (m *UpdateServiceSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateServiceSafePointV2Response.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 *UpdateServiceSafePointV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateServiceSafePointV2Response.Merge(m, src) -} -func (m *UpdateServiceSafePointV2Response) XXX_Size() int { - return m.Size() -} -func (m *UpdateServiceSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceSafePointV2Response.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateServiceSafePointV2Response proto.InternalMessageInfo func (m *UpdateServiceSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6390,44 +3626,13 @@ func (m *UpdateServiceSafePointV2Response) GetMinSafePoint() uint64 { } type GetAllGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2Request{} } -func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*GetAllGCSafePointV2Request) ProtoMessage() {} -func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{93} -} -func (m *GetAllGCSafePointV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllGCSafePointV2Request.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 *GetAllGCSafePointV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllGCSafePointV2Request.Merge(m, src) -} -func (m *GetAllGCSafePointV2Request) XXX_Size() int { - return m.Size() -} -func (m *GetAllGCSafePointV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllGCSafePointV2Request.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetAllGCSafePointV2Request proto.InternalMessageInfo +func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2Request{} } +func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*GetAllGCSafePointV2Request) ProtoMessage() {} +func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{93} } func (m *GetAllGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6437,45 +3642,14 @@ func (m *GetAllGCSafePointV2Request) GetHeader() *RequestHeader { } type GCSafePointV2 struct { - KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{94} -} -func (m *GCSafePointV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GCSafePointV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GCSafePointV2.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 *GCSafePointV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_GCSafePointV2.Merge(m, src) -} -func (m *GCSafePointV2) XXX_Size() int { - return m.Size() -} -func (m *GCSafePointV2) XXX_DiscardUnknown() { - xxx_messageInfo_GCSafePointV2.DiscardUnknown(m) + KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` } -var xxx_messageInfo_GCSafePointV2 proto.InternalMessageInfo +func (m *GCSafePointV2) Reset() { *m = GCSafePointV2{} } +func (m *GCSafePointV2) String() string { return proto.CompactTextString(m) } +func (*GCSafePointV2) ProtoMessage() {} +func (*GCSafePointV2) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{94} } func (m *GCSafePointV2) GetKeyspaceId() uint32 { if m != nil { @@ -6492,47 +3666,18 @@ func (m *GCSafePointV2) GetGcSafePoint() uint64 { } type GetAllGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - GcSafePoints []*GCSafePointV2 `protobuf:"bytes,2,rep,name=gc_safe_points,json=gcSafePoints,proto3" json:"gc_safe_points,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + GcSafePoints []*GCSafePointV2 `protobuf:"bytes,2,rep,name=gc_safe_points,json=gcSafePoints" json:"gc_safe_points,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` } func (m *GetAllGCSafePointV2Response) Reset() { *m = GetAllGCSafePointV2Response{} } func (m *GetAllGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Response) ProtoMessage() {} func (*GetAllGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{95} -} -func (m *GetAllGCSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAllGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAllGCSafePointV2Response.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 *GetAllGCSafePointV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAllGCSafePointV2Response.Merge(m, src) -} -func (m *GetAllGCSafePointV2Response) XXX_Size() int { - return m.Size() -} -func (m *GetAllGCSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_GetAllGCSafePointV2Response.DiscardUnknown(m) + return fileDescriptorPdpb, []int{95} } -var xxx_messageInfo_GetAllGCSafePointV2Response proto.InternalMessageInfo - func (m *GetAllGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -6559,45 +3704,14 @@ type RegionStat struct { 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{96} -} -func (m *RegionStat) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionStat.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 *RegionStat) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionStat.Merge(m, src) -} -func (m *RegionStat) XXX_Size() int { - return m.Size() -} -func (m *RegionStat) XXX_DiscardUnknown() { - xxx_messageInfo_RegionStat.DiscardUnknown(m) + 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"` } -var xxx_messageInfo_RegionStat proto.InternalMessageInfo +func (m *RegionStat) Reset() { *m = RegionStat{} } +func (m *RegionStat) String() string { return proto.CompactTextString(m) } +func (*RegionStat) ProtoMessage() {} +func (*RegionStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{96} } func (m *RegionStat) GetBytesWritten() uint64 { if m != nil { @@ -6628,48 +3742,17 @@ func (m *RegionStat) GetKeysRead() uint64 { } 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Member *Member `protobuf:"bytes,2,opt,name=member" 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{97} -} -func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncRegionRequest.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 *SyncRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncRegionRequest.Merge(m, src) -} -func (m *SyncRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *SyncRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncRegionRequest.DiscardUnknown(m) + StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` } -var xxx_messageInfo_SyncRegionRequest proto.InternalMessageInfo +func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } +func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } +func (*SyncRegionRequest) ProtoMessage() {} +func (*SyncRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{97} } func (m *SyncRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -6693,44 +3776,13 @@ func (m *SyncRegionRequest) GetStartIndex() uint64 { } type PeersStats struct { - Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{98} -} -func (m *PeersStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeersStats.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 *PeersStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeersStats.Merge(m, src) -} -func (m *PeersStats) XXX_Size() int { - return m.Size() -} -func (m *PeersStats) XXX_DiscardUnknown() { - xxx_messageInfo_PeersStats.DiscardUnknown(m) + Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` } -var xxx_messageInfo_PeersStats proto.InternalMessageInfo +func (m *PeersStats) Reset() { *m = PeersStats{} } +func (m *PeersStats) String() string { return proto.CompactTextString(m) } +func (*PeersStats) ProtoMessage() {} +func (*PeersStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{98} } func (m *PeersStats) GetPeers() []*PeerStats { if m != nil { @@ -6740,44 +3792,13 @@ func (m *PeersStats) GetPeers() []*PeerStats { } type Peers struct { - Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{99} -} -func (m *Peers) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Peers.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 *Peers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Peers.Merge(m, src) -} -func (m *Peers) XXX_Size() int { - return m.Size() -} -func (m *Peers) XXX_DiscardUnknown() { - xxx_messageInfo_Peers.DiscardUnknown(m) + Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` } -var xxx_messageInfo_Peers proto.InternalMessageInfo +func (m *Peers) Reset() { *m = Peers{} } +func (m *Peers) String() string { return proto.CompactTextString(m) } +func (*Peers) ProtoMessage() {} +func (*Peers) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{99} } func (m *Peers) GetPeers() []*metapb.Peer { if m != nil { @@ -6787,54 +3808,23 @@ func (m *Peers) GetPeers() []*metapb.Peer { } type SyncRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` + Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions" 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"` + RegionStats []*RegionStat `protobuf:"bytes,4,rep,name=region_stats,json=regionStats" json:"region_stats,omitempty"` + RegionLeaders []*metapb.Peer `protobuf:"bytes,5,rep,name=region_leaders,json=regionLeaders" 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{100} -} -func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncRegionResponse.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 *SyncRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncRegionResponse.Merge(m, src) -} -func (m *SyncRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *SyncRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncRegionResponse.DiscardUnknown(m) + Buckets []*metapb.Buckets `protobuf:"bytes,6,rep,name=buckets" json:"buckets,omitempty"` + DownPeers []*PeersStats `protobuf:"bytes,16,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` + PendingPeers []*Peers `protobuf:"bytes,17,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` } -var xxx_messageInfo_SyncRegionResponse proto.InternalMessageInfo +func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } +func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } +func (*SyncRegionResponse) ProtoMessage() {} +func (*SyncRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{100} } func (m *SyncRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -6893,45 +3883,14 @@ func (m *SyncRegionResponse) GetPendingPeers() []*Peers { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{101} -} -func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetOperatorRequest.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 *GetOperatorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOperatorRequest.Merge(m, src) -} -func (m *GetOperatorRequest) XXX_Size() int { - return m.Size() -} -func (m *GetOperatorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetOperatorRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_GetOperatorRequest proto.InternalMessageInfo +func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } +func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } +func (*GetOperatorRequest) ProtoMessage() {} +func (*GetOperatorRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{101} } func (m *GetOperatorRequest) GetHeader() *RequestHeader { if m != nil { @@ -6948,48 +3907,17 @@ func (m *GetOperatorRequest) GetRegionId() uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{102} -} -func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetOperatorResponse.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 *GetOperatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOperatorResponse.Merge(m, src) -} -func (m *GetOperatorResponse) XXX_Size() int { - return m.Size() -} -func (m *GetOperatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetOperatorResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` } -var xxx_messageInfo_GetOperatorResponse proto.InternalMessageInfo +func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } +func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*GetOperatorResponse) ProtoMessage() {} +func (*GetOperatorResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{102} } func (m *GetOperatorResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7027,47 +3955,16 @@ func (m *GetOperatorResponse) GetKind() []byte { } 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + MaxTs *Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs" 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{103} -} -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_SyncMaxTSRequest.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 *SyncMaxTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncMaxTSRequest.Merge(m, src) -} -func (m *SyncMaxTSRequest) XXX_Size() int { - return m.Size() -} -func (m *SyncMaxTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncMaxTSRequest.DiscardUnknown(m) + SkipCheck bool `protobuf:"varint,3,opt,name=skip_check,json=skipCheck,proto3" json:"skip_check,omitempty"` } -var xxx_messageInfo_SyncMaxTSRequest proto.InternalMessageInfo +func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } +func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } +func (*SyncMaxTSRequest) ProtoMessage() {} +func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{103} } func (m *SyncMaxTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -7091,46 +3988,15 @@ func (m *SyncMaxTSRequest) GetSkipCheck() bool { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{104} -} -func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SyncMaxTSResponse.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 *SyncMaxTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncMaxTSResponse.Merge(m, src) -} -func (m *SyncMaxTSResponse) XXX_Size() int { - return m.Size() -} -func (m *SyncMaxTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncMaxTSResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + MaxLocalTs *Timestamp `protobuf:"bytes,2,opt,name=max_local_ts,json=maxLocalTs" json:"max_local_ts,omitempty"` + SyncedDcs []string `protobuf:"bytes,3,rep,name=synced_dcs,json=syncedDcs" json:"synced_dcs,omitempty"` } -var xxx_messageInfo_SyncMaxTSResponse proto.InternalMessageInfo +func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } +func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } +func (*SyncMaxTSResponse) ProtoMessage() {} +func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{104} } func (m *SyncMaxTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7154,46 +4020,15 @@ func (m *SyncMaxTSResponse) GetSyncedDcs() []string { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{105} -} -func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRegionsRequest.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 *SplitRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionsRequest.Merge(m, src) -} -func (m *SplitRegionsRequest) XXX_Size() int { - return m.Size() -} -func (m *SplitRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionsRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys" json:"split_keys,omitempty"` + RetryLimit uint64 `protobuf:"varint,3,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` } -var xxx_messageInfo_SplitRegionsRequest proto.InternalMessageInfo +func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } +func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRegionsRequest) ProtoMessage() {} +func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{105} } func (m *SplitRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7217,46 +4052,15 @@ func (m *SplitRegionsRequest) GetRetryLimit() uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{106} -} -func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRegionsResponse.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 *SplitRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionsResponse.Merge(m, src) -} -func (m *SplitRegionsResponse) XXX_Size() int { - return m.Size() -} -func (m *SplitRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionsResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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" json:"regions_id,omitempty"` } -var xxx_messageInfo_SplitRegionsResponse proto.InternalMessageInfo +func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } +func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*SplitRegionsResponse) ProtoMessage() {} +func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{106} } func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7280,47 +4084,18 @@ func (m *SplitRegionsResponse) GetRegionsId() []uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys" 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 *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{107} -} -func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{107} } -func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitAndScatterRegionsRequest.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) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitAndScatterRegionsRequest.Merge(m, src) -} -func (m *SplitAndScatterRegionsRequest) XXX_Size() int { - return m.Size() -} -func (m *SplitAndScatterRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitAndScatterRegionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SplitAndScatterRegionsRequest proto.InternalMessageInfo func (m *SplitAndScatterRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7351,48 +4126,19 @@ func (m *SplitAndScatterRegionsRequest) GetRetryLimit() uint64 { } type SplitAndScatterRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionsId []uint64 `protobuf:"varint,4,rep,packed,name=regions_id,json=regionsId" json:"regions_id,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{108} -} -func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitAndScatterRegionsResponse.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) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitAndScatterRegionsResponse.Merge(m, src) -} -func (m *SplitAndScatterRegionsResponse) XXX_Size() int { - return m.Size() -} -func (m *SplitAndScatterRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitAndScatterRegionsResponse.DiscardUnknown(m) + return fileDescriptorPdpb, []int{108} } -var xxx_messageInfo_SplitAndScatterRegionsResponse proto.InternalMessageInfo - func (m *SplitAndScatterRegionsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -7422,45 +4168,14 @@ func (m *SplitAndScatterRegionsResponse) GetRegionsId() []uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{109} -} -func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDCLocationInfoRequest.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 *GetDCLocationInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDCLocationInfoRequest.Merge(m, src) -} -func (m *GetDCLocationInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *GetDCLocationInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDCLocationInfoRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -var xxx_messageInfo_GetDCLocationInfoRequest proto.InternalMessageInfo +func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoRequest{} } +func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetDCLocationInfoRequest) ProtoMessage() {} +func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{109} } func (m *GetDCLocationInfoRequest) GetHeader() *RequestHeader { if m != nil { @@ -7477,49 +4192,18 @@ func (m *GetDCLocationInfoRequest) GetDcLocation() string { } type GetDCLocationInfoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{110} -} -func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetDCLocationInfoResponse.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 *GetDCLocationInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDCLocationInfoResponse.Merge(m, src) -} -func (m *GetDCLocationInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *GetDCLocationInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDCLocationInfoResponse.DiscardUnknown(m) + MaxTs *Timestamp `protobuf:"bytes,3,opt,name=max_ts,json=maxTs" json:"max_ts,omitempty"` } -var xxx_messageInfo_GetDCLocationInfoResponse proto.InternalMessageInfo +func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResponse{} } +func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetDCLocationInfoResponse) ProtoMessage() {} +func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{110} } func (m *GetDCLocationInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7543,54 +4227,23 @@ func (m *GetDCLocationInfoResponse) GetMaxTs() *Timestamp { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{111} -} -func (m *QueryStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryStats.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 *QueryStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStats.Merge(m, src) -} -func (m *QueryStats) XXX_Size() int { - return m.Size() -} -func (m *QueryStats) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStats.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryStats proto.InternalMessageInfo + 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 fileDescriptorPdpb, []int{111} } func (m *QueryStats) GetGC() uint64 { if m != nil { @@ -7670,46 +4323,15 @@ func (m *QueryStats) GetRollback() uint64 { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{112} -} -func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } -} -func (m *ReportBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBucketsRequest.Merge(m, src) -} -func (m *ReportBucketsRequest) XXX_Size() int { - return m.Size() -} -func (m *ReportBucketsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBucketsRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + Buckets *metapb.Buckets `protobuf:"bytes,3,opt,name=buckets" json:"buckets,omitempty"` } -var xxx_messageInfo_ReportBucketsRequest proto.InternalMessageInfo +func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } +func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } +func (*ReportBucketsRequest) ProtoMessage() {} +func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{112} } func (m *ReportBucketsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7733,44 +4355,13 @@ func (m *ReportBucketsRequest) GetBuckets() *metapb.Buckets { } type ReportBucketsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{113} -} -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 - } -} -func (m *ReportBucketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBucketsResponse.Merge(m, src) -} -func (m *ReportBucketsResponse) XXX_Size() int { - return m.Size() -} -func (m *ReportBucketsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBucketsResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_ReportBucketsResponse proto.InternalMessageInfo +func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } +func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } +func (*ReportBucketsResponse) ProtoMessage() {} +func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{113} } func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7780,46 +4371,17 @@ func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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 *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{114} -} -func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } -} -func (m *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportMinResolvedTsRequest.Merge(m, src) -} -func (m *ReportMinResolvedTsRequest) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{114} } -func (m *ReportMinResolvedTsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportMinResolvedTsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReportMinResolvedTsRequest proto.InternalMessageInfo func (m *ReportMinResolvedTsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7843,92 +4405,34 @@ func (m *ReportMinResolvedTsRequest) GetMinResolvedTs() uint64 { } type ReportMinResolvedTsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,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{115} + return fileDescriptorPdpb, []int{115} } -func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } -} -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) -} - -var xxx_messageInfo_ReportMinResolvedTsResponse proto.InternalMessageInfo - -func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { - if m != nil { - return m.Header - } - return nil + +func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { + 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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{116} -} -func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{116} } -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 *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 { if m != nil { @@ -7945,45 +4449,16 @@ func (m *SetExternalTimestampRequest) GetTimestamp() uint64 { } type SetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } 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{117} -} -func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } -} -func (m *SetExternalTimestampResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetExternalTimestampResponse.Merge(m, src) -} -func (m *SetExternalTimestampResponse) XXX_Size() int { - return m.Size() -} -func (m *SetExternalTimestampResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetExternalTimestampResponse.DiscardUnknown(m) + return fileDescriptorPdpb, []int{117} } -var xxx_messageInfo_SetExternalTimestampResponse proto.InternalMessageInfo - func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -7992,44 +4467,15 @@ func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { } type GetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } 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{118} -} -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 *GetExternalTimestampRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetExternalTimestampRequest.Merge(m, src) -} -func (m *GetExternalTimestampRequest) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{118} } -func (m *GetExternalTimestampRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetExternalTimestampRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetExternalTimestampRequest proto.InternalMessageInfo func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { if m != nil { @@ -8039,46 +4485,17 @@ func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,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{119} -} -func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 - } -} -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) + return fileDescriptorPdpb, []int{119} } -var xxx_messageInfo_GetExternalTimestampResponse proto.InternalMessageInfo - func (m *GetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -8094,44 +4511,13 @@ func (m *GetExternalTimestampResponse) GetTimestamp() uint64 { } type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{120} -} -func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 (m *GetMinTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSRequest.Merge(m, src) -} -func (m *GetMinTSRequest) XXX_Size() int { - return m.Size() -} -func (m *GetMinTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` } -var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo +func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } +func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } +func (*GetMinTSRequest) ProtoMessage() {} +func (*GetMinTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{120} } func (m *GetMinTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -8141,45 +4527,14 @@ func (m *GetMinTSRequest) GetHeader() *RequestHeader { } 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{121} -} -func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 (m *GetMinTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSResponse.Merge(m, src) -} -func (m *GetMinTSResponse) XXX_Size() int { - return m.Size() -} -func (m *GetMinTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` } -var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo +func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } +func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } +func (*GetMinTSResponse) ProtoMessage() {} +func (*GetMinTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{121} } func (m *GetMinTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -8196,13 +4551,6 @@ func (m *GetMinTSResponse) GetTimestamp() *Timestamp { } 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") @@ -8243,7 +4591,6 @@ func init() { 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") @@ -8326,409 +4673,25 @@ func init() { proto.RegisterType((*GetExternalTimestampResponse)(nil), "pdpb.GetExternalTimestampResponse") proto.RegisterType((*GetMinTSRequest)(nil), "pdpb.GetMinTSRequest") proto.RegisterType((*GetMinTSResponse)(nil), "pdpb.GetMinTSResponse") + 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) } -func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } - -var fileDescriptor_78b27e6f04f44c6e = []byte{ - // 6138 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3c, 0x4d, 0x93, 0xe3, 0x48, - 0x56, 0x25, 0x7f, 0x54, 0xd9, 0xcf, 0x1f, 0xe5, 0xca, 0xae, 0xee, 0x72, 0xbb, 0x3f, 0x47, 0xdd, - 0xd3, 0xf4, 0xf4, 0xce, 0xf4, 0xcc, 0xf4, 0xcc, 0x2e, 0xb3, 0x03, 0x3b, 0x81, 0xab, 0xec, 0xae, - 0xf1, 0x74, 0x7d, 0x18, 0xd9, 0xd5, 0xb3, 0x03, 0x1b, 0x28, 0x54, 0x52, 0x56, 0x95, 0xb6, 0x6c, - 0xc9, 0xa3, 0x94, 0xab, 0xdb, 0x1b, 0x1c, 0x80, 0x5d, 0x3e, 0x36, 0xd8, 0x0d, 0x88, 0xe0, 0x6b, - 0x4f, 0x7b, 0x00, 0x02, 0x38, 0xc0, 0x85, 0x03, 0x01, 0x27, 0x6e, 0x04, 0x47, 0x2e, 0x44, 0x70, - 0x22, 0x36, 0x86, 0x13, 0x7f, 0x80, 0x0b, 0x1c, 0x88, 0xfc, 0x92, 0x25, 0x59, 0x76, 0x55, 0xab, - 0xa7, 0x37, 0xf6, 0x64, 0xeb, 0xe5, 0xcb, 0x97, 0x2f, 0x5f, 0xbe, 0x7c, 0xf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x73, 0x30, 0x26, 0x3e, 0xf6, 0x74, 0xdb, 0x62, 0x2c, - 0xe6, 0xb4, 0xa2, 0x80, 0x74, 0x2c, 0x74, 0x0d, 0x8a, 0x04, 0x3b, 0x16, 0x6f, 0xcd, 0xb0, 0xd6, - 0x02, 0x07, 0x74, 0x2c, 0x55, 0x83, 0x6a, 0x54, 0xdd, 0xce, 0xa3, 0x16, 0xcc, 0x2f, 0x33, 0x77, - 0xe5, 0x1f, 0x43, 0xbe, 0x2d, 0x27, 0xea, 0x4f, 0x46, 0x5c, 0x6a, 0xd3, 0x89, 0xd2, 0x26, 0x3e, - 0x51, 0xda, 0x48, 0x27, 0x3a, 0xc4, 0x84, 0x18, 0xc7, 0x52, 0x90, 0xf2, 0x51, 0x1d, 0x01, 0xf4, - 0x89, 0x2b, 0x95, 0xe6, 0x2b, 0xc1, 0x66, 0xe1, 0x3a, 0x77, 0x49, 0x6e, 0x96, 0x90, 0x28, 0xe4, - 0x5e, 0xa1, 0x6b, 0x63, 0xba, 0x63, 0xc7, 0x67, 0x24, 0x2b, 0x1a, 0x7f, 0xa0, 0x1a, 0x66, 0x99, - 0xfa, 0xc0, 0xe5, 0x76, 0x87, 0xad, 0x50, 0x51, 0x03, 0xcb, 0xdc, 0x11, 0x10, 0xf5, 0x10, 0x8a, - 0x7d, 0x7b, 0x88, 0x89, 0x6f, 0x0c, 0x47, 0x54, 0x49, 0x46, 0x27, 0x13, 0x62, 0x9b, 0xc6, 0x80, - 0x0d, 0x99, 0xd5, 0x82, 0x67, 0xca, 0xf4, 0xc0, 0x3d, 0x66, 0x4d, 0x5c, 0x7f, 0xe4, 0x23, 0x1d, - 0x83, 0x8c, 0x8f, 0x8e, 0xec, 0xe7, 0xfa, 0xa1, 0xed, 0x13, 0x36, 0x46, 0x45, 0x03, 0x0e, 0xda, - 0xb4, 0x7d, 0xa2, 0xfe, 0x86, 0x02, 0x25, 0x36, 0xad, 0x40, 0x73, 0xa3, 0xf3, 0x5a, 0x68, 0x04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0xfa, 0x17, 0x19, - 0x58, 0x0b, 0xf1, 0x90, 0x6a, 0xba, 0xd3, 0x13, 0x25, 0xb3, 0xe8, 0x44, 0x41, 0x77, 0x61, 0x79, - 0x10, 0x76, 0xac, 0xcb, 0x12, 0xaf, 0x8b, 0x29, 0x35, 0xde, 0x86, 0x1e, 0x02, 0x58, 0xee, 0x33, - 0x47, 0x1f, 0x61, 0xec, 0x91, 0x7a, 0x9e, 0x09, 0x50, 0x1c, 0x9b, 0x14, 0x8f, 0x6f, 0x95, 0x22, - 0x45, 0xa1, 0x8f, 0x04, 0xbd, 0x0b, 0x95, 0x11, 0x76, 0x2c, 0xdb, 0x39, 0x16, 0x5d, 0x96, 0x59, - 0x97, 0x28, 0xf1, 0xb2, 0x40, 0xe1, 0x5d, 0xde, 0x80, 0x15, 0x29, 0x92, 0x15, 0x71, 0x2c, 0x0b, - 0x64, 0x21, 0x16, 0x4d, 0xb6, 0x7f, 0x92, 0x2b, 0xe4, 0x6a, 0x79, 0xf5, 0xbb, 0x0a, 0xd3, 0x0b, - 0x3e, 0x9f, 0xcd, 0x49, 0x3a, 0x33, 0x4e, 0x5d, 0x3e, 0xb1, 0x5a, 0x53, 0x97, 0x8f, 0x03, 0x98, - 0x07, 0x77, 0xee, 0x5a, 0xfd, 0x50, 0x01, 0xd4, 0x33, 0x0d, 0x87, 0xb3, 0x41, 0xd2, 0xf2, 0x40, - 0x7c, 0xc3, 0xf3, 0x43, 0x0a, 0x53, 0x60, 0x00, 0xaa, 0x2f, 0xeb, 0x90, 0x1f, 0xd8, 0x43, 0xdb, - 0x67, 0x83, 0xe7, 0x35, 0xfe, 0x80, 0x36, 0x60, 0x05, 0x3b, 0x16, 0xeb, 0x90, 0x63, 0x1d, 0x96, - 0xb1, 0x63, 0x3d, 0xc1, 0x13, 0xf5, 0x9f, 0x14, 0x58, 0xe6, 0xbc, 0x84, 0x54, 0x40, 0xb9, 0xa0, - 0x0a, 0x64, 0x2e, 0xac, 0x02, 0xd9, 0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0xfe, 0x08, 0x2e, 0x1f, 0x63, 0x07, 0x53, 0x5a, 0xba, 0x35, 0xf6, 0x44, - 0xc0, 0x8d, 0x4d, 0x61, 0xfa, 0x2e, 0xc9, 0xc6, 0x96, 0x68, 0xeb, 0x61, 0x13, 0x3d, 0x80, 0x35, - 0x6a, 0xaa, 0xa2, 0xf8, 0xdc, 0x1a, 0xae, 0xd2, 0x86, 0x30, 0xee, 0x9b, 0x80, 0x7c, 0xd7, 0x37, - 0x06, 0x51, 0x64, 0x1e, 0x19, 0xd4, 0x58, 0x4b, 0x18, 0xfb, 0x75, 0xe0, 0x01, 0x05, 0x3d, 0x67, - 0xb9, 0x6d, 0xe1, 0xf6, 0xbe, 0x12, 0x40, 0xa9, 0x81, 0xa1, 0x53, 0x04, 0xe6, 0xf6, 0xb3, 0x03, - 0x19, 0xfd, 0x22, 0x00, 0x2f, 0xd3, 0xf3, 0xa9, 0x44, 0xf8, 0x11, 0x7c, 0xe3, 0x61, 0xb4, 0x72, - 0x4f, 0x33, 0x8e, 0xfc, 0x1d, 0xd7, 0x34, 0x06, 0x54, 0x24, 0x58, 0x2b, 0xd2, 0x56, 0xf6, 0x17, - 0x6d, 0x06, 0x56, 0x9b, 0xf7, 0xe7, 0x2e, 0xd5, 0xad, 0x78, 0x7f, 0x86, 0x12, 0xa2, 0x20, 0xcc, - 0x3a, 0xa7, 0x71, 0x0f, 0x56, 0x6d, 0xa2, 0x1f, 0xb9, 0x9e, 0x89, 0xc3, 0x51, 0x53, 0x41, 0xab, - 0xd8, 0xe4, 0x31, 0x85, 0xee, 0x48, 0x77, 0xa3, 0x76, 0x62, 0x10, 0xdd, 0x74, 0x87, 0x43, 0xdb, - 0xd7, 0x79, 0x94, 0x92, 0x63, 0x88, 0xd5, 0x13, 0x83, 0x6c, 0x31, 0x30, 0x0b, 0x54, 0xd4, 0xa7, - 0x50, 0x12, 0x97, 0xce, 0x6c, 0x8a, 0xef, 0x41, 0x99, 0x6d, 0x65, 0x8f, 0x3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ports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +// 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. +// Client API for PD service + 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. @@ -8794,7 +4757,7 @@ func NewPDClient(cc *grpc.ClientConn) PDClient { 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetClusterInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8803,7 +4766,7 @@ func (c *pDClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetMembers", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8811,7 +4774,7 @@ func (c *pDClient) GetMembers(ctx context.Context, in *GetMembersRequest, opts . } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[0], c.cc, "/pdpb.PD/Tso", opts...) if err != nil { return nil, err } @@ -8843,7 +4806,7 @@ func (x *pDTsoClient) Recv() (*TsoResponse, error) { 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/Bootstrap", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8852,7 +4815,7 @@ func (c *pDClient) Bootstrap(ctx context.Context, in *BootstrapRequest, opts ... 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/IsBootstrapped", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8861,7 +4824,7 @@ func (c *pDClient) IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/AllocID", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8870,7 +4833,7 @@ func (c *pDClient) AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/IsSnapshotRecovering", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8879,7 +4842,7 @@ func (c *pDClient) IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecov 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetStore", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8888,7 +4851,7 @@ func (c *pDClient) GetStore(ctx context.Context, in *GetStoreRequest, opts ...gr 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/PutStore", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8897,7 +4860,7 @@ func (c *pDClient) PutStore(ctx context.Context, in *PutStoreRequest, opts ...gr 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetAllStores", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8906,7 +4869,7 @@ func (c *pDClient) GetAllStores(ctx context.Context, in *GetAllStoresRequest, op 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/StoreHeartbeat", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8914,7 +4877,7 @@ func (c *pDClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[1], c.cc, "/pdpb.PD/RegionHeartbeat", opts...) if err != nil { return nil, err } @@ -8946,7 +4909,7 @@ func (x *pDRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, error) { 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetRegion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8955,7 +4918,7 @@ func (c *pDClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ... 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetPrevRegion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8964,7 +4927,7 @@ func (c *pDClient) GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetRegionByID", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -8973,27 +4936,25 @@ func (c *pDClient) GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/ScanRegions", in, out, c.cc, opts...) if err != nil { return nil, err } return out, 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/AskSplit", in, out, c.cc, opts...) if err != nil { return nil, err } return out, 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/ReportSplit", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9002,7 +4963,7 @@ func (c *pDClient) ReportSplit(ctx context.Context, in *ReportSplitRequest, opts 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/AskBatchSplit", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9011,7 +4972,7 @@ func (c *pDClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/ReportBatchSplit", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9020,7 +4981,7 @@ func (c *pDClient) ReportBatchSplit(ctx context.Context, in *ReportBatchSplitReq 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetClusterConfig", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9029,7 +4990,7 @@ func (c *pDClient) GetClusterConfig(ctx context.Context, in *GetClusterConfigReq 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/PutClusterConfig", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9038,7 +4999,7 @@ func (c *pDClient) PutClusterConfig(ctx context.Context, in *PutClusterConfigReq 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/ScatterRegion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9047,7 +5008,7 @@ func (c *pDClient) ScatterRegion(ctx context.Context, in *ScatterRegionRequest, 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetGCSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9056,7 +5017,7 @@ func (c *pDClient) GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9065,7 +5026,7 @@ func (c *pDClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointR 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/UpdateServiceGCSafePoint", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9074,7 +5035,7 @@ func (c *pDClient) UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServi 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetGCSafePointV2", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9082,7 +5043,7 @@ func (c *pDClient) GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Req } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[2], c.cc, "/pdpb.PD/WatchGCSafePointV2", opts...) if err != nil { return nil, err } @@ -9115,7 +5076,7 @@ func (x *pDWatchGCSafePointV2Client) Recv() (*WatchGCSafePointV2Response, error) 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePointV2", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9124,7 +5085,7 @@ func (c *pDClient) UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePoin 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/UpdateServiceSafePointV2", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9133,7 +5094,7 @@ func (c *pDClient) UpdateServiceSafePointV2(ctx context.Context, in *UpdateServi 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetAllGCSafePointV2", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9141,7 +5102,7 @@ func (c *pDClient) GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePoin } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[3], c.cc, "/pdpb.PD/SyncRegions", opts...) if err != nil { return nil, err } @@ -9173,7 +5134,7 @@ func (x *pDSyncRegionsClient) Recv() (*SyncRegionResponse, error) { 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetOperator", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9182,7 +5143,7 @@ func (c *pDClient) GetOperator(ctx context.Context, in *GetOperatorRequest, opts 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/SyncMaxTS", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9191,7 +5152,7 @@ func (c *pDClient) SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ... 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/SplitRegions", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9200,7 +5161,7 @@ func (c *pDClient) SplitRegions(ctx context.Context, in *SplitRegionsRequest, op 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/SplitAndScatterRegions", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9209,7 +5170,7 @@ func (c *pDClient) SplitAndScatterRegions(ctx context.Context, in *SplitAndScatt 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetDCLocationInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9218,7 +5179,7 @@ func (c *pDClient) GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoR 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/StoreGlobalConfig", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9227,7 +5188,7 @@ func (c *pDClient) StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigR 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/LoadGlobalConfig", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9235,7 +5196,7 @@ func (c *pDClient) LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigReq } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[4], c.cc, "/pdpb.PD/WatchGlobalConfig", opts...) if err != nil { return nil, err } @@ -9267,7 +5228,7 @@ func (x *pDWatchGlobalConfigClient) Recv() (*WatchGlobalConfigResponse, error) { } 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...) + stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[5], c.cc, "/pdpb.PD/ReportBuckets", opts...) if err != nil { return nil, err } @@ -9302,7 +5263,7 @@ func (x *pDReportBucketsClient) CloseAndRecv() (*ReportBucketsResponse, error) { 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/ReportMinResolvedTS", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9311,7 +5272,7 @@ func (c *pDClient) ReportMinResolvedTS(ctx context.Context, in *ReportMinResolve 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/SetExternalTimestamp", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9320,7 +5281,7 @@ func (c *pDClient) SetExternalTimestamp(ctx context.Context, in *SetExternalTime 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetExternalTimestamp", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -9329,14 +5290,15 @@ func (c *pDClient) GetExternalTimestamp(ctx context.Context, in *GetExternalTime 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...) + err := grpc.Invoke(ctx, "/pdpb.PD/GetMinTS", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// PDServer is the server API for PD service. +// 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. @@ -9392,188 +5354,48 @@ type PDServer interface { GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) } -// UnimplementedPDServer can be embedded to have forward compatible implementations. -type UnimplementedPDServer struct { +func RegisterPDServer(s *grpc.Server, srv PDServer) { + s.RegisterService(&_PD_serviceDesc, srv) } -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 _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 (*UnimplementedPDServer) Tso(srv PD_TsoServer) error { - return status.Errorf(codes.Unimplemented, "method Tso not implemented") + +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 (*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) 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) 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 RegisterPDServer(s *grpc.Server, srv PDServer) { - s.RegisterService(&_PD_serviceDesc, srv) -} - -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 _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 _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).Tso(&pDTsoServer{stream}) + +func _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).Tso(&pDTsoServer{stream}) } type PD_TsoServer interface { @@ -10586,7 +6408,7 @@ var _PD_serviceDesc = grpc.ServiceDesc{ func (m *WatchGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10594,38 +6416,28 @@ func (m *WatchGlobalConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *WatchGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.ConfigPath) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i += copy(dAtA[i:], m.ConfigPath) } if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) } - 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 + return i, nil } func (m *WatchGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10633,57 +6445,44 @@ func (m *WatchGlobalConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *WatchGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Changes) > 0 { + for _, msg := range m.Changes { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a } if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) } - 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 m.Header != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n1, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n1 } - return len(dAtA) - i, nil + return i, nil } func (m *StoreGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10691,47 +6490,35 @@ func (m *StoreGlobalConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Changes { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if len(m.ConfigPath) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i += copy(dAtA[i:], m.ConfigPath) + } + return i, nil } func (m *StoreGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10739,38 +6526,27 @@ func (m *StoreGlobalConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *LoadGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10778,42 +6554,38 @@ func (m *LoadGlobalConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *LoadGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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-- + for _, s := range m.Names { dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return len(dAtA) - i, nil + if len(m.ConfigPath) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i += copy(dAtA[i:], m.ConfigPath) + } + return i, nil } func (m *LoadGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10821,45 +6593,34 @@ func (m *LoadGlobalConfigResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x10 - } 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-- + for _, msg := range m.Items { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if m.Revision != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + } + return i, nil } func (m *GlobalConfigItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10867,64 +6628,50 @@ func (m *GlobalConfigItem) Marshal() (dAtA []byte, err error) { } func (m *GlobalConfigItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GlobalConfigItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.Kind != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Kind)) - i-- - dAtA[i] = 0x20 + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) + n3, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - 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 m.Kind != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Kind)) } - 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 + if len(m.Payload) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Payload))) + i += copy(dAtA[i:], m.Payload) } - return len(dAtA) - i, nil + return i, nil } func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10932,36 +6679,27 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) } if m.SenderId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) } - if m.ClusterId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -10969,43 +6707,32 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if m.ClusterId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11013,38 +6740,28 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Type != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *TsoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11052,50 +6769,38 @@ func (m *TsoRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } if m.Count != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) } - 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 len(m.DcLocation) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - return len(dAtA) - i, nil + return i, nil } func (m *Timestamp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11103,41 +6808,32 @@ func (m *Timestamp) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SuffixBits != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) - i-- - dAtA[i] = 0x18 + if m.Physical != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) } if m.Logical != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) } - if m.Physical != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) - i-- - dAtA[i] = 0x8 + if m.SuffixBits != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) } - return len(dAtA) - i, nil + return i, nil } func (m *TsoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11145,55 +6841,42 @@ func (m *TsoResponse) Marshal() (dAtA []byte, err error) { } func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n6 } if m.Count != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) } - 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.Timestamp != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp.Size())) + n7, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n7 } - return len(dAtA) - i, nil + return i, nil } func (m *BootstrapRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11201,62 +6884,47 @@ func (m *BootstrapRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n8, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n8 } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) + n9, err := m.Store.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - 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.Region != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n10, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *BootstrapResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11264,50 +6932,37 @@ func (m *BootstrapResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n11, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } 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 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n12, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *IsBootstrappedRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11315,38 +6970,27 @@ func (m *IsBootstrappedRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n13, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *IsBootstrappedResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11354,48 +6998,37 @@ func (m *IsBootstrappedResponse) Marshal() (dAtA []byte, err error) { } func (m *IsBootstrappedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsBootstrappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n14, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } if m.Bootstrapped { - i-- + dAtA[i] = 0x10 + 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 -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *AllocIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11403,38 +7036,27 @@ func (m *AllocIDRequest) Marshal() (dAtA []byte, err error) { } func (m *AllocIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllocIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n15, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - return len(dAtA) - i, nil + return i, nil } func (m *AllocIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11442,43 +7064,32 @@ func (m *AllocIDResponse) Marshal() (dAtA []byte, err error) { } func (m *AllocIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllocIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n16, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } if m.Id != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) } - 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 + return i, nil } func (m *IsSnapshotRecoveringRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11486,38 +7097,27 @@ func (m *IsSnapshotRecoveringRequest) Marshal() (dAtA []byte, err error) { } func (m *IsSnapshotRecoveringRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsSnapshotRecoveringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n17, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 } - return len(dAtA) - i, nil + return i, nil } func (m *IsSnapshotRecoveringResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11525,48 +7125,37 @@ func (m *IsSnapshotRecoveringResponse) Marshal() (dAtA []byte, err error) { } func (m *IsSnapshotRecoveringResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsSnapshotRecoveringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n18, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } if m.Marked { - i-- + dAtA[i] = 0x10 + i++ if m.Marked { 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)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *GetStoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11574,43 +7163,32 @@ func (m *GetStoreRequest) Marshal() (dAtA []byte, err error) { } func (m *GetStoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n19, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) } - 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 + return i, nil } func (m *GetStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11618,62 +7196,47 @@ func (m *GetStoreResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n20, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n20 } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) + n21, err := m.Store.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - 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.Stats != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Stats.Size())) + n22, err := m.Stats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *PutStoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11681,50 +7244,37 @@ func (m *PutStoreRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n23, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) + n24, err := m.Store.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n24 } - return len(dAtA) - i, nil + return i, nil } func (m *PutStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11732,50 +7282,37 @@ func (m *PutStoreResponse) Marshal() (dAtA []byte, err error) { } func (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n25, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } 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 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n26, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllStoresRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11783,48 +7320,37 @@ func (m *GetAllStoresRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n27, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } if m.ExcludeTombstoneStores { - i-- + dAtA[i] = 0x10 + i++ if m.ExcludeTombstoneStores { 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)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllStoresResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11832,52 +7358,39 @@ func (m *GetAllStoresResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n28, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } 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-- + for _, msg := range m.Stores { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11885,55 +7398,43 @@ func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n29, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 + } + if len(m.RegionKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.RegionKey))) + i += copy(dAtA[i:], m.RegionKey) } if m.NeedBuckets { - i-- + dAtA[i] = 0x18 + 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]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11941,102 +7442,81 @@ func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n30, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } - 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)) + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n31, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n31 } - 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 m.Leader != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n32, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n32 } 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-- + for _, msg := range m.DownPeers { dAtA[i] = 0x2a - } - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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.Buckets != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) + n33, err := m.Buckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n33 } - return len(dAtA) - i, nil + return i, nil } func (m *GetRegionByIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12044,53 +7524,42 @@ func (m *GetRegionByIDRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRegionByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n34, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 + } + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } if m.NeedBuckets { - i-- + dAtA[i] = 0x18 + 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 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *ScanRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12098,57 +7567,44 @@ func (m *ScanRegionsRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n35, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 } - 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 len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if m.Limit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) } - 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 + if len(m.EndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *Region) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12156,78 +7612,61 @@ func (m *Region) Marshal() (dAtA []byte, err error) { } func (m *Region) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Region != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n36, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } - 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 + if m.Leader != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n37, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n37 } 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-- + for _, msg := range m.DownPeers { dAtA[i] = 0x1a - } - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12235,80 +7674,63 @@ func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n38, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } - 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)) + if len(m.RegionMetas) > 0 { + for _, msg := range m.RegionMetas { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } 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-- + for _, msg := range m.Leaders { 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++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12316,38 +7738,27 @@ func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n39, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12355,50 +7766,37 @@ func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n40, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } 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] = 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) + n41, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n41 } - return len(dAtA) - i, nil + return i, nil } func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12406,50 +7804,37 @@ func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n42, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } 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] = 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) + n43, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n43 } - return len(dAtA) - i, nil + return i, nil } func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12457,38 +7842,27 @@ func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n44, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 } - return len(dAtA) - i, nil + return i, nil } func (m *Member) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12496,89 +7870,87 @@ func (m *Member) Marshal() (dAtA []byte, err error) { } func (m *Member) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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] = 0x4a + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.GitHash) > 0 { - i -= len(m.GitHash) - copy(dAtA[i:], m.GitHash) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) - i-- - dAtA[i] = 0x42 + if m.MemberId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) } - 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] = 0x3a + if len(m.PeerUrls) > 0 { + for _, s := range m.PeerUrls { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - 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 len(m.ClientUrls) > 0 { + for _, s := range m.ClientUrls { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } if m.LeaderPriority != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) - i-- dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) } - 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.DeployPath) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DeployPath))) + i += copy(dAtA[i:], m.DeployPath) } - 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 len(m.BinaryVersion) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BinaryVersion))) + i += copy(dAtA[i:], m.BinaryVersion) } - if m.MemberId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) - i-- - dAtA[i] = 0x10 + if len(m.GitHash) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) + i += copy(dAtA[i:], m.GitHash) } - 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 + if len(m.DcLocation) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - return len(dAtA) - i, nil + return i, nil } func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12586,38 +7958,27 @@ func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n45, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } - return len(dAtA) - i, nil + return i, nil } func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12625,102 +7986,87 @@ func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n46, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n46 } - if m.EtcdLeader != nil { - { - size, err := m.EtcdLeader.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Members) > 0 { + for _, msg := range m.Members { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n47, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if m.EtcdLeader != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.EtcdLeader.Size())) + n48, err := m.EtcdLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 + } + if len(m.TsoAllocatorLeaders) > 0 { + for k, _ := range m.TsoAllocatorLeaders { + dAtA[i] = 0x2a + i++ + v := m.TsoAllocatorLeaders[k] + msgSize := 0 + if v != nil { + msgSize = v.Size() + msgSize += 1 + sovPdpb(uint64(msgSize)) + } + mapSize := 1 + len(k) + sovPdpb(uint64(len(k))) + msgSize + i = encodeVarintPdpb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(v.Size())) + n49, err := v.MarshalTo(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 += n49 } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12728,38 +8074,27 @@ func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n50, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - return len(dAtA) - i, nil + return i, nil } func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12767,65 +8102,59 @@ func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n51, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n51 } if len(m.ServiceModes) > 0 { - dAtA52 := make([]byte, len(m.ServiceModes)*10) - var j51 int + dAtA53 := make([]byte, len(m.ServiceModes)*10) + var j52 int for _, num := range m.ServiceModes { for num >= 1<<7 { - dAtA52[j51] = uint8(uint64(num)&0x7f | 0x80) + dAtA53[j52] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j51++ + j52++ } - dAtA52[j51] = uint8(num) - j51++ + dAtA53[j52] = uint8(num) + j52++ } - i -= j51 - copy(dAtA[i:], dAtA52[:j51]) - i = encodeVarintPdpb(dAtA, i, uint64(j51)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j52)) + i += copy(dAtA[i:], dAtA53[:j52]) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TsoUrls) > 0 { + for _, s := range m.TsoUrls { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *PeerStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12833,43 +8162,32 @@ func (m *PeerStats) Marshal() (dAtA []byte, err error) { } func (m *PeerStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n54, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } if m.DownSeconds != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) } - if m.Peer != nil { - { - size, err := m.Peer.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 + return i, nil } func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12877,177 +8195,152 @@ func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n55, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 } - if m.ApproximateKvSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n56, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - if m.CpuUsage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.Leader != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n57, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } - if m.QueryStats != nil { - { - size, err := m.QueryStats.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.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) + if len(m.DownPeers) > 0 { + for _, msg := range m.DownPeers { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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 } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x62 } - if m.ApproximateSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) - i-- - dAtA[i] = 0x50 + if m.BytesWritten != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x48 + if m.BytesRead != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) } if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x38 + if m.KeysRead != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x30 + if m.ApproximateSize != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) } - 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 m.Interval != nil { + dAtA[i] = 0x62 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Interval.Size())) + n58, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n58 } - 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 - } + if m.ApproximateKeys != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) } - 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.Term != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) } - 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)) + if m.ReplicationStatus != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n59, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n59 } - 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.QueryStats != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n60, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n60 + } + if m.CpuUsage != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) + } + if m.ApproximateKvSize != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) } - return len(dAtA) - i, nil + return i, nil } func (m *ChangePeer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13055,43 +8348,32 @@ func (m *ChangePeer) Marshal() (dAtA []byte, err error) { } func (m *ChangePeer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n61, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } if m.ChangeType != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) } - if m.Peer != nil { - { - size, err := m.Peer.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 + return i, nil } func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13099,40 +8381,29 @@ func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeerV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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-- + for _, msg := range m.Changes { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *TransferLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13140,52 +8411,39 @@ func (m *TransferLeader) Marshal() (dAtA []byte, err error) { } func (m *TransferLeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n62, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } 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-- + for _, msg := range m.Peers { dAtA[i] = 0x12 - } - } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *Merge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13193,38 +8451,27 @@ func (m *Merge) Marshal() (dAtA []byte, err error) { } func (m *Merge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Target != nil { - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Target.Size())) + n63, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13232,40 +8479,30 @@ func (m *SplitRegion) Marshal() (dAtA []byte, err error) { } func (m *SplitRegion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Policy != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Policy)) } 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-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Policy != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Policy)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13273,41 +8510,32 @@ func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { } func (m *SwitchWitness) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.PeerId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) } if m.IsWitness { - i-- + dAtA[i] = 0x10 + i++ if m.IsWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 - } - if m.PeerId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13315,40 +8543,29 @@ func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { } func (m *BatchSwitchWitness) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchSwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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-- + for _, msg := range m.SwitchWitnesses { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13356,139 +8573,112 @@ func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n64, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n64 } - 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)) + if m.ChangePeer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeer.Size())) + n65, err := m.ChangePeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n65 } - 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)) + if m.TransferLeader != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TransferLeader.Size())) + n66, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n66 } - 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)) + if m.RegionId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + } + if m.RegionEpoch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n67, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n67 } 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TargetPeer.Size())) + n68, err := m.TargetPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n68 } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x20 + if m.Merge != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Merge.Size())) + n69, err := m.Merge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - 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)) + if m.SplitRegion != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitRegion.Size())) + n70, err := m.SplitRegion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n70 } - 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)) + if m.ChangePeerV2 != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) + n71, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n71 } - 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.SwitchWitnesses != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) + n72, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n72 } - return len(dAtA) - i, nil + return i, nil } func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13496,50 +8686,37 @@ func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n73, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 } 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n74, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n74 } - return len(dAtA) - i, nil + return i, nil } func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13547,61 +8724,49 @@ func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n75, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n75 + } + if m.NewRegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { - dAtA76 := make([]byte, len(m.NewPeerIds)*10) - var j75 int + dAtA77 := make([]byte, len(m.NewPeerIds)*10) + var j76 int for _, num := range m.NewPeerIds { for num >= 1<<7 { - dAtA76[j75] = uint8(uint64(num)&0x7f | 0x80) + dAtA77[j76] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j75++ + j76++ } - dAtA76[j75] = uint8(num) - j75++ + dAtA77[j76] = uint8(num) + j76++ } - i -= j75 - copy(dAtA[i:], dAtA76[:j75]) - i = encodeVarintPdpb(dAtA, i, uint64(j75)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j76)) + i += copy(dAtA[i:], dAtA77[:j76]) } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - 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 + return i, nil } func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13609,62 +8774,47 @@ func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n78, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n78 } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Left.Size())) + n79, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n79 } - 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.Right != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Right.Size())) + n80, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n80 } - return len(dAtA) - i, nil + return i, nil } func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13672,38 +8822,27 @@ func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n81, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n81 } - return len(dAtA) - i, nil + return i, nil } func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13711,55 +8850,42 @@ func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SplitCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n82, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 } 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n83, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n83 + } + if m.SplitCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) } - return len(dAtA) - i, nil + return i, nil } func (m *SplitID) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13767,18 +8893,14 @@ func (m *SplitID) Marshal() (dAtA []byte, err error) { } func (m *SplitID) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.NewRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { dAtA85 := make([]byte, len(m.NewPeerIds)*10) @@ -13792,24 +8914,18 @@ func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA85[j84] = uint8(num) j84++ } - i -= j84 - copy(dAtA[i:], dAtA85[:j84]) - i = encodeVarintPdpb(dAtA, i, uint64(j84)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j84)) + i += copy(dAtA[i:], dAtA85[:j84]) } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13817,52 +8933,39 @@ func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n86, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n86 } 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-- + for _, msg := range m.Ids { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13870,52 +8973,39 @@ func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n87, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n87 } 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-- + for _, msg := range m.Regions { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13923,38 +9013,27 @@ func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n88, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n88 } - return len(dAtA) - i, nil + return i, nil } func (m *TimeInterval) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13962,36 +9041,27 @@ func (m *TimeInterval) Marshal() (dAtA []byte, err error) { } func (m *TimeInterval) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTimestamp != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) } if m.EndTimestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) } - if m.StartTimestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RecordPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -13999,38 +9069,28 @@ func (m *RecordPair) Marshal() (dAtA []byte, err error) { } func (m *RecordPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.Value != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) } - 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 + return i, nil } func (m *PeerStat) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14038,63 +9098,52 @@ func (m *PeerStat) Marshal() (dAtA []byte, err error) { } func (m *PeerStat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } - if m.WrittenBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) - i-- - dAtA[i] = 0x30 + if m.ReadKeys != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) } - if m.WrittenKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) - i-- - dAtA[i] = 0x28 + if m.ReadBytes != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) } if m.QueryStats != nil { - { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n89, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n89 } - if m.ReadBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) - i-- - dAtA[i] = 0x18 + if m.WrittenKeys != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) } - 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 + if m.WrittenBytes != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) } - return len(dAtA) - i, nil + return i, nil } func (m *StoreStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14102,288 +9151,260 @@ func (m *StoreStats) Marshal() (dAtA []byte, err error) { } func (m *StoreStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StoreId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) } - if m.IsGrpcPaused { - i-- - if m.IsGrpcPaused { + if m.Capacity != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) + } + if m.Available != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) + } + if m.RegionCount != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionCount)) + } + if m.SendingSnapCount != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SendingSnapCount)) + } + if m.ReceivingSnapCount != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReceivingSnapCount)) + } + if m.StartTime != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartTime)) + } + if m.ApplyingSnapCount != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApplyingSnapCount)) + } + if m.IsBusy { + dAtA[i] = 0x48 + i++ + if m.IsBusy { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 + i++ } - if m.SlowTrend != nil { - { - size, err := m.SlowTrend.MarshalToSizedBuffer(dAtA[:i]) + if m.UsedSize != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.UsedSize)) + } + if m.BytesWritten != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + } + if m.KeysWritten != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) + } + if m.BytesRead != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) + } + if m.KeysRead != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) + } + if m.Interval != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Interval.Size())) + n90, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 + } + if len(m.CpuUsages) > 0 { + for _, msg := range m.CpuUsages { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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-- + if len(m.ReadIoRates) > 0 { + for _, msg := range m.ReadIoRates { + dAtA[i] = 0x8a + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - } - if m.IsApplyBusy { - i-- - if m.IsApplyBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc0 } - if len(m.DamagedRegionsId) > 0 { - dAtA92 := make([]byte, len(m.DamagedRegionsId)*10) - var j91 int - for _, num := range m.DamagedRegionsId { - for num >= 1<<7 { - dAtA92[j91] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j91++ + if len(m.WriteIoRates) > 0 { + for _, msg := range m.WriteIoRates { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - dAtA92[j91] = uint8(num) - j91++ + i += n } - i -= j91 - copy(dAtA[i:], dAtA92[:j91]) - i = encodeVarintPdpb(dAtA, i, uint64(j91)) - 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.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + if len(m.OpLatencies) > 0 { + for _, msg := range m.OpLatencies { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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-- + for _, msg := range m.PeerStats { 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-- + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - 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 m.QueryStats != nil { + dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n91, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n91 } - 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)) + if m.SlowScore != 0 { + dAtA[i] = 0xb0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) + } + if len(m.DamagedRegionsId) > 0 { + dAtA93 := make([]byte, len(m.DamagedRegionsId)*10) + var j92 int + for _, num := range m.DamagedRegionsId { + for num >= 1<<7 { + dAtA93[j92] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j92++ } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA93[j92] = uint8(num) + j92++ } + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j92)) + i += copy(dAtA[i:], dAtA93[:j92]) } - 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.IsApplyBusy { + dAtA[i] = 0xc0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsApplyBusy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if len(m.SnapshotStats) > 0 { + for _, msg := range m.SnapshotStats { + dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - 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.SlowTrend != nil { + dAtA[i] = 0xd2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SlowTrend.Size())) + n94, err := m.SlowTrend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n94 } - if m.IsBusy { - i-- - if m.IsBusy { + if m.IsGrpcPaused { + dAtA[i] = 0xd8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsGrpcPaused { 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 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *SlowTrend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14391,50 +9412,41 @@ func (m *SlowTrend) Marshal() (dAtA []byte, err error) { } func (m *SlowTrend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SlowTrend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CauseValue != 0 { + dAtA[i] = 0x9 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseValue)))) + i += 8 } - if m.ResultRate != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) - i-- - dAtA[i] = 0x21 + if m.CauseRate != 0 { + dAtA[i] = 0x11 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseRate)))) + i += 8 } if m.ResultValue != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultValue)))) - i-- dAtA[i] = 0x19 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultValue)))) + i += 8 } - 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 + if m.ResultRate != 0 { + dAtA[i] = 0x21 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) + i += 8 } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14442,51 +9454,42 @@ func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { } func (m *SnapshotStat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TransportSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TransportSize)) - i-- - dAtA[i] = 0x28 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } - if m.TotalDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalDurationSec)) - i-- - dAtA[i] = 0x20 + if m.GenerateDurationSec != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.GenerateDurationSec)) } if m.SendDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SendDurationSec)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SendDurationSec)) } - if m.GenerateDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GenerateDurationSec)) - i-- - dAtA[i] = 0x10 + if m.TotalDurationSec != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TotalDurationSec)) } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.TransportSize != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TransportSize)) } - return len(dAtA) - i, nil + return i, nil } func (m *PeerReport) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14494,70 +9497,57 @@ func (m *PeerReport) Marshal() (dAtA []byte, err error) { } func (m *PeerReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RaftState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RaftState.Size())) + n95, err := m.RaftState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n95 } - if m.HasCommitMerge { - i-- - if m.HasCommitMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RegionState != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionState.Size())) + n96, err := m.RegionState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n96 } if m.IsForceLeader { - i-- + dAtA[i] = 0x18 + i++ if m.IsForceLeader { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - 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)) - } - i-- - dAtA[i] = 0x12 + i++ } - 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 m.HasCommitMerge { + dAtA[i] = 0x20 + i++ + if m.HasCommitMerge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *StoreReport) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14565,45 +9555,34 @@ func (m *StoreReport) Marshal() (dAtA []byte, err error) { } func (m *StoreReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) - } - i-- + for _, msg := range m.PeerReports { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if m.Step != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) + } + return i, nil } func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14611,74 +9590,57 @@ func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n97, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n97 } - if m.DrAutosyncStatus != nil { - { - size, err := m.DrAutosyncStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Stats != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Stats.Size())) + n98, err := m.Stats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n98 } if m.StoreReport != nil { - { - size, err := m.StoreReport.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreReport.Size())) + n99, err := m.StoreReport.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n99 } - 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.DrAutosyncStatus != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.DrAutosyncStatus.Size())) + n100, err := m.DrAutosyncStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n100 } - return len(dAtA) - i, nil + return i, nil } func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14686,45 +9648,34 @@ func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { } func (m *DemoteFailedVoters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DemoteFailedVoters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } 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-- + for _, msg := range m.FailedVoters { dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ForceLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14732,23 +9683,14 @@ func (m *ForceLeader) Marshal() (dAtA []byte, err error) { } func (m *ForceLeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EnterForceLeaders) > 0 { - dAtA102 := make([]byte, len(m.EnterForceLeaders)*10) + if len(m.FailedStores) > 0 { + dAtA102 := make([]byte, len(m.FailedStores)*10) var j101 int - for _, num := range m.EnterForceLeaders { + for _, num := range m.FailedStores { for num >= 1<<7 { dAtA102[j101] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -14757,16 +9699,15 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA102[j101] = uint8(num) j101++ } - i -= j101 - copy(dAtA[i:], dAtA102[:j101]) + dAtA[i] = 0xa + i++ i = encodeVarintPdpb(dAtA, i, uint64(j101)) - i-- - dAtA[i] = 0x12 + i += copy(dAtA[i:], dAtA102[:j101]) } - if len(m.FailedStores) > 0 { - dAtA104 := make([]byte, len(m.FailedStores)*10) + if len(m.EnterForceLeaders) > 0 { + dAtA104 := make([]byte, len(m.EnterForceLeaders)*10) var j103 int - for _, num := range m.FailedStores { + for _, num := range m.EnterForceLeaders { for num >= 1<<7 { dAtA104[j103] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -14775,19 +9716,18 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA104[j103] = uint8(num) j103++ } - i -= j103 - copy(dAtA[i:], dAtA104[:j103]) + dAtA[i] = 0x12 + i++ i = encodeVarintPdpb(dAtA, i, uint64(j103)) - i-- - dAtA[i] = 0xa + i += copy(dAtA[i:], dAtA104[:j103]) } - return len(dAtA) - i, nil + return i, nil } func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14795,103 +9735,85 @@ func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { } func (m *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Step != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - i-- - dAtA[i] = 0x30 - } - if m.ForceLeader != nil { - { - size, err := m.ForceLeader.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Creates) > 0 { + for _, msg := range m.Creates { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a } - 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)) + if len(m.Updates) > 0 { + for _, msg := range m.Updates { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } if len(m.Tombstones) > 0 { - dAtA107 := make([]byte, len(m.Tombstones)*10) - var j106 int + dAtA106 := make([]byte, len(m.Tombstones)*10) + var j105 int for _, num := range m.Tombstones { for num >= 1<<7 { - dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + dAtA106[j105] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j106++ + j105++ } - dAtA107[j106] = uint8(num) - j106++ + dAtA106[j105] = uint8(num) + j105++ } - i -= j106 - copy(dAtA[i:], dAtA107[:j106]) - i = encodeVarintPdpb(dAtA, i, uint64(j106)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j105)) + i += copy(dAtA[i:], dAtA106[:j105]) } - 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)) + if len(m.Demotes) > 0 { + for _, msg := range m.Demotes { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - 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-- - dAtA[i] = 0xa + if m.ForceLeader != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ForceLeader.Size())) + n107, err := m.ForceLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n107 } - return len(dAtA) - i, nil + if m.Step != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) + } + return i, nil } func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14899,19 +9821,10 @@ func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { } func (m *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.AbnormalStores) > 0 { dAtA109 := make([]byte, len(m.AbnormalStores)*10) var j108 int @@ -14924,19 +9837,18 @@ func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA109[j108] = uint8(num) j108++ } - i -= j108 - copy(dAtA[i:], dAtA109[:j108]) - i = encodeVarintPdpb(dAtA, i, uint64(j108)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j108)) + i += copy(dAtA[i:], dAtA109[:j108]) } - return len(dAtA) - i, nil + return i, nil } func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14944,31 +9856,22 @@ func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.CtrlEvent != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) } - return len(dAtA) - i, nil + return i, nil } func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -14976,103 +9879,83 @@ func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n110, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n110 } - 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)) + if m.ReplicationStatus != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n111, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n111 } - 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 len(m.ClusterVersion) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) + i += copy(dAtA[i:], m.ClusterVersion) } if m.RequireDetailedReport { - i-- + dAtA[i] = 0x20 + i++ if m.RequireDetailedReport { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 + i++ } - 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.RecoveryPlan != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RecoveryPlan.Size())) + n112, err := m.RecoveryPlan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n112 } - 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)) + if m.AwakenRegions != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.AwakenRegions.Size())) + n113, err := m.AwakenRegions.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n113 } - 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.ControlGrpc != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ControlGrpc.Size())) + n114, err := m.ControlGrpc.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n114 } - return len(dAtA) - i, nil + return i, nil } func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15080,107 +9963,90 @@ func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n115, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n115 } - if m.SkipStoreLimit { - i-- - if m.SkipStoreLimit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + } + if m.Region != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n116, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n116 } - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x38 + if m.Leader != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n117, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n117 + } + if len(m.Group) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i += copy(dAtA[i:], m.Group) } if len(m.RegionsId) > 0 { - dAtA116 := make([]byte, len(m.RegionsId)*10) - var j115 int + dAtA119 := make([]byte, len(m.RegionsId)*10) + var j118 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA116[j115] = uint8(uint64(num)&0x7f | 0x80) + dAtA119[j118] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j115++ + j118++ } - dAtA116[j115] = uint8(num) - j115++ + dAtA119[j118] = uint8(num) + j118++ } - i -= j115 - copy(dAtA[i:], dAtA116[:j115]) - i = encodeVarintPdpb(dAtA, i, uint64(j115)) - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j118)) + i += copy(dAtA[i:], dAtA119[:j118]) } - 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.RetryLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) } - 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.SkipStoreLimit { + dAtA[i] = 0x40 + i++ + if m.SkipStoreLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15188,43 +10054,32 @@ func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n120, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n120 } if m.FinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) } - 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 + return i, nil } func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15232,38 +10087,27 @@ func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n121, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n121 } - return len(dAtA) - i, nil + return i, nil } func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15271,43 +10115,32 @@ func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n122, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n122 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - 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 + return i, nil } func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15315,43 +10148,32 @@ func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n123, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - 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 + return i, nil } func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15359,43 +10181,32 @@ func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n124, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n124 } if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) } - 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 + return i, nil } func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15403,55 +10214,43 @@ func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n125, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n125 } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) } - 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]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.SafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15459,55 +10258,43 @@ func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n126, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n126 } - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) } - 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]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.MinSafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15515,43 +10302,32 @@ func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n127, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n127 } if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } - 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 + return i, nil } func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15559,43 +10335,32 @@ func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n128, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n128 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - 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 + return i, nil } func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15603,43 +10368,32 @@ func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n129, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n129 } if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, 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 len(dAtA) - i, nil + return i, nil } func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15647,41 +10401,32 @@ func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { } func (m *SafePointEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SafePointEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Type != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 + if m.KeyspaceId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x8 + if m.Type != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) } - return len(dAtA) - i, nil + return i, nil } func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15689,57 +10434,44 @@ func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n130, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n130 } 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-- + for _, msg := range m.Events { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + } + return i, nil } func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15747,48 +10479,37 @@ func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n131, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n131 } if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } - 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.SafePoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15796,43 +10517,32 @@ func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n132, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n132 } if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) } - 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 + return i, nil } func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15840,60 +10550,48 @@ func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n133, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n133 } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 + if m.KeyspaceId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x10 + if m.SafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - 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.Ttl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15901,55 +10599,43 @@ func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n134, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n134 } - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) } - 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]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.MinSafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15957,38 +10643,27 @@ func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n135, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n135 } - return len(dAtA) - i, nil + return i, nil } func (m *GCSafePointV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -15996,36 +10671,27 @@ func (m *GCSafePointV2) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.KeyspaceId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } if m.GcSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16033,57 +10699,44 @@ func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n136, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n136 } 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-- + for _, msg := range m.GcSafePoints { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + } + return i, nil } func (m *RegionStat) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16091,46 +10744,37 @@ func (m *RegionStat) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.BytesWritten != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x20 + if m.BytesRead != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) } if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x10 - } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x8 + if m.KeysRead != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) } - return len(dAtA) - i, nil + return i, nil } func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16138,55 +10782,42 @@ func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n137, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n137 } 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.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Member.Size())) + n138, err := m.Member.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n138 + } + if m.StartIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) } - return len(dAtA) - i, nil + return i, nil } func (m *PeersStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16194,40 +10825,29 @@ func (m *PeersStats) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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-- + for _, msg := range m.Peers { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *Peers) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16235,40 +10855,29 @@ func (m *Peers) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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-- + for _, msg := range m.Peers { dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16276,131 +10885,108 @@ func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n139, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n139 } - 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)) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n } } - 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)) + if m.StartIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + } + if len(m.RegionStats) > 0 { + for _, msg := range m.RegionStats { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n } } 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-- + for _, msg := range m.RegionLeaders { dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - 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)) + if len(m.Buckets) > 0 { + for _, msg := range m.Buckets { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - 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)) + if len(m.DownPeers) > 0 { + for _, msg := range m.DownPeers { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16408,43 +10994,32 @@ func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { } func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n140, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n140 } if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x10 + i++ + 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] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16452,62 +11027,49 @@ func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { } func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n141, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n141 } - if m.Status != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x20 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) + i += copy(dAtA[i:], m.Desc) } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + if m.Status != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) } - 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 len(m.Kind) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) } - return len(dAtA) - i, nil + return i, nil } func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16515,60 +11077,47 @@ func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n142, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n142 + } + if m.MaxTs != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) + n143, err := m.MaxTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n143 } if m.SkipCheck { - i-- + dAtA[i] = 0x18 + i++ if m.SkipCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - 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.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 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16576,59 +11125,52 @@ func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n144, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n144 } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxLocalTs.Size())) + n145, err := m.MaxLocalTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n145 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.SyncedDcs) > 0 { + for _, s := range m.SyncedDcs { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16636,52 +11178,40 @@ func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n146, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n146 } 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-- + for _, b := range m.SplitKeys { dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - 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.RetryLimit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16689,61 +11219,49 @@ func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n147, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n147 + } + if m.FinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA148 := make([]byte, len(m.RegionsId)*10) - var j147 int + dAtA149 := make([]byte, len(m.RegionsId)*10) + var j148 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA148[j147] = uint8(uint64(num)&0x7f | 0x80) + dAtA149[j148] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j147++ + j148++ } - dAtA148[j147] = uint8(num) - j147++ + dAtA149[j148] = uint8(num) + j148++ } - i -= j147 - copy(dAtA[i:], dAtA148[:j147]) - i = encodeVarintPdpb(dAtA, i, uint64(j147)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j148)) + i += copy(dAtA[i:], dAtA149[:j148]) } - 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)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16751,59 +11269,46 @@ func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n150, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n150 } 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-- + for _, b := range m.SplitKeys { dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - 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 len(m.Group) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i += copy(dAtA[i:], m.Group) + } + if m.RetryLimit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) } - return len(dAtA) - i, nil + return i, nil } func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16811,66 +11316,54 @@ func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n151, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n151 + } + if m.SplitFinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) + } + if m.ScatterFinishedPercentage != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA152 := make([]byte, len(m.RegionsId)*10) - var j151 int + dAtA153 := make([]byte, len(m.RegionsId)*10) + var j152 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA152[j151] = uint8(uint64(num)&0x7f | 0x80) + dAtA153[j152] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j151++ + j152++ } - dAtA152[j151] = uint8(num) - j151++ + dAtA153[j152] = uint8(num) + j152++ } - i -= j151 - copy(dAtA[i:], dAtA152[:j151]) - i = encodeVarintPdpb(dAtA, i, uint64(j151)) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j152)) + i += copy(dAtA[i:], dAtA153[:j152]) } - 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-- - 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 + return i, nil } func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16878,45 +11371,33 @@ func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n154, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n154 } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - 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 + return i, nil } func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16924,55 +11405,42 @@ func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n155, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n155 } if m.Suffix != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) } - 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.MaxTs != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) + n156, err := m.MaxTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n156 } - return len(dAtA) - i, nil + return i, nil } func (m *QueryStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16980,81 +11448,72 @@ func (m *QueryStats) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Rollback != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Rollback)) - i-- - dAtA[i] = 0x58 + if m.GC != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) } - if m.Commit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Commit)) - i-- - dAtA[i] = 0x50 + if m.Get != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) } - if m.AcquirePessimisticLock != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.AcquirePessimisticLock)) - i-- - dAtA[i] = 0x48 + if m.Scan != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Scan)) } - if m.Prewrite != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Prewrite)) - i-- - dAtA[i] = 0x40 + if m.Coprocessor != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Coprocessor)) } - if m.Put != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Put)) - i-- - dAtA[i] = 0x38 + if m.Delete != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Delete)) } if m.DeleteRange != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.DeleteRange)) - i-- dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.DeleteRange)) } - if m.Delete != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Delete)) - i-- - dAtA[i] = 0x28 + if m.Put != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Put)) } - if m.Coprocessor != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Coprocessor)) - i-- - dAtA[i] = 0x20 + if m.Prewrite != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Prewrite)) } - if m.Scan != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Scan)) - i-- - dAtA[i] = 0x18 + if m.AcquirePessimisticLock != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.AcquirePessimisticLock)) } - if m.Get != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) - i-- - dAtA[i] = 0x10 + if m.Commit != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Commit)) } - if m.GC != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) - i-- - dAtA[i] = 0x8 + if m.Rollback != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Rollback)) } - return len(dAtA) - i, nil + return i, nil } func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17062,62 +11521,47 @@ func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n157, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n157 } 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] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n158, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n158 } - 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.Buckets != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) + n159, err := m.Buckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n159 } - return len(dAtA) - i, nil + return i, nil } func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17125,38 +11569,27 @@ func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n160, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n160 } - return len(dAtA) - i, nil + return i, nil } func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17164,48 +11597,37 @@ func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MinResolvedTs != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n161, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n161 } if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) } - 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.MinResolvedTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17213,38 +11635,27 @@ func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n162, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n162 } - return len(dAtA) - i, nil + return i, nil } func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17252,43 +11663,32 @@ func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n163, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n163 } if m.Timestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) } - 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 + return i, nil } func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17296,38 +11696,27 @@ func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n164, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n164 } - return len(dAtA) - i, nil + return i, nil } func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17335,38 +11724,27 @@ func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n165, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n165 } - return len(dAtA) - i, nil + return i, nil } func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17374,43 +11752,32 @@ func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n166, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n166 } if m.Timestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) } - 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 + return i, nil } func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17418,38 +11785,27 @@ func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n167, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n167 } - return len(dAtA) - i, nil + return i, nil } func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17457,61 +11813,43 @@ func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n168, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n168 } 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 - } - 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++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp.Size())) + n169, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n169 } - return len(dAtA) - i, nil + return 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++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *WatchGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ConfigPath) @@ -17521,16 +11859,10 @@ func (m *WatchGlobalConfigRequest) Size() (n int) { if m.Revision != 0 { n += 1 + sovPdpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -17546,16 +11878,10 @@ func (m *WatchGlobalConfigResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -17568,32 +11894,20 @@ func (m *StoreGlobalConfigRequest) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LoadGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Names) > 0 { @@ -17606,16 +11920,10 @@ func (m *LoadGlobalConfigRequest) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LoadGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Items) > 0 { @@ -17627,16 +11935,10 @@ func (m *LoadGlobalConfigResponse) Size() (n int) { if m.Revision != 0 { n += 1 + sovPdpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GlobalConfigItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -17658,16 +11960,10 @@ func (m *GlobalConfigItem) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -17676,16 +11972,10 @@ func (m *RequestHeader) Size() (n int) { if m.SenderId != 0 { n += 1 + sovPdpb(uint64(m.SenderId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -17695,16 +11985,10 @@ func (m *ResponseHeader) Size() (n int) { l = m.Error.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -17714,16 +11998,10 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TsoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17737,16 +12015,10 @@ func (m *TsoRequest) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Timestamp) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Physical != 0 { @@ -17758,16 +12030,10 @@ func (m *Timestamp) Size() (n int) { if m.SuffixBits != 0 { n += 1 + sovPdpb(uint64(m.SuffixBits)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TsoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17781,16 +12047,10 @@ func (m *TsoResponse) Size() (n int) { l = m.Timestamp.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BootstrapRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17805,16 +12065,10 @@ func (m *BootstrapRequest) Size() (n int) { l = m.Region.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BootstrapResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17825,32 +12079,20 @@ func (m *BootstrapResponse) Size() (n int) { l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsBootstrappedResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17860,32 +12102,20 @@ func (m *IsBootstrappedResponse) Size() (n int) { if m.Bootstrapped { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AllocIDRequest) 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.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AllocIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17895,32 +12125,20 @@ func (m *AllocIDResponse) Size() (n int) { if m.Id != 0 { n += 1 + sovPdpb(uint64(m.Id)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsSnapshotRecoveringRequest) 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.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IsSnapshotRecoveringResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17930,16 +12148,10 @@ func (m *IsSnapshotRecoveringResponse) Size() (n int) { if m.Marked { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17949,16 +12161,10 @@ func (m *GetStoreRequest) Size() (n int) { if m.StoreId != 0 { n += 1 + sovPdpb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17973,16 +12179,10 @@ func (m *GetStoreResponse) Size() (n int) { l = m.Stats.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17993,16 +12193,10 @@ func (m *PutStoreRequest) Size() (n int) { l = m.Store.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18013,16 +12207,10 @@ func (m *PutStoreResponse) Size() (n int) { l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllStoresRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18032,16 +12220,10 @@ func (m *GetAllStoresRequest) Size() (n int) { if m.ExcludeTombstoneStores { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllStoresResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18054,16 +12236,10 @@ func (m *GetAllStoresResponse) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18077,16 +12253,10 @@ func (m *GetRegionRequest) Size() (n int) { if m.NeedBuckets { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18117,16 +12287,10 @@ func (m *GetRegionResponse) Size() (n int) { l = m.Buckets.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetRegionByIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18139,16 +12303,10 @@ func (m *GetRegionByIDRequest) Size() (n int) { if m.NeedBuckets { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18166,16 +12324,10 @@ func (m *ScanRegionsRequest) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Region) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -18198,16 +12350,10 @@ func (m *Region) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18232,32 +12378,20 @@ func (m *ScanRegionsResponse) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetClusterConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18268,16 +12402,10 @@ func (m *GetClusterConfigResponse) Size() (n int) { l = m.Cluster.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutClusterConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18288,32 +12416,20 @@ func (m *PutClusterConfigRequest) Size() (n int) { l = m.Cluster.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutClusterConfigResponse) 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.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Member) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -18354,32 +12470,20 @@ func (m *Member) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMembersResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18413,32 +12517,20 @@ func (m *GetMembersResponse) Size() (n int) { n += mapEntrySize + 1 + sovPdpb(uint64(mapEntrySize)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18458,16 +12550,10 @@ func (m *GetClusterInfoResponse) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PeerStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18477,16 +12563,10 @@ func (m *PeerStats) Size() (n int) { if m.DownSeconds != 0 { n += 1 + sovPdpb(uint64(m.DownSeconds)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18552,16 +12632,10 @@ func (m *RegionHeartbeatRequest) Size() (n int) { if m.ApproximateKvSize != 0 { n += 2 + sovPdpb(uint64(m.ApproximateKvSize)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18571,16 +12645,10 @@ func (m *ChangePeer) Size() (n int) { if m.ChangeType != 0 { n += 1 + sovPdpb(uint64(m.ChangeType)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeerV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -18589,16 +12657,10 @@ func (m *ChangePeerV2) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TransferLeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18611,32 +12673,20 @@ func (m *TransferLeader) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Policy != 0 { @@ -18648,16 +12698,10 @@ func (m *SplitRegion) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SwitchWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PeerId != 0 { @@ -18666,16 +12710,10 @@ func (m *SwitchWitness) Size() (n int) { if m.IsWitness { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchSwitchWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.SwitchWitnesses) > 0 { @@ -18684,16 +12722,10 @@ func (m *BatchSwitchWitness) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18735,16 +12767,10 @@ func (m *RegionHeartbeatResponse) Size() (n int) { l = m.SwitchWitnesses.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AskSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18755,16 +12781,10 @@ func (m *AskSplitRequest) Size() (n int) { l = m.Region.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AskSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18781,16 +12801,10 @@ func (m *AskSplitResponse) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18805,32 +12819,20 @@ func (m *ReportSplitRequest) Size() (n int) { l = m.Right.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AskBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18844,16 +12846,10 @@ func (m *AskBatchSplitRequest) Size() (n int) { if m.SplitCount != 0 { n += 1 + sovPdpb(uint64(m.SplitCount)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitID) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NewRegionId != 0 { @@ -18866,16 +12862,10 @@ func (m *SplitID) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AskBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18888,16 +12878,10 @@ func (m *AskBatchSplitResponse) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18910,32 +12894,20 @@ func (m *ReportBatchSplitRequest) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TimeInterval) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTimestamp != 0 { @@ -18944,16 +12916,10 @@ func (m *TimeInterval) Size() (n int) { if m.EndTimestamp != 0 { n += 1 + sovPdpb(uint64(m.EndTimestamp)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecordPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -18963,16 +12929,10 @@ func (m *RecordPair) Size() (n int) { if m.Value != 0 { n += 1 + sovPdpb(uint64(m.Value)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PeerStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -18994,16 +12954,10 @@ func (m *PeerStat) Size() (n int) { if m.WrittenBytes != 0 { n += 1 + sovPdpb(uint64(m.WrittenBytes)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -19112,16 +13066,10 @@ func (m *StoreStats) Size() (n int) { if m.IsGrpcPaused { n += 3 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SlowTrend) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CauseValue != 0 { @@ -19136,16 +13084,10 @@ func (m *SlowTrend) Size() (n int) { if m.ResultRate != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -19163,16 +13105,10 @@ func (m *SnapshotStat) Size() (n int) { if m.TransportSize != 0 { n += 1 + sovPdpb(uint64(m.TransportSize)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PeerReport) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RaftState != nil { @@ -19189,16 +13125,10 @@ func (m *PeerReport) Size() (n int) { if m.HasCommitMerge { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreReport) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.PeerReports) > 0 { @@ -19210,16 +13140,10 @@ func (m *StoreReport) Size() (n int) { if m.Step != 0 { n += 1 + sovPdpb(uint64(m.Step)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19238,16 +13162,10 @@ func (m *StoreHeartbeatRequest) Size() (n int) { l = m.DrAutosyncStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DemoteFailedVoters) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -19259,16 +13177,10 @@ func (m *DemoteFailedVoters) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ForceLeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.FailedStores) > 0 { @@ -19285,16 +13197,10 @@ func (m *ForceLeader) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoveryPlan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Creates) > 0 { @@ -19329,16 +13235,10 @@ func (m *RecoveryPlan) Size() (n int) { if m.Step != 0 { n += 1 + sovPdpb(uint64(m.Step)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AwakenRegions) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.AbnormalStores) > 0 { @@ -19348,31 +13248,19 @@ func (m *AwakenRegions) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19402,16 +13290,10 @@ func (m *StoreHeartbeatResponse) Size() (n int) { l = m.ControlGrpc.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScatterRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19446,16 +13328,10 @@ func (m *ScatterRegionRequest) Size() (n int) { if m.SkipStoreLimit { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScatterRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19465,32 +13341,20 @@ func (m *ScatterRegionResponse) Size() (n int) { if m.FinishedPercentage != 0 { n += 1 + sovPdpb(uint64(m.FinishedPercentage)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19500,16 +13364,10 @@ func (m *GetGCSafePointResponse) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovPdpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19519,16 +13377,10 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovPdpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19538,16 +13390,10 @@ func (m *UpdateGCSafePointResponse) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovPdpb(uint64(m.NewSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19564,16 +13410,10 @@ func (m *UpdateServiceGCSafePointRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovPdpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19590,16 +13430,10 @@ func (m *UpdateServiceGCSafePointResponse) Size() (n int) { if m.MinSafePoint != 0 { n += 1 + sovPdpb(uint64(m.MinSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19609,16 +13443,10 @@ func (m *GetGCSafePointV2Request) Size() (n int) { if m.KeyspaceId != 0 { n += 1 + sovPdpb(uint64(m.KeyspaceId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19628,16 +13456,10 @@ func (m *GetGCSafePointV2Response) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovPdpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19647,16 +13469,10 @@ func (m *WatchGCSafePointV2Request) Size() (n int) { if m.Revision != 0 { n += 1 + sovPdpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SafePointEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyspaceId != 0 { @@ -19668,16 +13484,10 @@ func (m *SafePointEvent) Size() (n int) { if m.Type != 0 { n += 1 + sovPdpb(uint64(m.Type)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WatchGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19693,16 +13503,10 @@ func (m *WatchGCSafePointV2Response) Size() (n int) { if m.Revision != 0 { n += 1 + sovPdpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19715,16 +13519,10 @@ func (m *UpdateGCSafePointV2Request) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovPdpb(uint64(m.SafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19734,16 +13532,10 @@ func (m *UpdateGCSafePointV2Response) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovPdpb(uint64(m.NewSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19763,16 +13555,10 @@ func (m *UpdateServiceSafePointV2Request) Size() (n int) { if m.Ttl != 0 { n += 1 + sovPdpb(uint64(m.Ttl)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateServiceSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19789,32 +13575,20 @@ func (m *UpdateServiceSafePointV2Response) Size() (n int) { if m.MinSafePoint != 0 { n += 1 + sovPdpb(uint64(m.MinSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GCSafePointV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyspaceId != 0 { @@ -19823,16 +13597,10 @@ func (m *GCSafePointV2) Size() (n int) { if m.GcSafePoint != 0 { n += 1 + sovPdpb(uint64(m.GcSafePoint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetAllGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19848,16 +13616,10 @@ func (m *GetAllGCSafePointV2Response) Size() (n int) { if m.Revision != 0 { n += 1 + sovPdpb(uint64(m.Revision)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BytesWritten != 0 { @@ -19872,16 +13634,10 @@ func (m *RegionStat) Size() (n int) { if m.KeysRead != 0 { n += 1 + sovPdpb(uint64(m.KeysRead)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SyncRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19895,16 +13651,10 @@ func (m *SyncRegionRequest) Size() (n int) { if m.StartIndex != 0 { n += 1 + sovPdpb(uint64(m.StartIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PeersStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Peers) > 0 { @@ -19913,16 +13663,10 @@ func (m *PeersStats) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Peers) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Peers) > 0 { @@ -19931,16 +13675,10 @@ func (m *Peers) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SyncRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19986,16 +13724,10 @@ func (m *SyncRegionResponse) Size() (n int) { n += 2 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetOperatorRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20005,16 +13737,10 @@ func (m *GetOperatorRequest) Size() (n int) { if m.RegionId != 0 { n += 1 + sovPdpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetOperatorResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20035,16 +13761,10 @@ func (m *GetOperatorResponse) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SyncMaxTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20058,16 +13778,10 @@ func (m *SyncMaxTSRequest) Size() (n int) { if m.SkipCheck { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SyncMaxTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20084,16 +13798,10 @@ func (m *SyncMaxTSResponse) Size() (n int) { n += 1 + l + sovPdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20109,16 +13817,10 @@ func (m *SplitRegionsRequest) Size() (n int) { if m.RetryLimit != 0 { n += 1 + sovPdpb(uint64(m.RetryLimit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20135,16 +13837,10 @@ func (m *SplitRegionsResponse) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitAndScatterRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20164,16 +13860,10 @@ func (m *SplitAndScatterRegionsRequest) Size() (n int) { if m.RetryLimit != 0 { n += 1 + sovPdpb(uint64(m.RetryLimit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitAndScatterRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20193,16 +13883,10 @@ func (m *SplitAndScatterRegionsResponse) Size() (n int) { } n += 1 + sovPdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetDCLocationInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20213,16 +13897,10 @@ func (m *GetDCLocationInfoRequest) Size() (n int) { if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetDCLocationInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20236,16 +13914,10 @@ func (m *GetDCLocationInfoResponse) Size() (n int) { l = m.MaxTs.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *QueryStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GC != 0 { @@ -20281,16 +13953,10 @@ func (m *QueryStats) Size() (n int) { if m.Rollback != 0 { n += 1 + sovPdpb(uint64(m.Rollback)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportBucketsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20305,32 +13971,20 @@ func (m *ReportBucketsRequest) Size() (n int) { l = m.Buckets.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReportMinResolvedTsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20343,32 +13997,20 @@ func (m *ReportMinResolvedTsRequest) Size() (n int) { if m.MinResolvedTs != 0 { n += 1 + sovPdpb(uint64(m.MinResolvedTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SetExternalTimestampRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20378,48 +14020,30 @@ func (m *SetExternalTimestampRequest) Size() (n int) { if m.Timestamp != 0 { n += 1 + sovPdpb(uint64(m.Timestamp)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetExternalTimestampResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20429,32 +14053,20 @@ func (m *GetExternalTimestampResponse) Size() (n int) { if m.Timestamp != 0 { n += 1 + sovPdpb(uint64(m.Timestamp)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMinTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20465,14 +14077,18 @@ func (m *GetMinTSResponse) Size() (n int) { l = m.Timestamp.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovPdpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozPdpb(x uint64) (n int) { return sovPdpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -20492,7 +14108,7 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20520,7 +14136,7 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20530,9 +14146,6 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20552,7 +14165,7 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20563,13 +14176,12 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20594,7 +14206,7 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20622,7 +14234,7 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20631,9 +14243,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20656,7 +14265,7 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20675,7 +14284,7 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20684,9 +14293,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20703,13 +14309,12 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20734,7 +14339,7 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20762,7 +14367,7 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20771,9 +14376,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20796,7 +14398,7 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20806,9 +14408,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20820,13 +14419,12 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20851,7 +14449,7 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20879,7 +14477,7 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20888,9 +14486,6 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20907,13 +14502,12 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20938,7 +14532,7 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20966,7 +14560,7 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20976,9 +14570,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20998,7 +14589,7 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21008,9 +14599,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21022,13 +14610,12 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21053,7 +14640,7 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21081,7 +14668,7 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21090,9 +14677,6 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21115,7 +14699,7 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21126,13 +14710,12 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21157,7 +14740,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21185,7 +14768,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21195,9 +14778,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21217,7 +14797,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21227,9 +14807,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21249,7 +14826,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21258,9 +14835,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21285,7 +14859,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Kind |= EventType(b&0x7F) << shift + m.Kind |= (EventType(b) & 0x7F) << shift if b < 0x80 { break } @@ -21304,7 +14878,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21313,9 +14887,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21330,13 +14901,12 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21361,7 +14931,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21389,7 +14959,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21408,7 +14978,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= uint64(b&0x7F) << shift + m.SenderId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21419,13 +14989,12 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21450,7 +15019,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21478,7 +15047,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21497,7 +15066,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21506,9 +15075,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21525,13 +15091,12 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21556,7 +15121,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21584,7 +15149,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ErrorType(b&0x7F) << shift + m.Type |= (ErrorType(b) & 0x7F) << shift if b < 0x80 { break } @@ -21603,7 +15168,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21613,9 +15178,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21627,13 +15189,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21658,7 +15219,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21686,7 +15247,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21695,9 +15256,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21722,7 +15280,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + m.Count |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -21741,7 +15299,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21751,9 +15309,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21765,13 +15320,12 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21796,7 +15350,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21824,7 +15378,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Physical |= int64(b&0x7F) << shift + m.Physical |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21843,7 +15397,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Logical |= int64(b&0x7F) << shift + m.Logical |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21862,7 +15416,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SuffixBits |= uint32(b&0x7F) << shift + m.SuffixBits |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -21873,13 +15427,12 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21904,7 +15457,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21932,7 +15485,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21941,9 +15494,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21968,7 +15518,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + m.Count |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -21987,7 +15537,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21996,9 +15546,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22015,13 +15562,12 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22046,7 +15592,7 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22074,7 +15620,7 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22083,9 +15629,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22110,7 +15653,7 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22119,9 +15662,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22146,7 +15686,7 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22155,9 +15695,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22174,13 +15711,12 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22205,7 +15741,7 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22233,7 +15769,7 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22242,9 +15778,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22269,7 +15802,7 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22278,9 +15811,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22297,13 +15827,12 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22328,7 +15857,7 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22356,7 +15885,7 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22365,9 +15894,6 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22384,13 +15910,12 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22415,7 +15940,7 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22443,7 +15968,7 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22452,9 +15977,6 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22479,7 +16001,7 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22491,13 +16013,12 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22522,7 +16043,7 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22550,7 +16071,7 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22559,9 +16080,6 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22578,13 +16096,12 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22609,7 +16126,7 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22637,7 +16154,7 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22646,9 +16163,6 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22673,7 +16187,7 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22684,13 +16198,12 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22715,7 +16228,7 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22743,7 +16256,7 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22752,9 +16265,6 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22771,13 +16281,12 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22802,7 +16311,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22830,7 +16339,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22839,9 +16348,6 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22866,7 +16372,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22878,13 +16384,12 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22909,7 +16414,7 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22937,7 +16442,7 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -22946,9 +16451,6 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22973,7 +16475,7 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22984,13 +16486,12 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23015,7 +16516,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23043,7 +16544,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23052,9 +16553,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23079,7 +16577,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23088,9 +16586,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23115,7 +16610,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23124,9 +16619,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23143,13 +16635,12 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23174,7 +16665,7 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23202,7 +16693,7 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23211,9 +16702,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23238,7 +16726,7 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23247,9 +16735,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23266,13 +16751,12 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23297,7 +16781,7 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23325,7 +16809,7 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23334,9 +16818,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23361,7 +16842,7 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23370,9 +16851,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23389,13 +16867,12 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23420,7 +16897,7 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23448,7 +16925,7 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23457,9 +16934,6 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23484,7 +16958,7 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23496,13 +16970,12 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23527,7 +17000,7 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23555,7 +17028,7 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23564,9 +17037,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23591,7 +17061,7 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23600,9 +17070,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23617,13 +17084,12 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23648,7 +17114,7 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23676,7 +17142,7 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23685,9 +17151,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23712,7 +17175,7 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23721,9 +17184,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23746,7 +17206,7 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23758,13 +17218,12 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23789,7 +17248,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -23817,7 +17276,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23826,9 +17285,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23853,7 +17309,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23862,9 +17318,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23889,7 +17342,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23898,9 +17351,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23925,7 +17375,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23934,9 +17384,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23959,7 +17406,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -23968,9 +17415,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23993,7 +17437,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24002,9 +17446,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24021,13 +17462,12 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24052,7 +17492,7 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24080,7 +17520,7 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24089,9 +17529,6 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24116,7 +17553,7 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24135,7 +17572,7 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24147,13 +17584,12 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24178,7 +17614,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24206,7 +17642,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24215,9 +17651,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24242,7 +17675,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24251,9 +17684,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24276,7 +17706,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int32(b&0x7F) << shift + m.Limit |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -24295,7 +17725,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24304,9 +17734,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24321,13 +17748,12 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24352,7 +17778,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24380,7 +17806,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24389,9 +17815,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24416,7 +17839,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24425,9 +17848,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24452,7 +17872,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24461,9 +17881,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24486,7 +17903,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24495,9 +17912,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24512,13 +17926,12 @@ func (m *Region) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24543,7 +17956,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24571,7 +17984,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24580,9 +17993,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24607,7 +18017,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24616,9 +18026,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24641,7 +18048,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24650,9 +18057,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24675,7 +18079,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24684,9 +18088,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24701,13 +18102,12 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24732,7 +18132,7 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24760,7 +18160,7 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24769,9 +18169,6 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24788,13 +18185,12 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24819,7 +18215,7 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24847,7 +18243,7 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24856,9 +18252,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24883,7 +18276,7 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24892,9 +18285,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24911,13 +18301,12 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24942,7 +18331,7 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -24970,7 +18359,7 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -24979,9 +18368,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25006,7 +18392,7 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25015,9 +18401,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25034,13 +18417,12 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25065,7 +18447,7 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25093,7 +18475,7 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25102,9 +18484,6 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25121,13 +18500,12 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25152,7 +18530,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25180,7 +18558,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25190,9 +18568,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25212,7 +18587,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MemberId |= uint64(b&0x7F) << shift + m.MemberId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25231,7 +18606,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25241,9 +18616,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25263,7 +18635,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25273,9 +18645,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25295,7 +18664,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeaderPriority |= int32(b&0x7F) << shift + m.LeaderPriority |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -25314,7 +18683,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25324,9 +18693,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25346,7 +18712,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25356,9 +18722,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25378,7 +18741,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25388,9 +18751,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25410,7 +18770,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25420,9 +18780,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25434,13 +18791,12 @@ func (m *Member) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25465,7 +18821,7 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25493,7 +18849,7 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25502,9 +18858,6 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25521,13 +18874,12 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25552,7 +18904,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25580,7 +18932,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25589,9 +18941,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25616,7 +18965,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25625,9 +18974,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25650,7 +18996,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25659,9 +19005,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25686,7 +19029,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25695,9 +19038,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25722,7 +19062,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25731,9 +19071,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25754,7 +19091,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25771,7 +19108,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25781,9 +19118,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPdpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -25800,7 +19134,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25809,7 +19143,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthPdpb } if postmsgIndex > l { @@ -25826,7 +19160,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > postIndex { @@ -25843,13 +19177,12 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25874,7 +19207,7 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25902,7 +19235,7 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25911,9 +19244,6 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25930,13 +19260,12 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25961,7 +19290,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25989,7 +19318,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25998,9 +19327,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26023,7 +19349,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= ServiceMode(b&0x7F) << shift + v |= (ServiceMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -26040,7 +19366,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26049,16 +19375,9 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { 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 { @@ -26070,7 +19389,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= ServiceMode(b&0x7F) << shift + v |= (ServiceMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -26094,7 +19413,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26104,9 +19423,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26118,13 +19434,12 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26149,7 +19464,7 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26177,7 +19492,7 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26186,9 +19501,6 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26213,7 +19525,7 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DownSeconds |= uint64(b&0x7F) << shift + m.DownSeconds |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26224,13 +19536,12 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26255,7 +19566,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26283,7 +19594,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26292,9 +19603,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26319,7 +19627,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26328,9 +19636,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26355,7 +19660,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26364,9 +19669,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26391,7 +19693,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26400,9 +19702,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26425,7 +19724,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26434,9 +19733,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26459,7 +19755,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesWritten |= uint64(b&0x7F) << shift + m.BytesWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26478,7 +19774,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesRead |= uint64(b&0x7F) << shift + m.BytesRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26497,7 +19793,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysWritten |= uint64(b&0x7F) << shift + m.KeysWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26516,7 +19812,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysRead |= uint64(b&0x7F) << shift + m.KeysRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26535,7 +19831,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateSize |= uint64(b&0x7F) << shift + m.ApproximateSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26554,7 +19850,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26563,9 +19859,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26590,7 +19883,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateKeys |= uint64(b&0x7F) << shift + m.ApproximateKeys |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26609,7 +19902,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26628,7 +19921,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26637,9 +19930,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26664,7 +19954,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26673,9 +19963,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26700,7 +19987,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CpuUsage |= uint64(b&0x7F) << shift + m.CpuUsage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26719,7 +20006,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateKvSize |= uint64(b&0x7F) << shift + m.ApproximateKvSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26730,13 +20017,12 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26761,7 +20047,7 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26789,7 +20075,7 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26798,9 +20084,6 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26825,7 +20108,7 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= eraftpb.ConfChangeType(b&0x7F) << shift + m.ChangeType |= (eraftpb.ConfChangeType(b) & 0x7F) << shift if b < 0x80 { break } @@ -26836,13 +20119,12 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26867,7 +20149,7 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26895,7 +20177,7 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26904,9 +20186,6 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26921,13 +20200,12 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26952,7 +20230,7 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -26980,7 +20258,7 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -26989,9 +20267,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27016,7 +20291,7 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27025,9 +20300,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27042,13 +20314,12 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27073,7 +20344,7 @@ func (m *Merge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27101,7 +20372,7 @@ func (m *Merge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27110,9 +20381,6 @@ func (m *Merge) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27129,13 +20397,12 @@ func (m *Merge) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27160,7 +20427,7 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27188,7 +20455,7 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Policy |= CheckPolicy(b&0x7F) << shift + m.Policy |= (CheckPolicy(b) & 0x7F) << shift if b < 0x80 { break } @@ -27207,7 +20474,7 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27216,9 +20483,6 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27231,13 +20495,12 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27262,7 +20525,7 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27290,7 +20553,7 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + m.PeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27309,7 +20572,7 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27321,13 +20584,12 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27352,7 +20614,7 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27380,7 +20642,7 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27389,9 +20651,6 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27406,13 +20665,12 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27437,7 +20695,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27465,7 +20723,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27474,9 +20732,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27501,7 +20756,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27510,9 +20765,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27537,7 +20789,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27546,9 +20798,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27573,7 +20822,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27592,7 +20841,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27601,9 +20850,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27628,7 +20874,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27637,9 +20883,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27664,7 +20907,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27673,9 +20916,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27700,7 +20940,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27709,9 +20949,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27736,7 +20973,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27745,9 +20982,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27772,7 +21006,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27781,9 +21015,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27800,13 +21031,12 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27831,7 +21061,7 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27859,7 +21089,7 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27868,9 +21098,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27895,7 +21122,7 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27904,9 +21131,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27923,13 +21147,12 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27954,7 +21177,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -27982,7 +21205,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27991,9 +21214,6 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28018,7 +21238,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= uint64(b&0x7F) << shift + m.NewRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28035,7 +21255,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28052,7 +21272,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28061,23 +21281,9 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { 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 { @@ -28089,7 +21295,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28105,13 +21311,12 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28136,7 +21341,7 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28164,7 +21369,7 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28173,9 +21378,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28200,7 +21402,7 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28209,9 +21411,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28236,7 +21435,7 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28245,9 +21444,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28264,13 +21460,12 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28295,7 +21490,7 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28323,7 +21518,7 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28332,9 +21527,6 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28351,13 +21543,12 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28382,7 +21573,7 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28410,7 +21601,7 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28419,9 +21610,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28446,7 +21634,7 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28455,9 +21643,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28482,7 +21667,7 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SplitCount |= uint32(b&0x7F) << shift + m.SplitCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -28493,13 +21678,12 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28524,7 +21708,7 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28552,7 +21736,7 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= uint64(b&0x7F) << shift + m.NewRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28569,7 +21753,7 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28586,7 +21770,7 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28595,23 +21779,9 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { 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 { @@ -28623,7 +21793,7 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28639,13 +21809,12 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28670,7 +21839,7 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28698,7 +21867,7 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28707,9 +21876,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28734,7 +21900,7 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28743,9 +21909,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28760,13 +21923,12 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28791,7 +21953,7 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28819,7 +21981,7 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28828,9 +21990,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28855,7 +22014,7 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28864,9 +22023,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28881,13 +22037,12 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28912,7 +22067,7 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -28940,7 +22095,7 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28949,9 +22104,6 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28968,13 +22120,12 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28999,7 +22150,7 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29027,7 +22178,7 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTimestamp |= uint64(b&0x7F) << shift + m.StartTimestamp |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29046,7 +22197,7 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTimestamp |= uint64(b&0x7F) << shift + m.EndTimestamp |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29057,13 +22208,12 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29088,7 +22238,7 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29116,7 +22266,7 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29126,9 +22276,6 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29148,7 +22295,7 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= uint64(b&0x7F) << shift + m.Value |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29159,13 +22306,12 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29190,7 +22336,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29218,7 +22364,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29237,7 +22383,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadKeys |= uint64(b&0x7F) << shift + m.ReadKeys |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29256,7 +22402,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadBytes |= uint64(b&0x7F) << shift + m.ReadBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29275,7 +22421,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29284,9 +22430,6 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29311,7 +22454,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WrittenKeys |= uint64(b&0x7F) << shift + m.WrittenKeys |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29330,7 +22473,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WrittenBytes |= uint64(b&0x7F) << shift + m.WrittenBytes |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29341,13 +22484,12 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29372,7 +22514,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29400,7 +22542,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29419,7 +22561,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Capacity |= uint64(b&0x7F) << shift + m.Capacity |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29438,7 +22580,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Available |= uint64(b&0x7F) << shift + m.Available |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29457,7 +22599,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionCount |= uint32(b&0x7F) << shift + m.RegionCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -29476,7 +22618,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SendingSnapCount |= uint32(b&0x7F) << shift + m.SendingSnapCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -29495,7 +22637,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReceivingSnapCount |= uint32(b&0x7F) << shift + m.ReceivingSnapCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -29514,7 +22656,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTime |= uint32(b&0x7F) << shift + m.StartTime |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -29533,7 +22675,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyingSnapCount |= uint32(b&0x7F) << shift + m.ApplyingSnapCount |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -29552,7 +22694,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29572,7 +22714,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UsedSize |= uint64(b&0x7F) << shift + m.UsedSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29591,7 +22733,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesWritten |= uint64(b&0x7F) << shift + m.BytesWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29610,7 +22752,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysWritten |= uint64(b&0x7F) << shift + m.KeysWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29629,7 +22771,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesRead |= uint64(b&0x7F) << shift + m.BytesRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29648,7 +22790,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysRead |= uint64(b&0x7F) << shift + m.KeysRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29667,7 +22809,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29676,9 +22818,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29703,7 +22842,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29712,9 +22851,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29737,7 +22873,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29746,9 +22882,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29771,7 +22904,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29780,9 +22913,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29805,7 +22935,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29814,9 +22944,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29839,7 +22966,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29848,9 +22975,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29873,7 +22997,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29882,9 +23006,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29909,7 +23030,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SlowScore |= uint64(b&0x7F) << shift + m.SlowScore |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29926,7 +23047,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -29943,7 +23064,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29952,23 +23073,9 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { 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 { @@ -29980,7 +23087,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30004,7 +23111,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30024,7 +23131,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30033,9 +23140,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30058,7 +23162,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30067,9 +23171,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30094,7 +23195,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30106,13 +23207,12 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30137,7 +23237,7 @@ func (m *SlowTrend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30201,13 +23301,12 @@ func (m *SlowTrend) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30232,7 +23331,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30260,7 +23359,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30279,7 +23378,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GenerateDurationSec |= uint64(b&0x7F) << shift + m.GenerateDurationSec |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30298,7 +23397,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SendDurationSec |= uint64(b&0x7F) << shift + m.SendDurationSec |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30317,7 +23416,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalDurationSec |= uint64(b&0x7F) << shift + m.TotalDurationSec |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30336,7 +23435,7 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TransportSize |= uint64(b&0x7F) << shift + m.TransportSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30347,13 +23446,12 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30378,7 +23476,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30406,7 +23504,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30415,9 +23513,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30442,7 +23537,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30451,9 +23546,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30478,7 +23570,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30498,7 +23590,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30510,13 +23602,12 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30541,7 +23632,7 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30569,7 +23660,7 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30578,9 +23669,6 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30603,7 +23691,7 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Step |= uint64(b&0x7F) << shift + m.Step |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30614,13 +23702,12 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30645,7 +23732,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30673,7 +23760,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30682,9 +23769,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30709,7 +23793,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30718,9 +23802,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30745,7 +23826,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30754,9 +23835,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30781,7 +23859,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30790,9 +23868,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30809,13 +23884,12 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30840,7 +23914,7 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30868,7 +23942,7 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30887,7 +23961,7 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30896,9 +23970,6 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30913,13 +23984,12 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30944,7 +24014,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30970,7 +24040,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -30987,7 +24057,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30996,23 +24066,9 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { 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 { @@ -31024,7 +24080,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31046,7 +24102,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31063,7 +24119,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31072,23 +24128,9 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { 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 { @@ -31100,7 +24142,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31116,13 +24158,12 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31147,7 +24188,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31175,7 +24216,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31184,9 +24225,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31209,7 +24247,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31218,9 +24256,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31241,7 +24276,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31258,7 +24293,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31267,23 +24302,9 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { 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 { @@ -31295,7 +24316,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31319,7 +24340,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31328,9 +24349,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31353,7 +24371,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31362,9 +24380,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31389,7 +24404,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Step |= uint64(b&0x7F) << shift + m.Step |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31400,13 +24415,12 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31431,7 +24445,7 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31457,7 +24471,7 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31474,7 +24488,7 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31483,23 +24497,9 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { 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.AbnormalStores) == 0 { - m.AbnormalStores = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -31511,7 +24511,7 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31527,13 +24527,12 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31558,7 +24557,7 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31586,7 +24585,7 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CtrlEvent |= ControlGrpcEvent(b&0x7F) << shift + m.CtrlEvent |= (ControlGrpcEvent(b) & 0x7F) << shift if b < 0x80 { break } @@ -31597,13 +24596,12 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31628,7 +24626,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31656,7 +24654,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31665,9 +24663,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31692,7 +24687,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31701,9 +24696,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31728,7 +24720,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31738,9 +24730,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31760,7 +24749,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31780,7 +24769,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31789,9 +24778,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31816,7 +24802,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31825,9 +24811,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31852,7 +24835,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31861,9 +24844,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31880,13 +24860,12 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31911,7 +24890,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31939,7 +24918,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -31948,9 +24927,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31975,7 +24951,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31994,7 +24970,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32003,9 +24979,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32030,7 +25003,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32039,9 +25012,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32066,7 +25036,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32076,9 +25046,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32096,7 +25063,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32113,7 +25080,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32122,23 +25089,9 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { 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 { @@ -32150,7 +25103,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32174,7 +25127,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetryLimit |= uint64(b&0x7F) << shift + m.RetryLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32193,7 +25146,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32205,13 +25158,12 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32236,7 +25188,7 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32264,7 +25216,7 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32273,9 +25225,6 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32300,7 +25249,7 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FinishedPercentage |= uint64(b&0x7F) << shift + m.FinishedPercentage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32311,13 +25260,12 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32342,7 +25290,7 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32370,7 +25318,7 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32379,9 +25327,6 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32398,13 +25343,12 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32429,7 +25373,7 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32457,7 +25401,7 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32466,9 +25410,6 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32493,7 +25434,7 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32504,13 +25445,12 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32535,7 +25475,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32563,7 +25503,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32572,9 +25512,6 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32599,7 +25536,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32610,13 +25547,12 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32641,7 +25577,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32669,7 +25605,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32678,9 +25614,6 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32705,7 +25638,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= uint64(b&0x7F) << shift + m.NewSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32716,13 +25649,12 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32747,7 +25679,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32775,7 +25707,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32784,9 +25716,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32811,7 +25740,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32820,9 +25749,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32845,7 +25771,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TTL |= int64(b&0x7F) << shift + m.TTL |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32864,7 +25790,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32875,13 +25801,12 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32906,7 +25831,7 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -32934,7 +25859,7 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32943,9 +25868,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32970,7 +25892,7 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -32979,9 +25901,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33004,7 +25923,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 } @@ -33023,7 +25942,7 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinSafePoint |= uint64(b&0x7F) << shift + m.MinSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33034,13 +25953,12 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33065,7 +25983,7 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33093,7 +26011,7 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33102,9 +26020,6 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33129,7 +26044,7 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -33140,13 +26055,12 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33171,7 +26085,7 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33199,7 +26113,7 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33208,9 +26122,6 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33235,7 +26146,7 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33246,13 +26157,12 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33277,7 +26187,7 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33305,7 +26215,7 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33314,9 +26224,6 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33341,7 +26248,7 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33352,13 +26259,12 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33383,7 +26289,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33411,7 +26317,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -33430,7 +26336,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33449,7 +26355,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= EventType(b&0x7F) << shift + m.Type |= (EventType(b) & 0x7F) << shift if b < 0x80 { break } @@ -33460,13 +26366,12 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33491,7 +26396,7 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33519,7 +26424,7 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33528,9 +26433,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33555,7 +26457,7 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33564,9 +26466,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33589,7 +26488,7 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33600,13 +26499,12 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33631,7 +26529,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33659,7 +26557,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33668,9 +26566,6 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33695,7 +26590,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -33714,7 +26609,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33725,13 +26620,12 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33756,7 +26650,7 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33784,7 +26678,7 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33793,9 +26687,6 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33820,7 +26711,7 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= uint64(b&0x7F) << shift + m.NewSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33831,13 +26722,12 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33862,7 +26752,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33890,7 +26780,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33899,9 +26789,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33926,7 +26813,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -33945,7 +26832,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -33954,9 +26841,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33979,7 +26863,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.SafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -33998,7 +26882,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= int64(b&0x7F) << shift + m.Ttl |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34009,13 +26893,12 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34040,7 +26923,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34068,7 +26951,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34077,9 +26960,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34104,7 +26984,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34113,9 +26993,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34138,7 +27015,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= int64(b&0x7F) << shift + m.Ttl |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34157,7 +27034,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinSafePoint |= uint64(b&0x7F) << shift + m.MinSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34168,13 +27045,12 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34199,7 +27075,7 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34227,7 +27103,7 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34236,9 +27112,6 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34255,13 +27128,12 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34286,7 +27158,7 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34314,7 +27186,7 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -34333,7 +27205,7 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcSafePoint |= uint64(b&0x7F) << shift + m.GcSafePoint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34344,13 +27216,12 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34375,7 +27246,7 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34403,7 +27274,7 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34412,9 +27283,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34439,7 +27307,7 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34448,9 +27316,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34473,7 +27338,7 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.Revision |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34484,13 +27349,12 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34515,7 +27379,7 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34543,7 +27407,7 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesWritten |= uint64(b&0x7F) << shift + m.BytesWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34562,7 +27426,7 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesRead |= uint64(b&0x7F) << shift + m.BytesRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34581,7 +27445,7 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysWritten |= uint64(b&0x7F) << shift + m.KeysWritten |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34600,7 +27464,7 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysRead |= uint64(b&0x7F) << shift + m.KeysRead |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34611,13 +27475,12 @@ func (m *RegionStat) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34642,7 +27505,7 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34670,7 +27533,7 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34679,9 +27542,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34706,7 +27566,7 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34715,9 +27575,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34742,7 +27599,7 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartIndex |= uint64(b&0x7F) << shift + m.StartIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34753,13 +27610,12 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34784,7 +27640,7 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34812,7 +27668,7 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34821,9 +27677,6 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34838,13 +27691,12 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34869,7 +27721,7 @@ func (m *Peers) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34897,7 +27749,7 @@ func (m *Peers) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34906,9 +27758,6 @@ func (m *Peers) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34923,13 +27772,12 @@ func (m *Peers) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34954,7 +27802,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -34982,7 +27830,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -34991,9 +27839,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35018,7 +27863,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35027,9 +27872,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35052,7 +27894,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartIndex |= uint64(b&0x7F) << shift + m.StartIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35071,7 +27913,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35080,9 +27922,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35105,7 +27944,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35114,9 +27953,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35139,7 +27975,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35148,9 +27984,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35173,7 +28006,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35182,9 +28015,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35207,7 +28037,7 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35216,9 +28046,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35233,13 +28060,12 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35264,7 +28090,7 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35292,7 +28118,7 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35301,9 +28127,6 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35328,7 +28151,7 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35339,13 +28162,12 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35370,7 +28192,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35398,7 +28220,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35407,9 +28229,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35434,7 +28253,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35453,7 +28272,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35462,9 +28281,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35487,7 +28303,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= OperatorStatus(b&0x7F) << shift + m.Status |= (OperatorStatus(b) & 0x7F) << shift if b < 0x80 { break } @@ -35506,7 +28322,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35515,9 +28331,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35532,13 +28345,12 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35563,7 +28375,7 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35591,7 +28403,7 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35600,9 +28412,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35627,7 +28436,7 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35636,9 +28445,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35663,7 +28469,7 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35675,13 +28481,12 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35706,7 +28511,7 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35734,7 +28539,7 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35743,9 +28548,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35770,7 +28572,7 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35779,9 +28581,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35806,7 +28605,7 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35816,9 +28615,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35830,13 +28626,12 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35861,7 +28656,7 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35889,7 +28684,7 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35898,9 +28693,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35925,7 +28717,7 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -35934,9 +28726,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35957,7 +28746,7 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetryLimit |= uint64(b&0x7F) << shift + m.RetryLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -35968,13 +28757,12 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35999,7 +28787,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36027,7 +28815,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36036,9 +28824,6 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36063,7 +28848,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FinishedPercentage |= uint64(b&0x7F) << shift + m.FinishedPercentage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36080,7 +28865,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36097,7 +28882,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36106,23 +28891,9 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { 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 { @@ -36134,7 +28905,7 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36150,13 +28921,12 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36181,7 +28951,7 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36209,7 +28979,7 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36218,9 +28988,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36245,7 +29012,7 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36254,9 +29021,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36277,7 +29041,7 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36287,9 +29051,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36309,7 +29070,7 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetryLimit |= uint64(b&0x7F) << shift + m.RetryLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36320,13 +29081,12 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36351,7 +29111,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36379,7 +29139,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36388,9 +29148,6 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36415,7 +29172,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SplitFinishedPercentage |= uint64(b&0x7F) << shift + m.SplitFinishedPercentage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36434,7 +29191,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ScatterFinishedPercentage |= uint64(b&0x7F) << shift + m.ScatterFinishedPercentage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36451,7 +29208,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36468,7 +29225,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36477,23 +29234,9 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { 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 { @@ -36505,7 +29248,7 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36521,13 +29264,12 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36552,7 +29294,7 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36580,7 +29322,7 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36589,9 +29331,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36616,7 +29355,7 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36626,9 +29365,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36640,13 +29376,12 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36671,7 +29406,7 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36699,7 +29434,7 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36708,9 +29443,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36735,7 +29467,7 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Suffix |= int32(b&0x7F) << shift + m.Suffix |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -36754,7 +29486,7 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -36763,9 +29495,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36782,13 +29511,12 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36813,7 +29541,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36841,7 +29569,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GC |= uint64(b&0x7F) << shift + m.GC |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36860,7 +29588,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Get |= uint64(b&0x7F) << shift + m.Get |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36879,7 +29607,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Scan |= uint64(b&0x7F) << shift + m.Scan |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36898,7 +29626,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Coprocessor |= uint64(b&0x7F) << shift + m.Coprocessor |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36917,7 +29645,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Delete |= uint64(b&0x7F) << shift + m.Delete |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36936,7 +29664,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeleteRange |= uint64(b&0x7F) << shift + m.DeleteRange |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36955,7 +29683,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Put |= uint64(b&0x7F) << shift + m.Put |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36974,7 +29702,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Prewrite |= uint64(b&0x7F) << shift + m.Prewrite |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -36993,7 +29721,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AcquirePessimisticLock |= uint64(b&0x7F) << shift + m.AcquirePessimisticLock |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37012,7 +29740,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37031,7 +29759,7 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Rollback |= uint64(b&0x7F) << shift + m.Rollback |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37042,13 +29770,12 @@ func (m *QueryStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37073,7 +29800,7 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37101,7 +29828,7 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37110,9 +29837,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37137,7 +29861,7 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37146,9 +29870,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37173,7 +29894,7 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37182,9 +29903,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37201,13 +29919,12 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37232,7 +29949,7 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37260,7 +29977,7 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37269,9 +29986,6 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37288,13 +30002,12 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37319,7 +30032,7 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37347,7 +30060,7 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37356,9 +30069,6 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37383,7 +30093,7 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37402,7 +30112,7 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinResolvedTs |= uint64(b&0x7F) << shift + m.MinResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37413,13 +30123,12 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37444,7 +30153,7 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37472,7 +30181,7 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37481,9 +30190,6 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37500,13 +30206,12 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37531,7 +30236,7 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37559,7 +30264,7 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37568,9 +30273,6 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37595,7 +30297,7 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= uint64(b&0x7F) << shift + m.Timestamp |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37606,13 +30308,12 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37637,7 +30338,7 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37665,7 +30366,7 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37674,9 +30375,6 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37693,13 +30391,12 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37724,7 +30421,7 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37752,7 +30449,7 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37761,9 +30458,6 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37780,13 +30474,12 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37811,7 +30504,7 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37839,7 +30532,7 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37848,9 +30541,6 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37875,7 +30565,7 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= uint64(b&0x7F) << shift + m.Timestamp |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37886,13 +30576,12 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37917,7 +30606,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37945,7 +30634,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -37954,9 +30643,6 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37973,13 +30659,12 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38004,7 +30689,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -38032,7 +30717,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38041,9 +30726,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38068,7 +30750,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -38077,9 +30759,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38096,13 +30775,12 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthPdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38115,7 +30793,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { func skipPdpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -38147,8 +30824,10 @@ func skipPdpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -38165,34 +30844,443 @@ func skipPdpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthPdpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPdpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPdpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipPdpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthPdpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthPdpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPdpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthPdpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("pdpb.proto", fileDescriptorPdpb) } + +var fileDescriptorPdpb = []byte{ + // 6138 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3c,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01, 0xf4, + 0x89, 0x2b, 0x95, 0xe6, 0x2b, 0xc1, 0x66, 0xe1, 0x3a, 0x77, 0x49, 0x6e, 0x96, 0x90, 0x28, 0xe4, + 0x5e, 0xa1, 0x6b, 0x63, 0xba, 0x63, 0xc7, 0x67, 0x24, 0x2b, 0x1a, 0x7f, 0xa0, 0x1a, 0x66, 0x99, + 0xfa, 0xc0, 0xe5, 0x76, 0x87, 0xad, 0x50, 0x51, 0x03, 0xcb, 0xdc, 0x11, 0x10, 0xf5, 0x10, 0x8a, + 0x7d, 0x7b, 0x88, 0x89, 0x6f, 0x0c, 0x47, 0x54, 0x49, 0x46, 0x27, 0x13, 0x62, 0x9b, 0xc6, 0x80, + 0x0d, 0x99, 0xd5, 0x82, 0x67, 0xca, 0xf4, 0xc0, 0x3d, 0x66, 0x4d, 0x5c, 0x7f, 0xe4, 0x23, 0x1d, + 0x83, 0x8c, 0x8f, 0x8e, 0xec, 0xe7, 0xfa, 0xa1, 0xed, 0x13, 0x36, 0x46, 0x45, 0x03, 0x0e, 0xda, + 0xb4, 0x7d, 0xa2, 0xfe, 0x86, 0x02, 0x25, 0x36, 0xad, 0x40, 0x73, 0xa3, 0xf3, 0x5a, 0x68, 0x04, + 0xe6, 0x4c, 0xec, 0x2d, 0x28, 0xfa, 0x92, 0x6f, 0xa1, 0x78, 0x42, 0xda, 0xc1, 0x74, 0xb4, 0x29, + 0x86, 0xfa, 0x03, 0x05, 0x6a, 0x9b, 0xae, 0xeb, 0x13, 0xdf, 0x33, 0x46, 0xa9, 0xe4, 0x7b, 0x07, + 0xf2, 0x84, 0x1a, 0x07, 0xa1, 0x05, 0x95, 0x87, 0xe2, 0x04, 0x60, 0x16, 0x43, 0xe3, 0x6d, 0xe8, + 0x1e, 0x2c, 0x7b, 0xf8, 0x58, 0x4a, 0xba, 0xf4, 0xa8, 0x2a, 0xb1, 0x34, 0x06, 0xd5, 0x44, 0x2b, + 0x35, 0xb9, 0x6b, 0x21, 0x76, 0x52, 0xc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81, 0xda, 0x74, + 0x94, 0x9f, 0xa1, 0xcd, 0xfd, 0xeb, 0x70, 0x69, 0x1b, 0xfb, 0xcd, 0xc1, 0x80, 0xb1, 0x46, 0x52, + 0x49, 0xe0, 0x03, 0xa8, 0xe3, 0xe7, 0xe6, 0x60, 0x6c, 0x61, 0xdd, 0x77, 0x87, 0x87, 0xc4, 0x77, + 0x1d, 0xac, 0xb3, 0x79, 0x13, 0xa1, 0x56, 0x57, 0x44, 0x7b, 0x5f, 0x36, 0xf3, 0xd1, 0xd4, 0x53, + 0x58, 0x8f, 0x8e, 0x9e, 0x4a, 0x32, 0xaf, 0xc3, 0x72, 0x30, 0x5a, 0x76, 0x76, 0x09, 0x44, 0xa3, + 0xfa, 0x9b, 0x5c, 0xf1, 0x84, 0xdd, 0x4d, 0x33, 0xd1, 0x1b, 0x00, 0xdc, 0x5a, 0xeb, 0xa7, 0x78, + 0xc2, 0xa6, 0x56, 0xd6, 0x8a, 0x1c, 0xf2, 0x04, 0x4f, 0xd0, 0x6b, 0x50, 0x76, 0x30, 0xb6, 0xf4, + 0xc3, 0xb1, 0x79, 0x8a, 0x85, 0xe2, 0x15, 0xb4, 0x12, 0x85, 0x6d, 0x72, 0x90, 0xfa, 0x17, 0x19, + 0x58, 0x0b, 0xf1, 0x90, 0x6a, 0xba, 0xd3, 0x13, 0x25, 0xb3, 0xe8, 0x44, 0x41, 0x77, 0x61, 0x79, + 0x10, 0x76, 0xac, 0xcb, 0x12, 0xaf, 0x8b, 0x29, 0x35, 0xde, 0x86, 0x1e, 0x02, 0x58, 0xee, 0x33, + 0x47, 0x1f, 0x61, 0xec, 0x91, 0x7a, 0x9e, 0x09, 0x50, 0x1c, 0x9b, 0x14, 0x8f, 0x6f, 0x95, 0x22, + 0x45, 0xa1, 0x8f, 0x04, 0xbd, 0x0b, 0x95, 0x11, 0x76, 0x2c, 0xdb, 0x39, 0x16, 0x5d, 0x96, 0x59, + 0x97, 0x28, 0xf1, 0xb2, 0x40, 0xe1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0x04, 0xe6, 0xf6, 0xb3, 0x03, + 0x19, 0xfd, 0x22, 0x00, 0x2f, 0xd3, 0xf3, 0xa9, 0x44, 0xf8, 0x11, 0x7c, 0xe3, 0x61, 0xb4, 0x72, + 0x4f, 0x33, 0x8e, 0xfc, 0x1d, 0xd7, 0x34, 0x06, 0x54, 0x24, 0x58, 0x2b, 0xd2, 0x56, 0xf6, 0x17, + 0x6d, 0x06, 0x56, 0x9b, 0xf7, 0xe7, 0x2e, 0xd5, 0xad, 0x78, 0x7f, 0x86, 0x12, 0xa2, 0x20, 0xcc, + 0x3a, 0xa7, 0x71, 0x0f, 0x56, 0x6d, 0xa2, 0x1f, 0xb9, 0x9e, 0x89, 0xc3, 0x51, 0x53, 0x41, 0xab, + 0xd8, 0xe4, 0x31, 0x85, 0xee, 0x48, 0x77, 0xa3, 0x76, 0x62, 0x10, 0xdd, 0x74, 0x87, 0x43, 0xdb, + 0xd7, 0x79, 0x94, 0x92, 0x63, 0x88, 0xd5, 0x13, 0x83, 0x6c, 0x31, 0x30, 0x0b, 0x54, 0xd4, 0xa7, + 0x50, 0x12, 0x97, 0xce, 0x6c, 0x8a, 0xef, 0x41, 0x99, 0x6d, 0x65, 0x8f, 0x3d, 0xc6, 0x42, 0xf7, + 0xa9, 0x28, 0xb4, 0xd2, 0x28, 0xf8, 0xcf, 0x52, 0x2b, 0xc4, 0xc7, 0xd2, 0x4d, 0x60, 0xff, 0xd5, + 0xff, 0x55, 0xe0, 0x32, 0x23, 0xfc, 0xb2, 0x09, 0x37, 0x71, 0x49, 0x9f, 0x59, 0x78, 0x49, 0xcf, + 0x02, 0x2d, 0x76, 0xce, 0x72, 0xc6, 0x85, 0x87, 0xbd, 0x16, 0x42, 0x97, 0x8c, 0x93, 0xd0, 0x6c, + 0x3f, 0x05, 0x64, 0x79, 0xba, 0x31, 0xf6, 0x5d, 0x32, 0x71, 0x4c, 0x99, 0xff, 0xe1, 0xee, 0xc2, + 0x1b, 0x49, 0xf9, 0x1f, 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, 0x0d, 0x68, 0x2f, 0x79, 0x7c, 0xd5, 0x4a, 0x8f, 0xbe, 0x7b, 0x1d, 0x32, 0xdd, + 0x16, 0xda, 0x85, 0x6a, 0xf4, 0xad, 0x25, 0x74, 0x2d, 0x78, 0x5b, 0x6b, 0xf6, 0x9d, 0xa8, 0xc6, + 0xf5, 0xe4, 0x46, 0xbe, 0xc9, 0xd4, 0x25, 0xd4, 0x04, 0x98, 0xbe, 0xe6, 0x85, 0x36, 0x66, 0x5f, + 0xfc, 0xe2, 0x64, 0xea, 0xf3, 0xde, 0x08, 0x53, 0x97, 0xd0, 0x3b, 0x90, 0xed, 0x13, 0x17, 0x89, + 0x28, 0x76, 0xfa, 0x2d, 0x96, 0xc6, 0x5a, 0x08, 0x22, 0xb1, 0xef, 0x2b, 0xef, 0x28, 0xe8, 0x23, + 0x28, 0x06, 0x1f, 0xba, 0x40, 0xe2, 0xf2, 0x37, 0xfe, 0xa5, 0x91, 0xc6, 0xc6, 0x0c, 0x3c, 0x18, + 0x71, 0x17, 0xaa, 0xd1, 0x4f, 0x65, 0x48, 0x19, 0x24, 0x7e, 0x86, 0x43, 0xca, 0x20, 0xf9, 0xeb, + 0x1a, 0xea, 0x12, 0xfa, 0x00, 0x56, 0xc4, 0xe7, 0x2c, 0x90, 0xb0, 0x42, 0xd1, 0x8f, 0x63, 0x34, + 0x2e, 0xc7, 0xa0, 0x41, 0x4f, 0x1d, 0xd6, 0x93, 0xbe, 0x35, 0x81, 0x5e, 0x93, 0x23, 0xce, 0xfd, + 0xa6, 0x45, 0x43, 0x5d, 0x84, 0x12, 0x0c, 0xf0, 0x0b, 0x50, 0x90, 0x9f, 0x82, 0x40, 0x97, 0x83, + 0x35, 0x08, 0x7f, 0x8b, 0xa1, 0x71, 0x25, 0x0e, 0x0e, 0x77, 0x96, 0x9f, 0x54, 0x90, 0x9d, 0x63, + 0x1f, 0x72, 0x90, 0x9d, 0xe3, 0x5f, 0x5e, 0x50, 0x97, 0xd0, 0x36, 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0xe2, 0x82, 0x3c, + 0x11, 0x77, 0xb9, 0x93, 0x32, 0x32, 0xd2, 0xe5, 0x5e, 0x90, 0x17, 0x92, 0x2e, 0xf7, 0xa2, 0x84, + 0x0e, 0x1f, 0x60, 0x7b, 0xc1, 0x00, 0xdb, 0xe7, 0x0f, 0xb0, 0xbd, 0x78, 0x00, 0xee, 0xd3, 0xb3, + 0x6c, 0x48, 0xc8, 0xa7, 0x0f, 0x67, 0x57, 0x42, 0x3e, 0x7d, 0x24, 0x69, 0xa2, 0x2e, 0x6d, 0xde, + 0xfb, 0x8f, 0xbf, 0x29, 0x28, 0xff, 0xfa, 0xc5, 0x4d, 0xe5, 0xdf, 0xbe, 0xb8, 0xa9, 0xfc, 0xe4, + 0x8b, 0x9b, 0xca, 0x8f, 0xfe, 0xeb, 0xe6, 0x12, 0xd4, 0x5c, 0xef, 0xf8, 0xa1, 0x6f, 0x9f, 0x9e, + 0x3d, 0x3c, 0x3d, 0x63, 0x5f, 0xbe, 0x3d, 0x5c, 0x66, 0x3f, 0xef, 0xfd, 0x7f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xe0, 0x6d, 0x87, 0xcd, 0x87, 0x57, 0x00, 0x00, +} diff --git a/pkg/raft_cmdpb/raft_cmdpb.pb.go b/pkg/raft_cmdpb/raft_cmdpb.pb.go index 58e4e984f..51c1c9e46 100644 --- a/pkg/raft_cmdpb/raft_cmdpb.pb.go +++ b/pkg/raft_cmdpb/raft_cmdpb.pb.go @@ -1,20 +1,93 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: raft_cmdpb.proto +/* +Package raft_cmdpb is a generated protocol buffer package. + +It is generated from these files: + + raft_cmdpb.proto + +It has these top-level messages: + + GetRequest + GetResponse + PutRequest + PutResponse + DeleteRequest + DeleteResponse + DeleteRangeRequest + DeleteRangeResponse + SnapRequest + SnapResponse + PrewriteRequest + PrewriteResponse + IngestSSTRequest + IngestSSTResponse + ReadIndexRequest + ReadIndexResponse + Request + Response + ChangePeerRequest + ChangePeerResponse + ChangePeerV2Request + ChangePeerV2Response + SplitRequest + SplitResponse + BatchSplitRequest + BatchSplitResponse + CompactLogRequest + CompactLogResponse + TransferLeaderRequest + TransferLeaderResponse + ComputeHashRequest + VerifyHashRequest + VerifyHashResponse + PrepareMergeRequest + PrepareMergeResponse + PrepareFlashbackRequest + PrepareFlashbackResponse + FinishFlashbackRequest + FinishFlashbackResponse + CommitMergeRequest + CommitMergeResponse + RollbackMergeRequest + RollbackMergeResponse + SwitchWitnessRequest + BatchSwitchWitnessRequest + BatchSwitchWitnessResponse + UpdateGcPeerRequest + AdminRequest + AdminResponse + RegionLeaderRequest + RegionLeaderResponse + RegionDetailRequest + RegionDetailResponse + StatusRequest + StatusResponse + RaftRequestHeader + RaftResponseHeader + RaftCmdRequest + RaftCmdResponse +*/ package raft_cmdpb import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" - eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" - import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" + + eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - metapb "github.com/pingcap/kvproto/pkg/metapb" + + import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" ) @@ -27,7 +100,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type CmdType int32 @@ -54,7 +127,6 @@ var CmdType_name = map[int32]string{ 8: "IngestSST", 9: "ReadIndex", } - var CmdType_value = map[string]int32{ "Invalid": 0, "Get": 1, @@ -70,10 +142,7 @@ var CmdType_value = map[string]int32{ func (x CmdType) String() string { return proto.EnumName(CmdType_name, int32(x)) } - -func (CmdType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{0} -} +func (CmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{0} } type AdminCmdType int32 @@ -81,7 +150,7 @@ const ( AdminCmdType_InvalidAdmin AdminCmdType = 0 AdminCmdType_ChangePeer AdminCmdType = 1 // Use `BatchSplit` instead. - AdminCmdType_Split AdminCmdType = 2 // Deprecated: Do not use. + AdminCmdType_Split AdminCmdType = 2 AdminCmdType_CompactLog AdminCmdType = 3 AdminCmdType_TransferLeader AdminCmdType = 4 AdminCmdType_ComputeHash AdminCmdType = 5 @@ -116,7 +185,6 @@ var AdminCmdType_name = map[int32]string{ 14: "BatchSwitchWitness", 15: "UpdateGcPeer", } - var AdminCmdType_value = map[string]int32{ "InvalidAdmin": 0, "ChangePeer": 1, @@ -139,10 +207,7 @@ var AdminCmdType_value = map[string]int32{ func (x AdminCmdType) String() string { return proto.EnumName(AdminCmdType_name, int32(x)) } - -func (AdminCmdType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{1} -} +func (AdminCmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{1} } type StatusCmdType int32 @@ -157,7 +222,6 @@ var StatusCmdType_name = map[int32]string{ 1: "RegionLeader", 2: "RegionDetail", } - var StatusCmdType_value = map[string]int32{ "InvalidStatus": 0, "RegionLeader": 1, @@ -167,51 +231,17 @@ var StatusCmdType_value = map[string]int32{ func (x StatusCmdType) String() string { return proto.EnumName(StatusCmdType_name, int32(x)) } - -func (StatusCmdType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{2} -} +func (StatusCmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{2} } type GetRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{0} -} -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) -} -func (m *GetRequest) XXX_Size() int { - return m.Size() -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{0} } func (m *GetRequest) GetCf() string { if m != nil { @@ -228,44 +258,13 @@ func (m *GetRequest) GetKey() []byte { } type GetResponse struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{1} -} -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return m.Size() -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{1} } func (m *GetResponse) GetValue() []byte { if m != nil { @@ -275,46 +274,15 @@ func (m *GetResponse) GetValue() []byte { } type PutRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{2} -} -func (m *PutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutRequest.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 *PutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest.Merge(m, src) -} -func (m *PutRequest) XXX_Size() int { - return m.Size() -} -func (m *PutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_PutRequest proto.InternalMessageInfo +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{2} } func (m *PutRequest) GetCf() string { if m != nil { @@ -338,84 +306,22 @@ func (m *PutRequest) GetValue() []byte { } type PutResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{3} -} -func (m *PutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutResponse.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 *PutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResponse.Merge(m, src) -} -func (m *PutResponse) XXX_Size() int { - return m.Size() -} -func (m *PutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutResponse.DiscardUnknown(m) } -var xxx_messageInfo_PutResponse proto.InternalMessageInfo +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{3} } type DeleteRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{4} -} -func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRequest.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 *DeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRequest.Merge(m, src) -} -func (m *DeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRequest.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` } -var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo +func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } +func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRequest) ProtoMessage() {} +func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{4} } func (m *DeleteRequest) GetCf() string { if m != nil { @@ -432,86 +338,24 @@ func (m *DeleteRequest) GetKey() []byte { } type DeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} -func (*DeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{5} -} -func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteResponse.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 *DeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResponse.Merge(m, src) -} -func (m *DeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResponse.DiscardUnknown(m) } -var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo +func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } +func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteResponse) ProtoMessage() {} +func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{5} } type DeleteRangeRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } -func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeRequest) ProtoMessage() {} -func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{6} -} -func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRangeRequest.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 *DeleteRangeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRangeRequest.Merge(m, src) -} -func (m *DeleteRangeRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteRangeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` } -var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo +func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } +func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeRequest) ProtoMessage() {} +func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{6} } func (m *DeleteRangeRequest) GetCf() string { if m != nil { @@ -542,122 +386,29 @@ func (m *DeleteRangeRequest) GetNotifyOnly() bool { } type DeleteRangeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } -func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeResponse) ProtoMessage() {} -func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{7} -} -func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteRangeResponse.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 *DeleteRangeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteRangeResponse.Merge(m, src) -} -func (m *DeleteRangeResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteRangeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m) } -var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo +func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } +func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeResponse) ProtoMessage() {} +func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{7} } type SnapRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapRequest) Reset() { *m = SnapRequest{} } -func (m *SnapRequest) String() string { return proto.CompactTextString(m) } -func (*SnapRequest) ProtoMessage() {} -func (*SnapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{8} -} -func (m *SnapRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapRequest.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 *SnapRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapRequest.Merge(m, src) -} -func (m *SnapRequest) XXX_Size() int { - return m.Size() -} -func (m *SnapRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SnapRequest.DiscardUnknown(m) } -var xxx_messageInfo_SnapRequest proto.InternalMessageInfo +func (m *SnapRequest) Reset() { *m = SnapRequest{} } +func (m *SnapRequest) String() string { return proto.CompactTextString(m) } +func (*SnapRequest) ProtoMessage() {} +func (*SnapRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{8} } type SnapResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapResponse) Reset() { *m = SnapResponse{} } -func (m *SnapResponse) String() string { return proto.CompactTextString(m) } -func (*SnapResponse) ProtoMessage() {} -func (*SnapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{9} -} -func (m *SnapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapResponse.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 *SnapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapResponse.Merge(m, src) -} -func (m *SnapResponse) XXX_Size() int { - return m.Size() -} -func (m *SnapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SnapResponse.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` } -var xxx_messageInfo_SnapResponse proto.InternalMessageInfo +func (m *SnapResponse) Reset() { *m = SnapResponse{} } +func (m *SnapResponse) String() string { return proto.CompactTextString(m) } +func (*SnapResponse) ProtoMessage() {} +func (*SnapResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{9} } func (m *SnapResponse) GetRegion() *metapb.Region { if m != nil { @@ -667,46 +418,15 @@ func (m *SnapResponse) GetRegion() *metapb.Region { } type PrewriteRequest struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Lock []byte `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } -func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } -func (*PrewriteRequest) ProtoMessage() {} -func (*PrewriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{10} -} -func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrewriteRequest.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 *PrewriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrewriteRequest.Merge(m, src) -} -func (m *PrewriteRequest) XXX_Size() int { - return m.Size() -} -func (m *PrewriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrewriteRequest.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Lock []byte `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"` } -var xxx_messageInfo_PrewriteRequest proto.InternalMessageInfo +func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } +func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } +func (*PrewriteRequest) ProtoMessage() {} +func (*PrewriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{10} } func (m *PrewriteRequest) GetKey() []byte { if m != nil { @@ -730,83 +450,21 @@ func (m *PrewriteRequest) GetLock() []byte { } type PrewriteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } -func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } -func (*PrewriteResponse) ProtoMessage() {} -func (*PrewriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{11} -} -func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrewriteResponse.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 *PrewriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrewriteResponse.Merge(m, src) -} -func (m *PrewriteResponse) XXX_Size() int { - return m.Size() -} -func (m *PrewriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrewriteResponse.DiscardUnknown(m) } -var xxx_messageInfo_PrewriteResponse proto.InternalMessageInfo +func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } +func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } +func (*PrewriteResponse) ProtoMessage() {} +func (*PrewriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{11} } type IngestSSTRequest struct { - Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst,proto3" json:"sst,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IngestSSTRequest) Reset() { *m = IngestSSTRequest{} } -func (m *IngestSSTRequest) String() string { return proto.CompactTextString(m) } -func (*IngestSSTRequest) ProtoMessage() {} -func (*IngestSSTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{12} -} -func (m *IngestSSTRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngestSSTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngestSSTRequest.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 *IngestSSTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngestSSTRequest.Merge(m, src) -} -func (m *IngestSSTRequest) XXX_Size() int { - return m.Size() -} -func (m *IngestSSTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IngestSSTRequest.DiscardUnknown(m) + Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst" json:"sst,omitempty"` } -var xxx_messageInfo_IngestSSTRequest proto.InternalMessageInfo +func (m *IngestSSTRequest) Reset() { *m = IngestSSTRequest{} } +func (m *IngestSSTRequest) String() string { return proto.CompactTextString(m) } +func (*IngestSSTRequest) ProtoMessage() {} +func (*IngestSSTRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{12} } func (m *IngestSSTRequest) GetSst() *import_sstpb.SSTMeta { if m != nil { @@ -816,85 +474,23 @@ func (m *IngestSSTRequest) GetSst() *import_sstpb.SSTMeta { } type IngestSSTResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IngestSSTResponse) Reset() { *m = IngestSSTResponse{} } -func (m *IngestSSTResponse) String() string { return proto.CompactTextString(m) } -func (*IngestSSTResponse) ProtoMessage() {} -func (*IngestSSTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{13} -} -func (m *IngestSSTResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngestSSTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IngestSSTResponse.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 *IngestSSTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngestSSTResponse.Merge(m, src) -} -func (m *IngestSSTResponse) XXX_Size() int { - return m.Size() -} -func (m *IngestSSTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IngestSSTResponse.DiscardUnknown(m) } -var xxx_messageInfo_IngestSSTResponse proto.InternalMessageInfo +func (m *IngestSSTResponse) Reset() { *m = IngestSSTResponse{} } +func (m *IngestSSTResponse) String() string { return proto.CompactTextString(m) } +func (*IngestSSTResponse) ProtoMessage() {} +func (*IngestSSTResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{13} } type ReadIndexRequest struct { // In replica read, leader uses start_ts and key_ranges to check memory locks. - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges,proto3" json:"key_ranges,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } -func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ReadIndexRequest) ProtoMessage() {} -func (*ReadIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{14} -} -func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadIndexRequest.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 *ReadIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadIndexRequest.Merge(m, src) -} -func (m *ReadIndexRequest) XXX_Size() int { - return m.Size() -} -func (m *ReadIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadIndexRequest.DiscardUnknown(m) + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges" json:"key_ranges,omitempty"` } -var xxx_messageInfo_ReadIndexRequest proto.InternalMessageInfo +func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } +func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } +func (*ReadIndexRequest) ProtoMessage() {} +func (*ReadIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{14} } func (m *ReadIndexRequest) GetStartTs() uint64 { if m != nil { @@ -913,44 +509,13 @@ func (m *ReadIndexRequest) GetKeyRanges() []*kvrpcpb.KeyRange { type ReadIndexResponse struct { ReadIndex uint64 `protobuf:"varint,1,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` // The memory lock blocking this read at the leader - Locked *kvrpcpb.LockInfo `protobuf:"bytes,2,opt,name=locked,proto3" json:"locked,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } -func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ReadIndexResponse) ProtoMessage() {} -func (*ReadIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{15} -} -func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadIndexResponse.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 *ReadIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadIndexResponse.Merge(m, src) -} -func (m *ReadIndexResponse) XXX_Size() int { - return m.Size() -} -func (m *ReadIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReadIndexResponse.DiscardUnknown(m) + Locked *kvrpcpb.LockInfo `protobuf:"bytes,2,opt,name=locked" json:"locked,omitempty"` } -var xxx_messageInfo_ReadIndexResponse proto.InternalMessageInfo +func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } +func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } +func (*ReadIndexResponse) ProtoMessage() {} +func (*ReadIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{15} } func (m *ReadIndexResponse) GetReadIndex() uint64 { if m != nil { @@ -967,52 +532,21 @@ func (m *ReadIndexResponse) GetLocked() *kvrpcpb.LockInfo { } type Request struct { - CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` - Get *GetRequest `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty"` - Put *PutRequest `protobuf:"bytes,4,opt,name=put,proto3" json:"put,omitempty"` - Delete *DeleteRequest `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty"` - Snap *SnapRequest `protobuf:"bytes,6,opt,name=snap,proto3" json:"snap,omitempty"` - Prewrite *PrewriteRequest `protobuf:"bytes,7,opt,name=prewrite,proto3" json:"prewrite,omitempty"` - DeleteRange *DeleteRangeRequest `protobuf:"bytes,8,opt,name=delete_range,json=deleteRange,proto3" json:"delete_range,omitempty"` - IngestSst *IngestSSTRequest `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst,proto3" json:"ingest_sst,omitempty"` - ReadIndex *ReadIndexRequest `protobuf:"bytes,10,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} -func (*Request) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{16} -} -func (m *Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Request.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 *Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Request.Merge(m, src) -} -func (m *Request) XXX_Size() int { - return m.Size() -} -func (m *Request) XXX_DiscardUnknown() { - xxx_messageInfo_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_Request proto.InternalMessageInfo + CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` + Get *GetRequest `protobuf:"bytes,2,opt,name=get" json:"get,omitempty"` + Put *PutRequest `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` + Delete *DeleteRequest `protobuf:"bytes,5,opt,name=delete" json:"delete,omitempty"` + Snap *SnapRequest `protobuf:"bytes,6,opt,name=snap" json:"snap,omitempty"` + Prewrite *PrewriteRequest `protobuf:"bytes,7,opt,name=prewrite" json:"prewrite,omitempty"` + DeleteRange *DeleteRangeRequest `protobuf:"bytes,8,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"` + IngestSst *IngestSSTRequest `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst" json:"ingest_sst,omitempty"` + ReadIndex *ReadIndexRequest `protobuf:"bytes,10,opt,name=read_index,json=readIndex" json:"read_index,omitempty"` +} + +func (m *Request) Reset() { *m = Request{} } +func (m *Request) String() string { return proto.CompactTextString(m) } +func (*Request) ProtoMessage() {} +func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{16} } func (m *Request) GetCmdType() CmdType { if m != nil { @@ -1078,52 +612,21 @@ func (m *Request) GetReadIndex() *ReadIndexRequest { } type Response struct { - CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` - Get *GetResponse `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty"` - Put *PutResponse `protobuf:"bytes,4,opt,name=put,proto3" json:"put,omitempty"` - Delete *DeleteResponse `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty"` - Snap *SnapResponse `protobuf:"bytes,6,opt,name=snap,proto3" json:"snap,omitempty"` - Prewrite *PrewriteResponse `protobuf:"bytes,7,opt,name=prewrite,proto3" json:"prewrite,omitempty"` - DelteRange *DeleteRangeResponse `protobuf:"bytes,8,opt,name=delte_range,json=delteRange,proto3" json:"delte_range,omitempty"` - IngestSst *IngestSSTResponse `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst,proto3" json:"ingest_sst,omitempty"` - ReadIndex *ReadIndexResponse `protobuf:"bytes,10,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{17} -} -func (m *Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Response.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 *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(m, src) -} -func (m *Response) XXX_Size() int { - return m.Size() -} -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) -} - -var xxx_messageInfo_Response proto.InternalMessageInfo + CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` + Get *GetResponse `protobuf:"bytes,2,opt,name=get" json:"get,omitempty"` + Put *PutResponse `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` + Delete *DeleteResponse `protobuf:"bytes,5,opt,name=delete" json:"delete,omitempty"` + Snap *SnapResponse `protobuf:"bytes,6,opt,name=snap" json:"snap,omitempty"` + Prewrite *PrewriteResponse `protobuf:"bytes,7,opt,name=prewrite" json:"prewrite,omitempty"` + DelteRange *DeleteRangeResponse `protobuf:"bytes,8,opt,name=delte_range,json=delteRange" json:"delte_range,omitempty"` + IngestSst *IngestSSTResponse `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst" json:"ingest_sst,omitempty"` + ReadIndex *ReadIndexResponse `protobuf:"bytes,10,opt,name=read_index,json=readIndex" json:"read_index,omitempty"` +} + +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{17} } func (m *Response) GetCmdType() CmdType { if m != nil { @@ -1190,45 +693,14 @@ func (m *Response) GetReadIndex() *ReadIndexResponse { type ChangePeerRequest struct { // This can be only called in internal RaftStore now. - ChangeType eraftpb.ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeerRequest) Reset() { *m = ChangePeerRequest{} } -func (m *ChangePeerRequest) String() string { return proto.CompactTextString(m) } -func (*ChangePeerRequest) ProtoMessage() {} -func (*ChangePeerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{18} -} -func (m *ChangePeerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeerRequest.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 *ChangePeerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeerRequest.Merge(m, src) -} -func (m *ChangePeerRequest) XXX_Size() int { - return m.Size() -} -func (m *ChangePeerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeerRequest.DiscardUnknown(m) + ChangeType eraftpb.ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` } -var xxx_messageInfo_ChangePeerRequest proto.InternalMessageInfo +func (m *ChangePeerRequest) Reset() { *m = ChangePeerRequest{} } +func (m *ChangePeerRequest) String() string { return proto.CompactTextString(m) } +func (*ChangePeerRequest) ProtoMessage() {} +func (*ChangePeerRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{18} } func (m *ChangePeerRequest) GetChangeType() eraftpb.ConfChangeType { if m != nil { @@ -1245,44 +717,13 @@ func (m *ChangePeerRequest) GetPeer() *metapb.Peer { } type ChangePeerResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeerResponse) Reset() { *m = ChangePeerResponse{} } -func (m *ChangePeerResponse) String() string { return proto.CompactTextString(m) } -func (*ChangePeerResponse) ProtoMessage() {} -func (*ChangePeerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{19} -} -func (m *ChangePeerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeerResponse.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 *ChangePeerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeerResponse.Merge(m, src) -} -func (m *ChangePeerResponse) XXX_Size() int { - return m.Size() -} -func (m *ChangePeerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeerResponse.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` } -var xxx_messageInfo_ChangePeerResponse proto.InternalMessageInfo +func (m *ChangePeerResponse) Reset() { *m = ChangePeerResponse{} } +func (m *ChangePeerResponse) String() string { return proto.CompactTextString(m) } +func (*ChangePeerResponse) ProtoMessage() {} +func (*ChangePeerResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{19} } func (m *ChangePeerResponse) GetRegion() *metapb.Region { if m != nil { @@ -1292,44 +733,13 @@ func (m *ChangePeerResponse) GetRegion() *metapb.Region { } type ChangePeerV2Request struct { - Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeerV2Request) Reset() { *m = ChangePeerV2Request{} } -func (m *ChangePeerV2Request) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2Request) ProtoMessage() {} -func (*ChangePeerV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{20} -} -func (m *ChangePeerV2Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeerV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeerV2Request.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 *ChangePeerV2Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeerV2Request.Merge(m, src) -} -func (m *ChangePeerV2Request) XXX_Size() int { - return m.Size() -} -func (m *ChangePeerV2Request) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeerV2Request.DiscardUnknown(m) + Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` } -var xxx_messageInfo_ChangePeerV2Request proto.InternalMessageInfo +func (m *ChangePeerV2Request) Reset() { *m = ChangePeerV2Request{} } +func (m *ChangePeerV2Request) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2Request) ProtoMessage() {} +func (*ChangePeerV2Request) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{20} } func (m *ChangePeerV2Request) GetChanges() []*ChangePeerRequest { if m != nil { @@ -1339,44 +749,13 @@ func (m *ChangePeerV2Request) GetChanges() []*ChangePeerRequest { } type ChangePeerV2Response struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangePeerV2Response) Reset() { *m = ChangePeerV2Response{} } -func (m *ChangePeerV2Response) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2Response) ProtoMessage() {} -func (*ChangePeerV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{21} -} -func (m *ChangePeerV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChangePeerV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChangePeerV2Response.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 *ChangePeerV2Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangePeerV2Response.Merge(m, src) -} -func (m *ChangePeerV2Response) XXX_Size() int { - return m.Size() -} -func (m *ChangePeerV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_ChangePeerV2Response.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` } -var xxx_messageInfo_ChangePeerV2Response proto.InternalMessageInfo +func (m *ChangePeerV2Response) Reset() { *m = ChangePeerV2Response{} } +func (m *ChangePeerV2Response) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2Response) ProtoMessage() {} +func (*ChangePeerV2Response) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{21} } func (m *ChangePeerV2Response) GetRegion() *metapb.Region { if m != nil { @@ -1394,53 +773,22 @@ type SplitRequest struct { // We must guarantee that the new_region_id is global unique. NewRegionId uint64 `protobuf:"varint,2,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` // The peer ids for the new split region. - NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` + NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` // If true, right region derive the origin region_id, // left region use new_region_id. // Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead. - RightDerive bool `protobuf:"varint,4,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` // Deprecated: Do not use. + RightDerive bool `protobuf:"varint,4,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` // It should be false iff the region split by user key such as split table or create partion table etc, // the new region's will not share the source region size, so it's region size is zero. // It should be true iff the region's load reaches the threshold such as size, keys, load check etc, // the new region's size will share the origin region, so it's region size is half of the source region. - ShareSourceRegionSize bool `protobuf:"varint,5,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitRequest) Reset() { *m = SplitRequest{} } -func (m *SplitRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRequest) ProtoMessage() {} -func (*SplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{22} -} -func (m *SplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitRequest.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 *SplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRequest.Merge(m, src) -} -func (m *SplitRequest) XXX_Size() int { - return m.Size() -} -func (m *SplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRequest.DiscardUnknown(m) + ShareSourceRegionSize bool `protobuf:"varint,5,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` } -var xxx_messageInfo_SplitRequest proto.InternalMessageInfo +func (m *SplitRequest) Reset() { *m = SplitRequest{} } +func (m *SplitRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRequest) ProtoMessage() {} +func (*SplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{22} } func (m *SplitRequest) GetSplitKey() []byte { if m != nil { @@ -1463,7 +811,6 @@ func (m *SplitRequest) GetNewPeerIds() []uint64 { return nil } -// Deprecated: Do not use. func (m *SplitRequest) GetRightDerive() bool { if m != nil { return m.RightDerive @@ -1479,45 +826,14 @@ func (m *SplitRequest) GetShareSourceRegionSize() bool { } type SplitResponse struct { - Left *metapb.Region `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"` - Right *metapb.Region `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitResponse) Reset() { *m = SplitResponse{} } -func (m *SplitResponse) String() string { return proto.CompactTextString(m) } -func (*SplitResponse) ProtoMessage() {} -func (*SplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{23} -} -func (m *SplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitResponse.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 *SplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitResponse.Merge(m, src) -} -func (m *SplitResponse) XXX_Size() int { - return m.Size() -} -func (m *SplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitResponse.DiscardUnknown(m) + Left *metapb.Region `protobuf:"bytes,1,opt,name=left" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,2,opt,name=right" json:"right,omitempty"` } -var xxx_messageInfo_SplitResponse proto.InternalMessageInfo +func (m *SplitResponse) Reset() { *m = SplitResponse{} } +func (m *SplitResponse) String() string { return proto.CompactTextString(m) } +func (*SplitResponse) ProtoMessage() {} +func (*SplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{23} } func (m *SplitResponse) GetLeft() *metapb.Region { if m != nil { @@ -1534,7 +850,7 @@ func (m *SplitResponse) GetRight() *metapb.Region { } type BatchSplitRequest struct { - Requests []*SplitRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + Requests []*SplitRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` // If true, the last region derive the origin region_id, // other regions use new ids. RightDerive bool `protobuf:"varint,2,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` @@ -1542,44 +858,13 @@ type BatchSplitRequest struct { // the new region's will not share the source region size, so it's region size is zero. // It should be true iff the region's load reaches the threshold such as size, keys, load check etc, // the new region's size will share the origin region, so it's region size is half of the source region. - ShareSourceRegionSize bool `protobuf:"varint,3,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchSplitRequest) Reset() { *m = BatchSplitRequest{} } -func (m *BatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*BatchSplitRequest) ProtoMessage() {} -func (*BatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{24} -} -func (m *BatchSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchSplitRequest.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 *BatchSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchSplitRequest.Merge(m, src) -} -func (m *BatchSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchSplitRequest.DiscardUnknown(m) + ShareSourceRegionSize bool `protobuf:"varint,3,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` } -var xxx_messageInfo_BatchSplitRequest proto.InternalMessageInfo +func (m *BatchSplitRequest) Reset() { *m = BatchSplitRequest{} } +func (m *BatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*BatchSplitRequest) ProtoMessage() {} +func (*BatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{24} } func (m *BatchSplitRequest) GetRequests() []*SplitRequest { if m != nil { @@ -1603,44 +888,13 @@ func (m *BatchSplitRequest) GetShareSourceRegionSize() bool { } type BatchSplitResponse struct { - Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchSplitResponse) Reset() { *m = BatchSplitResponse{} } -func (m *BatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*BatchSplitResponse) ProtoMessage() {} -func (*BatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{25} -} -func (m *BatchSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchSplitResponse.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 *BatchSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchSplitResponse.Merge(m, src) -} -func (m *BatchSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchSplitResponse.DiscardUnknown(m) + Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_BatchSplitResponse proto.InternalMessageInfo +func (m *BatchSplitResponse) Reset() { *m = BatchSplitResponse{} } +func (m *BatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*BatchSplitResponse) ProtoMessage() {} +func (*BatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{25} } func (m *BatchSplitResponse) GetRegions() []*metapb.Region { if m != nil { @@ -1650,46 +904,15 @@ func (m *BatchSplitResponse) GetRegions() []*metapb.Region { } type CompactLogRequest struct { - CompactIndex uint64 `protobuf:"varint,1,opt,name=compact_index,json=compactIndex,proto3" json:"compact_index,omitempty"` - CompactTerm uint64 `protobuf:"varint,2,opt,name=compact_term,json=compactTerm,proto3" json:"compact_term,omitempty"` - VoterReplicatedIndex uint64 `protobuf:"varint,3,opt,name=voter_replicated_index,json=voterReplicatedIndex,proto3" json:"voter_replicated_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactLogRequest) Reset() { *m = CompactLogRequest{} } -func (m *CompactLogRequest) String() string { return proto.CompactTextString(m) } -func (*CompactLogRequest) ProtoMessage() {} -func (*CompactLogRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{26} -} -func (m *CompactLogRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactLogRequest.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 *CompactLogRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactLogRequest.Merge(m, src) -} -func (m *CompactLogRequest) XXX_Size() int { - return m.Size() -} -func (m *CompactLogRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CompactLogRequest.DiscardUnknown(m) + CompactIndex uint64 `protobuf:"varint,1,opt,name=compact_index,json=compactIndex,proto3" json:"compact_index,omitempty"` + CompactTerm uint64 `protobuf:"varint,2,opt,name=compact_term,json=compactTerm,proto3" json:"compact_term,omitempty"` + VoterReplicatedIndex uint64 `protobuf:"varint,3,opt,name=voter_replicated_index,json=voterReplicatedIndex,proto3" json:"voter_replicated_index,omitempty"` } -var xxx_messageInfo_CompactLogRequest proto.InternalMessageInfo +func (m *CompactLogRequest) Reset() { *m = CompactLogRequest{} } +func (m *CompactLogRequest) String() string { return proto.CompactTextString(m) } +func (*CompactLogRequest) ProtoMessage() {} +func (*CompactLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{26} } func (m *CompactLogRequest) GetCompactIndex() uint64 { if m != nil { @@ -1713,84 +936,22 @@ func (m *CompactLogRequest) GetVoterReplicatedIndex() uint64 { } type CompactLogResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompactLogResponse) Reset() { *m = CompactLogResponse{} } -func (m *CompactLogResponse) String() string { return proto.CompactTextString(m) } -func (*CompactLogResponse) ProtoMessage() {} -func (*CompactLogResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{27} -} -func (m *CompactLogResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CompactLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CompactLogResponse.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 *CompactLogResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactLogResponse.Merge(m, src) -} -func (m *CompactLogResponse) XXX_Size() int { - return m.Size() -} -func (m *CompactLogResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CompactLogResponse.DiscardUnknown(m) } -var xxx_messageInfo_CompactLogResponse proto.InternalMessageInfo +func (m *CompactLogResponse) Reset() { *m = CompactLogResponse{} } +func (m *CompactLogResponse) String() string { return proto.CompactTextString(m) } +func (*CompactLogResponse) ProtoMessage() {} +func (*CompactLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{27} } type TransferLeaderRequest struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TransferLeaderRequest) Reset() { *m = TransferLeaderRequest{} } -func (m *TransferLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*TransferLeaderRequest) ProtoMessage() {} -func (*TransferLeaderRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{28} -} -func (m *TransferLeaderRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TransferLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TransferLeaderRequest.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 *TransferLeaderRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferLeaderRequest.Merge(m, src) -} -func (m *TransferLeaderRequest) XXX_Size() int { - return m.Size() -} -func (m *TransferLeaderRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TransferLeaderRequest.DiscardUnknown(m) + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` } -var xxx_messageInfo_TransferLeaderRequest proto.InternalMessageInfo +func (m *TransferLeaderRequest) Reset() { *m = TransferLeaderRequest{} } +func (m *TransferLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*TransferLeaderRequest) ProtoMessage() {} +func (*TransferLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{28} } func (m *TransferLeaderRequest) GetPeer() *metapb.Peer { if m != nil { @@ -1807,83 +968,23 @@ func (m *TransferLeaderRequest) GetPeers() []*metapb.Peer { } type TransferLeaderResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *TransferLeaderResponse) Reset() { *m = TransferLeaderResponse{} } func (m *TransferLeaderResponse) String() string { return proto.CompactTextString(m) } func (*TransferLeaderResponse) ProtoMessage() {} func (*TransferLeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{29} -} -func (m *TransferLeaderResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TransferLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TransferLeaderResponse.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 *TransferLeaderResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferLeaderResponse.Merge(m, src) -} -func (m *TransferLeaderResponse) XXX_Size() int { - return m.Size() -} -func (m *TransferLeaderResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TransferLeaderResponse.DiscardUnknown(m) + return fileDescriptorRaftCmdpb, []int{29} } -var xxx_messageInfo_TransferLeaderResponse proto.InternalMessageInfo - type ComputeHashRequest struct { - Context []byte `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ComputeHashRequest) Reset() { *m = ComputeHashRequest{} } -func (m *ComputeHashRequest) String() string { return proto.CompactTextString(m) } -func (*ComputeHashRequest) ProtoMessage() {} -func (*ComputeHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{30} -} -func (m *ComputeHashRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComputeHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ComputeHashRequest.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 *ComputeHashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComputeHashRequest.Merge(m, src) -} -func (m *ComputeHashRequest) XXX_Size() int { - return m.Size() -} -func (m *ComputeHashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ComputeHashRequest.DiscardUnknown(m) + Context []byte `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` } -var xxx_messageInfo_ComputeHashRequest proto.InternalMessageInfo +func (m *ComputeHashRequest) Reset() { *m = ComputeHashRequest{} } +func (m *ComputeHashRequest) String() string { return proto.CompactTextString(m) } +func (*ComputeHashRequest) ProtoMessage() {} +func (*ComputeHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{30} } func (m *ComputeHashRequest) GetContext() []byte { if m != nil { @@ -1893,46 +994,15 @@ func (m *ComputeHashRequest) GetContext() []byte { } type VerifyHashRequest struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyHashRequest) Reset() { *m = VerifyHashRequest{} } -func (m *VerifyHashRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyHashRequest) ProtoMessage() {} -func (*VerifyHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{31} -} -func (m *VerifyHashRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifyHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifyHashRequest.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 *VerifyHashRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyHashRequest.Merge(m, src) -} -func (m *VerifyHashRequest) XXX_Size() int { - return m.Size() -} -func (m *VerifyHashRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyHashRequest.DiscardUnknown(m) + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` } -var xxx_messageInfo_VerifyHashRequest proto.InternalMessageInfo +func (m *VerifyHashRequest) Reset() { *m = VerifyHashRequest{} } +func (m *VerifyHashRequest) String() string { return proto.CompactTextString(m) } +func (*VerifyHashRequest) ProtoMessage() {} +func (*VerifyHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{31} } func (m *VerifyHashRequest) GetIndex() uint64 { if m != nil { @@ -1956,84 +1026,22 @@ func (m *VerifyHashRequest) GetContext() []byte { } type VerifyHashResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyHashResponse) Reset() { *m = VerifyHashResponse{} } -func (m *VerifyHashResponse) String() string { return proto.CompactTextString(m) } -func (*VerifyHashResponse) ProtoMessage() {} -func (*VerifyHashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{32} -} -func (m *VerifyHashResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifyHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifyHashResponse.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 *VerifyHashResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyHashResponse.Merge(m, src) -} -func (m *VerifyHashResponse) XXX_Size() int { - return m.Size() -} -func (m *VerifyHashResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyHashResponse.DiscardUnknown(m) } -var xxx_messageInfo_VerifyHashResponse proto.InternalMessageInfo +func (m *VerifyHashResponse) Reset() { *m = VerifyHashResponse{} } +func (m *VerifyHashResponse) String() string { return proto.CompactTextString(m) } +func (*VerifyHashResponse) ProtoMessage() {} +func (*VerifyHashResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{32} } type PrepareMergeRequest struct { - MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` - Target *metapb.Region `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrepareMergeRequest) Reset() { *m = PrepareMergeRequest{} } -func (m *PrepareMergeRequest) String() string { return proto.CompactTextString(m) } -func (*PrepareMergeRequest) ProtoMessage() {} -func (*PrepareMergeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{33} -} -func (m *PrepareMergeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareMergeRequest.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 *PrepareMergeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareMergeRequest.Merge(m, src) -} -func (m *PrepareMergeRequest) XXX_Size() int { - return m.Size() -} -func (m *PrepareMergeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareMergeRequest.DiscardUnknown(m) + MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` } -var xxx_messageInfo_PrepareMergeRequest proto.InternalMessageInfo +func (m *PrepareMergeRequest) Reset() { *m = PrepareMergeRequest{} } +func (m *PrepareMergeRequest) String() string { return proto.CompactTextString(m) } +func (*PrepareMergeRequest) ProtoMessage() {} +func (*PrepareMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{33} } func (m *PrepareMergeRequest) GetMinIndex() uint64 { if m != nil { @@ -2050,84 +1058,24 @@ func (m *PrepareMergeRequest) GetTarget() *metapb.Region { } type PrepareMergeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrepareMergeResponse) Reset() { *m = PrepareMergeResponse{} } -func (m *PrepareMergeResponse) String() string { return proto.CompactTextString(m) } -func (*PrepareMergeResponse) ProtoMessage() {} -func (*PrepareMergeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{34} -} -func (m *PrepareMergeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareMergeResponse.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 *PrepareMergeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareMergeResponse.Merge(m, src) -} -func (m *PrepareMergeResponse) XXX_Size() int { - return m.Size() -} -func (m *PrepareMergeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareMergeResponse.DiscardUnknown(m) } -var xxx_messageInfo_PrepareMergeResponse proto.InternalMessageInfo +func (m *PrepareMergeResponse) Reset() { *m = PrepareMergeResponse{} } +func (m *PrepareMergeResponse) String() string { return proto.CompactTextString(m) } +func (*PrepareMergeResponse) ProtoMessage() {} +func (*PrepareMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{34} } type PrepareFlashbackRequest struct { // The start_ts that the current flashback progress is using. - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` } func (m *PrepareFlashbackRequest) Reset() { *m = PrepareFlashbackRequest{} } func (m *PrepareFlashbackRequest) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackRequest) ProtoMessage() {} func (*PrepareFlashbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{35} -} -func (m *PrepareFlashbackRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareFlashbackRequest.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 *PrepareFlashbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareFlashbackRequest.Merge(m, src) -} -func (m *PrepareFlashbackRequest) XXX_Size() int { - return m.Size() + return fileDescriptorRaftCmdpb, []int{35} } -func (m *PrepareFlashbackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareFlashbackRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PrepareFlashbackRequest proto.InternalMessageInfo func (m *PrepareFlashbackRequest) GetStartTs() uint64 { if m != nil { @@ -2137,165 +1085,47 @@ func (m *PrepareFlashbackRequest) GetStartTs() uint64 { } type PrepareFlashbackResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *PrepareFlashbackResponse) Reset() { *m = PrepareFlashbackResponse{} } func (m *PrepareFlashbackResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackResponse) ProtoMessage() {} func (*PrepareFlashbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{36} -} -func (m *PrepareFlashbackResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareFlashbackResponse.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 *PrepareFlashbackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareFlashbackResponse.Merge(m, src) -} -func (m *PrepareFlashbackResponse) XXX_Size() int { - return m.Size() -} -func (m *PrepareFlashbackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareFlashbackResponse.DiscardUnknown(m) + return fileDescriptorRaftCmdpb, []int{36} } -var xxx_messageInfo_PrepareFlashbackResponse proto.InternalMessageInfo - type FinishFlashbackRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *FinishFlashbackRequest) Reset() { *m = FinishFlashbackRequest{} } func (m *FinishFlashbackRequest) String() string { return proto.CompactTextString(m) } func (*FinishFlashbackRequest) ProtoMessage() {} func (*FinishFlashbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{37} -} -func (m *FinishFlashbackRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorRaftCmdpb, []int{37} } -func (m *FinishFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FinishFlashbackRequest.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 *FinishFlashbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinishFlashbackRequest.Merge(m, src) -} -func (m *FinishFlashbackRequest) XXX_Size() int { - return m.Size() -} -func (m *FinishFlashbackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FinishFlashbackRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FinishFlashbackRequest proto.InternalMessageInfo type FinishFlashbackResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *FinishFlashbackResponse) Reset() { *m = FinishFlashbackResponse{} } func (m *FinishFlashbackResponse) String() string { return proto.CompactTextString(m) } func (*FinishFlashbackResponse) ProtoMessage() {} func (*FinishFlashbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{38} -} -func (m *FinishFlashbackResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FinishFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FinishFlashbackResponse.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 *FinishFlashbackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinishFlashbackResponse.Merge(m, src) -} -func (m *FinishFlashbackResponse) XXX_Size() int { - return m.Size() -} -func (m *FinishFlashbackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FinishFlashbackResponse.DiscardUnknown(m) + return fileDescriptorRaftCmdpb, []int{38} } -var xxx_messageInfo_FinishFlashbackResponse proto.InternalMessageInfo - type CommitMergeRequest struct { - Source *metapb.Region `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Source *metapb.Region `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` Commit uint64 `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"` - Entries []*eraftpb.Entry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` + Entries []*eraftpb.Entry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` // Used in v2. When it's present, `source` and `commit` will not be set. - SourceState *raft_serverpb.RegionLocalState `protobuf:"bytes,4,opt,name=source_state,json=sourceState,proto3" json:"source_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitMergeRequest) Reset() { *m = CommitMergeRequest{} } -func (m *CommitMergeRequest) String() string { return proto.CompactTextString(m) } -func (*CommitMergeRequest) ProtoMessage() {} -func (*CommitMergeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{39} -} -func (m *CommitMergeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitMergeRequest.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 *CommitMergeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitMergeRequest.Merge(m, src) -} -func (m *CommitMergeRequest) XXX_Size() int { - return m.Size() -} -func (m *CommitMergeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CommitMergeRequest.DiscardUnknown(m) + SourceState *raft_serverpb.RegionLocalState `protobuf:"bytes,4,opt,name=source_state,json=sourceState" json:"source_state,omitempty"` } -var xxx_messageInfo_CommitMergeRequest proto.InternalMessageInfo +func (m *CommitMergeRequest) Reset() { *m = CommitMergeRequest{} } +func (m *CommitMergeRequest) String() string { return proto.CompactTextString(m) } +func (*CommitMergeRequest) ProtoMessage() {} +func (*CommitMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{39} } func (m *CommitMergeRequest) GetSource() *metapb.Region { if m != nil { @@ -2326,83 +1156,21 @@ func (m *CommitMergeRequest) GetSourceState() *raft_serverpb.RegionLocalState { } type CommitMergeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CommitMergeResponse) Reset() { *m = CommitMergeResponse{} } -func (m *CommitMergeResponse) String() string { return proto.CompactTextString(m) } -func (*CommitMergeResponse) ProtoMessage() {} -func (*CommitMergeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{40} -} -func (m *CommitMergeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommitMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommitMergeResponse.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 *CommitMergeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommitMergeResponse.Merge(m, src) -} -func (m *CommitMergeResponse) XXX_Size() int { - return m.Size() -} -func (m *CommitMergeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CommitMergeResponse.DiscardUnknown(m) } -var xxx_messageInfo_CommitMergeResponse proto.InternalMessageInfo +func (m *CommitMergeResponse) Reset() { *m = CommitMergeResponse{} } +func (m *CommitMergeResponse) String() string { return proto.CompactTextString(m) } +func (*CommitMergeResponse) ProtoMessage() {} +func (*CommitMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{40} } type RollbackMergeRequest struct { - Commit uint64 `protobuf:"varint,1,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RollbackMergeRequest) Reset() { *m = RollbackMergeRequest{} } -func (m *RollbackMergeRequest) String() string { return proto.CompactTextString(m) } -func (*RollbackMergeRequest) ProtoMessage() {} -func (*RollbackMergeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{41} -} -func (m *RollbackMergeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollbackMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RollbackMergeRequest.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 *RollbackMergeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollbackMergeRequest.Merge(m, src) -} -func (m *RollbackMergeRequest) XXX_Size() int { - return m.Size() -} -func (m *RollbackMergeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RollbackMergeRequest.DiscardUnknown(m) + Commit uint64 `protobuf:"varint,1,opt,name=commit,proto3" json:"commit,omitempty"` } -var xxx_messageInfo_RollbackMergeRequest proto.InternalMessageInfo +func (m *RollbackMergeRequest) Reset() { *m = RollbackMergeRequest{} } +func (m *RollbackMergeRequest) String() string { return proto.CompactTextString(m) } +func (*RollbackMergeRequest) ProtoMessage() {} +func (*RollbackMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{41} } func (m *RollbackMergeRequest) GetCommit() uint64 { if m != nil { @@ -2412,84 +1180,22 @@ func (m *RollbackMergeRequest) GetCommit() uint64 { } type RollbackMergeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RollbackMergeResponse) Reset() { *m = RollbackMergeResponse{} } -func (m *RollbackMergeResponse) String() string { return proto.CompactTextString(m) } -func (*RollbackMergeResponse) ProtoMessage() {} -func (*RollbackMergeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{42} -} -func (m *RollbackMergeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollbackMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RollbackMergeResponse.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 *RollbackMergeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollbackMergeResponse.Merge(m, src) -} -func (m *RollbackMergeResponse) XXX_Size() int { - return m.Size() -} -func (m *RollbackMergeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RollbackMergeResponse.DiscardUnknown(m) } -var xxx_messageInfo_RollbackMergeResponse proto.InternalMessageInfo +func (m *RollbackMergeResponse) Reset() { *m = RollbackMergeResponse{} } +func (m *RollbackMergeResponse) String() string { return proto.CompactTextString(m) } +func (*RollbackMergeResponse) ProtoMessage() {} +func (*RollbackMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{42} } type SwitchWitnessRequest struct { - PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchWitnessRequest) Reset() { *m = SwitchWitnessRequest{} } -func (m *SwitchWitnessRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchWitnessRequest) ProtoMessage() {} -func (*SwitchWitnessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{43} -} -func (m *SwitchWitnessRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SwitchWitnessRequest.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 *SwitchWitnessRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchWitnessRequest.Merge(m, src) -} -func (m *SwitchWitnessRequest) XXX_Size() int { - return m.Size() -} -func (m *SwitchWitnessRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchWitnessRequest.DiscardUnknown(m) + PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` } -var xxx_messageInfo_SwitchWitnessRequest proto.InternalMessageInfo +func (m *SwitchWitnessRequest) Reset() { *m = SwitchWitnessRequest{} } +func (m *SwitchWitnessRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchWitnessRequest) ProtoMessage() {} +func (*SwitchWitnessRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{43} } func (m *SwitchWitnessRequest) GetPeerId() uint64 { if m != nil { @@ -2506,44 +1212,15 @@ func (m *SwitchWitnessRequest) GetIsWitness() bool { } type BatchSwitchWitnessRequest struct { - SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` } func (m *BatchSwitchWitnessRequest) Reset() { *m = BatchSwitchWitnessRequest{} } func (m *BatchSwitchWitnessRequest) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessRequest) ProtoMessage() {} func (*BatchSwitchWitnessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{44} -} -func (m *BatchSwitchWitnessRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorRaftCmdpb, []int{44} } -func (m *BatchSwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchSwitchWitnessRequest.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 *BatchSwitchWitnessRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchSwitchWitnessRequest.Merge(m, src) -} -func (m *BatchSwitchWitnessRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchSwitchWitnessRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchSwitchWitnessRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BatchSwitchWitnessRequest proto.InternalMessageInfo func (m *BatchSwitchWitnessRequest) GetSwitchWitnesses() []*SwitchWitnessRequest { if m != nil { @@ -2553,83 +1230,23 @@ func (m *BatchSwitchWitnessRequest) GetSwitchWitnesses() []*SwitchWitnessRequest } type BatchSwitchWitnessResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *BatchSwitchWitnessResponse) Reset() { *m = BatchSwitchWitnessResponse{} } func (m *BatchSwitchWitnessResponse) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessResponse) ProtoMessage() {} func (*BatchSwitchWitnessResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{45} -} -func (m *BatchSwitchWitnessResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchSwitchWitnessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchSwitchWitnessResponse.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 *BatchSwitchWitnessResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchSwitchWitnessResponse.Merge(m, src) -} -func (m *BatchSwitchWitnessResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchSwitchWitnessResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchSwitchWitnessResponse.DiscardUnknown(m) + return fileDescriptorRaftCmdpb, []int{45} } -var xxx_messageInfo_BatchSwitchWitnessResponse proto.InternalMessageInfo - type UpdateGcPeerRequest struct { - PeerId []uint64 `protobuf:"varint,1,rep,packed,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateGcPeerRequest) Reset() { *m = UpdateGcPeerRequest{} } -func (m *UpdateGcPeerRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateGcPeerRequest) ProtoMessage() {} -func (*UpdateGcPeerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{46} -} -func (m *UpdateGcPeerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateGcPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateGcPeerRequest.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 *UpdateGcPeerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateGcPeerRequest.Merge(m, src) -} -func (m *UpdateGcPeerRequest) XXX_Size() int { - return m.Size() -} -func (m *UpdateGcPeerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateGcPeerRequest.DiscardUnknown(m) + PeerId []uint64 `protobuf:"varint,1,rep,packed,name=peer_id,json=peerId" json:"peer_id,omitempty"` } -var xxx_messageInfo_UpdateGcPeerRequest proto.InternalMessageInfo +func (m *UpdateGcPeerRequest) Reset() { *m = UpdateGcPeerRequest{} } +func (m *UpdateGcPeerRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateGcPeerRequest) ProtoMessage() {} +func (*UpdateGcPeerRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{46} } func (m *UpdateGcPeerRequest) GetPeerId() []uint64 { if m != nil { @@ -2639,59 +1256,28 @@ func (m *UpdateGcPeerRequest) GetPeerId() []uint64 { } type AdminRequest struct { - CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` - ChangePeer *ChangePeerRequest `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` - Split *SplitRequest `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"` // Deprecated: Do not use. - CompactLog *CompactLogRequest `protobuf:"bytes,4,opt,name=compact_log,json=compactLog,proto3" json:"compact_log,omitempty"` - TransferLeader *TransferLeaderRequest `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` - VerifyHash *VerifyHashRequest `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash,proto3" json:"verify_hash,omitempty"` - PrepareMerge *PrepareMergeRequest `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge,proto3" json:"prepare_merge,omitempty"` - CommitMerge *CommitMergeRequest `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge,proto3" json:"commit_merge,omitempty"` - RollbackMerge *RollbackMergeRequest `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge,proto3" json:"rollback_merge,omitempty"` - Splits *BatchSplitRequest `protobuf:"bytes,10,opt,name=splits,proto3" json:"splits,omitempty"` - ChangePeerV2 *ChangePeerV2Request `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` - ComputeHash *ComputeHashRequest `protobuf:"bytes,12,opt,name=compute_hash,json=computeHash,proto3" json:"compute_hash,omitempty"` - PrepareFlashback *PrepareFlashbackRequest `protobuf:"bytes,13,opt,name=prepare_flashback,json=prepareFlashback,proto3" json:"prepare_flashback,omitempty"` - FinishFlashback *FinishFlashbackRequest `protobuf:"bytes,14,opt,name=finish_flashback,json=finishFlashback,proto3" json:"finish_flashback,omitempty"` - SwitchWitnesses *BatchSwitchWitnessRequest `protobuf:"bytes,15,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` - UpdateGcPeers *UpdateGcPeerRequest `protobuf:"bytes,16,opt,name=update_gc_peers,json=updateGcPeers,proto3" json:"update_gc_peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdminRequest) Reset() { *m = AdminRequest{} } -func (m *AdminRequest) String() string { return proto.CompactTextString(m) } -func (*AdminRequest) ProtoMessage() {} -func (*AdminRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{47} -} -func (m *AdminRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AdminRequest.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 *AdminRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdminRequest.Merge(m, src) -} -func (m *AdminRequest) XXX_Size() int { - return m.Size() -} -func (m *AdminRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdminRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AdminRequest proto.InternalMessageInfo + CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` + ChangePeer *ChangePeerRequest `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` + Split *SplitRequest `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"` + CompactLog *CompactLogRequest `protobuf:"bytes,4,opt,name=compact_log,json=compactLog" json:"compact_log,omitempty"` + TransferLeader *TransferLeaderRequest `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` + VerifyHash *VerifyHashRequest `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash" json:"verify_hash,omitempty"` + PrepareMerge *PrepareMergeRequest `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge" json:"prepare_merge,omitempty"` + CommitMerge *CommitMergeRequest `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge" json:"commit_merge,omitempty"` + RollbackMerge *RollbackMergeRequest `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge" json:"rollback_merge,omitempty"` + Splits *BatchSplitRequest `protobuf:"bytes,10,opt,name=splits" json:"splits,omitempty"` + ChangePeerV2 *ChangePeerV2Request `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` + ComputeHash *ComputeHashRequest `protobuf:"bytes,12,opt,name=compute_hash,json=computeHash" json:"compute_hash,omitempty"` + PrepareFlashback *PrepareFlashbackRequest `protobuf:"bytes,13,opt,name=prepare_flashback,json=prepareFlashback" json:"prepare_flashback,omitempty"` + FinishFlashback *FinishFlashbackRequest `protobuf:"bytes,14,opt,name=finish_flashback,json=finishFlashback" json:"finish_flashback,omitempty"` + SwitchWitnesses *BatchSwitchWitnessRequest `protobuf:"bytes,15,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` + UpdateGcPeers *UpdateGcPeerRequest `protobuf:"bytes,16,opt,name=update_gc_peers,json=updateGcPeers" json:"update_gc_peers,omitempty"` +} + +func (m *AdminRequest) Reset() { *m = AdminRequest{} } +func (m *AdminRequest) String() string { return proto.CompactTextString(m) } +func (*AdminRequest) ProtoMessage() {} +func (*AdminRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{47} } func (m *AdminRequest) GetCmdType() AdminCmdType { if m != nil { @@ -2707,7 +1293,6 @@ func (m *AdminRequest) GetChangePeer() *ChangePeerRequest { return nil } -// Deprecated: Do not use. func (m *AdminRequest) GetSplit() *SplitRequest { if m != nil { return m.Split @@ -2807,57 +1392,26 @@ func (m *AdminRequest) GetUpdateGcPeers() *UpdateGcPeerRequest { } type AdminResponse struct { - CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` - ChangePeer *ChangePeerResponse `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` - Split *SplitResponse `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"` // Deprecated: Do not use. - CompactLog *CompactLogResponse `protobuf:"bytes,4,opt,name=compact_log,json=compactLog,proto3" json:"compact_log,omitempty"` - TransferLeader *TransferLeaderResponse `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` - VerifyHash *VerifyHashResponse `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash,proto3" json:"verify_hash,omitempty"` - PrepareMerge *PrepareMergeResponse `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge,proto3" json:"prepare_merge,omitempty"` - CommitMerge *CommitMergeResponse `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge,proto3" json:"commit_merge,omitempty"` - RollbackMerge *RollbackMergeResponse `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge,proto3" json:"rollback_merge,omitempty"` - Splits *BatchSplitResponse `protobuf:"bytes,10,opt,name=splits,proto3" json:"splits,omitempty"` - ChangePeerV2 *ChangePeerV2Response `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` - PrepareFlashback *PrepareFlashbackResponse `protobuf:"bytes,12,opt,name=prepare_flashback,json=prepareFlashback,proto3" json:"prepare_flashback,omitempty"` - FinishFlashback *FinishFlashbackResponse `protobuf:"bytes,13,opt,name=finish_flashback,json=finishFlashback,proto3" json:"finish_flashback,omitempty"` - SwitchWitnesses *BatchSwitchWitnessResponse `protobuf:"bytes,14,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdminResponse) Reset() { *m = AdminResponse{} } -func (m *AdminResponse) String() string { return proto.CompactTextString(m) } -func (*AdminResponse) ProtoMessage() {} -func (*AdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{48} -} -func (m *AdminResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AdminResponse.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 *AdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdminResponse.Merge(m, src) -} -func (m *AdminResponse) XXX_Size() int { - return m.Size() -} -func (m *AdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdminResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AdminResponse proto.InternalMessageInfo + CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` + ChangePeer *ChangePeerResponse `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` + Split *SplitResponse `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"` + CompactLog *CompactLogResponse `protobuf:"bytes,4,opt,name=compact_log,json=compactLog" json:"compact_log,omitempty"` + TransferLeader *TransferLeaderResponse `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` + VerifyHash *VerifyHashResponse `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash" json:"verify_hash,omitempty"` + PrepareMerge *PrepareMergeResponse `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge" json:"prepare_merge,omitempty"` + CommitMerge *CommitMergeResponse `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge" json:"commit_merge,omitempty"` + RollbackMerge *RollbackMergeResponse `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge" json:"rollback_merge,omitempty"` + Splits *BatchSplitResponse `protobuf:"bytes,10,opt,name=splits" json:"splits,omitempty"` + ChangePeerV2 *ChangePeerV2Response `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` + PrepareFlashback *PrepareFlashbackResponse `protobuf:"bytes,12,opt,name=prepare_flashback,json=prepareFlashback" json:"prepare_flashback,omitempty"` + FinishFlashback *FinishFlashbackResponse `protobuf:"bytes,13,opt,name=finish_flashback,json=finishFlashback" json:"finish_flashback,omitempty"` + SwitchWitnesses *BatchSwitchWitnessResponse `protobuf:"bytes,14,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` +} + +func (m *AdminResponse) Reset() { *m = AdminResponse{} } +func (m *AdminResponse) String() string { return proto.CompactTextString(m) } +func (*AdminResponse) ProtoMessage() {} +func (*AdminResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{48} } func (m *AdminResponse) GetCmdType() AdminCmdType { if m != nil { @@ -2873,7 +1427,6 @@ func (m *AdminResponse) GetChangePeer() *ChangePeerResponse { return nil } -// Deprecated: Do not use. func (m *AdminResponse) GetSplit() *SplitResponse { if m != nil { return m.Split @@ -2960,83 +1513,21 @@ func (m *AdminResponse) GetSwitchWitnesses() *BatchSwitchWitnessResponse { // For get the leader of the region. type RegionLeaderRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionLeaderRequest) Reset() { *m = RegionLeaderRequest{} } -func (m *RegionLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*RegionLeaderRequest) ProtoMessage() {} -func (*RegionLeaderRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{49} -} -func (m *RegionLeaderRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionLeaderRequest.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 *RegionLeaderRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionLeaderRequest.Merge(m, src) -} -func (m *RegionLeaderRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionLeaderRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionLeaderRequest.DiscardUnknown(m) } -var xxx_messageInfo_RegionLeaderRequest proto.InternalMessageInfo +func (m *RegionLeaderRequest) Reset() { *m = RegionLeaderRequest{} } +func (m *RegionLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*RegionLeaderRequest) ProtoMessage() {} +func (*RegionLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{49} } type RegionLeaderResponse struct { - Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionLeaderResponse) Reset() { *m = RegionLeaderResponse{} } -func (m *RegionLeaderResponse) String() string { return proto.CompactTextString(m) } -func (*RegionLeaderResponse) ProtoMessage() {} -func (*RegionLeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{50} -} -func (m *RegionLeaderResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionLeaderResponse.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 *RegionLeaderResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionLeaderResponse.Merge(m, src) -} -func (m *RegionLeaderResponse) XXX_Size() int { - return m.Size() -} -func (m *RegionLeaderResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionLeaderResponse.DiscardUnknown(m) + Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader" json:"leader,omitempty"` } -var xxx_messageInfo_RegionLeaderResponse proto.InternalMessageInfo +func (m *RegionLeaderResponse) Reset() { *m = RegionLeaderResponse{} } +func (m *RegionLeaderResponse) String() string { return proto.CompactTextString(m) } +func (*RegionLeaderResponse) ProtoMessage() {} +func (*RegionLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{50} } func (m *RegionLeaderResponse) GetLeader() *metapb.Peer { if m != nil { @@ -3055,84 +1546,22 @@ func (m *RegionLeaderResponse) GetLeader() *metapb.Peer { // Peer10, we can think this ChangePeer is finished, and can pop this job from job list // directly. type RegionDetailRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionDetailRequest) Reset() { *m = RegionDetailRequest{} } -func (m *RegionDetailRequest) String() string { return proto.CompactTextString(m) } -func (*RegionDetailRequest) ProtoMessage() {} -func (*RegionDetailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{51} -} -func (m *RegionDetailRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionDetailRequest.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 *RegionDetailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionDetailRequest.Merge(m, src) -} -func (m *RegionDetailRequest) XXX_Size() int { - return m.Size() -} -func (m *RegionDetailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegionDetailRequest.DiscardUnknown(m) } -var xxx_messageInfo_RegionDetailRequest proto.InternalMessageInfo +func (m *RegionDetailRequest) Reset() { *m = RegionDetailRequest{} } +func (m *RegionDetailRequest) String() string { return proto.CompactTextString(m) } +func (*RegionDetailRequest) ProtoMessage() {} +func (*RegionDetailRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{51} } type RegionDetailResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionDetailResponse) Reset() { *m = RegionDetailResponse{} } -func (m *RegionDetailResponse) String() string { return proto.CompactTextString(m) } -func (*RegionDetailResponse) ProtoMessage() {} -func (*RegionDetailResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{52} -} -func (m *RegionDetailResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionDetailResponse.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 *RegionDetailResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionDetailResponse.Merge(m, src) -} -func (m *RegionDetailResponse) XXX_Size() int { - return m.Size() -} -func (m *RegionDetailResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegionDetailResponse.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` } -var xxx_messageInfo_RegionDetailResponse proto.InternalMessageInfo +func (m *RegionDetailResponse) Reset() { *m = RegionDetailResponse{} } +func (m *RegionDetailResponse) String() string { return proto.CompactTextString(m) } +func (*RegionDetailResponse) ProtoMessage() {} +func (*RegionDetailResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{52} } func (m *RegionDetailResponse) GetRegion() *metapb.Region { if m != nil { @@ -3149,46 +1578,15 @@ func (m *RegionDetailResponse) GetLeader() *metapb.Peer { } type StatusRequest struct { - CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` - RegionLeader *RegionLeaderRequest `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader,proto3" json:"region_leader,omitempty"` - RegionDetail *RegionDetailRequest `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail,proto3" json:"region_detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatusRequest) Reset() { *m = StatusRequest{} } -func (m *StatusRequest) String() string { return proto.CompactTextString(m) } -func (*StatusRequest) ProtoMessage() {} -func (*StatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{53} -} -func (m *StatusRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusRequest.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 *StatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusRequest.Merge(m, src) -} -func (m *StatusRequest) XXX_Size() int { - return m.Size() -} -func (m *StatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StatusRequest.DiscardUnknown(m) + CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` + RegionLeader *RegionLeaderRequest `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader" json:"region_leader,omitempty"` + RegionDetail *RegionDetailRequest `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail" json:"region_detail,omitempty"` } -var xxx_messageInfo_StatusRequest proto.InternalMessageInfo +func (m *StatusRequest) Reset() { *m = StatusRequest{} } +func (m *StatusRequest) String() string { return proto.CompactTextString(m) } +func (*StatusRequest) ProtoMessage() {} +func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{53} } func (m *StatusRequest) GetCmdType() StatusCmdType { if m != nil { @@ -3212,46 +1610,15 @@ func (m *StatusRequest) GetRegionDetail() *RegionDetailRequest { } type StatusResponse struct { - CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` - RegionLeader *RegionLeaderResponse `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader,proto3" json:"region_leader,omitempty"` - RegionDetail *RegionDetailResponse `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail,proto3" json:"region_detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (m *StatusResponse) String() string { return proto.CompactTextString(m) } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{54} -} -func (m *StatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatusResponse.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 *StatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusResponse.Merge(m, src) -} -func (m *StatusResponse) XXX_Size() int { - return m.Size() -} -func (m *StatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatusResponse.DiscardUnknown(m) + CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` + RegionLeader *RegionLeaderResponse `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader" json:"region_leader,omitempty"` + RegionDetail *RegionDetailResponse `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail" json:"region_detail,omitempty"` } -var xxx_messageInfo_StatusResponse proto.InternalMessageInfo +func (m *StatusResponse) Reset() { *m = StatusResponse{} } +func (m *StatusResponse) String() string { return proto.CompactTextString(m) } +func (*StatusResponse) ProtoMessage() {} +func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{54} } func (m *StatusResponse) GetCmdType() StatusCmdType { if m != nil { @@ -3276,59 +1643,28 @@ func (m *StatusResponse) GetRegionDetail() *RegionDetailResponse { type RaftRequestHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` // true for read linearization ReadQuorum bool `protobuf:"varint,3,opt,name=read_quorum,json=readQuorum,proto3" json:"read_quorum,omitempty"` // 16 bytes, to distinguish request. Uuid []byte `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` Term uint64 `protobuf:"varint,6,opt,name=term,proto3" json:"term,omitempty"` SyncLog bool `protobuf:"varint,7,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` ReplicaRead bool `protobuf:"varint,8,opt,name=replica_read,json=replicaRead,proto3" json:"replica_read,omitempty"` // Read requests can be responsed directly after the Raft applys to `applied_index`. AppliedIndex uint64 `protobuf:"varint,9,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` // Custom flags for this raft request. - Flags uint64 `protobuf:"varint,10,opt,name=flags,proto3" json:"flags,omitempty"` - FlagData []byte `protobuf:"bytes,11,opt,name=flag_data,json=flagData,proto3" json:"flag_data,omitempty"` - Priority kvrpcpb.CommandPri `protobuf:"varint,12,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` - ResourceGroupName string `protobuf:"bytes,13,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftRequestHeader) Reset() { *m = RaftRequestHeader{} } -func (m *RaftRequestHeader) String() string { return proto.CompactTextString(m) } -func (*RaftRequestHeader) ProtoMessage() {} -func (*RaftRequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{55} -} -func (m *RaftRequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftRequestHeader.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 *RaftRequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftRequestHeader.Merge(m, src) -} -func (m *RaftRequestHeader) XXX_Size() int { - return m.Size() -} -func (m *RaftRequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RaftRequestHeader.DiscardUnknown(m) + Flags uint64 `protobuf:"varint,10,opt,name=flags,proto3" json:"flags,omitempty"` + FlagData []byte `protobuf:"bytes,11,opt,name=flag_data,json=flagData,proto3" json:"flag_data,omitempty"` + Priority kvrpcpb.CommandPri `protobuf:"varint,12,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` + ResourceGroupName string `protobuf:"bytes,13,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` } -var xxx_messageInfo_RaftRequestHeader proto.InternalMessageInfo +func (m *RaftRequestHeader) Reset() { *m = RaftRequestHeader{} } +func (m *RaftRequestHeader) String() string { return proto.CompactTextString(m) } +func (*RaftRequestHeader) ProtoMessage() {} +func (*RaftRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{55} } func (m *RaftRequestHeader) GetRegionId() uint64 { if m != nil { @@ -3422,46 +1758,15 @@ func (m *RaftRequestHeader) GetResourceGroupName() string { } type RaftResponseHeader struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - CurrentTerm uint64 `protobuf:"varint,3,opt,name=current_term,json=currentTerm,proto3" json:"current_term,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftResponseHeader) Reset() { *m = RaftResponseHeader{} } -func (m *RaftResponseHeader) String() string { return proto.CompactTextString(m) } -func (*RaftResponseHeader) ProtoMessage() {} -func (*RaftResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{56} -} -func (m *RaftResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftResponseHeader.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 *RaftResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftResponseHeader.Merge(m, src) -} -func (m *RaftResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *RaftResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RaftResponseHeader.DiscardUnknown(m) + Error *errorpb.Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` + CurrentTerm uint64 `protobuf:"varint,3,opt,name=current_term,json=currentTerm,proto3" json:"current_term,omitempty"` } -var xxx_messageInfo_RaftResponseHeader proto.InternalMessageInfo +func (m *RaftResponseHeader) Reset() { *m = RaftResponseHeader{} } +func (m *RaftResponseHeader) String() string { return proto.CompactTextString(m) } +func (*RaftResponseHeader) ProtoMessage() {} +func (*RaftResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{56} } func (m *RaftResponseHeader) GetError() *errorpb.Error { if m != nil { @@ -3485,49 +1790,18 @@ func (m *RaftResponseHeader) GetCurrentTerm() uint64 { } type RaftCmdRequest struct { - Header *RaftRequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RaftRequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // We can't enclose normal requests and administrator request // at same time. - Requests []*Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` - AdminRequest *AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` - StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest,proto3" json:"status_request,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftCmdRequest) Reset() { *m = RaftCmdRequest{} } -func (m *RaftCmdRequest) String() string { return proto.CompactTextString(m) } -func (*RaftCmdRequest) ProtoMessage() {} -func (*RaftCmdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{57} -} -func (m *RaftCmdRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftCmdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftCmdRequest.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 *RaftCmdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftCmdRequest.Merge(m, src) -} -func (m *RaftCmdRequest) XXX_Size() int { - return m.Size() -} -func (m *RaftCmdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RaftCmdRequest.DiscardUnknown(m) + Requests []*Request `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"` + AdminRequest *AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` + StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest" json:"status_request,omitempty"` } -var xxx_messageInfo_RaftCmdRequest proto.InternalMessageInfo +func (m *RaftCmdRequest) Reset() { *m = RaftCmdRequest{} } +func (m *RaftCmdRequest) String() string { return proto.CompactTextString(m) } +func (*RaftCmdRequest) ProtoMessage() {} +func (*RaftCmdRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{57} } func (m *RaftCmdRequest) GetHeader() *RaftRequestHeader { if m != nil { @@ -3558,47 +1832,16 @@ func (m *RaftCmdRequest) GetStatusRequest() *StatusRequest { } type RaftCmdResponse struct { - Header *RaftResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Responses []*Response `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` - AdminResponse *AdminResponse `protobuf:"bytes,3,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` - StatusResponse *StatusResponse `protobuf:"bytes,4,opt,name=status_response,json=statusResponse,proto3" json:"status_response,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftCmdResponse) Reset() { *m = RaftCmdResponse{} } -func (m *RaftCmdResponse) String() string { return proto.CompactTextString(m) } -func (*RaftCmdResponse) ProtoMessage() {} -func (*RaftCmdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{58} -} -func (m *RaftCmdResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftCmdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftCmdResponse.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 *RaftCmdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftCmdResponse.Merge(m, src) -} -func (m *RaftCmdResponse) XXX_Size() int { - return m.Size() -} -func (m *RaftCmdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RaftCmdResponse.DiscardUnknown(m) + Header *RaftResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Responses []*Response `protobuf:"bytes,2,rep,name=responses" json:"responses,omitempty"` + AdminResponse *AdminResponse `protobuf:"bytes,3,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` + StatusResponse *StatusResponse `protobuf:"bytes,4,opt,name=status_response,json=statusResponse" json:"status_response,omitempty"` } -var xxx_messageInfo_RaftCmdResponse proto.InternalMessageInfo +func (m *RaftCmdResponse) Reset() { *m = RaftCmdResponse{} } +func (m *RaftCmdResponse) String() string { return proto.CompactTextString(m) } +func (*RaftCmdResponse) ProtoMessage() {} +func (*RaftCmdResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{58} } func (m *RaftCmdResponse) GetHeader() *RaftResponseHeader { if m != nil { @@ -3629,9 +1872,6 @@ func (m *RaftCmdResponse) GetStatusResponse() *StatusResponse { } func init() { - proto.RegisterEnum("raft_cmdpb.CmdType", CmdType_name, CmdType_value) - proto.RegisterEnum("raft_cmdpb.AdminCmdType", AdminCmdType_name, AdminCmdType_value) - proto.RegisterEnum("raft_cmdpb.StatusCmdType", StatusCmdType_name, StatusCmdType_value) proto.RegisterType((*GetRequest)(nil), "raft_cmdpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "raft_cmdpb.GetResponse") proto.RegisterType((*PutRequest)(nil), "raft_cmdpb.PutRequest") @@ -3691,234 +1931,44 @@ func init() { proto.RegisterType((*RaftResponseHeader)(nil), "raft_cmdpb.RaftResponseHeader") proto.RegisterType((*RaftCmdRequest)(nil), "raft_cmdpb.RaftCmdRequest") proto.RegisterType((*RaftCmdResponse)(nil), "raft_cmdpb.RaftCmdResponse") + proto.RegisterEnum("raft_cmdpb.CmdType", CmdType_name, CmdType_value) + proto.RegisterEnum("raft_cmdpb.AdminCmdType", AdminCmdType_name, AdminCmdType_value) + proto.RegisterEnum("raft_cmdpb.StatusCmdType", StatusCmdType_name, StatusCmdType_value) +} +func (m *GetRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func init() { proto.RegisterFile("raft_cmdpb.proto", fileDescriptor_661741b5e7485333) } - -var fileDescriptor_661741b5e7485333 = []byte{ - // 2790 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x5a, 0x4b, 0x73, 0xdc, 0xc6, - 0xf1, 0xd7, 0xbe, 0x77, 0x7b, 0x1f, 0x04, 0x67, 0x57, 0xe4, 0x4a, 0xb2, 0x29, 0x0a, 0x92, 0xf5, - 0xa7, 0xfd, 0x4f, 0x31, 0x31, 0x6d, 0xcb, 0xae, 0xb2, 0xe2, 0x87, 0x44, 0x4a, 0x96, 0xf5, 0x08, - 0x3d, 0x64, 0xec, 0x4a, 0xaa, 0x5c, 0x28, 0x18, 0x98, 0xe5, 0xa2, 0xb8, 0x0b, 0xc0, 0x03, 0x2c, - 0xe5, 0xb5, 0xaf, 0xa9, 0xdc, 0x73, 0xcb, 0x17, 0x48, 0x55, 0xae, 0xf9, 0x16, 0x71, 0x4e, 0x71, - 0xca, 0x87, 0x1c, 0x53, 0xf2, 0x2d, 0x9f, 0x22, 0x35, 0x2f, 0x60, 0xf0, 0x58, 0x4a, 0xf2, 0x89, - 0x98, 0x9e, 0xee, 0xdf, 0xf4, 0x74, 0xcf, 0xfc, 0xa6, 0x67, 0x96, 0x60, 0x50, 0x7b, 0x12, 0x5b, - 0xce, 0xdc, 0x0d, 0xbf, 0xda, 0x0d, 0x69, 0x10, 0x07, 0x08, 0x52, 0xc9, 0xe5, 0xde, 0x9c, 0xc4, - 0xb6, 0xea, 0xb9, 0xdc, 0x27, 0x94, 0x06, 0x54, 0x6f, 0xda, 0x93, 0x38, 0x6d, 0x9e, 0x9e, 0xd1, - 0xd0, 0x49, 0x9a, 0xc8, 0x9b, 0x87, 0x01, 0x8d, 0xad, 0x28, 0x4a, 0x55, 0x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8, 0x98, 0xd3, 0x97, 0x40, 0x4f, 0x60, - 0x74, 0xf4, 0xd4, 0x8b, 0x9d, 0xe9, 0x17, 0x5e, 0xec, 0x93, 0x28, 0x52, 0x40, 0x9b, 0xd0, 0x92, - 0x0c, 0xae, 0x90, 0x42, 0xce, 0xde, 0xac, 0x18, 0xf7, 0x22, 0xeb, 0xa9, 0xd0, 0x96, 0x9c, 0xd5, - 0xf1, 0x22, 0x69, 0x6e, 0x4e, 0xe1, 0x92, 0x20, 0x9e, 0x32, 0xd0, 0x87, 0x60, 0x44, 0x5c, 0xae, - 0xec, 0x93, 0xe3, 0x6e, 0x3b, 0xc3, 0x97, 0x25, 0xb6, 0x78, 0x2d, 0xd2, 0xa5, 0x24, 0x32, 0x5f, - 0x81, 0xcb, 0x65, 0x23, 0x25, 0x01, 0x1a, 0xfe, 0x36, 0x74, 0xed, 0x98, 0xdc, 0x77, 0xf4, 0xc2, - 0x20, 0x33, 0xad, 0x5a, 0x3a, 0x2d, 0xf3, 0x5f, 0x6d, 0xe8, 0x7d, 0xec, 0xce, 0x3d, 0x5f, 0x69, - 0xbe, 0x55, 0xa8, 0x1b, 0x33, 0x9c, 0xce, 0x75, 0x0b, 0xc5, 0xe3, 0x07, 0x49, 0xdd, 0xa1, 0x15, - 0x11, 0xcf, 0x39, 0xca, 0x65, 0xf5, 0xc1, 0x44, 0x68, 0x0f, 0x1a, 0xfc, 0xac, 0xe5, 0x5b, 0xfc, - 0x9c, 0x53, 0x84, 0x1f, 0x96, 0x42, 0x95, 0x8f, 0x29, 0xf9, 0x76, 0x16, 0x9c, 0xc8, 0xb5, 0x96, - 0x1d, 0x33, 0x4f, 0xe4, 0x18, 0x9c, 0x44, 0x84, 0x3e, 0x85, 0xb5, 0x58, 0x32, 0x9c, 0x35, 0xe3, - 0x14, 0x27, 0x6b, 0xd4, 0x6b, 0x3a, 0x46, 0x29, 0xc7, 0xe2, 0x41, 0x9c, 0x11, 0x33, 0x5f, 0xce, - 0x38, 0x15, 0x59, 0x9c, 0xbf, 0x9a, 0x45, 0x5f, 0x0a, 0x14, 0x88, 0xe1, 0x2c, 0x11, 0xa1, 0x7d, - 0xe8, 0x87, 0x82, 0x0a, 0xac, 0x39, 0x5b, 0xa6, 0xb2, 0x92, 0xbd, 0x9a, 0xab, 0x64, 0xf3, 0xac, - 0x86, 0x7b, 0xa1, 0x26, 0x64, 0x97, 0x17, 0xb1, 0xec, 0x25, 0x48, 0xc9, 0xe5, 0xa5, 0x48, 0x0f, - 0xfc, 0x84, 0x52, 0x32, 0x74, 0x1f, 0x06, 0x54, 0xee, 0x17, 0x09, 0x22, 0xaa, 0xda, 0xcc, 0x3a, - 0x2d, 0xdb, 0x81, 0xb8, 0x4f, 0x75, 0x29, 0x7a, 0x07, 0x9a, 0x3c, 0x4d, 0x51, 0x59, 0x61, 0x5b, - 0xa8, 0x24, 0xb0, 0x54, 0x46, 0x07, 0x30, 0xd0, 0x16, 0x92, 0x75, 0xb6, 0x37, 0xee, 0x16, 0x23, - 0x51, 0x52, 0x48, 0xe2, 0x9e, 0xa3, 0x09, 0x65, 0x24, 0xd8, 0x19, 0x25, 0x12, 0xd2, 0x2b, 0x8d, - 0x44, 0xee, 0x0c, 0x13, 0x67, 0xb5, 0x94, 0xa1, 0x43, 0x58, 0x57, 0x29, 0x99, 0x28, 0xa6, 0x1d, - 0xf7, 0x39, 0xce, 0xf5, 0x92, 0xb4, 0xe4, 0x79, 0x1a, 0x1b, 0x61, 0xae, 0x03, 0x3d, 0x06, 0x63, - 0xc2, 0x99, 0x5b, 0x03, 0x1c, 0x70, 0x40, 0x53, 0x07, 0x2c, 0xe7, 0x7d, 0xbc, 0x36, 0xc9, 0xca, - 0xd1, 0x61, 0x09, 0xa9, 0xac, 0x71, 0xb8, 0xd7, 0x8a, 0xb1, 0x7e, 0x11, 0x66, 0x41, 0xf7, 0x61, - 0x6d, 0xc1, 0xb9, 0xc3, 0x3a, 0x71, 0x2c, 0x51, 0x21, 0x18, 0xc5, 0xe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87, 0xbe, 0x8c, 0x99, 0x90, 0x1b, 0x17, - 0x98, 0x95, 0x7e, 0x22, 0x19, 0x95, 0x54, 0x22, 0x8e, 0x11, 0xa3, 0x7a, 0xe7, 0xe6, 0xbf, 0xff, - 0xda, 0xae, 0xfc, 0xfd, 0xd9, 0x56, 0xe5, 0x9f, 0xcf, 0xb6, 0x2a, 0xff, 0x79, 0xb6, 0x55, 0xf9, - 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, - 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, - 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, -} - -func (m *GetRequest) 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 *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + return i, nil +} func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3926,33 +1976,23 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - return len(dAtA) - i, nil + return i, nil } func (m *PutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3960,47 +2000,35 @@ func (m *PutRequest) Marshal() (dAtA []byte, err error) { } func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa + if len(m.Value) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - return len(dAtA) - i, nil + return i, nil } func (m *PutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4008,26 +2036,17 @@ func (m *PutResponse) Marshal() (dAtA []byte, err error) { } func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4035,40 +2054,29 @@ func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4076,26 +2084,17 @@ func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4103,57 +2102,45 @@ func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } if m.NotifyOnly { - i-- + dAtA[i] = 0x20 + i++ if m.NotifyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4161,26 +2148,17 @@ func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *SnapRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4188,26 +2166,17 @@ func (m *SnapRequest) Marshal() (dAtA []byte, err error) { } func (m *SnapRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *SnapResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4215,38 +2184,27 @@ func (m *SnapResponse) Marshal() (dAtA []byte, err error) { } func (m *SnapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) + n1, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - return len(dAtA) - i, nil + return i, nil } func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4254,47 +2212,35 @@ func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { } func (m *PrewriteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrewriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Lock) > 0 { - i -= len(m.Lock) - copy(dAtA[i:], m.Lock) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Lock))) - i-- - dAtA[i] = 0x1a + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if len(m.Lock) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Lock))) + i += copy(dAtA[i:], m.Lock) } - return len(dAtA) - i, nil + return i, nil } func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4302,26 +2248,17 @@ func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { } func (m *PrewriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrewriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *IngestSSTRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4329,38 +2266,27 @@ func (m *IngestSSTRequest) Marshal() (dAtA []byte, err error) { } func (m *IngestSSTRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngestSSTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Sst != nil { - { - size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Sst.Size())) + n2, err := m.Sst.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *IngestSSTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4368,26 +2294,17 @@ func (m *IngestSSTResponse) Marshal() (dAtA []byte, err error) { } func (m *IngestSSTResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngestSSTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4395,45 +2312,34 @@ func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) } if len(m.KeyRanges) > 0 { - for iNdEx := len(m.KeyRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.KeyRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.KeyRanges { dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.StartTs != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4441,43 +2347,32 @@ func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ReadIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex)) } if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Locked.Size())) + n3, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - if m.ReadIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4485,127 +2380,102 @@ func (m *Request) Marshal() (dAtA []byte, err error) { } func (m *Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadIndex != nil { - { - size, err := m.ReadIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - if m.IngestSst != nil { - { - size, err := m.IngestSst.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Get != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Get.Size())) + n4, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n4 } - if m.DeleteRange != nil { - { - size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Put != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Put.Size())) + n5, err := m.Put.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n5 } - if m.Prewrite != nil { - { - size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Delete != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Delete.Size())) + n6, err := m.Delete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n6 } if m.Snap != nil { - { - size, err := m.Snap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) + n7, err := m.Snap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - if m.Delete != nil { - { - size, err := m.Delete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Prewrite != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Prewrite.Size())) + n8, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n8 } - if m.Put != nil { - { - size, err := m.Put.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.DeleteRange != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.DeleteRange.Size())) + n9, err := m.DeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n9 } - if m.Get != nil { - { - size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.IngestSst != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.IngestSst.Size())) + n10, err := m.IngestSst.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n10 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.ReadIndex != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex.Size())) + n11, err := m.ReadIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4613,127 +2483,102 @@ func (m *Response) Marshal() (dAtA []byte, err error) { } func (m *Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReadIndex != nil { - { - size, err := m.ReadIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - if m.IngestSst != nil { - { - size, err := m.IngestSst.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Get != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Get.Size())) + n12, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n12 } - if m.DelteRange != nil { - { - size, err := m.DelteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Put != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Put.Size())) + n13, err := m.Put.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n13 } - if m.Prewrite != nil { - { - size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Delete != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Delete.Size())) + n14, err := m.Delete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n14 } if m.Snap != nil { - { - size, err := m.Snap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) + n15, err := m.Snap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - if m.Delete != nil { - { - size, err := m.Delete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Prewrite != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Prewrite.Size())) + n16, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n16 } - if m.Put != nil { - { - size, err := m.Put.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.DelteRange != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.DelteRange.Size())) + n17, err := m.DelteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n17 } - if m.Get != nil { - { - size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.IngestSst != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.IngestSst.Size())) + n18, err := m.IngestSst.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n18 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.ReadIndex != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex.Size())) + n19, err := m.ReadIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - return len(dAtA) - i, nil + return i, nil } func (m *ChangePeerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4741,43 +2586,32 @@ func (m *ChangePeerRequest) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ChangeType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangeType)) } if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) + n20, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - if m.ChangeType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangeType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ChangePeerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4785,38 +2619,27 @@ func (m *ChangePeerResponse) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) + n21, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *ChangePeerV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4824,40 +2647,29 @@ func (m *ChangePeerV2Request) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeerV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Changes { dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *ChangePeerV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4865,38 +2677,27 @@ func (m *ChangePeerV2Response) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeerV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) + n22, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *SplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4904,38 +2705,20 @@ func (m *SplitRequest) Marshal() (dAtA []byte, err error) { } func (m *SplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ShareSourceRegionSize { - i-- - if m.ShareSourceRegionSize { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 + if len(m.SplitKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.SplitKey))) + i += copy(dAtA[i:], m.SplitKey) } - if m.RightDerive { - i-- - if m.RightDerive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 + if m.NewRegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { dAtA24 := make([]byte, len(m.NewPeerIds)*10) @@ -4949,31 +2732,38 @@ func (m *SplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA24[j23] = uint8(num) j23++ } - i -= j23 - copy(dAtA[i:], dAtA24[:j23]) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(j23)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(j23)) + i += copy(dAtA[i:], dAtA24[:j23]) } - if m.NewRegionId != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.NewRegionId)) - i-- - dAtA[i] = 0x10 - } - if len(m.SplitKey) > 0 { - i -= len(m.SplitKey) - copy(dAtA[i:], m.SplitKey) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.SplitKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} + if m.RightDerive { + dAtA[i] = 0x20 + i++ + if m.RightDerive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.ShareSourceRegionSize { + dAtA[i] = 0x28 + i++ + if m.ShareSourceRegionSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} func (m *SplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4981,50 +2771,37 @@ func (m *SplitResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Left != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Left.Size())) + n25, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } if m.Right != nil { - { - size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Left != nil { - { - size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Right.Size())) + n26, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5032,60 +2809,49 @@ func (m *BatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ShareSourceRegionSize { - i-- - if m.ShareSourceRegionSize { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i-- - dAtA[i] = 0x18 } if m.RightDerive { - i-- + dAtA[i] = 0x10 + i++ if m.RightDerive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.ShareSourceRegionSize { + dAtA[i] = 0x18 + i++ + if m.ShareSourceRegionSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *BatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5093,40 +2859,29 @@ func (m *BatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *CompactLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5134,41 +2889,32 @@ func (m *CompactLogRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactLogRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.VoterReplicatedIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VoterReplicatedIndex)) - i-- - dAtA[i] = 0x18 + if m.CompactIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactIndex)) } if m.CompactTerm != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactTerm)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactTerm)) } - if m.CompactIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactIndex)) - i-- - dAtA[i] = 0x8 + if m.VoterReplicatedIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VoterReplicatedIndex)) } - return len(dAtA) - i, nil + return i, nil } func (m *CompactLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5176,26 +2922,17 @@ func (m *CompactLogResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactLogResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *TransferLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5203,52 +2940,39 @@ func (m *TransferLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *TransferLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TransferLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) + n27, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Peers { dAtA[i] = 0x12 - } - } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *TransferLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5256,26 +2980,17 @@ func (m *TransferLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *TransferLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TransferLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ComputeHashRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5283,33 +2998,23 @@ func (m *ComputeHashRequest) Marshal() (dAtA []byte, err error) { } func (m *ComputeHashRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComputeHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func (m *VerifyHashRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5317,45 +3022,34 @@ func (m *VerifyHashRequest) Marshal() (dAtA []byte, err error) { } func (m *VerifyHashRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifyHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Context) > 0 { - i -= len(m.Context) - copy(dAtA[i:], m.Context) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) - i-- - dAtA[i] = 0x1a + if m.Index != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Index)) } if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Hash))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Hash))) + i += copy(dAtA[i:], m.Hash) } - if m.Index != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 + if len(m.Context) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - return len(dAtA) - i, nil + return i, nil } func (m *VerifyHashResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5363,26 +3057,17 @@ func (m *VerifyHashResponse) Marshal() (dAtA []byte, err error) { } func (m *VerifyHashResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifyHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5390,43 +3075,32 @@ func (m *PrepareMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareMergeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.MinIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.MinIndex)) } if m.Target != nil { - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Target.Size())) + n28, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - if m.MinIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.MinIndex)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5434,26 +3108,17 @@ func (m *PrepareMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareMergeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareFlashbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5461,31 +3126,22 @@ func (m *PrepareFlashbackRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareFlashbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.StartTs != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareFlashbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5493,26 +3149,17 @@ func (m *PrepareFlashbackResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareFlashbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *FinishFlashbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5520,26 +3167,17 @@ func (m *FinishFlashbackRequest) Marshal() (dAtA []byte, err error) { } func (m *FinishFlashbackRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FinishFlashbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *FinishFlashbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5547,26 +3185,17 @@ func (m *FinishFlashbackResponse) Marshal() (dAtA []byte, err error) { } func (m *FinishFlashbackResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FinishFlashbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *CommitMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5574,69 +3203,54 @@ func (m *CommitMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *CommitMergeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SourceState != nil { - { - size, err := m.SourceState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Entries) > 0 { - for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Source != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Source.Size())) + n29, err := m.Source.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n29 } if m.Commit != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) } - if m.Source != nil { - { - size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Entries) > 0 { + for _, msg := range m.Entries { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.SourceState != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SourceState.Size())) + n30, err := m.SourceState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 + } + return i, nil } func (m *CommitMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5644,26 +3258,17 @@ func (m *CommitMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *CommitMergeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommitMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *RollbackMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5671,31 +3276,22 @@ func (m *RollbackMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *RollbackMergeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollbackMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Commit != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) } - return len(dAtA) - i, nil + return i, nil } func (m *RollbackMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5703,26 +3299,17 @@ func (m *RollbackMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *RollbackMergeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollbackMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *SwitchWitnessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5730,41 +3317,32 @@ func (m *SwitchWitnessRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchWitnessRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwitchWitnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.PeerId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PeerId)) } if m.IsWitness { - i-- + dAtA[i] = 0x10 + i++ if m.IsWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 - } - if m.PeerId != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *BatchSwitchWitnessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5772,40 +3350,29 @@ func (m *BatchSwitchWitnessRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchSwitchWitnessRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchSwitchWitnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.SwitchWitnesses { dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *BatchSwitchWitnessResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5813,26 +3380,17 @@ func (m *BatchSwitchWitnessResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchSwitchWitnessResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchSwitchWitnessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *UpdateGcPeerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5840,19 +3398,10 @@ func (m *UpdateGcPeerRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGcPeerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGcPeerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.PeerId) > 0 { dAtA32 := make([]byte, len(m.PeerId)*10) var j31 int @@ -5865,19 +3414,18 @@ func (m *UpdateGcPeerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA32[j31] = uint8(num) j31++ } - i -= j31 - copy(dAtA[i:], dAtA32[:j31]) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(j31)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(j31)) + i += copy(dAtA[i:], dAtA32[:j31]) } - return len(dAtA) - i, nil + return i, nil } func (m *AdminRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5885,213 +3433,174 @@ func (m *AdminRequest) Marshal() (dAtA []byte, err error) { } func (m *AdminRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - if m.UpdateGcPeers != nil { - { - size, err := m.UpdateGcPeers.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ChangePeer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeer.Size())) + n33, err := m.ChangePeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n33 } - if m.SwitchWitnesses != nil { - { - size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Split != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Split.Size())) + n34, err := m.Split.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x7a + i += n34 } - if m.FinishFlashback != nil { - { - size, err := m.FinishFlashback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.CompactLog != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactLog.Size())) + n35, err := m.CompactLog.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x72 + i += n35 } - if m.PrepareFlashback != nil { - { - size, err := m.PrepareFlashback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.TransferLeader != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.TransferLeader.Size())) + n36, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6a + i += n36 } - if m.ComputeHash != nil { - { - size, err := m.ComputeHash.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.VerifyHash != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VerifyHash.Size())) + n37, err := m.VerifyHash.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x62 + i += n37 } - if m.ChangePeerV2 != nil { - { - size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.PrepareMerge != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareMerge.Size())) + n38, err := m.PrepareMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n38 } - if m.Splits != nil { - { - size, err := m.Splits.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.CommitMerge != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CommitMerge.Size())) + n39, err := m.CommitMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n39 } if m.RollbackMerge != nil { - { - size, err := m.RollbackMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x4a - } - if m.CommitMerge != nil { - { - size, err := m.CommitMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RollbackMerge.Size())) + n40, err := m.RollbackMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n40 } - if m.PrepareMerge != nil { - { - size, err := m.PrepareMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Splits != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Splits.Size())) + n41, err := m.Splits.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n41 } - if m.VerifyHash != nil { - { - size, err := m.VerifyHash.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ChangePeerV2 != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) + n42, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n42 } - if m.TransferLeader != nil { - { - size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ComputeHash != nil { + dAtA[i] = 0x62 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ComputeHash.Size())) + n43, err := m.ComputeHash.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n43 } - if m.CompactLog != nil { - { - size, err := m.CompactLog.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.PrepareFlashback != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareFlashback.Size())) + n44, err := m.PrepareFlashback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n44 } - if m.Split != nil { - { - size, err := m.Split.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.FinishFlashback != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.FinishFlashback.Size())) + n45, err := m.FinishFlashback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n45 } - if m.ChangePeer != nil { - { - size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.SwitchWitnesses != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) + n46, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n46 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.UpdateGcPeers != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.UpdateGcPeers.Size())) + n47, err := m.UpdateGcPeers.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - return len(dAtA) - i, nil + return i, nil } func (m *AdminResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6099,187 +3608,152 @@ func (m *AdminResponse) Marshal() (dAtA []byte, err error) { } func (m *AdminResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - if m.SwitchWitnesses != nil { - { - size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ChangePeer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeer.Size())) + n48, err := m.ChangePeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x72 + i += n48 } - if m.FinishFlashback != nil { - { - size, err := m.FinishFlashback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Split != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Split.Size())) + n49, err := m.Split.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6a + i += n49 } - if m.PrepareFlashback != nil { - { - size, err := m.PrepareFlashback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.CompactLog != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactLog.Size())) + n50, err := m.CompactLog.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x62 + i += n50 } - if m.ChangePeerV2 != nil { - { - size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.TransferLeader != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.TransferLeader.Size())) + n51, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n51 } - if m.Splits != nil { - { - size, err := m.Splits.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.VerifyHash != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VerifyHash.Size())) + n52, err := m.VerifyHash.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n52 } - if m.RollbackMerge != nil { - { - size, err := m.RollbackMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.PrepareMerge != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareMerge.Size())) + n53, err := m.PrepareMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n53 } if m.CommitMerge != nil { - { - size, err := m.CommitMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x42 - } - if m.PrepareMerge != nil { - { - size, err := m.PrepareMerge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CommitMerge.Size())) + n54, err := m.CommitMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n54 } - if m.VerifyHash != nil { - { - size, err := m.VerifyHash.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.RollbackMerge != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RollbackMerge.Size())) + n55, err := m.RollbackMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n55 } - if m.TransferLeader != nil { - { - size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.Splits != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Splits.Size())) + n56, err := m.Splits.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n56 } - if m.CompactLog != nil { - { - size, err := m.CompactLog.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ChangePeerV2 != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) + n57, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n57 } - if m.Split != nil { - { - size, err := m.Split.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.PrepareFlashback != nil { + dAtA[i] = 0x62 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareFlashback.Size())) + n58, err := m.PrepareFlashback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n58 } - if m.ChangePeer != nil { - { - size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.FinishFlashback != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.FinishFlashback.Size())) + n59, err := m.FinishFlashback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n59 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.SwitchWitnesses != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) + n60, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 } - return len(dAtA) - i, nil + return i, nil } func (m *RegionLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6287,26 +3761,17 @@ func (m *RegionLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *RegionLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6314,38 +3779,27 @@ func (m *RegionLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Leader.Size())) + n61, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } - return len(dAtA) - i, nil + return i, nil } func (m *RegionDetailRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6353,26 +3807,17 @@ func (m *RegionDetailRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionDetailRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionDetailRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *RegionDetailResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6380,50 +3825,37 @@ func (m *RegionDetailResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionDetailResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionDetailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Region != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) + n62, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(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 - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Leader.Size())) + n63, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n63 } - return len(dAtA) - i, nil + return i, nil } func (m *StatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6431,55 +3863,42 @@ func (m *StatusRequest) Marshal() (dAtA []byte, err error) { } func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RegionDetail != nil { - { - size, err := m.RegionDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } if m.RegionLeader != nil { - { - size, err := m.RegionLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) + n64, err := m.RegionLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.RegionDetail != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionDetail.Size())) + n65, err := m.RegionDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } - return len(dAtA) - i, nil + return i, nil } func (m *StatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6487,182 +3906,153 @@ func (m *StatusResponse) Marshal() (dAtA []byte, err error) { } func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RegionDetail != nil { - { - size, err := m.RegionDetail.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } if m.RegionLeader != nil { - { - size, err := m.RegionLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) + n66, err := m.RegionLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.RegionDetail != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionDetail.Size())) + n67, err := m.RegionDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } - return len(dAtA) - i, nil + return i, nil } func (m *RaftRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } - -func (m *RaftRequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftRequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- - dAtA[i] = 0x6a - } - if m.Priority != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x60 - } - if len(m.FlagData) > 0 { - i -= len(m.FlagData) - copy(dAtA[i:], m.FlagData) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.FlagData))) - i-- - dAtA[i] = 0x5a - } - if m.Flags != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) - i-- - dAtA[i] = 0x50 - } - if m.AppliedIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x48 + +func (m *RaftRequestHeader) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) } - if m.ReplicaRead { - i-- - if m.ReplicaRead { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Peer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) + n68, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n68 } - if m.SyncLog { - i-- - if m.SyncLog { + if m.ReadQuorum { + dAtA[i] = 0x18 + i++ + if m.ReadQuorum { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.Term != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x30 + if len(m.Uuid) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n69, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0x22 + if m.Term != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Term)) } - if m.ReadQuorum { - i-- - if m.ReadQuorum { + if m.SyncLog { + dAtA[i] = 0x38 + i++ + if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.ReplicaRead { + dAtA[i] = 0x40 + i++ + if m.ReplicaRead { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x12 + i++ } - if m.RegionId != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.AppliedIndex != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) } - return len(dAtA) - i, nil + if m.Flags != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) + } + if len(m.FlagData) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.FlagData))) + i += copy(dAtA[i:], m.FlagData) + } + if m.Priority != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) + } + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) + } + return i, nil } func (m *RaftResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6670,50 +4060,38 @@ func (m *RaftResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *RaftResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CurrentTerm != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CurrentTerm)) - i-- - dAtA[i] = 0x18 + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Error.Size())) + n70, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 } if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CurrentTerm != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CurrentTerm)) } - return len(dAtA) - i, nil + return i, nil } func (m *RaftCmdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6721,76 +4099,59 @@ func (m *RaftCmdRequest) Marshal() (dAtA []byte, err error) { } func (m *RaftCmdRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftCmdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Header.Size())) + n71, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n71 } - if m.StatusRequest != nil { - { - size, err := m.StatusRequest.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 } if m.AdminRequest != nil { - { - size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AdminRequest.Size())) + n72, err := m.AdminRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n72 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.StatusRequest != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StatusRequest.Size())) + n73, err := m.StatusRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n73 } - return len(dAtA) - i, nil + return i, nil } func (m *RaftCmdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6798,87 +4159,65 @@ func (m *RaftCmdResponse) Marshal() (dAtA []byte, err error) { } func (m *RaftCmdResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftCmdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Header.Size())) + n74, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n74 } - if m.StatusResponse != nil { - { - size, err := m.StatusResponse.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Responses) > 0 { + for _, msg := range m.Responses { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 } if m.AdminResponse != nil { - { - size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - if len(m.Responses) > 0 { - for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AdminResponse.Size())) + n75, err := m.AdminResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n75 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + if m.StatusResponse != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StatusResponse.Size())) + n76, err := m.StatusResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n76 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintRaftCmdpb(dAtA []byte, offset int, v uint64) int { - offset -= sovRaftCmdpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -6889,32 +4228,20 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Value) if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -6929,28 +4256,16 @@ func (m *PutRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -6961,28 +4276,16 @@ func (m *DeleteRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -7000,56 +4303,32 @@ func (m *DeleteRangeRequest) Size() (n int) { if m.NotifyOnly { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrewriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -7064,56 +4343,32 @@ func (m *PrewriteRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrewriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IngestSSTRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Sst != nil { l = m.Sst.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *IngestSSTResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadIndexRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -7125,16 +4380,10 @@ func (m *ReadIndexRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReadIndexResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ReadIndex != 0 { @@ -7144,16 +4393,10 @@ func (m *ReadIndexResponse) Size() (n int) { l = m.Locked.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7191,16 +4434,10 @@ func (m *Request) Size() (n int) { l = m.ReadIndex.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7238,16 +4475,10 @@ func (m *Response) Size() (n int) { l = m.ReadIndex.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeerRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ChangeType != 0 { @@ -7257,32 +4488,20 @@ func (m *ChangePeerRequest) Size() (n int) { l = m.Peer.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeerResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeerV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -7291,32 +4510,20 @@ func (m *ChangePeerV2Request) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ChangePeerV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.SplitKey) @@ -7339,16 +4546,10 @@ func (m *SplitRequest) Size() (n int) { if m.ShareSourceRegionSize { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Left != nil { @@ -7359,16 +4560,10 @@ func (m *SplitResponse) Size() (n int) { l = m.Right.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -7383,16 +4578,10 @@ func (m *BatchSplitRequest) Size() (n int) { if m.ShareSourceRegionSize { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -7401,16 +4590,10 @@ func (m *BatchSplitResponse) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactLogRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CompactIndex != 0 { @@ -7422,28 +4605,16 @@ func (m *CompactLogRequest) Size() (n int) { if m.VoterReplicatedIndex != 0 { n += 1 + sovRaftCmdpb(uint64(m.VoterReplicatedIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CompactLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TransferLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -7456,44 +4627,26 @@ func (m *TransferLeaderRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TransferLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ComputeHashRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Context) if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *VerifyHashRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -7507,28 +4660,16 @@ func (m *VerifyHashRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *VerifyHashResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MinIndex != 0 { @@ -7538,79 +4679,43 @@ func (m *PrepareMergeRequest) Size() (n int) { l = m.Target.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareFlashbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { n += 1 + sovRaftCmdpb(uint64(m.StartTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareFlashbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FinishFlashbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FinishFlashbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Source != nil { @@ -7630,55 +4735,31 @@ func (m *CommitMergeRequest) Size() (n int) { l = m.SourceState.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CommitMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RollbackMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Commit != 0 { n += 1 + sovRaftCmdpb(uint64(m.Commit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RollbackMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SwitchWitnessRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PeerId != 0 { @@ -7687,16 +4768,10 @@ func (m *SwitchWitnessRequest) Size() (n int) { if m.IsWitness { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchSwitchWitnessRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.SwitchWitnesses) > 0 { @@ -7705,28 +4780,16 @@ func (m *BatchSwitchWitnessRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchSwitchWitnessResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *UpdateGcPeerRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.PeerId) > 0 { @@ -7736,16 +4799,10 @@ func (m *UpdateGcPeerRequest) Size() (n int) { } n += 1 + sovRaftCmdpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AdminRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7811,16 +4868,10 @@ func (m *AdminRequest) Size() (n int) { l = m.UpdateGcPeers.Size() n += 2 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AdminResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7878,56 +4929,32 @@ func (m *AdminResponse) Size() (n int) { l = m.SwitchWitnesses.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Leader != nil { l = m.Leader.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionDetailRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionDetailResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -7938,16 +4965,10 @@ func (m *RegionDetailResponse) Size() (n int) { l = m.Leader.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7961,16 +4982,10 @@ func (m *StatusRequest) Size() (n int) { l = m.RegionDetail.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7984,16 +4999,10 @@ func (m *StatusResponse) Size() (n int) { l = m.RegionDetail.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftRequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -8040,16 +5049,10 @@ func (m *RaftRequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -8063,16 +5066,10 @@ func (m *RaftResponseHeader) Size() (n int) { if m.CurrentTerm != 0 { n += 1 + sovRaftCmdpb(uint64(m.CurrentTerm)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftCmdRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -8093,16 +5090,10 @@ func (m *RaftCmdRequest) Size() (n int) { l = m.StatusRequest.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftCmdResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -8123,14 +5114,18 @@ func (m *RaftCmdResponse) Size() (n int) { l = m.StatusResponse.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovRaftCmdpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozRaftCmdpb(x uint64) (n int) { return sovRaftCmdpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -8150,7 +5145,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8178,7 +5173,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8188,9 +5183,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8210,7 +5202,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8219,9 +5211,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8236,13 +5225,12 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8267,7 +5255,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8295,7 +5283,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8304,9 +5292,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8321,13 +5306,12 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8352,7 +5336,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8380,7 +5364,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8390,9 +5374,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8412,7 +5393,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8421,9 +5402,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8446,7 +5424,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8455,9 +5433,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8472,13 +5447,12 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8503,7 +5477,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8523,13 +5497,12 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8554,7 +5527,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8582,7 +5555,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8592,9 +5565,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8614,7 +5584,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8623,9 +5593,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8640,13 +5607,12 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8671,7 +5637,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8691,13 +5657,12 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8722,7 +5687,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8750,7 +5715,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8760,9 +5725,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8782,7 +5744,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8791,9 +5753,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8816,7 +5775,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8825,9 +5784,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8850,7 +5806,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8862,13 +5818,12 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8893,7 +5848,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8913,13 +5868,12 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8944,7 +5898,7 @@ func (m *SnapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8964,13 +5918,12 @@ func (m *SnapRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8995,7 +5948,7 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9023,7 +5976,7 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9032,9 +5985,6 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9051,13 +6001,12 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9082,7 +6031,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9110,7 +6059,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9119,9 +6068,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9144,7 +6090,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9153,9 +6099,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9178,7 +6121,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9187,9 +6130,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9204,13 +6144,12 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9235,7 +6174,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9255,13 +6194,12 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9286,7 +6224,7 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9314,7 +6252,7 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9323,9 +6261,6 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9342,13 +6277,12 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9373,7 +6307,7 @@ func (m *IngestSSTResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9393,13 +6327,12 @@ func (m *IngestSSTResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9424,7 +6357,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9452,7 +6385,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9471,7 +6404,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9480,9 +6413,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9497,13 +6427,12 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9528,7 +6457,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9556,7 +6485,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndex |= uint64(b&0x7F) << shift + m.ReadIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9575,7 +6504,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9584,9 +6513,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9603,13 +6529,12 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9634,7 +6559,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9662,7 +6587,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= CmdType(b&0x7F) << shift + m.CmdType |= (CmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -9681,7 +6606,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9690,9 +6615,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9717,7 +6639,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9726,9 +6648,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9753,7 +6672,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9762,9 +6681,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9789,7 +6705,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9798,9 +6714,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9825,7 +6738,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9834,9 +6747,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9861,7 +6771,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9870,9 +6780,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9897,7 +6804,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9906,9 +6813,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9933,7 +6837,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9942,9 +6846,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9961,13 +6862,12 @@ func (m *Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9992,7 +6892,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10020,7 +6920,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= CmdType(b&0x7F) << shift + m.CmdType |= (CmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -10039,7 +6939,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10048,9 +6948,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10075,7 +6972,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10084,9 +6981,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10111,7 +7005,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10120,9 +7014,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10147,7 +7038,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10156,9 +7047,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10183,7 +7071,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10192,9 +7080,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10219,7 +7104,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10228,9 +7113,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10255,7 +7137,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10264,9 +7146,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10291,7 +7170,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10300,9 +7179,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10319,13 +7195,12 @@ func (m *Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10350,7 +7225,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10378,7 +7253,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= eraftpb.ConfChangeType(b&0x7F) << shift + m.ChangeType |= (eraftpb.ConfChangeType(b) & 0x7F) << shift if b < 0x80 { break } @@ -10397,7 +7272,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10406,9 +7281,6 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10425,13 +7297,12 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10456,7 +7327,7 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10484,7 +7355,7 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10493,9 +7364,6 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10512,13 +7380,12 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10543,7 +7410,7 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10571,7 +7438,7 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10580,9 +7447,6 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10597,13 +7461,12 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10628,7 +7491,7 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10656,7 +7519,7 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10665,9 +7528,6 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10684,13 +7544,12 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10715,7 +7574,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10743,7 +7602,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10752,9 +7611,6 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10777,7 +7633,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= uint64(b&0x7F) << shift + m.NewRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10794,7 +7650,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10811,7 +7667,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10820,23 +7676,9 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } 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 { @@ -10848,7 +7690,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10872,7 +7714,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10892,7 +7734,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10904,13 +7746,12 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10935,7 +7776,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10963,7 +7804,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10972,9 +7813,6 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10999,7 +7837,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11008,9 +7846,6 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11027,13 +7862,12 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11058,7 +7892,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11086,7 +7920,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11095,9 +7929,6 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11120,7 +7951,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11140,7 +7971,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11152,13 +7983,12 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11183,7 +8013,7 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11211,7 +8041,7 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11220,9 +8050,6 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11237,13 +8064,12 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11268,7 +8094,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11296,7 +8122,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactIndex |= uint64(b&0x7F) << shift + m.CompactIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11315,7 +8141,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactTerm |= uint64(b&0x7F) << shift + m.CompactTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11334,7 +8160,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VoterReplicatedIndex |= uint64(b&0x7F) << shift + m.VoterReplicatedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11345,13 +8171,12 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11376,7 +8201,7 @@ func (m *CompactLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11396,13 +8221,12 @@ func (m *CompactLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11427,7 +8251,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11455,7 +8279,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11464,9 +8288,6 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11491,7 +8312,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11500,9 +8321,6 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11517,13 +8335,12 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11548,7 +8365,7 @@ func (m *TransferLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11568,13 +8385,12 @@ func (m *TransferLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11599,7 +8415,7 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11627,7 +8443,7 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11636,9 +8452,6 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11653,13 +8466,12 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11684,7 +8496,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11712,7 +8524,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11731,7 +8543,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11740,9 +8552,6 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11765,7 +8574,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11774,9 +8583,6 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11791,13 +8597,12 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11822,7 +8627,7 @@ func (m *VerifyHashResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11842,13 +8647,12 @@ func (m *VerifyHashResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11873,7 +8677,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11901,7 +8705,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinIndex |= uint64(b&0x7F) << shift + m.MinIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11920,7 +8724,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11929,9 +8733,6 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11948,13 +8749,12 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11979,7 +8779,7 @@ func (m *PrepareMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11999,13 +8799,12 @@ func (m *PrepareMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12030,7 +8829,7 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12058,7 +8857,7 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12069,13 +8868,12 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12100,7 +8898,7 @@ func (m *PrepareFlashbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12120,13 +8918,12 @@ func (m *PrepareFlashbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12151,7 +8948,7 @@ func (m *FinishFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12171,13 +8968,12 @@ func (m *FinishFlashbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12202,7 +8998,7 @@ func (m *FinishFlashbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12222,13 +9018,12 @@ func (m *FinishFlashbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12253,7 +9048,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12281,7 +9076,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12290,9 +9085,6 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12317,7 +9109,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12336,7 +9128,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12345,9 +9137,6 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12370,7 +9159,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12379,9 +9168,6 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12398,13 +9184,12 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12429,7 +9214,7 @@ func (m *CommitMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12449,13 +9234,12 @@ func (m *CommitMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12480,7 +9264,7 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12508,7 +9292,7 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12519,13 +9303,12 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12550,7 +9333,7 @@ func (m *RollbackMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12570,13 +9353,12 @@ func (m *RollbackMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12601,7 +9383,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12629,7 +9411,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + m.PeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12648,7 +9430,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12660,13 +9442,12 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12691,7 +9472,7 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12719,7 +9500,7 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12728,9 +9509,6 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12745,13 +9523,12 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12776,7 +9553,7 @@ func (m *BatchSwitchWitnessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12796,13 +9573,12 @@ func (m *BatchSwitchWitnessResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12827,7 +9603,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12853,7 +9629,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12870,7 +9646,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -12879,23 +9655,9 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } 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.PeerId) == 0 { - m.PeerId = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -12907,7 +9669,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12923,13 +9685,12 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12954,7 +9715,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12982,7 +9743,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= AdminCmdType(b&0x7F) << shift + m.CmdType |= (AdminCmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -13001,7 +9762,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13010,9 +9771,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13037,7 +9795,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13046,9 +9804,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13073,7 +9828,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13082,9 +9837,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13109,7 +9861,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13118,9 +9870,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13145,7 +9894,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13154,9 +9903,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13181,7 +9927,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13190,9 +9936,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13217,7 +9960,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13226,9 +9969,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13253,7 +9993,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13262,9 +10002,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13289,7 +10026,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13298,9 +10035,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13325,7 +10059,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13334,9 +10068,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13361,7 +10092,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13370,9 +10101,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13397,7 +10125,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13406,9 +10134,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13433,7 +10158,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13442,9 +10167,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13469,7 +10191,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13478,9 +10200,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13505,7 +10224,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13514,9 +10233,6 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13533,13 +10249,12 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13564,7 +10279,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13592,7 +10307,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= AdminCmdType(b&0x7F) << shift + m.CmdType |= (AdminCmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -13611,7 +10326,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13620,9 +10335,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13647,7 +10359,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13656,9 +10368,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13683,7 +10392,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13692,9 +10401,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13719,7 +10425,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13728,9 +10434,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13755,7 +10458,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13764,9 +10467,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13791,7 +10491,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13800,9 +10500,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13827,7 +10524,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13836,9 +10533,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13863,7 +10557,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13872,9 +10566,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13899,7 +10590,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13908,9 +10599,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13935,7 +10623,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13944,9 +10632,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13971,7 +10656,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13980,9 +10665,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14007,7 +10689,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14016,9 +10698,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14043,7 +10722,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14052,9 +10731,6 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14071,13 +10747,12 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14102,7 +10777,7 @@ func (m *RegionLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14122,13 +10797,12 @@ func (m *RegionLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14153,7 +10827,7 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14181,7 +10855,7 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14190,9 +10864,6 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14209,13 +10880,12 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14240,7 +10910,7 @@ func (m *RegionDetailRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14260,13 +10930,12 @@ func (m *RegionDetailRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14291,7 +10960,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14319,7 +10988,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14328,9 +10997,6 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14355,7 +11021,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14364,9 +11030,6 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14383,13 +11046,12 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14414,7 +11076,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14442,7 +11104,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= StatusCmdType(b&0x7F) << shift + m.CmdType |= (StatusCmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -14461,7 +11123,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14470,9 +11132,6 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14497,7 +11156,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14506,9 +11165,6 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14525,13 +11181,12 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14556,7 +11211,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14584,7 +11239,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= StatusCmdType(b&0x7F) << shift + m.CmdType |= (StatusCmdType(b) & 0x7F) << shift if b < 0x80 { break } @@ -14603,7 +11258,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14612,9 +11267,6 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14639,7 +11291,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14648,9 +11300,6 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14667,13 +11316,12 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -14698,7 +11346,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14726,7 +11374,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14745,7 +11393,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14754,9 +11402,6 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14781,7 +11426,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14801,7 +11446,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14810,9 +11455,6 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14835,7 +11477,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14844,9 +11486,6 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14871,7 +11510,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14890,7 +11529,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14910,7 +11549,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14930,7 +11569,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14949,7 +11588,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flags |= uint64(b&0x7F) << shift + m.Flags |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14968,7 +11607,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14977,9 +11616,6 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15002,7 +11638,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= kvrpcpb.CommandPri(b&0x7F) << shift + m.Priority |= (kvrpcpb.CommandPri(b) & 0x7F) << shift if b < 0x80 { break } @@ -15021,7 +11657,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15031,9 +11667,6 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15045,13 +11678,12 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15076,7 +11708,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15104,7 +11736,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15113,9 +11745,6 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15140,7 +11769,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15149,9 +11778,6 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15174,7 +11800,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTerm |= uint64(b&0x7F) << shift + m.CurrentTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15185,13 +11811,12 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15216,7 +11841,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15244,7 +11869,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15253,9 +11878,6 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15280,7 +11902,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15289,9 +11911,6 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15314,7 +11933,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15323,9 +11942,6 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15350,7 +11966,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15359,9 +11975,6 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15378,13 +11991,12 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15409,7 +12021,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15437,7 +12049,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15446,9 +12058,6 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15473,7 +12082,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15482,9 +12091,6 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15507,7 +12113,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15516,9 +12122,6 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15543,7 +12146,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15552,9 +12155,6 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftCmdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15571,13 +12171,12 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -15590,7 +12189,6 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { func skipRaftCmdpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -15622,8 +12220,10 @@ func skipRaftCmdpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -15640,34 +12240,234 @@ func skipRaftCmdpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthRaftCmdpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRaftCmdpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRaftCmdpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipRaftCmdpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthRaftCmdpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthRaftCmdpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRaftCmdpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRaftCmdpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthRaftCmdpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRaftCmdpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("raft_cmdpb.proto", fileDescriptorRaftCmdpb) } + +var fileDescriptorRaftCmdpb = []byte{ + // 2790 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x5a, 0x4b, 0x73, 0xdc, 0xc6, + 0xf1, 0xd7, 0xbe, 0x77, 0x7b, 0x1f, 0x04, 0x67, 0x57, 0xe4, 0x4a, 0xb2, 0x29, 0x0a, 0x92, 0xf5, + 0xa7, 0xfd, 0x4f, 0x31, 0x31, 0x6d, 0xcb, 0xae, 0xb2, 0xe2, 0x87, 0x44, 0x4a, 0x96, 0xf5, 0x08, + 0x3d, 0x64, 0xec, 0x4a, 0xaa, 0x5c, 0x28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, 0x35, 0x73, 0x2f, 0xce, 0x4c, 0xfd, 0x26, 0x34, 0xc5, 0x36, 0x5a, 0x45, + 0x89, 0xa2, 0x17, 0x6d, 0x40, 0xd3, 0xe1, 0xd6, 0x72, 0xe9, 0xca, 0x16, 0xdb, 0x3d, 0xc4, 0x8f, + 0xa9, 0x47, 0x04, 0xa7, 0x31, 0x00, 0x75, 0xa0, 0x1c, 0xf8, 0x31, 0x5d, 0x62, 0xd5, 0x8d, 0xee, + 0x40, 0x4f, 0x6e, 0xd8, 0x28, 0xb6, 0x63, 0x22, 0x2b, 0x04, 0x79, 0xa4, 0x26, 0x57, 0x3c, 0x31, + 0xec, 0xa3, 0xc0, 0xb1, 0x67, 0x47, 0x4c, 0x0d, 0x77, 0x85, 0x11, 0x6f, 0x7c, 0xda, 0x68, 0xbb, + 0xc6, 0xf7, 0x15, 0x76, 0x09, 0xc9, 0x4c, 0x25, 0x59, 0x7c, 0x23, 0x1c, 0xcc, 0x66, 0x6c, 0xda, + 0x99, 0x39, 0xa6, 0xbe, 0x57, 0x74, 0xdf, 0xcd, 0x4d, 0xb8, 0x98, 0xd3, 0x97, 0x40, 0x4f, 0x60, + 0x74, 0xf4, 0xd4, 0x8b, 0x9d, 0xe9, 0x17, 0x5e, 0xec, 0x93, 0x28, 0x52, 0x40, 0x9b, 0xd0, 0x92, + 0x0c, 0xae, 0x90, 0x42, 0xce, 0xde, 0xac, 0x18, 0xf7, 0x22, 0xeb, 0xa9, 0xd0, 0x96, 0x9c, 0xd5, + 0xf1, 0x22, 0x69, 0x6e, 0x4e, 0xe1, 0x92, 0x20, 0x9e, 0x32, 0xd0, 0x87, 0x60, 0x44, 0x5c, 0xae, + 0xec, 0x93, 0xe3, 0x6e, 0x3b, 0xc3, 0x97, 0x25, 0xb6, 0x78, 0x2d, 0xd2, 0xa5, 0x24, 0x32, 0x5f, + 0x81, 0xcb, 0x65, 0x23, 0x25, 0x01, 0x1a, 0xfe, 0x36, 0x74, 0xed, 0x98, 0xd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x46, 0x07, 0x30, 0xd0, 0x16, 0x92, 0x75, 0xb6, 0x37, 0xee, 0x16, 0x23, + 0x51, 0x52, 0x48, 0xe2, 0x9e, 0xa3, 0x09, 0x65, 0x24, 0xd8, 0x19, 0x25, 0x12, 0xd2, 0x2b, 0x8d, + 0x44, 0xee, 0x0c, 0x13, 0x67, 0xb5, 0x94, 0xa1, 0x43, 0x58, 0x57, 0x29, 0x99, 0x28, 0xa6, 0x1d, + 0xf7, 0x39, 0xce, 0xf5, 0x92, 0xb4, 0xe4, 0x79, 0x1a, 0x1b, 0x61, 0xae, 0x03, 0x3d, 0x06, 0x63, + 0xc2, 0x99, 0x5b, 0x03, 0x1c, 0x70, 0x40, 0x53, 0x07, 0x2c, 0xe7, 0x7d, 0xbc, 0x36, 0xc9, 0xca, + 0xd1, 0x61, 0x09, 0xa9, 0xac, 0x71, 0xb8, 0xd7, 0x8a, 0xb1, 0x7e, 0x11, 0x66, 0x41, 0xf7, 0x61, + 0x6d, 0xc1, 0xb9, 0xc3, 0x3a, 0x71, 0x2c, 0x51, 0x21, 0x18, 0xc5, 0xe8, 0x97, 0xd0, 0x0b, 0xee, + 0x2f, 0x34, 0x61, 0x64, 0xfe, 0xd8, 0x82, 0xbe, 0x24, 0x15, 0x59, 0x81, 0xfd, 0x2c, 0x56, 0xf9, + 0xb0, 0x8c, 0x55, 0xb6, 0x56, 0xb1, 0x8a, 0xba, 0x9f, 0x69, 0xb4, 0xf2, 0x56, 0x96, 0x56, 0x2e, + 0x95, 0xd0, 0x8a, 0xb0, 0xd2, 0x79, 0xe5, 0xc3, 0x32, 0x5e, 0xd9, 0x5a, 0xc5, 0x2b, 0xc9, 0xa8, + 0x29, 0xb1, 0x3c, 0x5c, 0x45, 0x2c, 0xe6, 0x79, 0xc4, 0x22, 0x81, 0xf2, 0xcc, 0xf2, 0x61, 0x19, + 0xb3, 0x6c, 0xad, 0x62, 0x16, 0xe5, 0x8d, 0x46, 0x2d, 0x07, 0xe5, 0xd4, 0x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, 0x34, 0x78, 0x4d, 0x63, 0x54, 0x2f, 0x57, 0xdb, 0x15, 0xde, 0x9d, 0x94, + 0x9c, 0x46, 0x0d, 0x21, 0x18, 0x64, 0x2b, 0x4a, 0xa3, 0xce, 0x9c, 0xd2, 0x6e, 0x39, 0x46, 0x83, + 0x19, 0xa5, 0xd5, 0xa2, 0xd1, 0x64, 0xa3, 0xea, 0xa5, 0x9f, 0xd1, 0x92, 0x26, 0xaa, 0x62, 0x33, + 0xda, 0x68, 0x1d, 0xfa, 0x99, 0x8a, 0xcc, 0xe8, 0x30, 0x94, 0xb4, 0xc4, 0x32, 0x80, 0xa1, 0xe8, + 0x25, 0x93, 0xd1, 0x45, 0x23, 0xfe, 0xa3, 0x6c, 0xa6, 0xbe, 0x31, 0x7a, 0x68, 0x08, 0x6b, 0xb9, + 0xea, 0xc5, 0xe8, 0xa3, 0x0d, 0xf5, 0x60, 0xab, 0xd7, 0x1a, 0xc6, 0x80, 0x81, 0xea, 0x17, 0x0d, + 0x63, 0xed, 0x8d, 0x7b, 0xea, 0xa8, 0x56, 0x31, 0x5b, 0x87, 0xbe, 0x8c, 0x99, 0x90, 0x1b, 0x17, + 0x98, 0x95, 0x7e, 0x22, 0x19, 0x95, 0x54, 0x22, 0x8e, 0x11, 0xa3, 0x7a, 0xe7, 0xe6, 0xbf, 0xff, + 0xda, 0xae, 0xfc, 0xfd, 0xd9, 0x56, 0xe5, 0x9f, 0xcf, 0xb6, 0x2a, 0xff, 0x79, 0xb6, 0x55, 0xf9, + 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, + 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, + 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, +} diff --git a/pkg/raft_serverpb/raft_serverpb.pb.go b/pkg/raft_serverpb/raft_serverpb.pb.go index 1e24cc83c..fb90a99d9 100644 --- a/pkg/raft_serverpb/raft_serverpb.pb.go +++ b/pkg/raft_serverpb/raft_serverpb.pb.go @@ -1,20 +1,62 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: raft_serverpb.proto +/* +Package raft_serverpb is a generated protocol buffer package. + +It is generated from these files: + + raft_serverpb.proto + +It has these top-level messages: + + RaftMessage + RaftTruncatedState + SnapshotCFFile + SnapshotMeta + SnapshotChunk + Done + TabletSnapshotFileMeta + TabletSnapshotPreview + TabletSnapshotFileChunk + TabletSnapshotHead + TabletSnapshotEnd + TabletSnapshotRequest + AcceptedSnapshotFiles + TabletSnapshotResponse + KeyValue + RaftSnapshotData + StoreIdent + StoreRecoverState + RaftLocalState + RaftApplyState + MergeState + MergedRecord + RegionLocalState + RegionSequenceNumberRelation + AvailabilityContext + FlushMemtable + RefreshBuckets + CheckGcPeer + ExtraMessage +*/ package raft_serverpb import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" - disk_usage "github.com/pingcap/kvproto/pkg/disk_usage" - encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + + disk_usage "github.com/pingcap/kvproto/pkg/disk_usage" + + encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +68,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type PeerState int32 @@ -49,7 +91,6 @@ var PeerState_name = map[int32]string{ 3: "Merging", 4: "Unavailable", } - var PeerState_value = map[string]int32{ "Normal": 0, "Applying": 1, @@ -61,10 +102,7 @@ var PeerState_value = map[string]int32{ func (x PeerState) String() string { return proto.EnumName(PeerState_name, int32(x)) } - -func (PeerState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{0} -} +func (PeerState) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{0} } type ExtraMessageType int32 @@ -106,7 +144,6 @@ var ExtraMessageType_name = map[int32]string{ 13: "MsgFlushMemtable", 14: "MsgRefreshBuckets", } - var ExtraMessageType_value = map[string]int32{ "MsgRegionWakeUp": 0, "MsgWantRollbackMerge": 1, @@ -128,64 +165,30 @@ var ExtraMessageType_value = map[string]int32{ func (x ExtraMessageType) String() string { return proto.EnumName(ExtraMessageType_name, int32(x)) } - -func (ExtraMessageType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{1} -} +func (ExtraMessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{1} } type RaftMessage struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FromPeer *metapb.Peer `protobuf:"bytes,2,opt,name=from_peer,json=fromPeer,proto3" json:"from_peer,omitempty"` - ToPeer *metapb.Peer `protobuf:"bytes,3,opt,name=to_peer,json=toPeer,proto3" json:"to_peer,omitempty"` - Message *eraftpb.Message `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + FromPeer *metapb.Peer `protobuf:"bytes,2,opt,name=from_peer,json=fromPeer" json:"from_peer,omitempty"` + ToPeer *metapb.Peer `protobuf:"bytes,3,opt,name=to_peer,json=toPeer" json:"to_peer,omitempty"` + Message *eraftpb.Message `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` // true means to_peer is a tombstone peer and it should remove itself. IsTombstone bool `protobuf:"varint,6,opt,name=is_tombstone,json=isTombstone,proto3" json:"is_tombstone,omitempty"` // Region key range [start_key, end_key). StartKey []byte `protobuf:"bytes,7,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,8,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If it has value, to_peer should be removed if merge is never going to complete. - MergeTarget *metapb.Region `protobuf:"bytes,9,opt,name=merge_target,json=mergeTarget,proto3" json:"merge_target,omitempty"` - ExtraMsg *ExtraMessage `protobuf:"bytes,10,opt,name=extra_msg,json=extraMsg,proto3" json:"extra_msg,omitempty"` - ExtraCtx []byte `protobuf:"bytes,11,opt,name=extra_ctx,json=extraCtx,proto3" json:"extra_ctx,omitempty"` - DiskUsage disk_usage.DiskUsage `protobuf:"varint,12,opt,name=disk_usage,json=diskUsage,proto3,enum=disk_usage.DiskUsage" json:"disk_usage,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftMessage) Reset() { *m = RaftMessage{} } -func (m *RaftMessage) String() string { return proto.CompactTextString(m) } -func (*RaftMessage) ProtoMessage() {} -func (*RaftMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{0} -} -func (m *RaftMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftMessage.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 *RaftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftMessage.Merge(m, src) -} -func (m *RaftMessage) XXX_Size() int { - return m.Size() -} -func (m *RaftMessage) XXX_DiscardUnknown() { - xxx_messageInfo_RaftMessage.DiscardUnknown(m) + MergeTarget *metapb.Region `protobuf:"bytes,9,opt,name=merge_target,json=mergeTarget" json:"merge_target,omitempty"` + ExtraMsg *ExtraMessage `protobuf:"bytes,10,opt,name=extra_msg,json=extraMsg" json:"extra_msg,omitempty"` + ExtraCtx []byte `protobuf:"bytes,11,opt,name=extra_ctx,json=extraCtx,proto3" json:"extra_ctx,omitempty"` + DiskUsage disk_usage.DiskUsage `protobuf:"varint,12,opt,name=disk_usage,json=diskUsage,proto3,enum=disk_usage.DiskUsage" json:"disk_usage,omitempty"` } -var xxx_messageInfo_RaftMessage proto.InternalMessageInfo +func (m *RaftMessage) Reset() { *m = RaftMessage{} } +func (m *RaftMessage) String() string { return proto.CompactTextString(m) } +func (*RaftMessage) ProtoMessage() {} +func (*RaftMessage) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{0} } func (m *RaftMessage) GetRegionId() uint64 { if m != nil { @@ -272,45 +275,14 @@ func (m *RaftMessage) GetDiskUsage() disk_usage.DiskUsage { } type RaftTruncatedState struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftTruncatedState) Reset() { *m = RaftTruncatedState{} } -func (m *RaftTruncatedState) String() string { return proto.CompactTextString(m) } -func (*RaftTruncatedState) ProtoMessage() {} -func (*RaftTruncatedState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{1} -} -func (m *RaftTruncatedState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftTruncatedState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftTruncatedState.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 *RaftTruncatedState) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftTruncatedState.Merge(m, src) -} -func (m *RaftTruncatedState) XXX_Size() int { - return m.Size() -} -func (m *RaftTruncatedState) XXX_DiscardUnknown() { - xxx_messageInfo_RaftTruncatedState.DiscardUnknown(m) + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"` } -var xxx_messageInfo_RaftTruncatedState proto.InternalMessageInfo +func (m *RaftTruncatedState) Reset() { *m = RaftTruncatedState{} } +func (m *RaftTruncatedState) String() string { return proto.CompactTextString(m) } +func (*RaftTruncatedState) ProtoMessage() {} +func (*RaftTruncatedState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{1} } func (m *RaftTruncatedState) GetIndex() uint64 { if m != nil { @@ -327,46 +299,15 @@ func (m *RaftTruncatedState) GetTerm() uint64 { } type SnapshotCFFile struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Checksum uint32 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotCFFile) Reset() { *m = SnapshotCFFile{} } -func (m *SnapshotCFFile) String() string { return proto.CompactTextString(m) } -func (*SnapshotCFFile) ProtoMessage() {} -func (*SnapshotCFFile) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{2} -} -func (m *SnapshotCFFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotCFFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotCFFile.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 *SnapshotCFFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotCFFile.Merge(m, src) -} -func (m *SnapshotCFFile) XXX_Size() int { - return m.Size() -} -func (m *SnapshotCFFile) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotCFFile.DiscardUnknown(m) + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Checksum uint32 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` } -var xxx_messageInfo_SnapshotCFFile proto.InternalMessageInfo +func (m *SnapshotCFFile) Reset() { *m = SnapshotCFFile{} } +func (m *SnapshotCFFile) String() string { return proto.CompactTextString(m) } +func (*SnapshotCFFile) ProtoMessage() {} +func (*SnapshotCFFile) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{2} } func (m *SnapshotCFFile) GetCf() string { if m != nil { @@ -390,7 +331,7 @@ func (m *SnapshotCFFile) GetChecksum() uint32 { } type SnapshotMeta struct { - CfFiles []*SnapshotCFFile `protobuf:"bytes,1,rep,name=cf_files,json=cfFiles,proto3" json:"cf_files,omitempty"` + CfFiles []*SnapshotCFFile `protobuf:"bytes,1,rep,name=cf_files,json=cfFiles" json:"cf_files,omitempty"` // true means this snapshot is triggered for load balance ForBalance bool `protobuf:"varint,2,opt,name=for_balance,json=forBalance,proto3" json:"for_balance,omitempty"` // true means this is an empty snapshot for witness @@ -405,44 +346,13 @@ type SnapshotMeta struct { // A hint of the latest commit index on leader when sending snapshot. // It should only be used for v2 to send snapshot to v1. // See https://github.com/pingcap/tiflash/issues/7568 - CommitIndexHint uint64 `protobuf:"varint,7,opt,name=commit_index_hint,json=commitIndexHint,proto3" json:"commit_index_hint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotMeta) Reset() { *m = SnapshotMeta{} } -func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) } -func (*SnapshotMeta) ProtoMessage() {} -func (*SnapshotMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{3} -} -func (m *SnapshotMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotMeta.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 *SnapshotMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotMeta.Merge(m, src) -} -func (m *SnapshotMeta) XXX_Size() int { - return m.Size() -} -func (m *SnapshotMeta) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotMeta.DiscardUnknown(m) + CommitIndexHint uint64 `protobuf:"varint,7,opt,name=commit_index_hint,json=commitIndexHint,proto3" json:"commit_index_hint,omitempty"` } -var xxx_messageInfo_SnapshotMeta proto.InternalMessageInfo +func (m *SnapshotMeta) Reset() { *m = SnapshotMeta{} } +func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) } +func (*SnapshotMeta) ProtoMessage() {} +func (*SnapshotMeta) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{3} } func (m *SnapshotMeta) GetCfFiles() []*SnapshotCFFile { if m != nil { @@ -494,45 +404,14 @@ func (m *SnapshotMeta) GetCommitIndexHint() uint64 { } type SnapshotChunk struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SnapshotChunk) Reset() { *m = SnapshotChunk{} } -func (m *SnapshotChunk) String() string { return proto.CompactTextString(m) } -func (*SnapshotChunk) ProtoMessage() {} -func (*SnapshotChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{4} -} -func (m *SnapshotChunk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SnapshotChunk.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 *SnapshotChunk) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotChunk.Merge(m, src) -} -func (m *SnapshotChunk) XXX_Size() int { - return m.Size() -} -func (m *SnapshotChunk) XXX_DiscardUnknown() { - xxx_messageInfo_SnapshotChunk.DiscardUnknown(m) + Message *RaftMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -var xxx_messageInfo_SnapshotChunk proto.InternalMessageInfo +func (m *SnapshotChunk) Reset() { *m = SnapshotChunk{} } +func (m *SnapshotChunk) String() string { return proto.CompactTextString(m) } +func (*SnapshotChunk) ProtoMessage() {} +func (*SnapshotChunk) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{4} } func (m *SnapshotChunk) GetMessage() *RaftMessage { if m != nil { @@ -549,43 +428,12 @@ func (m *SnapshotChunk) GetData() []byte { } type Done struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Done) Reset() { *m = Done{} } -func (m *Done) String() string { return proto.CompactTextString(m) } -func (*Done) ProtoMessage() {} -func (*Done) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{5} -} -func (m *Done) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Done) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Done.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 *Done) XXX_Merge(src proto.Message) { - xxx_messageInfo_Done.Merge(m, src) -} -func (m *Done) XXX_Size() int { - return m.Size() -} -func (m *Done) XXX_DiscardUnknown() { - xxx_messageInfo_Done.DiscardUnknown(m) } -var xxx_messageInfo_Done proto.InternalMessageInfo +func (m *Done) Reset() { *m = Done{} } +func (m *Done) String() string { return proto.CompactTextString(m) } +func (*Done) ProtoMessage() {} +func (*Done) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{5} } type TabletSnapshotFileMeta struct { FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` @@ -593,45 +441,16 @@ type TabletSnapshotFileMeta struct { // Some block data. Unencrypted. HeadChunk []byte `protobuf:"bytes,3,opt,name=head_chunk,json=headChunk,proto3" json:"head_chunk,omitempty"` // trailing data including checksum. Unencrypted. - TrailingChunk []byte `protobuf:"bytes,4,opt,name=trailing_chunk,json=trailingChunk,proto3" json:"trailing_chunk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TrailingChunk []byte `protobuf:"bytes,4,opt,name=trailing_chunk,json=trailingChunk,proto3" json:"trailing_chunk,omitempty"` } func (m *TabletSnapshotFileMeta) Reset() { *m = TabletSnapshotFileMeta{} } func (m *TabletSnapshotFileMeta) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotFileMeta) ProtoMessage() {} func (*TabletSnapshotFileMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{6} -} -func (m *TabletSnapshotFileMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotFileMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotFileMeta.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 *TabletSnapshotFileMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotFileMeta.Merge(m, src) -} -func (m *TabletSnapshotFileMeta) XXX_Size() int { - return m.Size() -} -func (m *TabletSnapshotFileMeta) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotFileMeta.DiscardUnknown(m) + return fileDescriptorRaftServerpb, []int{6} } -var xxx_messageInfo_TabletSnapshotFileMeta proto.InternalMessageInfo - func (m *TabletSnapshotFileMeta) GetFileSize() uint64 { if m != nil { return m.FileSize @@ -665,47 +484,18 @@ func (m *TabletSnapshotFileMeta) GetTrailingChunk() []byte { // keep sending specified files. Only SST files can be skipped, all // other files should always be sent. type TabletSnapshotPreview struct { - Metas []*TabletSnapshotFileMeta `protobuf:"bytes,1,rep,name=metas,proto3" json:"metas,omitempty"` + Metas []*TabletSnapshotFileMeta `protobuf:"bytes,1,rep,name=metas" json:"metas,omitempty"` // There may be too many metas, use a flag to indicate all metas // are sent. - End bool `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + End bool `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` } func (m *TabletSnapshotPreview) Reset() { *m = TabletSnapshotPreview{} } func (m *TabletSnapshotPreview) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotPreview) ProtoMessage() {} func (*TabletSnapshotPreview) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{7} -} -func (m *TabletSnapshotPreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotPreview.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 *TabletSnapshotPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotPreview.Merge(m, src) -} -func (m *TabletSnapshotPreview) XXX_Size() int { - return m.Size() + return fileDescriptorRaftServerpb, []int{7} } -func (m *TabletSnapshotPreview) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotPreview.DiscardUnknown(m) -} - -var xxx_messageInfo_TabletSnapshotPreview proto.InternalMessageInfo func (m *TabletSnapshotPreview) GetMetas() []*TabletSnapshotFileMeta { if m != nil { @@ -727,46 +517,17 @@ type TabletSnapshotFileChunk struct { // Encrypted. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // Initial vector if encryption is enabled. - Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` - Key *encryptionpb.DataKey `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` + Key *encryptionpb.DataKey `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"` } func (m *TabletSnapshotFileChunk) Reset() { *m = TabletSnapshotFileChunk{} } func (m *TabletSnapshotFileChunk) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotFileChunk) ProtoMessage() {} func (*TabletSnapshotFileChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{8} -} -func (m *TabletSnapshotFileChunk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotFileChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotFileChunk.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 *TabletSnapshotFileChunk) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotFileChunk.Merge(m, src) -} -func (m *TabletSnapshotFileChunk) XXX_Size() int { - return m.Size() -} -func (m *TabletSnapshotFileChunk) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotFileChunk.DiscardUnknown(m) + return fileDescriptorRaftServerpb, []int{8} } -var xxx_messageInfo_TabletSnapshotFileChunk proto.InternalMessageInfo - func (m *TabletSnapshotFileChunk) GetFileSize() uint64 { if m != nil { return m.FileSize @@ -803,45 +564,14 @@ func (m *TabletSnapshotFileChunk) GetKey() *encryptionpb.DataKey { } type TabletSnapshotHead struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - UseCache bool `protobuf:"varint,2,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TabletSnapshotHead) Reset() { *m = TabletSnapshotHead{} } -func (m *TabletSnapshotHead) String() string { return proto.CompactTextString(m) } -func (*TabletSnapshotHead) ProtoMessage() {} -func (*TabletSnapshotHead) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{9} -} -func (m *TabletSnapshotHead) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotHead.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 *TabletSnapshotHead) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotHead.Merge(m, src) -} -func (m *TabletSnapshotHead) XXX_Size() int { - return m.Size() -} -func (m *TabletSnapshotHead) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotHead.DiscardUnknown(m) + Message *RaftMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + UseCache bool `protobuf:"varint,2,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` } -var xxx_messageInfo_TabletSnapshotHead proto.InternalMessageInfo +func (m *TabletSnapshotHead) Reset() { *m = TabletSnapshotHead{} } +func (m *TabletSnapshotHead) String() string { return proto.CompactTextString(m) } +func (*TabletSnapshotHead) ProtoMessage() {} +func (*TabletSnapshotHead) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{9} } func (m *TabletSnapshotHead) GetMessage() *RaftMessage { if m != nil { @@ -860,44 +590,13 @@ func (m *TabletSnapshotHead) GetUseCache() bool { type TabletSnapshotEnd struct { // Checksum of all data sent in `TabletSnapshotFileChunk.data` and // `TabletSnapshotFileChunk.file_name`. - Checksum uint64 `protobuf:"varint,1,opt,name=checksum,proto3" json:"checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TabletSnapshotEnd) Reset() { *m = TabletSnapshotEnd{} } -func (m *TabletSnapshotEnd) String() string { return proto.CompactTextString(m) } -func (*TabletSnapshotEnd) ProtoMessage() {} -func (*TabletSnapshotEnd) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{10} -} -func (m *TabletSnapshotEnd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotEnd.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 *TabletSnapshotEnd) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotEnd.Merge(m, src) -} -func (m *TabletSnapshotEnd) XXX_Size() int { - return m.Size() -} -func (m *TabletSnapshotEnd) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotEnd.DiscardUnknown(m) + Checksum uint64 `protobuf:"varint,1,opt,name=checksum,proto3" json:"checksum,omitempty"` } -var xxx_messageInfo_TabletSnapshotEnd proto.InternalMessageInfo +func (m *TabletSnapshotEnd) Reset() { *m = TabletSnapshotEnd{} } +func (m *TabletSnapshotEnd) String() string { return proto.CompactTextString(m) } +func (*TabletSnapshotEnd) ProtoMessage() {} +func (*TabletSnapshotEnd) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{10} } func (m *TabletSnapshotEnd) GetChecksum() uint64 { if m != nil { @@ -912,44 +611,15 @@ type TabletSnapshotRequest struct { // *TabletSnapshotRequest_Preview // *TabletSnapshotRequest_Chunk // *TabletSnapshotRequest_End - Payload isTabletSnapshotRequest_Payload `protobuf_oneof:"payload"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Payload isTabletSnapshotRequest_Payload `protobuf_oneof:"payload"` } func (m *TabletSnapshotRequest) Reset() { *m = TabletSnapshotRequest{} } func (m *TabletSnapshotRequest) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotRequest) ProtoMessage() {} func (*TabletSnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{11} -} -func (m *TabletSnapshotRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotRequest.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 fileDescriptorRaftServerpb, []int{11} } -func (m *TabletSnapshotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotRequest.Merge(m, src) -} -func (m *TabletSnapshotRequest) XXX_Size() int { - return m.Size() -} -func (m *TabletSnapshotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TabletSnapshotRequest proto.InternalMessageInfo type isTabletSnapshotRequest_Payload interface { isTabletSnapshotRequest_Payload() @@ -958,16 +628,16 @@ type isTabletSnapshotRequest_Payload interface { } type TabletSnapshotRequest_Head struct { - Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,proto3,oneof" json:"head,omitempty"` + Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,oneof"` } type TabletSnapshotRequest_Preview struct { - Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,proto3,oneof" json:"preview,omitempty"` + Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,oneof"` } type TabletSnapshotRequest_Chunk struct { - Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,proto3,oneof" json:"chunk,omitempty"` + Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,oneof"` } type TabletSnapshotRequest_End struct { - End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,proto3,oneof" json:"end,omitempty"` + End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,oneof"` } func (*TabletSnapshotRequest_Head) isTabletSnapshotRequest_Payload() {} @@ -1010,9 +680,9 @@ func (m *TabletSnapshotRequest) GetEnd() *TabletSnapshotEnd { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TabletSnapshotRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TabletSnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TabletSnapshotRequest_OneofMarshaler, _TabletSnapshotRequest_OneofUnmarshaler, _TabletSnapshotRequest_OneofSizer, []interface{}{ (*TabletSnapshotRequest_Head)(nil), (*TabletSnapshotRequest_Preview)(nil), (*TabletSnapshotRequest_Chunk)(nil), @@ -1020,46 +690,119 @@ func (*TabletSnapshotRequest) XXX_OneofWrappers() []interface{} { } } +func _TabletSnapshotRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TabletSnapshotRequest) + // payload + switch x := m.Payload.(type) { + case *TabletSnapshotRequest_Head: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Head); err != nil { + return err + } + case *TabletSnapshotRequest_Preview: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Preview); err != nil { + return err + } + case *TabletSnapshotRequest_Chunk: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Chunk); err != nil { + return err + } + case *TabletSnapshotRequest_End: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.End); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TabletSnapshotRequest.Payload has unexpected type %T", x) + } + return nil +} + +func _TabletSnapshotRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TabletSnapshotRequest) + switch tag { + case 1: // payload.head + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TabletSnapshotHead) + err := b.DecodeMessage(msg) + m.Payload = &TabletSnapshotRequest_Head{msg} + return true, err + case 2: // payload.preview + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TabletSnapshotPreview) + err := b.DecodeMessage(msg) + m.Payload = &TabletSnapshotRequest_Preview{msg} + return true, err + case 3: // payload.chunk + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TabletSnapshotFileChunk) + err := b.DecodeMessage(msg) + m.Payload = &TabletSnapshotRequest_Chunk{msg} + return true, err + case 4: // payload.end + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TabletSnapshotEnd) + err := b.DecodeMessage(msg) + m.Payload = &TabletSnapshotRequest_End{msg} + return true, err + default: + return false, nil + } +} + +func _TabletSnapshotRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TabletSnapshotRequest) + // payload + switch x := m.Payload.(type) { + case *TabletSnapshotRequest_Head: + s := proto.Size(x.Head) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_Preview: + s := proto.Size(x.Preview) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_Chunk: + s := proto.Size(x.Chunk) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_End: + s := proto.Size(x.End) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type AcceptedSnapshotFiles struct { - FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName" json:"file_name,omitempty"` } func (m *AcceptedSnapshotFiles) Reset() { *m = AcceptedSnapshotFiles{} } func (m *AcceptedSnapshotFiles) String() string { return proto.CompactTextString(m) } func (*AcceptedSnapshotFiles) ProtoMessage() {} func (*AcceptedSnapshotFiles) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{12} -} -func (m *AcceptedSnapshotFiles) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AcceptedSnapshotFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AcceptedSnapshotFiles.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 *AcceptedSnapshotFiles) XXX_Merge(src proto.Message) { - xxx_messageInfo_AcceptedSnapshotFiles.Merge(m, src) -} -func (m *AcceptedSnapshotFiles) XXX_Size() int { - return m.Size() -} -func (m *AcceptedSnapshotFiles) XXX_DiscardUnknown() { - xxx_messageInfo_AcceptedSnapshotFiles.DiscardUnknown(m) + return fileDescriptorRaftServerpb, []int{12} } -var xxx_messageInfo_AcceptedSnapshotFiles proto.InternalMessageInfo - func (m *AcceptedSnapshotFiles) GetFileName() []string { if m != nil { return m.FileName @@ -1068,44 +811,15 @@ func (m *AcceptedSnapshotFiles) GetFileName() []string { } type TabletSnapshotResponse struct { - Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files" json:"files,omitempty"` } func (m *TabletSnapshotResponse) Reset() { *m = TabletSnapshotResponse{} } func (m *TabletSnapshotResponse) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotResponse) ProtoMessage() {} func (*TabletSnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{13} -} -func (m *TabletSnapshotResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TabletSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TabletSnapshotResponse.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 *TabletSnapshotResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotResponse.Merge(m, src) -} -func (m *TabletSnapshotResponse) XXX_Size() int { - return m.Size() + return fileDescriptorRaftServerpb, []int{13} } -func (m *TabletSnapshotResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TabletSnapshotResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TabletSnapshotResponse proto.InternalMessageInfo func (m *TabletSnapshotResponse) GetFiles() *AcceptedSnapshotFiles { if m != nil { @@ -1115,45 +829,14 @@ func (m *TabletSnapshotResponse) GetFiles() *AcceptedSnapshotFiles { } type KeyValue struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyValue) Reset() { *m = KeyValue{} } -func (m *KeyValue) String() string { return proto.CompactTextString(m) } -func (*KeyValue) ProtoMessage() {} -func (*KeyValue) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{14} -} -func (m *KeyValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyValue.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 *KeyValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValue.Merge(m, src) -} -func (m *KeyValue) XXX_Size() int { - return m.Size() -} -func (m *KeyValue) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValue.DiscardUnknown(m) + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_KeyValue proto.InternalMessageInfo +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{14} } func (m *KeyValue) GetKey() []byte { if m != nil { @@ -1170,50 +853,19 @@ func (m *KeyValue) GetValue() []byte { } type RaftSnapshotData struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - FileSize uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` - Data []*KeyValue `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` - Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - Meta *SnapshotMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` - RemovedRecords []*metapb.Peer `protobuf:"bytes,6,rep,name=removed_records,json=removedRecords,proto3" json:"removed_records,omitempty"` - MergedRecords []*MergedRecord `protobuf:"bytes,7,rep,name=merged_records,json=mergedRecords,proto3" json:"merged_records,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftSnapshotData) Reset() { *m = RaftSnapshotData{} } -func (m *RaftSnapshotData) String() string { return proto.CompactTextString(m) } -func (*RaftSnapshotData) ProtoMessage() {} -func (*RaftSnapshotData) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{15} -} -func (m *RaftSnapshotData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftSnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftSnapshotData.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 *RaftSnapshotData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftSnapshotData.Merge(m, src) -} -func (m *RaftSnapshotData) XXX_Size() int { - return m.Size() -} -func (m *RaftSnapshotData) XXX_DiscardUnknown() { - xxx_messageInfo_RaftSnapshotData.DiscardUnknown(m) + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + FileSize uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` + Data []*KeyValue `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"` + Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + Meta *SnapshotMeta `protobuf:"bytes,5,opt,name=meta" json:"meta,omitempty"` + RemovedRecords []*metapb.Peer `protobuf:"bytes,6,rep,name=removed_records,json=removedRecords" json:"removed_records,omitempty"` + MergedRecords []*MergedRecord `protobuf:"bytes,7,rep,name=merged_records,json=mergedRecords" json:"merged_records,omitempty"` } -var xxx_messageInfo_RaftSnapshotData proto.InternalMessageInfo +func (m *RaftSnapshotData) Reset() { *m = RaftSnapshotData{} } +func (m *RaftSnapshotData) String() string { return proto.CompactTextString(m) } +func (*RaftSnapshotData) ProtoMessage() {} +func (*RaftSnapshotData) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{15} } func (m *RaftSnapshotData) GetRegion() *metapb.Region { if m != nil { @@ -1265,46 +917,15 @@ func (m *RaftSnapshotData) GetMergedRecords() []*MergedRecord { } type StoreIdent struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreIdent) Reset() { *m = StoreIdent{} } -func (m *StoreIdent) String() string { return proto.CompactTextString(m) } -func (*StoreIdent) ProtoMessage() {} -func (*StoreIdent) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{16} -} -func (m *StoreIdent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreIdent.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 *StoreIdent) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreIdent.Merge(m, src) -} -func (m *StoreIdent) XXX_Size() int { - return m.Size() -} -func (m *StoreIdent) XXX_DiscardUnknown() { - xxx_messageInfo_StoreIdent.DiscardUnknown(m) + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` } -var xxx_messageInfo_StoreIdent proto.InternalMessageInfo +func (m *StoreIdent) Reset() { *m = StoreIdent{} } +func (m *StoreIdent) String() string { return proto.CompactTextString(m) } +func (*StoreIdent) ProtoMessage() {} +func (*StoreIdent) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{16} } func (m *StoreIdent) GetClusterId() uint64 { if m != nil { @@ -1333,44 +954,13 @@ type StoreRecoverState struct { // all raft logs which corresponding seqno smaller than the seqno here. // After TiKV replays all raft logs and flushed KV data, the seqno here must // be updated. - Seqno uint64 `protobuf:"varint,1,opt,name=seqno,proto3" json:"seqno,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StoreRecoverState) Reset() { *m = StoreRecoverState{} } -func (m *StoreRecoverState) String() string { return proto.CompactTextString(m) } -func (*StoreRecoverState) ProtoMessage() {} -func (*StoreRecoverState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{17} -} -func (m *StoreRecoverState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreRecoverState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreRecoverState.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 *StoreRecoverState) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreRecoverState.Merge(m, src) -} -func (m *StoreRecoverState) XXX_Size() int { - return m.Size() -} -func (m *StoreRecoverState) XXX_DiscardUnknown() { - xxx_messageInfo_StoreRecoverState.DiscardUnknown(m) + Seqno uint64 `protobuf:"varint,1,opt,name=seqno,proto3" json:"seqno,omitempty"` } -var xxx_messageInfo_StoreRecoverState proto.InternalMessageInfo +func (m *StoreRecoverState) Reset() { *m = StoreRecoverState{} } +func (m *StoreRecoverState) String() string { return proto.CompactTextString(m) } +func (*StoreRecoverState) ProtoMessage() {} +func (*StoreRecoverState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{17} } func (m *StoreRecoverState) GetSeqno() uint64 { if m != nil { @@ -1380,45 +970,14 @@ func (m *StoreRecoverState) GetSeqno() uint64 { } type RaftLocalState struct { - HardState *eraftpb.HardState `protobuf:"bytes,1,opt,name=hard_state,json=hardState,proto3" json:"hard_state,omitempty"` - LastIndex uint64 `protobuf:"varint,2,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftLocalState) Reset() { *m = RaftLocalState{} } -func (m *RaftLocalState) String() string { return proto.CompactTextString(m) } -func (*RaftLocalState) ProtoMessage() {} -func (*RaftLocalState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{18} -} -func (m *RaftLocalState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftLocalState.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 *RaftLocalState) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftLocalState.Merge(m, src) -} -func (m *RaftLocalState) XXX_Size() int { - return m.Size() -} -func (m *RaftLocalState) XXX_DiscardUnknown() { - xxx_messageInfo_RaftLocalState.DiscardUnknown(m) + HardState *eraftpb.HardState `protobuf:"bytes,1,opt,name=hard_state,json=hardState" json:"hard_state,omitempty"` + LastIndex uint64 `protobuf:"varint,2,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` } -var xxx_messageInfo_RaftLocalState proto.InternalMessageInfo +func (m *RaftLocalState) Reset() { *m = RaftLocalState{} } +func (m *RaftLocalState) String() string { return proto.CompactTextString(m) } +func (*RaftLocalState) ProtoMessage() {} +func (*RaftLocalState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{18} } func (m *RaftLocalState) GetHardState() *eraftpb.HardState { if m != nil { @@ -1435,48 +994,17 @@ func (m *RaftLocalState) GetLastIndex() uint64 { } type RaftApplyState struct { - AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` - LastCommitIndex uint64 `protobuf:"varint,3,opt,name=last_commit_index,json=lastCommitIndex,proto3" json:"last_commit_index,omitempty"` - CommitIndex uint64 `protobuf:"varint,4,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` - CommitTerm uint64 `protobuf:"varint,5,opt,name=commit_term,json=commitTerm,proto3" json:"commit_term,omitempty"` - TruncatedState *RaftTruncatedState `protobuf:"bytes,2,opt,name=truncated_state,json=truncatedState,proto3" json:"truncated_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RaftApplyState) Reset() { *m = RaftApplyState{} } -func (m *RaftApplyState) String() string { return proto.CompactTextString(m) } -func (*RaftApplyState) ProtoMessage() {} -func (*RaftApplyState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{19} -} -func (m *RaftApplyState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RaftApplyState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RaftApplyState.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 *RaftApplyState) XXX_Merge(src proto.Message) { - xxx_messageInfo_RaftApplyState.Merge(m, src) -} -func (m *RaftApplyState) XXX_Size() int { - return m.Size() -} -func (m *RaftApplyState) XXX_DiscardUnknown() { - xxx_messageInfo_RaftApplyState.DiscardUnknown(m) + AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + LastCommitIndex uint64 `protobuf:"varint,3,opt,name=last_commit_index,json=lastCommitIndex,proto3" json:"last_commit_index,omitempty"` + CommitIndex uint64 `protobuf:"varint,4,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` + CommitTerm uint64 `protobuf:"varint,5,opt,name=commit_term,json=commitTerm,proto3" json:"commit_term,omitempty"` + TruncatedState *RaftTruncatedState `protobuf:"bytes,2,opt,name=truncated_state,json=truncatedState" json:"truncated_state,omitempty"` } -var xxx_messageInfo_RaftApplyState proto.InternalMessageInfo +func (m *RaftApplyState) Reset() { *m = RaftApplyState{} } +func (m *RaftApplyState) String() string { return proto.CompactTextString(m) } +func (*RaftApplyState) ProtoMessage() {} +func (*RaftApplyState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{19} } func (m *RaftApplyState) GetAppliedIndex() uint64 { if m != nil { @@ -1514,46 +1042,15 @@ func (m *RaftApplyState) GetTruncatedState() *RaftTruncatedState { } type MergeState struct { - MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` - Target *metapb.Region `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MergeState) Reset() { *m = MergeState{} } -func (m *MergeState) String() string { return proto.CompactTextString(m) } -func (*MergeState) ProtoMessage() {} -func (*MergeState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{20} -} -func (m *MergeState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergeState.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 *MergeState) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergeState.Merge(m, src) -} -func (m *MergeState) XXX_Size() int { - return m.Size() -} -func (m *MergeState) XXX_DiscardUnknown() { - xxx_messageInfo_MergeState.DiscardUnknown(m) + MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` + Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` } -var xxx_messageInfo_MergeState proto.InternalMessageInfo +func (m *MergeState) Reset() { *m = MergeState{} } +func (m *MergeState) String() string { return proto.CompactTextString(m) } +func (*MergeState) ProtoMessage() {} +func (*MergeState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{20} } func (m *MergeState) GetMinIndex() uint64 { if m != nil { @@ -1578,52 +1075,21 @@ func (m *MergeState) GetCommit() uint64 { type MergedRecord struct { SourceRegionId uint64 `protobuf:"varint,1,opt,name=source_region_id,json=sourceRegionId,proto3" json:"source_region_id,omitempty"` - SourceEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=source_epoch,json=sourceEpoch,proto3" json:"source_epoch,omitempty"` - SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers,proto3" json:"source_peers,omitempty"` + SourceEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=source_epoch,json=sourceEpoch" json:"source_epoch,omitempty"` + SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers" json:"source_peers,omitempty"` TargetRegionId uint64 `protobuf:"varint,4,opt,name=target_region_id,json=targetRegionId,proto3" json:"target_region_id,omitempty"` - TargetEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=target_epoch,json=targetEpoch,proto3" json:"target_epoch,omitempty"` - TargetPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=target_peers,json=targetPeers,proto3" json:"target_peers,omitempty"` + TargetEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=target_epoch,json=targetEpoch" json:"target_epoch,omitempty"` + TargetPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=target_peers,json=targetPeers" json:"target_peers,omitempty"` // Commit merge index. Index uint64 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` // Prepare merge index. - SourceIndex uint64 `protobuf:"varint,8,opt,name=source_index,json=sourceIndex,proto3" json:"source_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MergedRecord) Reset() { *m = MergedRecord{} } -func (m *MergedRecord) String() string { return proto.CompactTextString(m) } -func (*MergedRecord) ProtoMessage() {} -func (*MergedRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{21} -} -func (m *MergedRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MergedRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MergedRecord.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 *MergedRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_MergedRecord.Merge(m, src) -} -func (m *MergedRecord) XXX_Size() int { - return m.Size() -} -func (m *MergedRecord) XXX_DiscardUnknown() { - xxx_messageInfo_MergedRecord.DiscardUnknown(m) + SourceIndex uint64 `protobuf:"varint,8,opt,name=source_index,json=sourceIndex,proto3" json:"source_index,omitempty"` } -var xxx_messageInfo_MergedRecord proto.InternalMessageInfo +func (m *MergedRecord) Reset() { *m = MergedRecord{} } +func (m *MergedRecord) String() string { return proto.CompactTextString(m) } +func (*MergedRecord) ProtoMessage() {} +func (*MergedRecord) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{21} } func (m *MergedRecord) GetSourceRegionId() uint64 { if m != nil { @@ -1683,53 +1149,22 @@ func (m *MergedRecord) GetSourceIndex() uint64 { type RegionLocalState struct { State PeerState `protobuf:"varint,1,opt,name=state,proto3,enum=raft_serverpb.PeerState" json:"state,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - MergeState *MergeState `protobuf:"bytes,3,opt,name=merge_state,json=mergeState,proto3" json:"merge_state,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + MergeState *MergeState `protobuf:"bytes,3,opt,name=merge_state,json=mergeState" json:"merge_state,omitempty"` // The apply index corresponding to the storage when it's initialized. TabletIndex uint64 `protobuf:"varint,4,opt,name=tablet_index,json=tabletIndex,proto3" json:"tablet_index,omitempty"` // Raft doesn't guarantee peer will be removed in the end. In v1, peer finds out its destiny // by logs or broadcast; in v2, leader is responsible to ensure removed peers are destroyed. - RemovedRecords []*metapb.Peer `protobuf:"bytes,5,rep,name=removed_records,json=removedRecords,proto3" json:"removed_records,omitempty"` + RemovedRecords []*metapb.Peer `protobuf:"bytes,5,rep,name=removed_records,json=removedRecords" json:"removed_records,omitempty"` // Merged peer can't be deleted like gc peers. Instead, leader needs to query target peer to // decide whether source peer can be destroyed. - MergedRecords []*MergedRecord `protobuf:"bytes,6,rep,name=merged_records,json=mergedRecords,proto3" json:"merged_records,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionLocalState) Reset() { *m = RegionLocalState{} } -func (m *RegionLocalState) String() string { return proto.CompactTextString(m) } -func (*RegionLocalState) ProtoMessage() {} -func (*RegionLocalState) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{22} -} -func (m *RegionLocalState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionLocalState.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 *RegionLocalState) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionLocalState.Merge(m, src) -} -func (m *RegionLocalState) XXX_Size() int { - return m.Size() -} -func (m *RegionLocalState) XXX_DiscardUnknown() { - xxx_messageInfo_RegionLocalState.DiscardUnknown(m) + MergedRecords []*MergedRecord `protobuf:"bytes,6,rep,name=merged_records,json=mergedRecords" json:"merged_records,omitempty"` } -var xxx_messageInfo_RegionLocalState proto.InternalMessageInfo +func (m *RegionLocalState) Reset() { *m = RegionLocalState{} } +func (m *RegionLocalState) String() string { return proto.CompactTextString(m) } +func (*RegionLocalState) ProtoMessage() {} +func (*RegionLocalState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{22} } func (m *RegionLocalState) GetState() PeerState { if m != nil { @@ -1774,48 +1209,19 @@ func (m *RegionLocalState) GetMergedRecords() []*MergedRecord { } type RegionSequenceNumberRelation struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` - ApplyState *RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` - RegionState *RegionLocalState `protobuf:"bytes,4,opt,name=region_state,json=regionState,proto3" json:"region_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + ApplyState *RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` + RegionState *RegionLocalState `protobuf:"bytes,4,opt,name=region_state,json=regionState" json:"region_state,omitempty"` } func (m *RegionSequenceNumberRelation) Reset() { *m = RegionSequenceNumberRelation{} } func (m *RegionSequenceNumberRelation) String() string { return proto.CompactTextString(m) } func (*RegionSequenceNumberRelation) ProtoMessage() {} func (*RegionSequenceNumberRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{23} -} -func (m *RegionSequenceNumberRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionSequenceNumberRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionSequenceNumberRelation.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 *RegionSequenceNumberRelation) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionSequenceNumberRelation.Merge(m, src) -} -func (m *RegionSequenceNumberRelation) XXX_Size() int { - return m.Size() -} -func (m *RegionSequenceNumberRelation) XXX_DiscardUnknown() { - xxx_messageInfo_RegionSequenceNumberRelation.DiscardUnknown(m) + return fileDescriptorRaftServerpb, []int{23} } -var xxx_messageInfo_RegionSequenceNumberRelation proto.InternalMessageInfo - func (m *RegionSequenceNumberRelation) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -1845,47 +1251,18 @@ func (m *RegionSequenceNumberRelation) GetRegionState() *RegionLocalState { } type AvailabilityContext struct { - FromRegionId uint64 `protobuf:"varint,1,opt,name=from_region_id,json=fromRegionId,proto3" json:"from_region_id,omitempty"` - FromRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=from_region_epoch,json=fromRegionEpoch,proto3" json:"from_region_epoch,omitempty"` - Unavailable bool `protobuf:"varint,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"` - Trimmed bool `protobuf:"varint,4,opt,name=trimmed,proto3" json:"trimmed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FromRegionId uint64 `protobuf:"varint,1,opt,name=from_region_id,json=fromRegionId,proto3" json:"from_region_id,omitempty"` + FromRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=from_region_epoch,json=fromRegionEpoch" json:"from_region_epoch,omitempty"` + Unavailable bool `protobuf:"varint,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"` + Trimmed bool `protobuf:"varint,4,opt,name=trimmed,proto3" json:"trimmed,omitempty"` } func (m *AvailabilityContext) Reset() { *m = AvailabilityContext{} } func (m *AvailabilityContext) String() string { return proto.CompactTextString(m) } func (*AvailabilityContext) ProtoMessage() {} func (*AvailabilityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{24} -} -func (m *AvailabilityContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AvailabilityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AvailabilityContext.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 *AvailabilityContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_AvailabilityContext.Merge(m, src) -} -func (m *AvailabilityContext) XXX_Size() int { - return m.Size() + return fileDescriptorRaftServerpb, []int{24} } -func (m *AvailabilityContext) XXX_DiscardUnknown() { - xxx_messageInfo_AvailabilityContext.DiscardUnknown(m) -} - -var xxx_messageInfo_AvailabilityContext proto.InternalMessageInfo func (m *AvailabilityContext) GetFromRegionId() uint64 { if m != nil { @@ -1916,44 +1293,13 @@ func (m *AvailabilityContext) GetTrimmed() bool { } type FlushMemtable struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlushMemtable) Reset() { *m = FlushMemtable{} } -func (m *FlushMemtable) String() string { return proto.CompactTextString(m) } -func (*FlushMemtable) ProtoMessage() {} -func (*FlushMemtable) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{25} -} -func (m *FlushMemtable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlushMemtable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlushMemtable.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 *FlushMemtable) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushMemtable.Merge(m, src) -} -func (m *FlushMemtable) XXX_Size() int { - return m.Size() -} -func (m *FlushMemtable) XXX_DiscardUnknown() { - xxx_messageInfo_FlushMemtable.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_FlushMemtable proto.InternalMessageInfo +func (m *FlushMemtable) Reset() { *m = FlushMemtable{} } +func (m *FlushMemtable) String() string { return proto.CompactTextString(m) } +func (*FlushMemtable) ProtoMessage() {} +func (*FlushMemtable) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{25} } func (m *FlushMemtable) GetRegionId() uint64 { if m != nil { @@ -1963,45 +1309,14 @@ func (m *FlushMemtable) GetRegionId() uint64 { } type RefreshBuckets struct { - Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RefreshBuckets) Reset() { *m = RefreshBuckets{} } -func (m *RefreshBuckets) String() string { return proto.CompactTextString(m) } -func (*RefreshBuckets) ProtoMessage() {} -func (*RefreshBuckets) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{26} -} -func (m *RefreshBuckets) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshBuckets.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 *RefreshBuckets) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshBuckets.Merge(m, src) -} -func (m *RefreshBuckets) XXX_Size() int { - return m.Size() -} -func (m *RefreshBuckets) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshBuckets.DiscardUnknown(m) + Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` } -var xxx_messageInfo_RefreshBuckets proto.InternalMessageInfo +func (m *RefreshBuckets) Reset() { *m = RefreshBuckets{} } +func (m *RefreshBuckets) String() string { return proto.CompactTextString(m) } +func (*RefreshBuckets) ProtoMessage() {} +func (*RefreshBuckets) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{26} } func (m *RefreshBuckets) GetVersion() uint64 { if m != nil { @@ -2024,46 +1339,15 @@ type CheckGcPeer struct { // The region ID to be checked if should be destroyed. CheckRegionId uint64 `protobuf:"varint,2,opt,name=check_region_id,json=checkRegionId,proto3" json:"check_region_id,omitempty"` // The epoch of the region to be checked. - CheckRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=check_region_epoch,json=checkRegionEpoch,proto3" json:"check_region_epoch,omitempty"` + CheckRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=check_region_epoch,json=checkRegionEpoch" json:"check_region_epoch,omitempty"` // The peer to be checked. - CheckPeer *metapb.Peer `protobuf:"bytes,4,opt,name=check_peer,json=checkPeer,proto3" json:"check_peer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CheckGcPeer) Reset() { *m = CheckGcPeer{} } -func (m *CheckGcPeer) String() string { return proto.CompactTextString(m) } -func (*CheckGcPeer) ProtoMessage() {} -func (*CheckGcPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{27} -} -func (m *CheckGcPeer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CheckGcPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CheckGcPeer.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 *CheckGcPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckGcPeer.Merge(m, src) -} -func (m *CheckGcPeer) XXX_Size() int { - return m.Size() -} -func (m *CheckGcPeer) XXX_DiscardUnknown() { - xxx_messageInfo_CheckGcPeer.DiscardUnknown(m) + CheckPeer *metapb.Peer `protobuf:"bytes,4,opt,name=check_peer,json=checkPeer" json:"check_peer,omitempty"` } -var xxx_messageInfo_CheckGcPeer proto.InternalMessageInfo +func (m *CheckGcPeer) Reset() { *m = CheckGcPeer{} } +func (m *CheckGcPeer) String() string { return proto.CompactTextString(m) } +func (*CheckGcPeer) ProtoMessage() {} +func (*CheckGcPeer) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{27} } func (m *CheckGcPeer) GetFromRegionId() uint64 { if m != nil { @@ -2100,53 +1384,22 @@ type ExtraMessage struct { // it's the voter_replicated_index. Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // In `MsgCheckStalePeerResponse`, it's the peers that receiver can continue to query. - CheckPeers []*metapb.Peer `protobuf:"bytes,3,rep,name=check_peers,json=checkPeers,proto3" json:"check_peers,omitempty"` + CheckPeers []*metapb.Peer `protobuf:"bytes,3,rep,name=check_peers,json=checkPeers" json:"check_peers,omitempty"` WaitData bool `protobuf:"varint,4,opt,name=wait_data,json=waitData,proto3" json:"wait_data,omitempty"` // Flag for forcely wake up hibernate regions if true. ForcelyAwaken bool `protobuf:"varint,5,opt,name=forcely_awaken,json=forcelyAwaken,proto3" json:"forcely_awaken,omitempty"` - CheckGcPeer *CheckGcPeer `protobuf:"bytes,6,opt,name=check_gc_peer,json=checkGcPeer,proto3" json:"check_gc_peer,omitempty"` - FlushMemtable *FlushMemtable `protobuf:"bytes,7,opt,name=flush_memtable,json=flushMemtable,proto3" json:"flush_memtable,omitempty"` + CheckGcPeer *CheckGcPeer `protobuf:"bytes,6,opt,name=check_gc_peer,json=checkGcPeer" json:"check_gc_peer,omitempty"` + FlushMemtable *FlushMemtable `protobuf:"bytes,7,opt,name=flush_memtable,json=flushMemtable" json:"flush_memtable,omitempty"` // Used by `MsgAvailabilityRequest` and `MsgAvailabilityResponse` in v2. - AvailabilityContext *AvailabilityContext `protobuf:"bytes,8,opt,name=availability_context,json=availabilityContext,proto3" json:"availability_context,omitempty"` + AvailabilityContext *AvailabilityContext `protobuf:"bytes,8,opt,name=availability_context,json=availabilityContext" json:"availability_context,omitempty"` // notice the peer to refresh buckets version - RefreshBuckets *RefreshBuckets `protobuf:"bytes,9,opt,name=refresh_buckets,json=refreshBuckets,proto3" json:"refresh_buckets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExtraMessage) Reset() { *m = ExtraMessage{} } -func (m *ExtraMessage) String() string { return proto.CompactTextString(m) } -func (*ExtraMessage) ProtoMessage() {} -func (*ExtraMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{28} -} -func (m *ExtraMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExtraMessage.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 *ExtraMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraMessage.Merge(m, src) -} -func (m *ExtraMessage) XXX_Size() int { - return m.Size() -} -func (m *ExtraMessage) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraMessage.DiscardUnknown(m) + RefreshBuckets *RefreshBuckets `protobuf:"bytes,9,opt,name=refresh_buckets,json=refreshBuckets" json:"refresh_buckets,omitempty"` } -var xxx_messageInfo_ExtraMessage proto.InternalMessageInfo +func (m *ExtraMessage) Reset() { *m = ExtraMessage{} } +func (m *ExtraMessage) String() string { return proto.CompactTextString(m) } +func (*ExtraMessage) ProtoMessage() {} +func (*ExtraMessage) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{28} } func (m *ExtraMessage) GetType() ExtraMessageType { if m != nil { @@ -2212,8 +1465,6 @@ func (m *ExtraMessage) GetRefreshBuckets() *RefreshBuckets { } func init() { - proto.RegisterEnum("raft_serverpb.PeerState", PeerState_name, PeerState_value) - proto.RegisterEnum("raft_serverpb.ExtraMessageType", ExtraMessageType_name, ExtraMessageType_value) proto.RegisterType((*RaftMessage)(nil), "raft_serverpb.RaftMessage") proto.RegisterType((*RaftTruncatedState)(nil), "raft_serverpb.RaftTruncatedState") proto.RegisterType((*SnapshotCFFile)(nil), "raft_serverpb.SnapshotCFFile") @@ -2243,162 +1494,13 @@ func init() { proto.RegisterType((*RefreshBuckets)(nil), "raft_serverpb.RefreshBuckets") proto.RegisterType((*CheckGcPeer)(nil), "raft_serverpb.CheckGcPeer") proto.RegisterType((*ExtraMessage)(nil), "raft_serverpb.ExtraMessage") + proto.RegisterEnum("raft_serverpb.PeerState", PeerState_name, PeerState_value) + proto.RegisterEnum("raft_serverpb.ExtraMessageType", ExtraMessageType_name, ExtraMessageType_value) } - -func init() { proto.RegisterFile("raft_serverpb.proto", fileDescriptor_130ebc2f2c37a342) } - -var fileDescriptor_130ebc2f2c37a342 = []byte{ - // 2292 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xcd, 0x73, 0x1b, 0x49, - 0x15, 0xb7, 0x3e, 0xac, 0x8f, 0xa7, 0x0f, 0x2b, 0xed, 0x78, 0xa3, 0xc4, 0x9b, 0xc4, 0x99, 0x6c, - 0x12, 0x6f, 0x16, 0x9c, 0x5a, 0x6f, 0x58, 0xb6, 0x96, 0xaa, 0x80, 0xed, 0x24, 0x38, 0x04, 0xa5, - 0x52, 0x6d, 0x27, 0x29, 0x4e, 0x53, 0xad, 0x99, 0x27, 0x69, 0xd0, 0x7c, 0xed, 0x74, 0x4b, 0x89, - 0x28, 0xfe, 0x0b, 0x2e, 0x7b, 0xe4, 0x48, 0x71, 0xe1, 0xca, 0x1f, 0xc0, 0x81, 0x82, 0x0b, 0x47, - 0x8e, 0x54, 0xb8, 0x70, 0xa1, 0x0a, 0x8e, 0xdc, 0xa8, 0xfe, 0x18, 0x69, 0x46, 0x56, 0x1c, 0xc8, - 0x69, 0xba, 0xdf, 0x47, 0xf7, 0xeb, 0xf7, 0x7e, 0xef, 0xf5, 0xeb, 0x81, 0xcd, 0x84, 0x0d, 0x84, - 0xcd, 0x31, 0x99, 0x62, 0x12, 0xf7, 0xf7, 0xe2, 0x24, 0x12, 0x11, 0x69, 0xe5, 0x88, 0x57, 0x5a, - 0x28, 0xe7, 0x29, 0xf7, 0x4a, 0x33, 0x40, 0xc1, 0xe6, 0xb3, 0xd6, 0x78, 0x9a, 0xc4, 0xce, 0x7c, - 0xda, 0x71, 0x3d, 0x3e, 0xb6, 0x27, 0x9c, 0x0d, 0xd1, 0x50, 0x08, 0x86, 0x4e, 0x32, 0x8b, 0x85, - 0x17, 0x85, 0x73, 0xa9, 0x8d, 0x64, 0xc2, 0x85, 0x1a, 0x6a, 0x82, 0xf5, 0x9f, 0x12, 0x34, 0x28, - 0x1b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 0xea, 0x0c, 0xe4, - 0x97, 0x93, 0xeb, 0xd0, 0x18, 0x44, 0x89, 0xdd, 0x67, 0x3e, 0x0b, 0x1d, 0x6d, 0x41, 0x8d, 0xc2, - 0x20, 0x4a, 0x0e, 0x35, 0x25, 0x15, 0x78, 0xed, 0x89, 0x10, 0x39, 0x57, 0xa6, 0x68, 0x81, 0x57, - 0x9a, 0x22, 0x1d, 0xa1, 0x30, 0xa0, 0x90, 0x59, 0xa6, 0x7a, 0x42, 0xf6, 0x61, 0x6b, 0x88, 0x21, - 0x26, 0x4c, 0xa0, 0xed, 0x4e, 0x12, 0x26, 0xd3, 0xcb, 0xe6, 0xe8, 0x28, 0x38, 0x96, 0xe9, 0x66, - 0xca, 0x7c, 0x68, 0x78, 0x27, 0xe8, 0x90, 0x5d, 0xe8, 0x08, 0xd6, 0xf7, 0x51, 0xd8, 0x3c, 0x64, - 0xb1, 0x1d, 0x33, 0x31, 0x52, 0x28, 0xac, 0xd3, 0xb6, 0xa6, 0xcb, 0x43, 0x3c, 0x67, 0x62, 0x44, - 0xee, 0xc2, 0x05, 0x27, 0x0a, 0x02, 0x4f, 0xd8, 0xca, 0xed, 0xf6, 0xc8, 0x0b, 0x85, 0x02, 0x64, - 0x99, 0x6e, 0x68, 0xc6, 0x13, 0x49, 0x3f, 0xf6, 0x42, 0x61, 0xfd, 0x0c, 0x5a, 0xf3, 0xc3, 0x8f, - 0x26, 0xe1, 0x98, 0xdc, 0x5f, 0x24, 0x53, 0x41, 0x41, 0xeb, 0xca, 0x92, 0xaf, 0x32, 0x89, 0xbe, - 0x48, 0x2b, 0x02, 0x65, 0x97, 0x09, 0xa6, 0x3c, 0xd4, 0xa4, 0x6a, 0x6c, 0x55, 0xa0, 0xfc, 0x30, - 0x0a, 0xd1, 0xfa, 0xb6, 0x00, 0x1f, 0x9d, 0xce, 0x2d, 0x94, 0x3b, 0x49, 0xe7, 0xaa, 0xc8, 0x6c, - 0x43, 0x5d, 0x86, 0xc5, 0x56, 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, 0x05, 0xd7, 0x7a, 0x7c, 0xf8, 0x32, 0x12, 0xd2, 0xd4, 0xd8, 0xf7, - 0x54, 0xd3, 0xa5, 0x6e, 0xb3, 0x74, 0x81, 0x3a, 0xb9, 0x09, 0xd7, 0xdf, 0x29, 0x63, 0x16, 0x02, - 0x72, 0x11, 0x3a, 0x3d, 0x3e, 0x34, 0x48, 0x35, 0xaa, 0x0d, 0xe3, 0xa9, 0x94, 0x6a, 0x84, 0x9b, - 0x46, 0x38, 0x07, 0xcd, 0x4e, 0xcb, 0x08, 0xe7, 0x31, 0xd1, 0x69, 0x1f, 0xde, 0xfe, 0xeb, 0x6f, - 0x6a, 0x85, 0x3f, 0xbe, 0xbd, 0x56, 0xf8, 0xcb, 0xdb, 0x6b, 0x85, 0xbf, 0xbd, 0xbd, 0x56, 0xf8, - 0xf6, 0xef, 0xd7, 0xd6, 0xa0, 0x13, 0x25, 0xc3, 0x3d, 0xe1, 0x8d, 0xa7, 0x7b, 0xe3, 0xa9, 0xfa, - 0x4d, 0xdb, 0xaf, 0xa8, 0xcf, 0x17, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x95, 0x55, 0x59, - 0x36, 0x16, 0x00, 0x00, -} - func (m *RaftMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2406,139 +1508,115 @@ func (m *RaftMessage) Marshal() (dAtA []byte, err error) { } func (m *RaftMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DiskUsage != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) - i-- - dAtA[i] = 0x60 + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) } - if len(m.ExtraCtx) > 0 { - i -= len(m.ExtraCtx) - copy(dAtA[i:], m.ExtraCtx) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.ExtraCtx))) - i-- - dAtA[i] = 0x5a - } - if m.ExtraMsg != nil { - { - size, err := m.ExtraMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.FromPeer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromPeer.Size())) + n1, err := m.FromPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n1 } - if m.MergeTarget != nil { - { - size, err := m.MergeTarget.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.ToPeer != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ToPeer.Size())) + n2, err := m.ToPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n2 } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x42 + if m.Message != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) + n3, err := m.Message.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x3a + if m.RegionEpoch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n4, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } if m.IsTombstone { - i-- + dAtA[i] = 0x30 + i++ if m.IsTombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 + i++ } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if len(m.StartKey) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.Message != nil { - { - size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if len(m.EndKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.ToPeer != nil { - { - size, err := m.ToPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.MergeTarget != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MergeTarget.Size())) + n5, err := m.MergeTarget.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n5 } - if m.FromPeer != nil { - { - size, err := m.FromPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.ExtraMsg != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ExtraMsg.Size())) + n6, err := m.ExtraMsg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n6 } - if m.RegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if len(m.ExtraCtx) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.ExtraCtx))) + i += copy(dAtA[i:], m.ExtraCtx) + } + if m.DiskUsage != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) } - return len(dAtA) - i, nil + return i, nil } func (m *RaftTruncatedState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2546,36 +1624,27 @@ func (m *RaftTruncatedState) Marshal() (dAtA []byte, err error) { } func (m *RaftTruncatedState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftTruncatedState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Index != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) } if m.Term != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Term)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Term)) } - if m.Index != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotCFFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2583,43 +1652,33 @@ func (m *SnapshotCFFile) Marshal() (dAtA []byte, err error) { } func (m *SnapshotCFFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotCFFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Checksum != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) - i-- - dAtA[i] = 0x18 + if len(m.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } if m.Size_ != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Size_)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Size_)) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa + if m.Checksum != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) } - return len(dAtA) - i, nil + return i, nil } func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2627,82 +1686,70 @@ func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { } func (m *SnapshotMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitIndexHint != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndexHint)) - i-- - dAtA[i] = 0x38 - } - if len(m.TabletSnapPath) > 0 { - i -= len(m.TabletSnapPath) - copy(dAtA[i:], m.TabletSnapPath) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TabletSnapPath))) - i-- - dAtA[i] = 0x32 - } - if m.GenerateDurationSec != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) - i-- - dAtA[i] = 0x28 - } - if m.Start != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) - i-- - dAtA[i] = 0x20 + if len(m.CfFiles) > 0 { + for _, msg := range m.CfFiles { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.ForWitness { - i-- - if m.ForWitness { + if m.ForBalance { + dAtA[i] = 0x10 + i++ + if m.ForBalance { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.ForBalance { - i-- - if m.ForBalance { + if m.ForWitness { + dAtA[i] = 0x18 + i++ + if m.ForWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.CfFiles) > 0 { - for iNdEx := len(m.CfFiles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CfFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.Start != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) + } + if m.GenerateDurationSec != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) } - return len(dAtA) - i, nil + if len(m.TabletSnapPath) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TabletSnapPath))) + i += copy(dAtA[i:], m.TabletSnapPath) + } + if m.CommitIndexHint != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndexHint)) + } + return i, nil } func (m *SnapshotChunk) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2710,45 +1757,33 @@ func (m *SnapshotChunk) Marshal() (dAtA []byte, err error) { } func (m *SnapshotChunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Message != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) + n7, err := m.Message.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - if m.Message != nil { - { - size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *Done) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2756,26 +1791,17 @@ func (m *Done) Marshal() (dAtA []byte, err error) { } func (m *Done) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Done) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotFileMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2783,52 +1809,40 @@ func (m *TabletSnapshotFileMeta) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotFileMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotFileMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.FileSize != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) } - if len(m.TrailingChunk) > 0 { - i -= len(m.TrailingChunk) - copy(dAtA[i:], m.TrailingChunk) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TrailingChunk))) - i-- - dAtA[i] = 0x22 + if len(m.FileName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) + i += copy(dAtA[i:], m.FileName) } if len(m.HeadChunk) > 0 { - i -= len(m.HeadChunk) - copy(dAtA[i:], m.HeadChunk) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.HeadChunk))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.HeadChunk))) + i += copy(dAtA[i:], m.HeadChunk) } - if len(m.FileName) > 0 { - i -= len(m.FileName) - copy(dAtA[i:], m.FileName) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) - i-- - dAtA[i] = 0x12 - } - if m.FileSize != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) - i-- - dAtA[i] = 0x8 + if len(m.TrailingChunk) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TrailingChunk))) + i += copy(dAtA[i:], m.TrailingChunk) } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotPreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2836,50 +1850,39 @@ func (m *TabletSnapshotPreview) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotPreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Metas) > 0 { + for _, msg := range m.Metas { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.End { - i-- + dAtA[i] = 0x10 + i++ if m.End { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotFileChunk) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2887,64 +1890,50 @@ func (m *TabletSnapshotFileChunk) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotFileChunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotFileChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Key != nil { - { - size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if m.FileSize != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) } - if len(m.Iv) > 0 { - i -= len(m.Iv) - copy(dAtA[i:], m.Iv) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Iv))) - i-- - dAtA[i] = 0x22 + if len(m.FileName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) + i += copy(dAtA[i:], m.FileName) } if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - if len(m.FileName) > 0 { - i -= len(m.FileName) - copy(dAtA[i:], m.FileName) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) - i-- - dAtA[i] = 0x12 + if len(m.Iv) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Iv))) + i += copy(dAtA[i:], m.Iv) } - if m.FileSize != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) - i-- - dAtA[i] = 0x8 + if m.Key != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Key.Size())) + n8, err := m.Key.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotHead) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2952,48 +1941,37 @@ func (m *TabletSnapshotHead) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotHead) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotHead) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Message != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) + n9, err := m.Message.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } if m.UseCache { - i-- + dAtA[i] = 0x10 + i++ if m.UseCache { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 - } - if m.Message != nil { - { - size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotEnd) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3001,31 +1979,22 @@ func (m *TabletSnapshotEnd) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotEnd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Checksum != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3033,119 +2002,80 @@ func (m *TabletSnapshotRequest) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Payload != nil { - { - size := m.Payload.Size() - i -= size - if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn10, err := m.Payload.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn10 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Head) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Head) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Head != nil { - { - size, err := m.Head.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Head.Size())) + n11, err := m.Head.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Preview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Preview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Preview != nil { - { - size, err := m.Preview.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Preview.Size())) + n12, err := m.Preview.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Chunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Chunk != nil { - { - size, err := m.Chunk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Chunk.Size())) + n13, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_End) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_End) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.End != nil { - { - size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.End.Size())) + n14, err := m.End.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } - return len(dAtA) - i, nil + return i, nil } func (m *AcceptedSnapshotFiles) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3153,35 +2083,32 @@ func (m *AcceptedSnapshotFiles) Marshal() (dAtA []byte, err error) { } func (m *AcceptedSnapshotFiles) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AcceptedSnapshotFiles) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.FileName) > 0 { - for iNdEx := len(m.FileName) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.FileName[iNdEx]) - copy(dAtA[i:], m.FileName[iNdEx]) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName[iNdEx]))) - i-- + for _, s := range m.FileName { dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3189,38 +2116,27 @@ func (m *TabletSnapshotResponse) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Files != nil { - { - size, err := m.Files.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Files.Size())) + n15, err := m.Files.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - return len(dAtA) - i, nil + return i, nil } func (m *KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3228,40 +2144,29 @@ func (m *KeyValue) Marshal() (dAtA []byte, err error) { } func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RaftSnapshotData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3269,102 +2174,83 @@ func (m *RaftSnapshotData) Marshal() (dAtA []byte, err error) { } func (m *RaftSnapshotData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftSnapshotData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.MergedRecords) > 0 { - for iNdEx := len(m.MergedRecords) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MergedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a + if m.Region != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Region.Size())) + n16, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n16 } - if len(m.RemovedRecords) > 0 { - for iNdEx := len(m.RemovedRecords) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RemovedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } + if m.FileSize != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Data) > 0 { + for _, msg := range m.Data { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a } if m.Version != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) } - if len(m.Data) > 0 { - for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Meta != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Meta.Size())) + n17, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n17 } - if m.FileSize != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) - i-- - dAtA[i] = 0x10 + if len(m.RemovedRecords) > 0 { + for _, msg := range m.RemovedRecords { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if len(m.MergedRecords) > 0 { + for _, msg := range m.MergedRecords { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *StoreIdent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3372,41 +2258,32 @@ func (m *StoreIdent) Marshal() (dAtA []byte, err error) { } func (m *StoreIdent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreIdent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ApiVersion != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x18 + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ClusterId)) } if m.StoreId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.StoreId)) } - if m.ClusterId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.ApiVersion != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApiVersion)) } - return len(dAtA) - i, nil + return i, nil } func (m *StoreRecoverState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3414,31 +2291,22 @@ func (m *StoreRecoverState) Marshal() (dAtA []byte, err error) { } func (m *StoreRecoverState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreRecoverState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Seqno != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Seqno)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Seqno)) } - return len(dAtA) - i, nil + return i, nil } func (m *RaftLocalState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3446,43 +2314,32 @@ func (m *RaftLocalState) Marshal() (dAtA []byte, err error) { } func (m *RaftLocalState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftLocalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.HardState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.HardState.Size())) + n18, err := m.HardState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } if m.LastIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastIndex)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastIndex)) } - if m.HardState != nil { - { - size, err := m.HardState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *RaftApplyState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3490,58 +2347,47 @@ func (m *RaftApplyState) Marshal() (dAtA []byte, err error) { } func (m *RaftApplyState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftApplyState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitTerm != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitTerm)) - i-- - dAtA[i] = 0x28 + if m.AppliedIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AppliedIndex)) } - if m.CommitIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndex)) - i-- - dAtA[i] = 0x20 + if m.TruncatedState != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TruncatedState.Size())) + n19, err := m.TruncatedState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } if m.LastCommitIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastCommitIndex)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastCommitIndex)) } - if m.TruncatedState != nil { - { - size, err := m.TruncatedState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.CommitIndex != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndex)) } - if m.AppliedIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x8 + if m.CommitTerm != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitTerm)) } - return len(dAtA) - i, nil + return i, nil } func (m *MergeState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3549,48 +2395,37 @@ func (m *MergeState) Marshal() (dAtA []byte, err error) { } func (m *MergeState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergeState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Commit != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Commit)) - i-- - dAtA[i] = 0x18 + if m.MinIndex != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MinIndex)) } if m.Target != nil { - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Target.Size())) + n20, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - if m.MinIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MinIndex)) - i-- - dAtA[i] = 0x8 + if m.Commit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Commit)) } - return len(dAtA) - i, nil + return i, nil } func (m *MergedRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3598,98 +2433,81 @@ func (m *MergedRecord) Marshal() (dAtA []byte, err error) { } func (m *MergedRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergedRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SourceIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) - i-- - dAtA[i] = 0x40 - } - if m.Index != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x38 + if m.SourceRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceRegionId)) } - if len(m.TargetPeers) > 0 { - for iNdEx := len(m.TargetPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TargetPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + if m.SourceEpoch != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceEpoch.Size())) + n21, err := m.SourceEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n21 } - if m.TargetEpoch != nil { - { - size, err := m.TargetEpoch.MarshalToSizedBuffer(dAtA[:i]) + if len(m.SourcePeers) > 0 { + for _, msg := range m.SourcePeers { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a } if m.TargetRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetRegionId)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetRegionId)) } - if len(m.SourcePeers) > 0 { - for iNdEx := len(m.SourcePeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SourcePeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.TargetEpoch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetEpoch.Size())) + n22, err := m.TargetEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n22 } - if m.SourceEpoch != nil { - { - size, err := m.SourceEpoch.MarshalToSizedBuffer(dAtA[:i]) + if len(m.TargetPeers) > 0 { + for _, msg := range m.TargetPeers { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.SourceRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceRegionId)) - i-- - dAtA[i] = 0x8 + if m.Index != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + } + if m.SourceIndex != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionLocalState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3697,88 +2515,71 @@ func (m *RegionLocalState) Marshal() (dAtA []byte, err error) { } func (m *RegionLocalState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionLocalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.State != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.State)) } - if len(m.MergedRecords) > 0 { - for iNdEx := len(m.MergedRecords) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MergedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Region.Size())) + n23, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n23 } - if len(m.RemovedRecords) > 0 { - for iNdEx := len(m.RemovedRecords) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RemovedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if m.MergeState != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MergeState.Size())) + n24, err := m.MergeState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n24 } if m.TabletIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TabletIndex)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TabletIndex)) } - if m.MergeState != nil { - { - size, err := m.MergeState.MarshalToSizedBuffer(dAtA[:i]) + if len(m.RemovedRecords) > 0 { + for _, msg := range m.RemovedRecords { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if len(m.MergedRecords) > 0 { + for _, msg := range m.MergedRecords { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 - } - if m.State != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 } - return len(dAtA) - i, nil + return i, nil } func (m *RegionSequenceNumberRelation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3786,60 +2587,47 @@ func (m *RegionSequenceNumberRelation) Marshal() (dAtA []byte, err error) { } func (m *RegionSequenceNumberRelation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionSequenceNumberRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) } - if m.RegionState != nil { - { - size, err := m.RegionState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.SequenceNumber != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SequenceNumber)) } if m.ApplyState != nil { - { - size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApplyState.Size())) + n25, err := m.ApplyState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } - if m.SequenceNumber != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SequenceNumber)) - i-- - dAtA[i] = 0x10 - } - if m.RegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.RegionState != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionState.Size())) + n26, err := m.RegionState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *AvailabilityContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3847,63 +2635,52 @@ func (m *AvailabilityContext) Marshal() (dAtA []byte, err error) { } func (m *AvailabilityContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AvailabilityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.FromRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) } - if m.Trimmed { - i-- - if m.Trimmed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.FromRegionEpoch != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionEpoch.Size())) + n27, err := m.FromRegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n27 } if m.Unavailable { - i-- + dAtA[i] = 0x18 + i++ if m.Unavailable { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.FromRegionEpoch != nil { - { - size, err := m.FromRegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.Trimmed { + dAtA[i] = 0x20 + i++ + if m.Trimmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x12 - } - if m.FromRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *FlushMemtable) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3911,31 +2688,22 @@ func (m *FlushMemtable) Marshal() (dAtA []byte, err error) { } func (m *FlushMemtable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlushMemtable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) } - return len(dAtA) - i, nil + return i, nil } func (m *RefreshBuckets) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3943,40 +2711,30 @@ func (m *RefreshBuckets) Marshal() (dAtA []byte, err error) { } func (m *RefreshBuckets) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshBuckets) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Version != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) } 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 = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- + for _, b := range m.Keys { dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Version != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *CheckGcPeer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3984,60 +2742,47 @@ func (m *CheckGcPeer) Marshal() (dAtA []byte, err error) { } func (m *CheckGcPeer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CheckGcPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.FromRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) } - if m.CheckPeer != nil { - { - size, err := m.CheckPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.CheckRegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionId)) } if m.CheckRegionEpoch != nil { - { - size, err := m.CheckRegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionEpoch.Size())) + n28, err := m.CheckRegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - if m.CheckRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionId)) - i-- - dAtA[i] = 0x10 - } - if m.FromRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) - i-- - dAtA[i] = 0x8 + if m.CheckPeer != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckPeer.Size())) + n29, err := m.CheckPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } - return len(dAtA) - i, nil + return i, nil } func (m *ExtraMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4045,129 +2790,105 @@ func (m *ExtraMessage) Marshal() (dAtA []byte, err error) { } func (m *ExtraMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExtraMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RefreshBuckets != nil { - { - size, err := m.RefreshBuckets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Type)) } - if m.AvailabilityContext != nil { - { - size, err := m.AvailabilityContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 + if m.Index != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) } - if m.FlushMemtable != nil { - { - size, err := m.FlushMemtable.MarshalToSizedBuffer(dAtA[:i]) + if len(m.CheckPeers) > 0 { + for _, msg := range m.CheckPeers { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x3a } - if m.CheckGcPeer != nil { - { - size, err := m.CheckGcPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.WaitData { + dAtA[i] = 0x20 + i++ + if m.WaitData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x32 + i++ } if m.ForcelyAwaken { - i-- + dAtA[i] = 0x28 + i++ if m.ForcelyAwaken { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 + i++ } - if m.WaitData { - i-- - if m.WaitData { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.CheckGcPeer != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckGcPeer.Size())) + n30, err := m.CheckGcPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n30 } - if len(m.CheckPeers) > 0 { - for iNdEx := len(m.CheckPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CheckPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.FlushMemtable != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FlushMemtable.Size())) + n31, err := m.FlushMemtable.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n31 } - if m.Index != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x10 + if m.AvailabilityContext != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AvailabilityContext.Size())) + n32, err := m.AvailabilityContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 } - if m.Type != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.RefreshBuckets != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RefreshBuckets.Size())) + n33, err := m.RefreshBuckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } - return len(dAtA) - i, nil + return i, nil } func encodeVarintRaftServerpb(dAtA []byte, offset int, v uint64) int { - offset -= sovRaftServerpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *RaftMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -4215,16 +2936,10 @@ func (m *RaftMessage) Size() (n int) { if m.DiskUsage != 0 { n += 1 + sovRaftServerpb(uint64(m.DiskUsage)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftTruncatedState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -4233,16 +2948,10 @@ func (m *RaftTruncatedState) Size() (n int) { if m.Term != 0 { n += 1 + sovRaftServerpb(uint64(m.Term)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotCFFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -4255,16 +2964,10 @@ func (m *SnapshotCFFile) Size() (n int) { if m.Checksum != 0 { n += 1 + sovRaftServerpb(uint64(m.Checksum)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.CfFiles) > 0 { @@ -4292,16 +2995,10 @@ func (m *SnapshotMeta) Size() (n int) { if m.CommitIndexHint != 0 { n += 1 + sovRaftServerpb(uint64(m.CommitIndexHint)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SnapshotChunk) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Message != nil { @@ -4312,28 +3009,16 @@ func (m *SnapshotChunk) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Done) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotFileMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FileSize != 0 { @@ -4351,16 +3036,10 @@ func (m *TabletSnapshotFileMeta) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotPreview) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Metas) > 0 { @@ -4372,16 +3051,10 @@ func (m *TabletSnapshotPreview) Size() (n int) { if m.End { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotFileChunk) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FileSize != 0 { @@ -4403,16 +3076,10 @@ func (m *TabletSnapshotFileChunk) Size() (n int) { l = m.Key.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotHead) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Message != nil { @@ -4422,46 +3089,28 @@ func (m *TabletSnapshotHead) Size() (n int) { if m.UseCache { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotEnd) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Checksum != 0 { n += 1 + sovRaftServerpb(uint64(m.Checksum)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Payload != nil { n += m.Payload.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotRequest_Head) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Head != nil { @@ -4471,9 +3120,6 @@ func (m *TabletSnapshotRequest_Head) Size() (n int) { return n } func (m *TabletSnapshotRequest_Preview) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Preview != nil { @@ -4483,9 +3129,6 @@ func (m *TabletSnapshotRequest_Preview) Size() (n int) { return n } func (m *TabletSnapshotRequest_Chunk) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -4495,9 +3138,6 @@ func (m *TabletSnapshotRequest_Chunk) Size() (n int) { return n } func (m *TabletSnapshotRequest_End) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.End != nil { @@ -4507,9 +3147,6 @@ func (m *TabletSnapshotRequest_End) Size() (n int) { return n } func (m *AcceptedSnapshotFiles) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.FileName) > 0 { @@ -4518,32 +3155,20 @@ func (m *AcceptedSnapshotFiles) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TabletSnapshotResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Files != nil { l = m.Files.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -4554,16 +3179,10 @@ func (m *KeyValue) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftSnapshotData) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -4598,16 +3217,10 @@ func (m *RaftSnapshotData) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreIdent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -4619,31 +3232,19 @@ func (m *StoreIdent) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovRaftServerpb(uint64(m.ApiVersion)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreRecoverState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Seqno != 0 { n += 1 + sovRaftServerpb(uint64(m.Seqno)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftLocalState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.HardState != nil { @@ -4653,16 +3254,10 @@ func (m *RaftLocalState) Size() (n int) { if m.LastIndex != 0 { n += 1 + sovRaftServerpb(uint64(m.LastIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RaftApplyState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AppliedIndex != 0 { @@ -4681,16 +3276,10 @@ func (m *RaftApplyState) Size() (n int) { if m.CommitTerm != 0 { n += 1 + sovRaftServerpb(uint64(m.CommitTerm)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MergeState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MinIndex != 0 { @@ -4703,16 +3292,10 @@ func (m *MergeState) Size() (n int) { if m.Commit != 0 { n += 1 + sovRaftServerpb(uint64(m.Commit)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *MergedRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SourceRegionId != 0 { @@ -4747,16 +3330,10 @@ func (m *MergedRecord) Size() (n int) { if m.SourceIndex != 0 { n += 1 + sovRaftServerpb(uint64(m.SourceIndex)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionLocalState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -4785,16 +3362,10 @@ func (m *RegionLocalState) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionSequenceNumberRelation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -4811,16 +3382,10 @@ func (m *RegionSequenceNumberRelation) Size() (n int) { l = m.RegionState.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AvailabilityContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FromRegionId != 0 { @@ -4836,31 +3401,19 @@ func (m *AvailabilityContext) Size() (n int) { if m.Trimmed { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlushMemtable) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { n += 1 + sovRaftServerpb(uint64(m.RegionId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RefreshBuckets) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != 0 { @@ -4872,16 +3425,10 @@ func (m *RefreshBuckets) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *CheckGcPeer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FromRegionId != 0 { @@ -4898,16 +3445,10 @@ func (m *CheckGcPeer) Size() (n int) { l = m.CheckPeer.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ExtraMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4944,14 +3485,18 @@ func (m *ExtraMessage) Size() (n int) { l = m.RefreshBuckets.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovRaftServerpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozRaftServerpb(x uint64) (n int) { return sovRaftServerpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -4971,7 +3516,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4999,7 +3544,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5018,7 +3563,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5027,9 +3572,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5054,7 +3596,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5063,9 +3605,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5090,7 +3629,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5099,9 +3638,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5126,7 +3662,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5135,9 +3671,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5162,7 +3695,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5182,7 +3715,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5191,9 +3724,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5216,7 +3746,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5225,9 +3755,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5250,7 +3777,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5259,9 +3786,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5286,7 +3810,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5295,9 +3819,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5322,7 +3843,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5331,9 +3852,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5356,7 +3874,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DiskUsage |= disk_usage.DiskUsage(b&0x7F) << shift + m.DiskUsage |= (disk_usage.DiskUsage(b) & 0x7F) << shift if b < 0x80 { break } @@ -5367,13 +3885,12 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5398,7 +3915,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5426,7 +3943,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5445,7 +3962,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= uint64(b&0x7F) << shift + m.Term |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5456,13 +3973,12 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5487,7 +4003,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5515,7 +4031,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5525,9 +4041,6 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5547,7 +4060,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift + m.Size_ |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5566,7 +4079,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= uint32(b&0x7F) << shift + m.Checksum |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -5577,13 +4090,12 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5608,7 +4120,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5636,7 +4148,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5645,9 +4157,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5670,7 +4179,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5690,7 +4199,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5710,7 +4219,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Start |= uint64(b&0x7F) << shift + m.Start |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5729,7 +4238,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GenerateDurationSec |= uint64(b&0x7F) << shift + m.GenerateDurationSec |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5748,7 +4257,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5758,9 +4267,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5780,7 +4286,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndexHint |= uint64(b&0x7F) << shift + m.CommitIndexHint |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5791,13 +4297,12 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5822,7 +4327,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5850,7 +4355,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5859,9 +4364,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5886,7 +4388,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5895,9 +4397,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5912,13 +4411,12 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5943,7 +4441,7 @@ func (m *Done) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5963,13 +4461,12 @@ func (m *Done) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5994,7 +4491,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6022,7 +4519,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= uint64(b&0x7F) << shift + m.FileSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6041,7 +4538,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6051,9 +4548,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6073,7 +4567,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6082,9 +4576,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6107,7 +4598,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6116,9 +4607,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6133,13 +4621,12 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6164,7 +4651,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6192,7 +4679,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6201,9 +4688,6 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6226,7 +4710,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6238,13 +4722,12 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6269,7 +4752,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6297,7 +4780,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= uint64(b&0x7F) << shift + m.FileSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6316,7 +4799,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6326,9 +4809,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6348,7 +4828,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6357,9 +4837,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6382,7 +4859,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6391,9 +4868,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6416,7 +4890,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6425,9 +4899,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6444,13 +4915,12 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6475,7 +4945,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6503,7 +4973,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6512,9 +4982,6 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6539,7 +5006,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6551,13 +5018,12 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6582,7 +5048,7 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6610,7 +5076,7 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= uint64(b&0x7F) << shift + m.Checksum |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6621,13 +5087,12 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6652,7 +5117,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6680,7 +5145,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6689,9 +5154,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6715,7 +5177,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6724,9 +5186,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6750,7 +5209,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6759,9 +5218,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6785,7 +5241,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6794,9 +5250,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6812,13 +5265,12 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6843,7 +5295,7 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6871,7 +5323,7 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6881,9 +5333,6 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6895,13 +5344,12 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6926,7 +5374,7 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6954,7 +5402,7 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6963,9 +5411,6 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6982,13 +5427,12 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7013,7 +5457,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7041,7 +5485,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7050,9 +5494,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7075,7 +5516,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7084,9 +5525,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7101,13 +5539,12 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7132,7 +5569,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7160,7 +5597,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7169,9 +5606,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7196,7 +5630,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= uint64(b&0x7F) << shift + m.FileSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7215,7 +5649,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7224,9 +5658,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7249,7 +5680,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7268,7 +5699,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7277,9 +5708,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7304,7 +5732,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7313,9 +5741,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7338,7 +5763,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7347,9 +5772,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7364,13 +5786,12 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7395,7 +5816,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7423,7 +5844,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7442,7 +5863,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7461,7 +5882,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift + m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift if b < 0x80 { break } @@ -7472,13 +5893,12 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7503,7 +5923,7 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7531,7 +5951,7 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Seqno |= uint64(b&0x7F) << shift + m.Seqno |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7542,13 +5962,12 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7573,7 +5992,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7601,7 +6020,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7610,9 +6029,6 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7637,7 +6053,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastIndex |= uint64(b&0x7F) << shift + m.LastIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7648,13 +6064,12 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7679,7 +6094,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7707,7 +6122,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7726,7 +6141,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7735,9 +6150,6 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7762,7 +6174,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastCommitIndex |= uint64(b&0x7F) << shift + m.LastCommitIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7781,7 +6193,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndex |= uint64(b&0x7F) << shift + m.CommitIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7800,7 +6212,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTerm |= uint64(b&0x7F) << shift + m.CommitTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7811,13 +6223,12 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7842,7 +6253,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7870,7 +6281,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinIndex |= uint64(b&0x7F) << shift + m.MinIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7889,7 +6300,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7898,9 +6309,6 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7925,7 +6333,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= uint64(b&0x7F) << shift + m.Commit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7936,13 +6344,12 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7967,7 +6374,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7995,7 +6402,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SourceRegionId |= uint64(b&0x7F) << shift + m.SourceRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8014,7 +6421,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8023,9 +6430,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8050,7 +6454,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8059,9 +6463,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8084,7 +6485,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TargetRegionId |= uint64(b&0x7F) << shift + m.TargetRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8103,7 +6504,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8112,9 +6513,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8139,7 +6537,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8148,9 +6546,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8173,7 +6568,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8192,7 +6587,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SourceIndex |= uint64(b&0x7F) << shift + m.SourceIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8203,13 +6598,12 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8234,7 +6628,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8262,7 +6656,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= PeerState(b&0x7F) << shift + m.State |= (PeerState(b) & 0x7F) << shift if b < 0x80 { break } @@ -8281,7 +6675,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8290,9 +6684,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8317,7 +6708,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8326,9 +6717,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8353,7 +6741,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletIndex |= uint64(b&0x7F) << shift + m.TabletIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8372,7 +6760,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8381,9 +6769,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8406,7 +6791,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8415,9 +6800,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8432,13 +6814,12 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8463,7 +6844,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8491,7 +6872,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8510,7 +6891,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SequenceNumber |= uint64(b&0x7F) << shift + m.SequenceNumber |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8529,7 +6910,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8538,9 +6919,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8565,7 +6943,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8574,9 +6952,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8593,13 +6968,12 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8624,7 +6998,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8652,7 +7026,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FromRegionId |= uint64(b&0x7F) << shift + m.FromRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8671,7 +7045,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8680,9 +7054,6 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8707,7 +7078,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8727,7 +7098,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8739,13 +7110,12 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8770,7 +7140,7 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8798,7 +7168,7 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8809,13 +7179,12 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8840,7 +7209,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8868,7 +7237,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8887,7 +7256,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8896,9 +7265,6 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8911,13 +7277,12 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8942,7 +7307,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8970,7 +7335,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FromRegionId |= uint64(b&0x7F) << shift + m.FromRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8989,7 +7354,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CheckRegionId |= uint64(b&0x7F) << shift + m.CheckRegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9008,7 +7373,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9017,9 +7382,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9044,7 +7406,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9053,9 +7415,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9072,13 +7431,12 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9103,7 +7461,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9131,7 +7489,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ExtraMessageType(b&0x7F) << shift + m.Type |= (ExtraMessageType(b) & 0x7F) << shift if b < 0x80 { break } @@ -9150,7 +7508,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= uint64(b&0x7F) << shift + m.Index |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9169,7 +7527,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9178,9 +7536,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9203,7 +7558,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9223,7 +7578,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9243,7 +7598,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9252,9 +7607,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9279,7 +7631,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9288,9 +7640,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9315,7 +7664,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9324,9 +7673,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9351,7 +7697,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9360,9 +7706,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9379,13 +7722,12 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9398,7 +7740,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { func skipRaftServerpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -9430,8 +7771,10 @@ func skipRaftServerpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -9448,34 +7791,203 @@ func skipRaftServerpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthRaftServerpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRaftServerpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRaftServerpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipRaftServerpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthRaftServerpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthRaftServerpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRaftServerpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRaftServerpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthRaftServerpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRaftServerpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("raft_serverpb.proto", fileDescriptorRaftServerpb) } + +var fileDescriptorRaftServerpb = []byte{ + // 2293 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xcd, 0x73, 0x1b, 0x49, + 0x15, 0xb7, 0x3e, 0xac, 0x8f, 0xa7, 0x0f, 0xcb, 0xed, 0x78, 0xa3, 0x8d, 0x37, 0x89, 0x33, 0xbb, + 0x49, 0xbc, 0x59, 0x70, 0x6a, 0xbd, 0x61, 0xd9, 0x5a, 0xaa, 0x02, 0xb6, 0x93, 0xe0, 0x10, 0x94, + 0x4a, 0xb5, 0x9d, 0xa4, 0x38, 0x4d, 0xb5, 0x66, 0x9e, 0xa4, 0x41, 0xf3, 0xb5, 0xd3, 0x2d, 0x25, + 0xa2, 0xf8, 0x2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, 0xf4, + 0x67, 0xc9, 0x24, 0x74, 0x98, 0x40, 0xf7, 0x54, 0x30, 0x81, 0xe4, 0x12, 0xac, 0x7b, 0xa1, 0x8b, + 0xaf, 0x4d, 0xf4, 0xf5, 0x84, 0x10, 0x28, 0x0b, 0x4c, 0x02, 0x15, 0xf5, 0x32, 0x55, 0x63, 0xeb, + 0x19, 0xb4, 0x4f, 0x43, 0x16, 0xf3, 0x51, 0x24, 0x8e, 0x1f, 0x3d, 0xf2, 0x7c, 0x24, 0x6d, 0x28, + 0x3a, 0x03, 0xa5, 0x58, 0xa7, 0x45, 0x67, 0x20, 0xb5, 0xb8, 0xf7, 0x0b, 0x4c, 0xb5, 0xe4, 0x98, + 0x5c, 0x81, 0x9a, 0x33, 0x42, 0x67, 0xcc, 0x27, 0x81, 0x82, 0x46, 0x8b, 0xce, 0xe7, 0xd6, 0x6f, + 0x8b, 0xd0, 0x4c, 0x97, 0xec, 0xa1, 0x60, 0xe4, 0x2b, 0xa8, 0x39, 0x03, 0x7b, 0xe0, 0xf9, 0xc8, + 0xbb, 0x85, 0xdd, 0xd2, 0x5e, 0xe3, 0xe0, 0xea, 0x92, 0xbb, 0xf2, 0x16, 0xd0, 0xaa, 0x33, 0x90, + 0x5f, 0x4e, 0xae, 0x43, 0x63, 0x10, 0x25, 0x76, 0x9f, 0xf9, 0x2c, 0x74, 0xb4, 0x05, 0x35, 0x0a, + 0x83, 0x28, 0x39, 0xd2, 0x94, 0x54, 0xe0, 0x95, 0x27, 0x42, 0xe4, 0x5c, 0x99, 0xa2, 0x05, 0x5e, + 0x6a, 0x8a, 0x74, 0x84, 0xc2, 0x80, 0x42, 0x66, 0x99, 0xea, 0x09, 0x39, 0x80, 0xed, 0x21, 0x86, + 0x98, 0x30, 0x81, 0xb6, 0x3b, 0x49, 0x98, 0x4c, 0x2f, 0x9b, 0xa3, 0xa3, 0xe0, 0x58, 0xa6, 0x5b, + 0x29, 0xf3, 0x81, 0xe1, 0x9d, 0xa2, 0x43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6, 0x5a, 0xe1, 0x6f, 0x6f, 0xae, 0x15, + 0xbe, 0xfd, 0xfb, 0xb5, 0x35, 0xe8, 0x44, 0xc9, 0x70, 0x5f, 0x78, 0xe3, 0xe9, 0xfe, 0x78, 0xaa, + 0x7e, 0xd3, 0xf6, 0x2b, 0xea, 0xf3, 0xc5, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x7b, 0xd2, + 0x14, 0x36, 0x16, 0x00, 0x00, +} diff --git a/pkg/recoverdatapb/recoverdatapb.pb.go b/pkg/recoverdatapb/recoverdatapb.pb.go index 5783f762b..2e50cb876 100644 --- a/pkg/recoverdatapb/recoverdatapb.pb.go +++ b/pkg/recoverdatapb/recoverdatapb.pb.go @@ -1,20 +1,38 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: recoverdatapb.proto +/* +Package recover_data is a generated protocol buffer package. + +It is generated from these files: + + recoverdatapb.proto + +It has these top-level messages: + + ReadRegionMetaRequest + Error + RegionMeta + RecoverRegionRequest + RecoverRegionResponse + WaitApplyRequest + WaitApplyResponse + ResolveKvDataRequest + ResolveKvDataResponse +*/ package recover_data import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,48 +44,19 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // request to read region meata from a store type ReadRegionMetaRequest struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } func (m *ReadRegionMetaRequest) Reset() { *m = ReadRegionMetaRequest{} } func (m *ReadRegionMetaRequest) String() string { return proto.CompactTextString(m) } func (*ReadRegionMetaRequest) ProtoMessage() {} func (*ReadRegionMetaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{0} -} -func (m *ReadRegionMetaRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReadRegionMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReadRegionMetaRequest.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 *ReadRegionMetaRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadRegionMetaRequest.Merge(m, src) -} -func (m *ReadRegionMetaRequest) XXX_Size() int { - return m.Size() + return fileDescriptorRecoverdatapb, []int{0} } -func (m *ReadRegionMetaRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadRegionMetaRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReadRegionMetaRequest proto.InternalMessageInfo func (m *ReadRegionMetaRequest) GetStoreId() uint64 { if m != nil { @@ -77,44 +66,13 @@ func (m *ReadRegionMetaRequest) GetStoreId() uint64 { } type Error struct { - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{1} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{1} } func (m *Error) GetMsg() string { if m != nil { @@ -124,52 +82,21 @@ func (m *Error) GetMsg() string { } type RegionMeta struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - LastLogTerm uint64 `protobuf:"varint,3,opt,name=last_log_term,json=lastLogTerm,proto3" json:"last_log_term,omitempty"` - LastIndex uint64 `protobuf:"varint,4,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` - CommitIndex uint64 `protobuf:"varint,5,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` - Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - Tombstone bool `protobuf:"varint,7,opt,name=tombstone,proto3" json:"tombstone,omitempty"` - StartKey []byte `protobuf:"bytes,8,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,9,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionMeta) Reset() { *m = RegionMeta{} } -func (m *RegionMeta) String() string { return proto.CompactTextString(m) } -func (*RegionMeta) ProtoMessage() {} -func (*RegionMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{2} -} -func (m *RegionMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionMeta.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 *RegionMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionMeta.Merge(m, src) -} -func (m *RegionMeta) XXX_Size() int { - return m.Size() -} -func (m *RegionMeta) XXX_DiscardUnknown() { - xxx_messageInfo_RegionMeta.DiscardUnknown(m) -} - -var xxx_messageInfo_RegionMeta proto.InternalMessageInfo + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + LastLogTerm uint64 `protobuf:"varint,3,opt,name=last_log_term,json=lastLogTerm,proto3" json:"last_log_term,omitempty"` + LastIndex uint64 `protobuf:"varint,4,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` + CommitIndex uint64 `protobuf:"varint,5,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` + Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + Tombstone bool `protobuf:"varint,7,opt,name=tombstone,proto3" json:"tombstone,omitempty"` + StartKey []byte `protobuf:"bytes,8,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,9,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` +} + +func (m *RegionMeta) Reset() { *m = RegionMeta{} } +func (m *RegionMeta) String() string { return proto.CompactTextString(m) } +func (*RegionMeta) ProtoMessage() {} +func (*RegionMeta) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{2} } func (m *RegionMeta) GetRegionId() uint64 { if m != nil { @@ -236,47 +163,18 @@ func (m *RegionMeta) GetEndKey() []byte { // command to store for recover region type RecoverRegionRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - AsLeader bool `protobuf:"varint,2,opt,name=as_leader,json=asLeader,proto3" json:"as_leader,omitempty"` - Tombstone bool `protobuf:"varint,3,opt,name=tombstone,proto3" json:"tombstone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + AsLeader bool `protobuf:"varint,2,opt,name=as_leader,json=asLeader,proto3" json:"as_leader,omitempty"` + Tombstone bool `protobuf:"varint,3,opt,name=tombstone,proto3" json:"tombstone,omitempty"` } func (m *RecoverRegionRequest) Reset() { *m = RecoverRegionRequest{} } func (m *RecoverRegionRequest) String() string { return proto.CompactTextString(m) } func (*RecoverRegionRequest) ProtoMessage() {} func (*RecoverRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{3} -} -func (m *RecoverRegionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoverRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoverRegionRequest.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 *RecoverRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoverRegionRequest.Merge(m, src) -} -func (m *RecoverRegionRequest) XXX_Size() int { - return m.Size() -} -func (m *RecoverRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecoverRegionRequest.DiscardUnknown(m) + return fileDescriptorRecoverdatapb, []int{3} } -var xxx_messageInfo_RecoverRegionRequest proto.InternalMessageInfo - func (m *RecoverRegionRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -299,46 +197,17 @@ func (m *RecoverRegionRequest) GetTombstone() bool { } type RecoverRegionResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } func (m *RecoverRegionResponse) Reset() { *m = RecoverRegionResponse{} } func (m *RecoverRegionResponse) String() string { return proto.CompactTextString(m) } func (*RecoverRegionResponse) ProtoMessage() {} func (*RecoverRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{4} -} -func (m *RecoverRegionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecoverRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecoverRegionResponse.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 *RecoverRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecoverRegionResponse.Merge(m, src) -} -func (m *RecoverRegionResponse) XXX_Size() int { - return m.Size() -} -func (m *RecoverRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecoverRegionResponse.DiscardUnknown(m) + return fileDescriptorRecoverdatapb, []int{4} } -var xxx_messageInfo_RecoverRegionResponse proto.InternalMessageInfo - func (m *RecoverRegionResponse) GetError() *Error { if m != nil { return m.Error @@ -355,44 +224,13 @@ func (m *RecoverRegionResponse) GetStoreId() uint64 { // wait apply to last index type WaitApplyRequest struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WaitApplyRequest) Reset() { *m = WaitApplyRequest{} } -func (m *WaitApplyRequest) String() string { return proto.CompactTextString(m) } -func (*WaitApplyRequest) ProtoMessage() {} -func (*WaitApplyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{5} -} -func (m *WaitApplyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WaitApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WaitApplyRequest.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 *WaitApplyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WaitApplyRequest.Merge(m, src) -} -func (m *WaitApplyRequest) XXX_Size() int { - return m.Size() -} -func (m *WaitApplyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WaitApplyRequest.DiscardUnknown(m) + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` } -var xxx_messageInfo_WaitApplyRequest proto.InternalMessageInfo +func (m *WaitApplyRequest) Reset() { *m = WaitApplyRequest{} } +func (m *WaitApplyRequest) String() string { return proto.CompactTextString(m) } +func (*WaitApplyRequest) ProtoMessage() {} +func (*WaitApplyRequest) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{5} } func (m *WaitApplyRequest) GetStoreId() uint64 { if m != nil { @@ -402,44 +240,13 @@ func (m *WaitApplyRequest) GetStoreId() uint64 { } type WaitApplyResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WaitApplyResponse) Reset() { *m = WaitApplyResponse{} } -func (m *WaitApplyResponse) String() string { return proto.CompactTextString(m) } -func (*WaitApplyResponse) ProtoMessage() {} -func (*WaitApplyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{6} -} -func (m *WaitApplyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WaitApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WaitApplyResponse.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 *WaitApplyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WaitApplyResponse.Merge(m, src) -} -func (m *WaitApplyResponse) XXX_Size() int { - return m.Size() -} -func (m *WaitApplyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WaitApplyResponse.DiscardUnknown(m) + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` } -var xxx_messageInfo_WaitApplyResponse proto.InternalMessageInfo +func (m *WaitApplyResponse) Reset() { *m = WaitApplyResponse{} } +func (m *WaitApplyResponse) String() string { return proto.CompactTextString(m) } +func (*WaitApplyResponse) ProtoMessage() {} +func (*WaitApplyResponse) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{6} } func (m *WaitApplyResponse) GetError() *Error { if m != nil { @@ -450,45 +257,16 @@ func (m *WaitApplyResponse) GetError() *Error { // resolve data by resolved_ts type ResolveKvDataRequest struct { - ResolvedTs uint64 `protobuf:"varint,1,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResolvedTs uint64 `protobuf:"varint,1,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` } func (m *ResolveKvDataRequest) Reset() { *m = ResolveKvDataRequest{} } func (m *ResolveKvDataRequest) String() string { return proto.CompactTextString(m) } func (*ResolveKvDataRequest) ProtoMessage() {} func (*ResolveKvDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{7} -} -func (m *ResolveKvDataRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResolveKvDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResolveKvDataRequest.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 *ResolveKvDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveKvDataRequest.Merge(m, src) -} -func (m *ResolveKvDataRequest) XXX_Size() int { - return m.Size() -} -func (m *ResolveKvDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveKvDataRequest.DiscardUnknown(m) + return fileDescriptorRecoverdatapb, []int{7} } -var xxx_messageInfo_ResolveKvDataRequest proto.InternalMessageInfo - func (m *ResolveKvDataRequest) GetResolvedTs() uint64 { if m != nil { return m.ResolvedTs @@ -497,50 +275,21 @@ func (m *ResolveKvDataRequest) GetResolvedTs() uint64 { } type ResolveKvDataResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` ResolvedKeyCount uint64 `protobuf:"varint,3,opt,name=resolved_key_count,json=resolvedKeyCount,proto3" json:"resolved_key_count,omitempty"` // cursor of delete key.commit_ts, reserved for progress of restore // progress is (current_commit_ts - resolved_ts) / (backup_ts - resolved_ts) x 100% - CurrentCommitTs uint64 `protobuf:"varint,4,opt,name=current_commit_ts,json=currentCommitTs,proto3" json:"current_commit_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CurrentCommitTs uint64 `protobuf:"varint,4,opt,name=current_commit_ts,json=currentCommitTs,proto3" json:"current_commit_ts,omitempty"` } func (m *ResolveKvDataResponse) Reset() { *m = ResolveKvDataResponse{} } func (m *ResolveKvDataResponse) String() string { return proto.CompactTextString(m) } func (*ResolveKvDataResponse) ProtoMessage() {} func (*ResolveKvDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6853a92ee81110ca, []int{8} -} -func (m *ResolveKvDataResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResolveKvDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResolveKvDataResponse.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 *ResolveKvDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResolveKvDataResponse.Merge(m, src) -} -func (m *ResolveKvDataResponse) XXX_Size() int { - return m.Size() -} -func (m *ResolveKvDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResolveKvDataResponse.DiscardUnknown(m) + return fileDescriptorRecoverdatapb, []int{8} } -var xxx_messageInfo_ResolveKvDataResponse proto.InternalMessageInfo - func (m *ResolveKvDataResponse) GetError() *Error { if m != nil { return m.Error @@ -581,50 +330,6 @@ func init() { proto.RegisterType((*ResolveKvDataResponse)(nil), "recover_data.ResolveKvDataResponse") } -func init() { proto.RegisterFile("recoverdatapb.proto", fileDescriptor_6853a92ee81110ca) } - -var fileDescriptor_6853a92ee81110ca = []byte{ - // 608 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x41, 0x6e, 0xd3, 0x40, - 0x14, 0xad, 0xd3, 0x36, 0xb1, 0x7f, 0x5a, 0xda, 0x4e, 0x8b, 0x70, 0x53, 0x48, 0x83, 0xbb, 0x09, - 0x08, 0x02, 0x0a, 0x0b, 0x76, 0x48, 0x50, 0x58, 0x44, 0x29, 0x2c, 0x4c, 0x24, 0x36, 0x20, 0xcb, - 0x89, 0xbf, 0x2c, 0xab, 0xb1, 0xc7, 0xcc, 0x4c, 0x22, 0x7c, 0x11, 0xc4, 0x11, 0xb8, 0x01, 0x57, - 0x60, 0xc9, 0x92, 0x25, 0x0a, 0x7b, 0xce, 0x80, 0x66, 0xc6, 0x6e, 0xe2, 0xa4, 0x54, 0x20, 0xb1, - 0x9b, 0xff, 0xde, 0xf3, 0xcc, 0x9f, 0xf7, 0xdf, 0x18, 0xf6, 0x19, 0x8e, 0xe8, 0x14, 0x59, 0xe0, - 0x0b, 0x3f, 0x1d, 0x76, 0x52, 0x46, 0x05, 0x25, 0x5b, 0x39, 0xe8, 0x49, 0xb4, 0x71, 0x10, 0xd2, - 0x90, 0x2a, 0xe2, 0x81, 0x5c, 0x69, 0x4d, 0x63, 0x87, 0x4d, 0xb8, 0x50, 0x4b, 0x0d, 0x38, 0x5d, - 0xb8, 0xee, 0xa2, 0x1f, 0xb8, 0x18, 0x46, 0x34, 0x79, 0x89, 0xc2, 0x77, 0xf1, 0xfd, 0x04, 0xb9, - 0x20, 0x87, 0x60, 0x72, 0x41, 0x19, 0x7a, 0x51, 0x60, 0x1b, 0x2d, 0xa3, 0xbd, 0xe1, 0xd6, 0x54, - 0xdd, 0x0b, 0x9c, 0x43, 0xd8, 0x7c, 0xc1, 0x18, 0x65, 0x64, 0x17, 0xd6, 0x63, 0x1e, 0x2a, 0xda, - 0x72, 0xe5, 0xd2, 0xf9, 0x58, 0x01, 0x98, 0xef, 0x45, 0x8e, 0xc0, 0x62, 0xaa, 0x9a, 0xef, 0x62, - 0x6a, 0xa0, 0x17, 0x90, 0x1b, 0x50, 0x4b, 0x11, 0x99, 0xa4, 0x2a, 0x8a, 0xaa, 0xca, 0xb2, 0x17, - 0x10, 0x07, 0xb6, 0xc7, 0x3e, 0x17, 0xde, 0x98, 0x86, 0x9e, 0x40, 0x16, 0xdb, 0xeb, 0x8a, 0xae, - 0x4b, 0xf0, 0x8c, 0x86, 0x03, 0x64, 0x31, 0xb9, 0x05, 0xa0, 0x34, 0x51, 0x12, 0xe0, 0x07, 0x7b, - 0x43, 0x09, 0x2c, 0x89, 0xf4, 0x24, 0x40, 0x6e, 0xc3, 0xd6, 0x88, 0xc6, 0x71, 0x54, 0x08, 0x36, - 0xf5, 0x0e, 0x1a, 0xd3, 0x12, 0x1b, 0x6a, 0x53, 0x64, 0x3c, 0xa2, 0x89, 0x5d, 0xd5, 0xf7, 0xcb, - 0x4b, 0x72, 0x13, 0x2c, 0x41, 0xe3, 0x21, 0x17, 0x34, 0x41, 0xbb, 0xd6, 0x32, 0xda, 0xa6, 0x3b, - 0x07, 0xe4, 0x9d, 0xb8, 0xf0, 0x99, 0xf0, 0xce, 0x31, 0xb3, 0xcd, 0x96, 0xd1, 0xde, 0x72, 0x4d, - 0x05, 0xf4, 0x31, 0x93, 0x77, 0xc2, 0x24, 0x50, 0x94, 0xa5, 0xa8, 0x2a, 0x26, 0x41, 0x1f, 0x33, - 0x27, 0x81, 0x03, 0x57, 0x8f, 0x47, 0xdb, 0x53, 0xd8, 0x7c, 0xa5, 0x43, 0x47, 0x60, 0xf9, 0xdc, - 0x1b, 0xa3, 0x1f, 0x20, 0x53, 0x1e, 0x99, 0xae, 0xe9, 0xf3, 0x33, 0x55, 0x97, 0xbb, 0x5c, 0x5f, - 0xea, 0xd2, 0x79, 0x27, 0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0x05, 0xd6, 0xc5, 0xd4, 0x49, 0xb3, 0xfc, 0xd5, - 0x72, 0x7a, 0x1a, 0xc7, 0x7f, 0xe4, 0x8b, 0x1d, 0x75, 0xb7, 0x0b, 0xb3, 0x5c, 0xed, 0x76, 0x35, - 0x22, 0xab, 0xdd, 0x5e, 0x12, 0x06, 0xe9, 0xc5, 0xb3, 0x83, 0xef, 0x9f, 0x4d, 0xe3, 0xeb, 0xac, - 0x69, 0x7c, 0x9b, 0x35, 0x8d, 0x1f, 0xb3, 0xa6, 0xf1, 0xe9, 0x67, 0x73, 0x6d, 0x58, 0x55, 0xbf, - 0xc9, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0xe7, 0x69, 0x54, 0x72, 0x05, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -633,9 +338,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// RecoverDataClient is the client API for RecoverData service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for RecoverData service + type RecoverDataClient interface { // read region meta to ready region meta ReadRegionMeta(ctx context.Context, in *ReadRegionMetaRequest, opts ...grpc.CallOption) (RecoverData_ReadRegionMetaClient, error) @@ -656,7 +360,7 @@ func NewRecoverDataClient(cc *grpc.ClientConn) RecoverDataClient { } func (c *recoverDataClient) ReadRegionMeta(ctx context.Context, in *ReadRegionMetaRequest, opts ...grpc.CallOption) (RecoverData_ReadRegionMetaClient, error) { - stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[0], "/recover_data.RecoverData/ReadRegionMeta", opts...) + stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[0], c.cc, "/recover_data.RecoverData/ReadRegionMeta", opts...) if err != nil { return nil, err } @@ -688,7 +392,7 @@ func (x *recoverDataReadRegionMetaClient) Recv() (*RegionMeta, error) { } func (c *recoverDataClient) RecoverRegion(ctx context.Context, opts ...grpc.CallOption) (RecoverData_RecoverRegionClient, error) { - stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[1], "/recover_data.RecoverData/RecoverRegion", opts...) + stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[1], c.cc, "/recover_data.RecoverData/RecoverRegion", opts...) if err != nil { return nil, err } @@ -723,7 +427,7 @@ func (x *recoverDataRecoverRegionClient) CloseAndRecv() (*RecoverRegionResponse, func (c *recoverDataClient) WaitApply(ctx context.Context, in *WaitApplyRequest, opts ...grpc.CallOption) (*WaitApplyResponse, error) { out := new(WaitApplyResponse) - err := c.cc.Invoke(ctx, "/recover_data.RecoverData/WaitApply", in, out, opts...) + err := grpc.Invoke(ctx, "/recover_data.RecoverData/WaitApply", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -731,7 +435,7 @@ func (c *recoverDataClient) WaitApply(ctx context.Context, in *WaitApplyRequest, } func (c *recoverDataClient) ResolveKvData(ctx context.Context, in *ResolveKvDataRequest, opts ...grpc.CallOption) (RecoverData_ResolveKvDataClient, error) { - stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[2], "/recover_data.RecoverData/ResolveKvData", opts...) + stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[2], c.cc, "/recover_data.RecoverData/ResolveKvData", opts...) if err != nil { return nil, err } @@ -762,7 +466,8 @@ func (x *recoverDataResolveKvDataClient) Recv() (*ResolveKvDataResponse, error) return m, nil } -// RecoverDataServer is the server API for RecoverData service. +// Server API for RecoverData service + type RecoverDataServer interface { // read region meta to ready region meta ReadRegionMeta(*ReadRegionMetaRequest, RecoverData_ReadRegionMetaServer) error @@ -774,23 +479,6 @@ type RecoverDataServer interface { ResolveKvData(*ResolveKvDataRequest, RecoverData_ResolveKvDataServer) error } -// UnimplementedRecoverDataServer can be embedded to have forward compatible implementations. -type UnimplementedRecoverDataServer struct { -} - -func (*UnimplementedRecoverDataServer) ReadRegionMeta(req *ReadRegionMetaRequest, srv RecoverData_ReadRegionMetaServer) error { - return status.Errorf(codes.Unimplemented, "method ReadRegionMeta not implemented") -} -func (*UnimplementedRecoverDataServer) RecoverRegion(srv RecoverData_RecoverRegionServer) error { - return status.Errorf(codes.Unimplemented, "method RecoverRegion not implemented") -} -func (*UnimplementedRecoverDataServer) WaitApply(ctx context.Context, req *WaitApplyRequest) (*WaitApplyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WaitApply not implemented") -} -func (*UnimplementedRecoverDataServer) ResolveKvData(req *ResolveKvDataRequest, srv RecoverData_ResolveKvDataServer) error { - return status.Errorf(codes.Unimplemented, "method ResolveKvData not implemented") -} - func RegisterRecoverDataServer(s *grpc.Server, srv RecoverDataServer) { s.RegisterService(&_RecoverData_serviceDesc, srv) } @@ -913,7 +601,7 @@ var _RecoverData_serviceDesc = grpc.ServiceDesc{ func (m *ReadRegionMetaRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -921,31 +609,22 @@ func (m *ReadRegionMetaRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadRegionMetaRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReadRegionMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.StoreId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -953,33 +632,23 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Msg) > 0 { - i -= len(m.Msg) - copy(dAtA[i:], m.Msg) - i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.Msg))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.Msg))) + i += copy(dAtA[i:], m.Msg) } - return len(dAtA) - i, nil + return i, nil } func (m *RegionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -987,80 +656,69 @@ func (m *RegionMeta) Marshal() (dAtA []byte, err error) { } func (m *RegionMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x4a + if m.PeerId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.PeerId)) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x42 + if m.LastLogTerm != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastLogTerm)) + } + if m.LastIndex != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastIndex)) + } + if m.CommitIndex != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CommitIndex)) + } + if m.Version != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Version)) } if m.Tombstone { - i-- + dAtA[i] = 0x38 + i++ if m.Tombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 - } - if m.Version != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x30 - } - if m.CommitIndex != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CommitIndex)) - i-- - dAtA[i] = 0x28 - } - if m.LastIndex != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastIndex)) - i-- - dAtA[i] = 0x20 - } - if m.LastLogTerm != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastLogTerm)) - i-- - dAtA[i] = 0x18 + i++ } - if m.PeerId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x10 + if len(m.StartKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if m.RegionId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if len(m.EndKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - return len(dAtA) - i, nil + return i, nil } func (m *RecoverRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1068,51 +726,42 @@ func (m *RecoverRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *RecoverRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoverRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) } - if m.Tombstone { - i-- - if m.Tombstone { + if m.AsLeader { + dAtA[i] = 0x10 + i++ + if m.AsLeader { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.AsLeader { - i-- - if m.AsLeader { + if m.Tombstone { + dAtA[i] = 0x18 + i++ + if m.Tombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if m.RegionId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RecoverRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1120,43 +769,32 @@ func (m *RecoverRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *RecoverRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoverRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) + n1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if m.StoreId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *WaitApplyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1164,31 +802,22 @@ func (m *WaitApplyRequest) Marshal() (dAtA []byte, err error) { } func (m *WaitApplyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WaitApplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.StoreId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) } - return len(dAtA) - i, nil + return i, nil } func (m *WaitApplyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1196,38 +825,27 @@ func (m *WaitApplyResponse) Marshal() (dAtA []byte, err error) { } func (m *WaitApplyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WaitApplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *ResolveKvDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1235,31 +853,22 @@ func (m *ResolveKvDataRequest) Marshal() (dAtA []byte, err error) { } func (m *ResolveKvDataRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResolveKvDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.ResolvedTs != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedTs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *ResolveKvDataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1267,95 +876,67 @@ func (m *ResolveKvDataResponse) Marshal() (dAtA []byte, err error) { } func (m *ResolveKvDataResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResolveKvDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) + n3, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - if m.CurrentCommitTs != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CurrentCommitTs)) - i-- - dAtA[i] = 0x20 + if m.StoreId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) } if m.ResolvedKeyCount != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedKeyCount)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedKeyCount)) } - if m.StoreId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x10 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.CurrentCommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CurrentCommitTs)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintRecoverdatapb(dAtA []byte, offset int, v uint64) int { - offset -= sovRecoverdatapb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *ReadRegionMetaRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) if l > 0 { n += 1 + l + sovRecoverdatapb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1387,16 +968,10 @@ func (m *RegionMeta) Size() (n int) { if l > 0 { n += 1 + l + sovRecoverdatapb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoverRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1408,16 +983,10 @@ func (m *RecoverRegionRequest) Size() (n int) { if m.Tombstone { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RecoverRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1427,62 +996,38 @@ func (m *RecoverRegionResponse) Size() (n int) { if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WaitApplyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *WaitApplyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovRecoverdatapb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResolveKvDataRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ResolvedTs != 0 { n += 1 + sovRecoverdatapb(uint64(m.ResolvedTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResolveKvDataResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1498,14 +1043,18 @@ func (m *ResolveKvDataResponse) Size() (n int) { if m.CurrentCommitTs != 0 { n += 1 + sovRecoverdatapb(uint64(m.CurrentCommitTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovRecoverdatapb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozRecoverdatapb(x uint64) (n int) { return sovRecoverdatapb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1525,7 +1074,7 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1553,7 +1102,7 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1564,13 +1113,12 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1595,7 +1143,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1623,7 +1171,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1633,9 +1181,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1647,13 +1192,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1678,7 +1222,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1706,7 +1250,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1725,7 +1269,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + m.PeerId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1744,7 +1288,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastLogTerm |= uint64(b&0x7F) << shift + m.LastLogTerm |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1763,7 +1307,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastIndex |= uint64(b&0x7F) << shift + m.LastIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1782,7 +1326,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndex |= uint64(b&0x7F) << shift + m.CommitIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1801,7 +1345,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1820,7 +1364,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1840,7 +1384,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1849,9 +1393,6 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1874,7 +1415,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1883,9 +1424,6 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1900,13 +1438,12 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1931,7 +1468,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1959,7 +1496,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1978,7 +1515,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1998,7 +1535,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2010,13 +1547,12 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2041,7 +1577,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2069,7 +1605,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2078,9 +1614,6 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2105,7 +1638,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2116,13 +1649,12 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2147,7 +1679,7 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2175,7 +1707,7 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2186,13 +1718,12 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2217,7 +1748,7 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2245,7 +1776,7 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2254,9 +1785,6 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2273,13 +1801,12 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2304,7 +1831,7 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2332,7 +1859,7 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.ResolvedTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2343,13 +1870,12 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2374,7 +1900,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2402,7 +1928,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2411,9 +1937,6 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRecoverdatapb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2438,7 +1961,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2457,7 +1980,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedKeyCount |= uint64(b&0x7F) << shift + m.ResolvedKeyCount |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2476,7 +1999,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentCommitTs |= uint64(b&0x7F) << shift + m.CurrentCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2487,13 +2010,12 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2506,7 +2028,6 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { func skipRecoverdatapb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2538,8 +2059,10 @@ func skipRecoverdatapb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2556,34 +2079,97 @@ func skipRecoverdatapb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthRecoverdatapb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRecoverdatapb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRecoverdatapb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipRecoverdatapb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthRecoverdatapb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthRecoverdatapb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRecoverdatapb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRecoverdatapb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthRecoverdatapb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRecoverdatapb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("recoverdatapb.proto", fileDescriptorRecoverdatapb) } + +var fileDescriptorRecoverdatapb = []byte{ + // 608 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x41, 0x6e, 0xd3, 0x40, + 0x14, 0xad, 0xd3, 0x36, 0xb1, 0x7f, 0x5a, 0xda, 0x4e, 0x8b, 0x70, 0x53, 0x48, 0x83, 0xbb, 0x09, + 0x08, 0x02, 0x0a, 0x0b, 0x76, 0x48, 0x50, 0x58, 0x44, 0x29, 0x2c, 0x4c, 0x24, 0x36, 0x20, 0xcb, + 0x89, 0xbf, 0x2c, 0xab, 0xb1, 0xc7, 0xcc, 0x4c, 0x22, 0x7c, 0x11, 0xc4, 0x11, 0xb8, 0x01, 0x57, + 0x60, 0xc9, 0x92, 0x25, 0x0a, 0x7b, 0xce, 0x80, 0x66, 0xc6, 0x6e, 0xe2, 0xa4, 0x54, 0x20, 0xb1, + 0x9b, 0xff, 0xde, 0xf3, 0xcc, 0x9f, 0xf7, 0xdf, 0x18, 0xf6, 0x19, 0x8e, 0xe8, 0x14, 0x59, 0xe0, + 0x0b, 0x3f, 0x1d, 0x76, 0x52, 0x46, 0x05, 0x25, 0x5b, 0x39, 0xe8, 0x49, 0xb4, 0x71, 0x10, 0xd2, + 0x90, 0x2a, 0xe2, 0x81, 0x5c, 0x69, 0x4d, 0x63, 0x87, 0x4d, 0xb8, 0x50, 0x4b, 0x0d, 0x38, 0x5d, + 0xb8, 0xee, 0xa2, 0x1f, 0xb8, 0x18, 0x46, 0x34, 0x79, 0x89, 0xc2, 0x77, 0xf1, 0xfd, 0x04, 0xb9, + 0x20, 0x87, 0x60, 0x72, 0x41, 0x19, 0x7a, 0x51, 0x60, 0x1b, 0x2d, 0xa3, 0xbd, 0xe1, 0xd6, 0x54, + 0xdd, 0x0b, 0x9c, 0x43, 0xd8, 0x7c, 0xc1, 0x18, 0x65, 0x64, 0x17, 0xd6, 0x63, 0x1e, 0x2a, 0xda, + 0x72, 0xe5, 0xd2, 0xf9, 0x58, 0x01, 0x98, 0xef, 0x45, 0x8e, 0xc0, 0x62, 0xaa, 0x9a, 0xef, 0x62, + 0x6a, 0xa0, 0x17, 0x90, 0x1b, 0x50, 0x4b, 0x11, 0x99, 0xa4, 0x2a, 0x8a, 0xaa, 0xca, 0xb2, 0x17, + 0x10, 0x07, 0xb6, 0xc7, 0x3e, 0x17, 0xde, 0x98, 0x86, 0x9e, 0x40, 0x16, 0xdb, 0xeb, 0x8a, 0xae, + 0x4b, 0xf0, 0x8c, 0x86, 0x03, 0x64, 0x31, 0xb9, 0x05, 0xa0, 0x34, 0x51, 0x12, 0xe0, 0x07, 0x7b, + 0x43, 0x09, 0x2c, 0x89, 0xf4, 0x24, 0x40, 0x6e, 0xc3, 0xd6, 0x88, 0xc6, 0x71, 0x54, 0x08, 0x36, + 0xf5, 0x0e, 0x1a, 0xd3, 0x12, 0x1b, 0x6a, 0x53, 0x64, 0x3c, 0xa2, 0x89, 0x5d, 0xd5, 0xf7, 0xcb, + 0x4b, 0x72, 0x13, 0x2c, 0x41, 0xe3, 0x21, 0x17, 0x34, 0x41, 0xbb, 0xd6, 0x32, 0xda, 0xa6, 0x3b, + 0x07, 0xe4, 0x9d, 0xb8, 0xf0, 0x99, 0xf0, 0xce, 0x31, 0xb3, 0xcd, 0x96, 0xd1, 0xde, 0x72, 0x4d, + 0x05, 0xf4, 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a, 0xd4, 0xf3, 0x09, 0xca, 0xbe, 0xc9, 0x6b, 0xb8, + 0x56, 0x7e, 0xa8, 0xe4, 0xa4, 0xdc, 0xf2, 0xa5, 0xcf, 0xb8, 0x61, 0x2f, 0x8b, 0x0a, 0x81, 0xb3, + 0xf6, 0xd0, 0x20, 0x6f, 0x61, 0xbb, 0x94, 0x12, 0xe2, 0x2c, 0xcb, 0x57, 0x23, 0xdb, 0x38, 0xb9, + 0x52, 0xa3, 0xed, 0x75, 0xd6, 0xda, 0x06, 0x79, 0x05, 0xd6, 0xc5, 0xd4, 0x49, 0xb3, 0xfc, 0xd5, + 0x72, 0x7a, 0x1a, 0xc7, 0x7f, 0xe4, 0x8b, 0x1d, 0x75, 0xb7, 0x0b, 0xb3, 0x5c, 0xed, 0x76, 0x35, + 0x22, 0xab, 0xdd, 0x5e, 0x12, 0x06, 0xe9, 0xc5, 0xb3, 0x83, 0xef, 0x9f, 0x4d, 0xe3, 0xeb, 0xac, + 0x69, 0x7c, 0x9b, 0x35, 0x8d, 0x1f, 0xb3, 0xa6, 0xf1, 0xe9, 0x67, 0x73, 0x6d, 0x58, 0x55, 0xbf, + 0xc9, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0xe7, 0x69, 0x54, 0x72, 0x05, 0x00, 0x00, +} diff --git a/pkg/replication_modepb/replication_modepb.pb.go b/pkg/replication_modepb/replication_modepb.pb.go index d4a507cc3..bdbfb9699 100644 --- a/pkg/replication_modepb/replication_modepb.pb.go +++ b/pkg/replication_modepb/replication_modepb.pb.go @@ -1,13 +1,26 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: replication_modepb.proto +/* +Package replication_modepb is a generated protocol buffer package. + +It is generated from these files: + + replication_modepb.proto + +It has these top-level messages: + + ReplicationStatus + DRAutoSync + RegionReplicationStatus + StoreDRAutoSyncStatus +*/ package replication_modepb import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -21,7 +34,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ReplicationMode int32 @@ -36,7 +49,6 @@ var ReplicationMode_name = map[int32]string{ 0: "MAJORITY", 1: "DR_AUTO_SYNC", } - var ReplicationMode_value = map[string]int32{ "MAJORITY": 0, "DR_AUTO_SYNC": 1, @@ -45,9 +57,8 @@ var ReplicationMode_value = map[string]int32{ func (x ReplicationMode) String() string { return proto.EnumName(ReplicationMode_name, int32(x)) } - func (ReplicationMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{0} + return fileDescriptorReplicationModepb, []int{0} } type DRAutoSyncState int32 @@ -69,7 +80,6 @@ var DRAutoSyncState_name = map[int32]string{ 2: "ASYNC", 3: "SYNC_RECOVER", } - var DRAutoSyncState_value = map[string]int32{ "SYNC": 0, "ASYNC_WAIT": 1, @@ -80,9 +90,8 @@ var DRAutoSyncState_value = map[string]int32{ func (x DRAutoSyncState) String() string { return proto.EnumName(DRAutoSyncState_name, int32(x)) } - func (DRAutoSyncState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{1} + return fileDescriptorReplicationModepb, []int{1} } type RegionReplicationState int32 @@ -101,7 +110,6 @@ var RegionReplicationState_name = map[int32]string{ 1: "SIMPLE_MAJORITY", 2: "INTEGRITY_OVER_LABEL", } - var RegionReplicationState_value = map[string]int32{ "UNKNOWN": 0, "SIMPLE_MAJORITY": 1, @@ -111,52 +119,22 @@ var RegionReplicationState_value = map[string]int32{ func (x RegionReplicationState) String() string { return proto.EnumName(RegionReplicationState_name, int32(x)) } - func (RegionReplicationState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{2} + return fileDescriptorReplicationModepb, []int{2} } // The replication status sync from PD to TiKV. type ReplicationStatus struct { - Mode ReplicationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=replication_modepb.ReplicationMode" json:"mode,omitempty"` - DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync,proto3" json:"dr_auto_sync,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Mode ReplicationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=replication_modepb.ReplicationMode" json:"mode,omitempty"` + DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync" json:"dr_auto_sync,omitempty"` } func (m *ReplicationStatus) Reset() { *m = ReplicationStatus{} } func (m *ReplicationStatus) String() string { return proto.CompactTextString(m) } func (*ReplicationStatus) ProtoMessage() {} func (*ReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{0} -} -func (m *ReplicationStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationStatus.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 *ReplicationStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationStatus.Merge(m, src) -} -func (m *ReplicationStatus) XXX_Size() int { - return m.Size() + return fileDescriptorReplicationModepb, []int{0} } -func (m *ReplicationStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationStatus proto.InternalMessageInfo func (m *ReplicationStatus) GetMode() ReplicationMode { if m != nil { @@ -182,46 +160,15 @@ type DRAutoSync struct { // Duration to wait before switching to SYNC by force (in seconds) WaitSyncTimeoutHint int32 `protobuf:"varint,4,opt,name=wait_sync_timeout_hint,json=waitSyncTimeoutHint,proto3" json:"wait_sync_timeout_hint,omitempty"` // Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT. - AvailableStores []uint64 `protobuf:"varint,5,rep,packed,name=available_stores,json=availableStores,proto3" json:"available_stores,omitempty"` + AvailableStores []uint64 `protobuf:"varint,5,rep,packed,name=available_stores,json=availableStores" json:"available_stores,omitempty"` // Stores should forbid region split. - PauseRegionSplit bool `protobuf:"varint,6,opt,name=pause_region_split,json=pauseRegionSplit,proto3" json:"pause_region_split,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } -func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } -func (*DRAutoSync) ProtoMessage() {} -func (*DRAutoSync) Descriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{1} -} -func (m *DRAutoSync) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DRAutoSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DRAutoSync.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 *DRAutoSync) XXX_Merge(src proto.Message) { - xxx_messageInfo_DRAutoSync.Merge(m, src) -} -func (m *DRAutoSync) XXX_Size() int { - return m.Size() -} -func (m *DRAutoSync) XXX_DiscardUnknown() { - xxx_messageInfo_DRAutoSync.DiscardUnknown(m) + PauseRegionSplit bool `protobuf:"varint,6,opt,name=pause_region_split,json=pauseRegionSplit,proto3" json:"pause_region_split,omitempty"` } -var xxx_messageInfo_DRAutoSync proto.InternalMessageInfo +func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } +func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } +func (*DRAutoSync) ProtoMessage() {} +func (*DRAutoSync) Descriptor() ([]byte, []int) { return fileDescriptorReplicationModepb, []int{1} } func (m *DRAutoSync) GetLabelKey() string { if m != nil { @@ -269,44 +216,15 @@ func (m *DRAutoSync) GetPauseRegionSplit() bool { type RegionReplicationStatus struct { State RegionReplicationState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.RegionReplicationState" json:"state,omitempty"` // Unique ID of the state, it increases after each state transfer. - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` } func (m *RegionReplicationStatus) Reset() { *m = RegionReplicationStatus{} } func (m *RegionReplicationStatus) String() string { return proto.CompactTextString(m) } func (*RegionReplicationStatus) ProtoMessage() {} func (*RegionReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{2} -} -func (m *RegionReplicationStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionReplicationStatus.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 *RegionReplicationStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionReplicationStatus.Merge(m, src) -} -func (m *RegionReplicationStatus) XXX_Size() int { - return m.Size() + return fileDescriptorReplicationModepb, []int{2} } -func (m *RegionReplicationStatus) XXX_DiscardUnknown() { - xxx_messageInfo_RegionReplicationStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_RegionReplicationStatus proto.InternalMessageInfo func (m *RegionReplicationStatus) GetState() RegionReplicationState { if m != nil { @@ -323,46 +241,17 @@ func (m *RegionReplicationStatus) GetStateId() uint64 { } type StoreDRAutoSyncStatus struct { - State DRAutoSyncState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.DRAutoSyncState" json:"state,omitempty"` - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State DRAutoSyncState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.DRAutoSyncState" json:"state,omitempty"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` } func (m *StoreDRAutoSyncStatus) Reset() { *m = StoreDRAutoSyncStatus{} } func (m *StoreDRAutoSyncStatus) String() string { return proto.CompactTextString(m) } func (*StoreDRAutoSyncStatus) ProtoMessage() {} func (*StoreDRAutoSyncStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_405bb93d9863dfea, []int{3} -} -func (m *StoreDRAutoSyncStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreDRAutoSyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreDRAutoSyncStatus.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 *StoreDRAutoSyncStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreDRAutoSyncStatus.Merge(m, src) -} -func (m *StoreDRAutoSyncStatus) XXX_Size() int { - return m.Size() -} -func (m *StoreDRAutoSyncStatus) XXX_DiscardUnknown() { - xxx_messageInfo_StoreDRAutoSyncStatus.DiscardUnknown(m) + return fileDescriptorReplicationModepb, []int{3} } -var xxx_messageInfo_StoreDRAutoSyncStatus proto.InternalMessageInfo - func (m *StoreDRAutoSyncStatus) GetState() DRAutoSyncState { if m != nil { return m.State @@ -378,57 +267,18 @@ func (m *StoreDRAutoSyncStatus) GetStateId() uint64 { } func init() { - proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) - proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) - proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) proto.RegisterType((*ReplicationStatus)(nil), "replication_modepb.ReplicationStatus") proto.RegisterType((*DRAutoSync)(nil), "replication_modepb.DRAutoSync") proto.RegisterType((*RegionReplicationStatus)(nil), "replication_modepb.RegionReplicationStatus") proto.RegisterType((*StoreDRAutoSyncStatus)(nil), "replication_modepb.StoreDRAutoSyncStatus") + proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) + proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) + proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) } - -func init() { proto.RegisterFile("replication_modepb.proto", fileDescriptor_405bb93d9863dfea) } - -var fileDescriptor_405bb93d9863dfea = []byte{ - // 501 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xcd, 0xe4, 0xa7, 0x4d, 0x6e, 0xa3, 0x66, 0xbe, 0xe9, 0x47, 0x31, 0x42, 0x8a, 0xac, 0xb0, - 0x31, 0x11, 0xaa, 0x44, 0xbb, 0x40, 0xec, 0xea, 0xb6, 0x16, 0x35, 0x4d, 0x1c, 0x34, 0x76, 0xa9, - 0xba, 0x1a, 0x4d, 0xe2, 0x11, 0x58, 0x38, 0xb6, 0x65, 0x8f, 0x8b, 0xf2, 0x10, 0xb0, 0xe6, 0x91, - 0x58, 0xf2, 0x08, 0x28, 0xbc, 0x08, 0x9a, 0x89, 0xda, 0x90, 0xd6, 0xac, 0xd8, 0xcd, 0x3d, 0x47, - 0xf7, 0xdc, 0x73, 0xcf, 0xb5, 0xc1, 0xc8, 0x45, 0x16, 0x47, 0x33, 0x2e, 0xa3, 0x34, 0x61, 0xf3, - 0x34, 0x14, 0xd9, 0xf4, 0x20, 0xcb, 0x53, 0x99, 0x12, 0xf2, 0x90, 0x19, 0x7c, 0x45, 0xf0, 0x1f, - 0x5d, 0xc3, 0xbe, 0xe4, 0xb2, 0x2c, 0xc8, 0x2b, 0x68, 0x2a, 0xde, 0x40, 0x26, 0xb2, 0x76, 0x0f, - 0x9f, 0x1d, 0x54, 0x48, 0xfe, 0xd1, 0x34, 0x4e, 0x43, 0x41, 0x75, 0x03, 0x39, 0x86, 0x6e, 0x98, - 0x33, 0x5e, 0xca, 0x94, 0x15, 0x8b, 0x64, 0x66, 0xd4, 0x4d, 0x64, 0xed, 0x1c, 0xf6, 0xab, 0x04, - 0xce, 0xa8, 0x5d, 0xca, 0xd4, 0x5f, 0x24, 0x33, 0x0a, 0x61, 0x7e, 0xfb, 0x1e, 0x7c, 0xa9, 0x03, - 0xac, 0x29, 0xf2, 0x14, 0x3a, 0x31, 0x9f, 0x8a, 0x98, 0x7d, 0x12, 0x0b, 0x6d, 0xa7, 0x43, 0xdb, - 0x1a, 0xb8, 0x10, 0x0b, 0xf2, 0x1a, 0x5a, 0x85, 0xe4, 0x52, 0xe8, 0x31, 0x7f, 0xf1, 0xb9, 0xd6, - 0x52, 0xbb, 0x09, 0xba, 0xea, 0x20, 0x4f, 0xa0, 0xad, 0x1f, 0x2c, 0x0a, 0x8d, 0x86, 0x89, 0xac, - 0x26, 0xdd, 0xd6, 0xb5, 0x1b, 0x92, 0x23, 0xd8, 0xff, 0xcc, 0x23, 0xa9, 0x17, 0x60, 0x32, 0x9a, - 0x8b, 0xb4, 0x94, 0xec, 0x63, 0x94, 0x48, 0xa3, 0x69, 0x22, 0xab, 0x45, 0xf7, 0x14, 0xab, 0x04, - 0x83, 0x15, 0x77, 0x1e, 0x25, 0x92, 0x3c, 0x07, 0xcc, 0x6f, 0x78, 0x14, 0xf3, 0x69, 0x2c, 0x58, - 0x21, 0xd3, 0x5c, 0x14, 0x46, 0xcb, 0x6c, 0x58, 0x4d, 0xda, 0xbb, 0xc3, 0x7d, 0x0d, 0x93, 0x17, - 0x40, 0x32, 0x5e, 0x16, 0x82, 0xe5, 0xe2, 0x83, 0x32, 0x5a, 0x64, 0x71, 0x24, 0x8d, 0x2d, 0x13, - 0x59, 0x6d, 0x8a, 0x35, 0x43, 0x35, 0xe1, 0x2b, 0x7c, 0x70, 0x03, 0x8f, 0x57, 0xe5, 0xc3, 0x2b, - 0x1d, 0xdf, 0xae, 0xbf, 0x3a, 0xd3, 0xb0, 0xfa, 0x4c, 0x15, 0xbd, 0x95, 0x29, 0xd4, 0x37, 0x52, - 0x18, 0xcc, 0xe1, 0x91, 0xf6, 0xbb, 0x99, 0x5f, 0x59, 0xac, 0x43, 0x47, 0xff, 0x14, 0xfa, 0xe6, - 0xb8, 0xe1, 0x4b, 0xe8, 0xdd, 0xfb, 0xa2, 0x48, 0x17, 0xda, 0x63, 0xfb, 0xed, 0x84, 0xba, 0xc1, - 0x35, 0xae, 0x11, 0x0c, 0xdd, 0x33, 0xca, 0xec, 0xcb, 0x60, 0xc2, 0xfc, 0x6b, 0xef, 0x14, 0xa3, - 0xe1, 0x39, 0xf4, 0xee, 0xcd, 0x21, 0x6d, 0x68, 0x6a, 0xb2, 0x46, 0x76, 0x01, 0x6c, 0xf5, 0x64, - 0x57, 0xb6, 0x1b, 0x60, 0x44, 0x3a, 0xd0, 0xd2, 0x35, 0xae, 0x2b, 0x25, 0xcd, 0x50, 0xe7, 0x74, - 0xf2, 0xde, 0xa1, 0xb8, 0x31, 0x0c, 0x60, 0xbf, 0x3a, 0x27, 0xb2, 0x03, 0xdb, 0x97, 0xde, 0x85, - 0x37, 0xb9, 0xf2, 0x70, 0x8d, 0xec, 0x41, 0xcf, 0x77, 0xc7, 0xef, 0x46, 0x0e, 0xbb, 0xf3, 0x85, - 0x88, 0x01, 0xff, 0xbb, 0x5e, 0xe0, 0xbc, 0x51, 0x25, 0x53, 0x7a, 0x6c, 0x64, 0x9f, 0x38, 0x23, - 0x5c, 0x3f, 0xc1, 0xdf, 0x97, 0x7d, 0xf4, 0x63, 0xd9, 0x47, 0x3f, 0x97, 0x7d, 0xf4, 0xed, 0x57, - 0xbf, 0x36, 0xdd, 0xd2, 0xff, 0xe1, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x3f, 0x6c, - 0x86, 0xa3, 0x03, 0x00, 0x00, -} - func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -436,43 +286,32 @@ func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { } func (m *ReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Mode != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.Mode)) } if m.DrAutoSync != nil { - { - size, err := m.DrAutoSync.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintReplicationModepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.DrAutoSync.Size())) + n1, err := m.DrAutoSync.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.Mode != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -480,28 +319,30 @@ func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { } func (m *DRAutoSync) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DRAutoSync) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.LabelKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(len(m.LabelKey))) + i += copy(dAtA[i:], m.LabelKey) } - if m.PauseRegionSplit { - i-- - if m.PauseRegionSplit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 + if m.State != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + } + if m.StateId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + } + if m.WaitSyncTimeoutHint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.WaitSyncTimeoutHint)) } if len(m.AvailableStores) > 0 { dAtA3 := make([]byte, len(m.AvailableStores)*10) @@ -515,41 +356,28 @@ func (m *DRAutoSync) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA3[j2] = uint8(num) j2++ } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintReplicationModepb(dAtA, i, uint64(j2)) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(j2)) + i += copy(dAtA[i:], dAtA3[:j2]) } - if m.WaitSyncTimeoutHint != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.WaitSyncTimeoutHint)) - i-- - dAtA[i] = 0x20 - } - if m.StateId != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) - i-- - dAtA[i] = 0x18 - } - if m.State != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x10 - } - if len(m.LabelKey) > 0 { - i -= len(m.LabelKey) - copy(dAtA[i:], m.LabelKey) - i = encodeVarintReplicationModepb(dAtA, i, uint64(len(m.LabelKey))) - i-- - dAtA[i] = 0xa + if m.PauseRegionSplit { + dAtA[i] = 0x30 + i++ + if m.PauseRegionSplit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return len(dAtA) - i, nil + return i, nil } func (m *RegionReplicationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -557,36 +385,27 @@ func (m *RegionReplicationStatus) Marshal() (dAtA []byte, err error) { } func (m *RegionReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.State != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) } if m.StateId != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) } - if m.State != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *StoreDRAutoSyncStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -594,47 +413,33 @@ func (m *StoreDRAutoSyncStatus) Marshal() (dAtA []byte, err error) { } func (m *StoreDRAutoSyncStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreDRAutoSyncStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.State != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) } if m.StateId != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) } - if m.State != 0 { - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func encodeVarintReplicationModepb(dAtA []byte, offset int, v uint64) int { - offset -= sovReplicationModepb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *ReplicationStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != 0 { @@ -644,16 +449,10 @@ func (m *ReplicationStatus) Size() (n int) { l = m.DrAutoSync.Size() n += 1 + l + sovReplicationModepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DRAutoSync) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.LabelKey) @@ -679,16 +478,10 @@ func (m *DRAutoSync) Size() (n int) { if m.PauseRegionSplit { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RegionReplicationStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -697,16 +490,10 @@ func (m *RegionReplicationStatus) Size() (n int) { if m.StateId != 0 { n += 1 + sovReplicationModepb(uint64(m.StateId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StoreDRAutoSyncStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -715,14 +502,18 @@ func (m *StoreDRAutoSyncStatus) Size() (n int) { if m.StateId != 0 { n += 1 + sovReplicationModepb(uint64(m.StateId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovReplicationModepb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozReplicationModepb(x uint64) (n int) { return sovReplicationModepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -742,7 +533,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -770,7 +561,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= ReplicationMode(b&0x7F) << shift + m.Mode |= (ReplicationMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -789,7 +580,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -798,9 +589,6 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthReplicationModepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -817,13 +605,12 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -848,7 +635,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -876,7 +663,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -886,9 +673,6 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthReplicationModepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -908,7 +692,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= DRAutoSyncState(b&0x7F) << shift + m.State |= (DRAutoSyncState(b) & 0x7F) << shift if b < 0x80 { break } @@ -927,7 +711,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= uint64(b&0x7F) << shift + m.StateId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -946,7 +730,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitSyncTimeoutHint |= int32(b&0x7F) << shift + m.WaitSyncTimeoutHint |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -963,7 +747,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -980,7 +764,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -989,23 +773,9 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthReplicationModepb - } 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.AvailableStores) == 0 { - m.AvailableStores = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -1017,7 +787,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1041,7 +811,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1053,13 +823,12 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1084,7 +853,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1112,7 +881,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= RegionReplicationState(b&0x7F) << shift + m.State |= (RegionReplicationState(b) & 0x7F) << shift if b < 0x80 { break } @@ -1131,7 +900,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= uint64(b&0x7F) << shift + m.StateId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1142,13 +911,12 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1173,7 +941,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1201,7 +969,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= DRAutoSyncState(b&0x7F) << shift + m.State |= (DRAutoSyncState(b) & 0x7F) << shift if b < 0x80 { break } @@ -1220,7 +988,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= uint64(b&0x7F) << shift + m.StateId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1231,13 +999,12 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1250,7 +1017,6 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { func skipReplicationModepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1282,8 +1048,10 @@ func skipReplicationModepb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1300,34 +1068,91 @@ func skipReplicationModepb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthReplicationModepb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupReplicationModepb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipReplicationModepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthReplicationModepb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthReplicationModepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowReplicationModepb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupReplicationModepb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthReplicationModepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowReplicationModepb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("replication_modepb.proto", fileDescriptorReplicationModepb) } + +var fileDescriptorReplicationModepb = []byte{ + // 501 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xcd, 0xe4, 0xa7, 0x4d, 0x6e, 0xa3, 0x66, 0xbe, 0xe9, 0x47, 0x31, 0x42, 0x8a, 0xac, 0xb0, + 0x31, 0x11, 0xaa, 0x44, 0xbb, 0x40, 0xec, 0xea, 0xb6, 0x16, 0x35, 0x4d, 0x1c, 0x34, 0x76, 0xa9, + 0xba, 0x1a, 0x4d, 0xe2, 0x11, 0x58, 0x38, 0xb6, 0x65, 0x8f, 0x8b, 0xf2, 0x10, 0xb0, 0xe6, 0x91, + 0x58, 0xf2, 0x08, 0x28, 0xbc, 0x08, 0x9a, 0x89, 0xda, 0x90, 0xd6, 0xac, 0xd8, 0xcd, 0x3d, 0x47, + 0xf7, 0xdc, 0x73, 0xcf, 0xb5, 0xc1, 0xc8, 0x45, 0x16, 0x47, 0x33, 0x2e, 0xa3, 0x34, 0x61, 0xf3, + 0x34, 0x14, 0xd9, 0xf4, 0x20, 0xcb, 0x53, 0x99, 0x12, 0xf2, 0x90, 0x19, 0x7c, 0x45, 0xf0, 0x1f, + 0x5d, 0xc3, 0xbe, 0xe4, 0xb2, 0x2c, 0xc8, 0x2b, 0x68, 0x2a, 0xde, 0x40, 0x26, 0xb2, 0x76, 0x0f, + 0x9f, 0x1d, 0x54, 0x48, 0xfe, 0xd1, 0x34, 0x4e, 0x43, 0x41, 0x75, 0x03, 0x39, 0x86, 0x6e, 0x98, + 0x33, 0x5e, 0xca, 0x94, 0x15, 0x8b, 0x64, 0x66, 0xd4, 0x4d, 0x64, 0xed, 0x1c, 0xf6, 0xab, 0x04, + 0xce, 0xa8, 0x5d, 0xca, 0xd4, 0x5f, 0x24, 0x33, 0x0a, 0x61, 0x7e, 0xfb, 0x1e, 0x7c, 0xa9, 0x03, + 0xac, 0x29, 0xf2, 0x14, 0x3a, 0x31, 0x9f, 0x8a, 0x98, 0x7d, 0x12, 0x0b, 0x6d, 0xa7, 0x43, 0xdb, + 0x1a, 0xb8, 0x10, 0x0b, 0xf2, 0x1a, 0x5a, 0x85, 0xe4, 0x52, 0xe8, 0x31, 0x7f, 0xf1, 0xb9, 0xd6, + 0x52, 0xbb, 0x09, 0xba, 0xea, 0x20, 0x4f, 0xa0, 0xad, 0x1f, 0x2c, 0x0a, 0x8d, 0x86, 0x89, 0xac, + 0x26, 0xdd, 0xd6, 0xb5, 0x1b, 0x92, 0x23, 0xd8, 0xff, 0xcc, 0x23, 0xa9, 0x17, 0x60, 0x32, 0x9a, + 0x8b, 0xb4, 0x94, 0xec, 0x63, 0x94, 0x48, 0xa3, 0x69, 0x22, 0xab, 0x45, 0xf7, 0x14, 0xab, 0x04, + 0x83, 0x15, 0x77, 0x1e, 0x25, 0x92, 0x3c, 0x07, 0xcc, 0x6f, 0x78, 0x14, 0xf3, 0x69, 0x2c, 0x58, + 0x21, 0xd3, 0x5c, 0x14, 0x46, 0xcb, 0x6c, 0x58, 0x4d, 0xda, 0xbb, 0xc3, 0x7d, 0x0d, 0x93, 0x17, + 0x40, 0x32, 0x5e, 0x16, 0x82, 0xe5, 0xe2, 0x83, 0x32, 0x5a, 0x64, 0x71, 0x24, 0x8d, 0x2d, 0x13, + 0x59, 0x6d, 0x8a, 0x35, 0x43, 0x35, 0xe1, 0x2b, 0x7c, 0x70, 0x03, 0x8f, 0x57, 0xe5, 0xc3, 0x2b, + 0x1d, 0xdf, 0xae, 0xbf, 0x3a, 0xd3, 0xb0, 0xfa, 0x4c, 0x15, 0xbd, 0x95, 0x29, 0xd4, 0x37, 0x52, + 0x18, 0xcc, 0xe1, 0x91, 0xf6, 0xbb, 0x99, 0x5f, 0x59, 0xac, 0x43, 0x47, 0xff, 0x14, 0xfa, 0xe6, + 0xb8, 0xe1, 0x4b, 0xe8, 0xdd, 0xfb, 0xa2, 0x48, 0x17, 0xda, 0x63, 0xfb, 0xed, 0x84, 0xba, 0xc1, + 0x35, 0xae, 0x11, 0x0c, 0xdd, 0x33, 0xca, 0xec, 0xcb, 0x60, 0xc2, 0xfc, 0x6b, 0xef, 0x14, 0xa3, + 0xe1, 0x39, 0xf4, 0xee, 0xcd, 0x21, 0x6d, 0x68, 0x6a, 0xb2, 0x46, 0x76, 0x01, 0x6c, 0xf5, 0x64, + 0x57, 0xb6, 0x1b, 0x60, 0x44, 0x3a, 0xd0, 0xd2, 0x35, 0xae, 0x2b, 0x25, 0xcd, 0x50, 0xe7, 0x74, + 0xf2, 0xde, 0xa1, 0xb8, 0x31, 0x0c, 0x60, 0xbf, 0x3a, 0x27, 0xb2, 0x03, 0xdb, 0x97, 0xde, 0x85, + 0x37, 0xb9, 0xf2, 0x70, 0x8d, 0xec, 0x41, 0xcf, 0x77, 0xc7, 0xef, 0x46, 0x0e, 0xbb, 0xf3, 0x85, + 0x88, 0x01, 0xff, 0xbb, 0x5e, 0xe0, 0xbc, 0x51, 0x25, 0x53, 0x7a, 0x6c, 0x64, 0x9f, 0x38, 0x23, + 0x5c, 0x3f, 0xc1, 0xdf, 0x97, 0x7d, 0xf4, 0x63, 0xd9, 0x47, 0x3f, 0x97, 0x7d, 0xf4, 0xed, 0x57, + 0xbf, 0x36, 0xdd, 0xd2, 0xff, 0xe1, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x3f, 0x6c, + 0x86, 0xa3, 0x03, 0x00, 0x00, +} diff --git a/pkg/resource_manager/resource_manager.pb.go b/pkg/resource_manager/resource_manager.pb.go index 6d8f4236d..e0d9e4061 100644 --- a/pkg/resource_manager/resource_manager.pb.go +++ b/pkg/resource_manager/resource_manager.pb.go @@ -1,21 +1,58 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: resource_manager.proto +/* +Package resource_manager is a generated protocol buffer package. + +It is generated from these files: + + resource_manager.proto + +It has these top-level messages: + + ListResourceGroupsRequest + ListResourceGroupsResponse + GetResourceGroupRequest + GetResourceGroupResponse + DeleteResourceGroupRequest + DeleteResourceGroupResponse + PutResourceGroupRequest + PutResourceGroupResponse + TokenBucketsRequest + TokenBucketRequest + TokenBucketsResponse + TokenBucketResponse + GrantedRUTokenBucket + GrantedRawResourceTokenBucket + Consumption + RequestUnitItem + RawResourceItem + ResourceGroup + GroupRequestUnitSettings + GroupRawResourceSettings + TokenBucket + TokenLimitSettings + Error + RunawayRule + RunawayWatch + RunawaySettings + BackgroundSettings +*/ package resource_manager import ( - "context" - encoding_binary "encoding/binary" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + + encoding_binary "encoding/binary" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,7 +64,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type RequestUnitType int32 @@ -38,7 +75,6 @@ const ( var RequestUnitType_name = map[int32]string{ 0: "RU", } - var RequestUnitType_value = map[string]int32{ "RU": 0, } @@ -46,9 +82,8 @@ var RequestUnitType_value = map[string]int32{ func (x RequestUnitType) String() string { return proto.EnumName(RequestUnitType_name, int32(x)) } - func (RequestUnitType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{0} + return fileDescriptorResourceManager, []int{0} } type RawResourceType int32 @@ -64,7 +99,6 @@ var RawResourceType_name = map[int32]string{ 1: "IOReadFlow", 2: "IOWriteFlow", } - var RawResourceType_value = map[string]int32{ "CPU": 0, "IOReadFlow": 1, @@ -74,9 +108,8 @@ var RawResourceType_value = map[string]int32{ func (x RawResourceType) String() string { return proto.EnumName(RawResourceType_name, int32(x)) } - func (RawResourceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{1} + return fileDescriptorResourceManager, []int{1} } type GroupMode int32 @@ -92,7 +125,6 @@ var GroupMode_name = map[int32]string{ 1: "RUMode", 2: "RawMode", } - var GroupMode_value = map[string]int32{ "Unknown": 0, "RUMode": 1, @@ -102,10 +134,7 @@ var GroupMode_value = map[string]int32{ func (x GroupMode) String() string { return proto.EnumName(GroupMode_name, int32(x)) } - -func (GroupMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{2} -} +func (GroupMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{2} } type RunawayAction int32 @@ -122,7 +151,6 @@ var RunawayAction_name = map[int32]string{ 2: "CoolDown", 3: "Kill", } - var RunawayAction_value = map[string]int32{ "NoneAction": 0, "DryRun": 1, @@ -133,10 +161,7 @@ var RunawayAction_value = map[string]int32{ func (x RunawayAction) String() string { return proto.EnumName(RunawayAction_name, int32(x)) } - -func (RunawayAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{3} -} +func (RunawayAction) EnumDescriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{3} } type RunawayWatchType int32 @@ -153,7 +178,6 @@ var RunawayWatchType_name = map[int32]string{ 2: "Similar", 3: "Plan", } - var RunawayWatchType_value = map[string]int32{ "NoneWatch": 0, "Exact": 1, @@ -164,91 +188,32 @@ var RunawayWatchType_value = map[string]int32{ func (x RunawayWatchType) String() string { return proto.EnumName(RunawayWatchType_name, int32(x)) } - func (RunawayWatchType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{4} + return fileDescriptorResourceManager, []int{4} } type ListResourceGroupsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ListResourceGroupsRequest) Reset() { *m = ListResourceGroupsRequest{} } func (m *ListResourceGroupsRequest) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsRequest) ProtoMessage() {} func (*ListResourceGroupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{0} -} -func (m *ListResourceGroupsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListResourceGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListResourceGroupsRequest.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 *ListResourceGroupsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListResourceGroupsRequest.Merge(m, src) -} -func (m *ListResourceGroupsRequest) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{0} } -func (m *ListResourceGroupsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListResourceGroupsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListResourceGroupsRequest proto.InternalMessageInfo type ListResourceGroupsResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Groups []*ResourceGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Groups []*ResourceGroup `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"` } func (m *ListResourceGroupsResponse) Reset() { *m = ListResourceGroupsResponse{} } func (m *ListResourceGroupsResponse) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsResponse) ProtoMessage() {} func (*ListResourceGroupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{1} -} -func (m *ListResourceGroupsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListResourceGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ListResourceGroupsResponse.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 *ListResourceGroupsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListResourceGroupsResponse.Merge(m, src) -} -func (m *ListResourceGroupsResponse) XXX_Size() int { - return m.Size() -} -func (m *ListResourceGroupsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListResourceGroupsResponse.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{1} } -var xxx_messageInfo_ListResourceGroupsResponse proto.InternalMessageInfo - func (m *ListResourceGroupsResponse) GetError() *Error { if m != nil { return m.Error @@ -264,45 +229,16 @@ func (m *ListResourceGroupsResponse) GetGroups() []*ResourceGroup { } type GetResourceGroupRequest struct { - ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` } func (m *GetResourceGroupRequest) Reset() { *m = GetResourceGroupRequest{} } func (m *GetResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*GetResourceGroupRequest) ProtoMessage() {} func (*GetResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{2} -} -func (m *GetResourceGroupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResourceGroupRequest.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 *GetResourceGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResourceGroupRequest.Merge(m, src) -} -func (m *GetResourceGroupRequest) XXX_Size() int { - return m.Size() -} -func (m *GetResourceGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetResourceGroupRequest.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{2} } -var xxx_messageInfo_GetResourceGroupRequest proto.InternalMessageInfo - func (m *GetResourceGroupRequest) GetResourceGroupName() string { if m != nil { return m.ResourceGroupName @@ -311,45 +247,16 @@ func (m *GetResourceGroupRequest) GetResourceGroupName() string { } type GetResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Group *ResourceGroup `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Group *ResourceGroup `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"` } func (m *GetResourceGroupResponse) Reset() { *m = GetResourceGroupResponse{} } func (m *GetResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*GetResourceGroupResponse) ProtoMessage() {} func (*GetResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{3} -} -func (m *GetResourceGroupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetResourceGroupResponse.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 *GetResourceGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResourceGroupResponse.Merge(m, src) -} -func (m *GetResourceGroupResponse) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{3} } -func (m *GetResourceGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResourceGroupResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetResourceGroupResponse proto.InternalMessageInfo func (m *GetResourceGroupResponse) GetError() *Error { if m != nil { @@ -366,44 +273,15 @@ func (m *GetResourceGroupResponse) GetGroup() *ResourceGroup { } type DeleteResourceGroupRequest struct { - ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` } func (m *DeleteResourceGroupRequest) Reset() { *m = DeleteResourceGroupRequest{} } func (m *DeleteResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupRequest) ProtoMessage() {} func (*DeleteResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{4} -} -func (m *DeleteResourceGroupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorResourceManager, []int{4} } -func (m *DeleteResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteResourceGroupRequest.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 *DeleteResourceGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResourceGroupRequest.Merge(m, src) -} -func (m *DeleteResourceGroupRequest) XXX_Size() int { - return m.Size() -} -func (m *DeleteResourceGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResourceGroupRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteResourceGroupRequest proto.InternalMessageInfo func (m *DeleteResourceGroupRequest) GetResourceGroupName() string { if m != nil { @@ -413,46 +291,17 @@ func (m *DeleteResourceGroupRequest) GetResourceGroupName() string { } type DeleteResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` } func (m *DeleteResourceGroupResponse) Reset() { *m = DeleteResourceGroupResponse{} } func (m *DeleteResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupResponse) ProtoMessage() {} func (*DeleteResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{5} -} -func (m *DeleteResourceGroupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteResourceGroupResponse.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 *DeleteResourceGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResourceGroupResponse.Merge(m, src) -} -func (m *DeleteResourceGroupResponse) XXX_Size() int { - return m.Size() -} -func (m *DeleteResourceGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResourceGroupResponse.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{5} } -var xxx_messageInfo_DeleteResourceGroupResponse proto.InternalMessageInfo - func (m *DeleteResourceGroupResponse) GetError() *Error { if m != nil { return m.Error @@ -468,44 +317,15 @@ func (m *DeleteResourceGroupResponse) GetBody() string { } type PutResourceGroupRequest struct { - Group *ResourceGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Group *ResourceGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"` } func (m *PutResourceGroupRequest) Reset() { *m = PutResourceGroupRequest{} } func (m *PutResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*PutResourceGroupRequest) ProtoMessage() {} func (*PutResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{6} -} -func (m *PutResourceGroupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutResourceGroupRequest.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 *PutResourceGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResourceGroupRequest.Merge(m, src) -} -func (m *PutResourceGroupRequest) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{6} } -func (m *PutResourceGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutResourceGroupRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PutResourceGroupRequest proto.InternalMessageInfo func (m *PutResourceGroupRequest) GetGroup() *ResourceGroup { if m != nil { @@ -515,46 +335,17 @@ func (m *PutResourceGroupRequest) GetGroup() *ResourceGroup { } type PutResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` } func (m *PutResourceGroupResponse) Reset() { *m = PutResourceGroupResponse{} } func (m *PutResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*PutResourceGroupResponse) ProtoMessage() {} func (*PutResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{7} -} -func (m *PutResourceGroupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PutResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PutResourceGroupResponse.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 *PutResourceGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResourceGroupResponse.Merge(m, src) -} -func (m *PutResourceGroupResponse) XXX_Size() int { - return m.Size() -} -func (m *PutResourceGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutResourceGroupResponse.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{7} } -var xxx_messageInfo_PutResourceGroupResponse proto.InternalMessageInfo - func (m *PutResourceGroupResponse) GetError() *Error { if m != nil { return m.Error @@ -570,46 +361,17 @@ func (m *PutResourceGroupResponse) GetBody() string { } type TokenBucketsRequest struct { - Requests []*TokenBucketRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + Requests []*TokenBucketRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` TargetRequestPeriodMs uint64 `protobuf:"varint,2,opt,name=target_request_period_ms,json=targetRequestPeriodMs,proto3" json:"target_request_period_ms,omitempty"` ClientUniqueId uint64 `protobuf:"varint,3,opt,name=client_unique_id,json=clientUniqueId,proto3" json:"client_unique_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *TokenBucketsRequest) Reset() { *m = TokenBucketsRequest{} } func (m *TokenBucketsRequest) String() string { return proto.CompactTextString(m) } func (*TokenBucketsRequest) ProtoMessage() {} func (*TokenBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{8} -} -func (m *TokenBucketsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketsRequest.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 fileDescriptorResourceManager, []int{8} } -func (m *TokenBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketsRequest.Merge(m, src) -} -func (m *TokenBucketsRequest) XXX_Size() int { - return m.Size() -} -func (m *TokenBucketsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenBucketsRequest proto.InternalMessageInfo func (m *TokenBucketsRequest) GetRequests() []*TokenBucketRequest { if m != nil { @@ -639,48 +401,19 @@ type TokenBucketRequest struct { // *TokenBucketRequest_RawResourceItems Request isTokenBucketRequest_Request `protobuf_oneof:"request"` // Aggregate statistics in group level. - ConsumptionSinceLastRequest *Consumption `protobuf:"bytes,4,opt,name=consumption_since_last_request,json=consumptionSinceLastRequest,proto3" json:"consumption_since_last_request,omitempty"` + ConsumptionSinceLastRequest *Consumption `protobuf:"bytes,4,opt,name=consumption_since_last_request,json=consumptionSinceLastRequest" json:"consumption_since_last_request,omitempty"` // label background request. - IsBackground bool `protobuf:"varint,5,opt,name=is_background,json=isBackground,proto3" json:"is_background,omitempty"` - IsTiflash bool `protobuf:"varint,6,opt,name=is_tiflash,json=isTiflash,proto3" json:"is_tiflash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + IsBackground bool `protobuf:"varint,5,opt,name=is_background,json=isBackground,proto3" json:"is_background,omitempty"` + IsTiflash bool `protobuf:"varint,6,opt,name=is_tiflash,json=isTiflash,proto3" json:"is_tiflash,omitempty"` } func (m *TokenBucketRequest) Reset() { *m = TokenBucketRequest{} } func (m *TokenBucketRequest) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest) ProtoMessage() {} func (*TokenBucketRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{9} -} -func (m *TokenBucketRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketRequest.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 *TokenBucketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketRequest.Merge(m, src) -} -func (m *TokenBucketRequest) XXX_Size() int { - return m.Size() -} -func (m *TokenBucketRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketRequest.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{9} } -var xxx_messageInfo_TokenBucketRequest proto.InternalMessageInfo - type isTokenBucketRequest_Request interface { isTokenBucketRequest_Request() MarshalTo([]byte) (int, error) @@ -688,10 +421,10 @@ type isTokenBucketRequest_Request interface { } type TokenBucketRequest_RuItems struct { - RuItems *TokenBucketRequest_RequestRU `protobuf:"bytes,2,opt,name=ru_items,json=ruItems,proto3,oneof" json:"ru_items,omitempty"` + RuItems *TokenBucketRequest_RequestRU `protobuf:"bytes,2,opt,name=ru_items,json=ruItems,oneof"` } type TokenBucketRequest_RawResourceItems struct { - RawResourceItems *TokenBucketRequest_RequestRawResource `protobuf:"bytes,3,opt,name=raw_resource_items,json=rawResourceItems,proto3,oneof" json:"raw_resource_items,omitempty"` + RawResourceItems *TokenBucketRequest_RequestRawResource `protobuf:"bytes,3,opt,name=raw_resource_items,json=rawResourceItems,oneof"` } func (*TokenBucketRequest_RuItems) isTokenBucketRequest_Request() {} @@ -746,53 +479,90 @@ func (m *TokenBucketRequest) GetIsTiflash() bool { return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TokenBucketRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TokenBucketRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TokenBucketRequest_OneofMarshaler, _TokenBucketRequest_OneofUnmarshaler, _TokenBucketRequest_OneofSizer, []interface{}{ (*TokenBucketRequest_RuItems)(nil), (*TokenBucketRequest_RawResourceItems)(nil), } } +func _TokenBucketRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TokenBucketRequest) + // request + switch x := m.Request.(type) { + case *TokenBucketRequest_RuItems: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RuItems); err != nil { + return err + } + case *TokenBucketRequest_RawResourceItems: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawResourceItems); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TokenBucketRequest.Request has unexpected type %T", x) + } + return nil +} + +func _TokenBucketRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TokenBucketRequest) + switch tag { + case 2: // request.ru_items + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TokenBucketRequest_RequestRU) + err := b.DecodeMessage(msg) + m.Request = &TokenBucketRequest_RuItems{msg} + return true, err + case 3: // request.raw_resource_items + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TokenBucketRequest_RequestRawResource) + err := b.DecodeMessage(msg) + m.Request = &TokenBucketRequest_RawResourceItems{msg} + return true, err + default: + return false, nil + } +} + +func _TokenBucketRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TokenBucketRequest) + // request + switch x := m.Request.(type) { + case *TokenBucketRequest_RuItems: + s := proto.Size(x.RuItems) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TokenBucketRequest_RawResourceItems: + s := proto.Size(x.RawResourceItems) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type TokenBucketRequest_RequestRU struct { - RequestRU []*RequestUnitItem `protobuf:"bytes,1,rep,name=request_r_u,json=requestRU,proto3" json:"request_r_u,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RequestRU []*RequestUnitItem `protobuf:"bytes,1,rep,name=request_r_u,json=requestRU" json:"request_r_u,omitempty"` } func (m *TokenBucketRequest_RequestRU) Reset() { *m = TokenBucketRequest_RequestRU{} } func (m *TokenBucketRequest_RequestRU) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest_RequestRU) ProtoMessage() {} func (*TokenBucketRequest_RequestRU) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{9, 0} -} -func (m *TokenBucketRequest_RequestRU) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorResourceManager, []int{9, 0} } -func (m *TokenBucketRequest_RequestRU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketRequest_RequestRU.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 *TokenBucketRequest_RequestRU) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketRequest_RequestRU.Merge(m, src) -} -func (m *TokenBucketRequest_RequestRU) XXX_Size() int { - return m.Size() -} -func (m *TokenBucketRequest_RequestRU) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketRequest_RequestRU.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenBucketRequest_RequestRU proto.InternalMessageInfo func (m *TokenBucketRequest_RequestRU) GetRequestRU() []*RequestUnitItem { if m != nil { @@ -802,45 +572,16 @@ func (m *TokenBucketRequest_RequestRU) GetRequestRU() []*RequestUnitItem { } type TokenBucketRequest_RequestRawResource struct { - RequestRawResource []*RawResourceItem `protobuf:"bytes,1,rep,name=request_raw_resource,json=requestRawResource,proto3" json:"request_raw_resource,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RequestRawResource []*RawResourceItem `protobuf:"bytes,1,rep,name=request_raw_resource,json=requestRawResource" json:"request_raw_resource,omitempty"` } func (m *TokenBucketRequest_RequestRawResource) Reset() { *m = TokenBucketRequest_RequestRawResource{} } func (m *TokenBucketRequest_RequestRawResource) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest_RequestRawResource) ProtoMessage() {} func (*TokenBucketRequest_RequestRawResource) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{9, 1} -} -func (m *TokenBucketRequest_RequestRawResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucketRequest_RequestRawResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketRequest_RequestRawResource.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 *TokenBucketRequest_RequestRawResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketRequest_RequestRawResource.Merge(m, src) -} -func (m *TokenBucketRequest_RequestRawResource) XXX_Size() int { - return m.Size() -} -func (m *TokenBucketRequest_RequestRawResource) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketRequest_RequestRawResource.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{9, 1} } -var xxx_messageInfo_TokenBucketRequest_RequestRawResource proto.InternalMessageInfo - func (m *TokenBucketRequest_RequestRawResource) GetRequestRawResource() []*RawResourceItem { if m != nil { return m.RequestRawResource @@ -849,45 +590,16 @@ func (m *TokenBucketRequest_RequestRawResource) GetRequestRawResource() []*RawRe } type TokenBucketsResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Responses []*TokenBucketResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Responses []*TokenBucketResponse `protobuf:"bytes,2,rep,name=responses" json:"responses,omitempty"` } func (m *TokenBucketsResponse) Reset() { *m = TokenBucketsResponse{} } func (m *TokenBucketsResponse) String() string { return proto.CompactTextString(m) } func (*TokenBucketsResponse) ProtoMessage() {} func (*TokenBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{10} -} -func (m *TokenBucketsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketsResponse.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 *TokenBucketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketsResponse.Merge(m, src) -} -func (m *TokenBucketsResponse) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{10} } -func (m *TokenBucketsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenBucketsResponse proto.InternalMessageInfo func (m *TokenBucketsResponse) GetError() *Error { if m != nil { @@ -906,47 +618,18 @@ func (m *TokenBucketsResponse) GetResponses() []*TokenBucketResponse { type TokenBucketResponse struct { ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` // RU mode - GrantedRUTokens []*GrantedRUTokenBucket `protobuf:"bytes,2,rep,name=granted_r_u_tokens,json=grantedRUTokens,proto3" json:"granted_r_u_tokens,omitempty"` + GrantedRUTokens []*GrantedRUTokenBucket `protobuf:"bytes,2,rep,name=granted_r_u_tokens,json=grantedRUTokens" json:"granted_r_u_tokens,omitempty"` // Raw mode - GrantedResourceTokens []*GrantedRawResourceTokenBucket `protobuf:"bytes,3,rep,name=granted_resource_tokens,json=grantedResourceTokens,proto3" json:"granted_resource_tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GrantedResourceTokens []*GrantedRawResourceTokenBucket `protobuf:"bytes,3,rep,name=granted_resource_tokens,json=grantedResourceTokens" json:"granted_resource_tokens,omitempty"` } func (m *TokenBucketResponse) Reset() { *m = TokenBucketResponse{} } func (m *TokenBucketResponse) String() string { return proto.CompactTextString(m) } func (*TokenBucketResponse) ProtoMessage() {} func (*TokenBucketResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{11} -} -func (m *TokenBucketResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucketResponse.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 *TokenBucketResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketResponse.Merge(m, src) -} -func (m *TokenBucketResponse) XXX_Size() int { - return m.Size() -} -func (m *TokenBucketResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucketResponse.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{11} } -var xxx_messageInfo_TokenBucketResponse proto.InternalMessageInfo - func (m *TokenBucketResponse) GetResourceGroupName() string { if m != nil { return m.ResourceGroupName @@ -969,46 +652,17 @@ func (m *TokenBucketResponse) GetGrantedResourceTokens() []*GrantedRawResourceTo } type GrantedRUTokenBucket struct { - Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` - GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens,proto3" json:"granted_tokens,omitempty"` - TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` + GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens" json:"granted_tokens,omitempty"` + TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` } func (m *GrantedRUTokenBucket) Reset() { *m = GrantedRUTokenBucket{} } func (m *GrantedRUTokenBucket) String() string { return proto.CompactTextString(m) } func (*GrantedRUTokenBucket) ProtoMessage() {} func (*GrantedRUTokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{12} -} -func (m *GrantedRUTokenBucket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GrantedRUTokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GrantedRUTokenBucket.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 fileDescriptorResourceManager, []int{12} } -func (m *GrantedRUTokenBucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantedRUTokenBucket.Merge(m, src) -} -func (m *GrantedRUTokenBucket) XXX_Size() int { - return m.Size() -} -func (m *GrantedRUTokenBucket) XXX_DiscardUnknown() { - xxx_messageInfo_GrantedRUTokenBucket.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantedRUTokenBucket proto.InternalMessageInfo func (m *GrantedRUTokenBucket) GetType() RequestUnitType { if m != nil { @@ -1032,47 +686,18 @@ func (m *GrantedRUTokenBucket) GetTrickleTimeMs() int64 { } type GrantedRawResourceTokenBucket struct { - Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` - GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens,proto3" json:"granted_tokens,omitempty"` - TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` + GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens" json:"granted_tokens,omitempty"` + TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` } func (m *GrantedRawResourceTokenBucket) Reset() { *m = GrantedRawResourceTokenBucket{} } func (m *GrantedRawResourceTokenBucket) String() string { return proto.CompactTextString(m) } func (*GrantedRawResourceTokenBucket) ProtoMessage() {} func (*GrantedRawResourceTokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{13} -} -func (m *GrantedRawResourceTokenBucket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GrantedRawResourceTokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GrantedRawResourceTokenBucket.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 *GrantedRawResourceTokenBucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantedRawResourceTokenBucket.Merge(m, src) -} -func (m *GrantedRawResourceTokenBucket) XXX_Size() int { - return m.Size() -} -func (m *GrantedRawResourceTokenBucket) XXX_DiscardUnknown() { - xxx_messageInfo_GrantedRawResourceTokenBucket.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{13} } -var xxx_messageInfo_GrantedRawResourceTokenBucket proto.InternalMessageInfo - func (m *GrantedRawResourceTokenBucket) GetType() RawResourceType { if m != nil { return m.Type @@ -1095,51 +720,20 @@ func (m *GrantedRawResourceTokenBucket) GetTrickleTimeMs() int64 { } type Consumption struct { - RRU float64 `protobuf:"fixed64,1,opt,name=r_r_u,json=rRU,proto3" json:"r_r_u,omitempty"` - WRU float64 `protobuf:"fixed64,2,opt,name=w_r_u,json=wRU,proto3" json:"w_r_u,omitempty"` - ReadBytes float64 `protobuf:"fixed64,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` - WriteBytes float64 `protobuf:"fixed64,4,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` - TotalCpuTimeMs float64 `protobuf:"fixed64,5,opt,name=total_cpu_time_ms,json=totalCpuTimeMs,proto3" json:"total_cpu_time_ms,omitempty"` - SqlLayerCpuTimeMs float64 `protobuf:"fixed64,6,opt,name=sql_layer_cpu_time_ms,json=sqlLayerCpuTimeMs,proto3" json:"sql_layer_cpu_time_ms,omitempty"` - KvReadRpcCount float64 `protobuf:"fixed64,7,opt,name=kv_read_rpc_count,json=kvReadRpcCount,proto3" json:"kv_read_rpc_count,omitempty"` - KvWriteRpcCount float64 `protobuf:"fixed64,8,opt,name=kv_write_rpc_count,json=kvWriteRpcCount,proto3" json:"kv_write_rpc_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Consumption) Reset() { *m = Consumption{} } -func (m *Consumption) String() string { return proto.CompactTextString(m) } -func (*Consumption) ProtoMessage() {} -func (*Consumption) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{14} -} -func (m *Consumption) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Consumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Consumption.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 *Consumption) XXX_Merge(src proto.Message) { - xxx_messageInfo_Consumption.Merge(m, src) -} -func (m *Consumption) XXX_Size() int { - return m.Size() -} -func (m *Consumption) XXX_DiscardUnknown() { - xxx_messageInfo_Consumption.DiscardUnknown(m) + RRU float64 `protobuf:"fixed64,1,opt,name=r_r_u,json=rRU,proto3" json:"r_r_u,omitempty"` + WRU float64 `protobuf:"fixed64,2,opt,name=w_r_u,json=wRU,proto3" json:"w_r_u,omitempty"` + ReadBytes float64 `protobuf:"fixed64,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + WriteBytes float64 `protobuf:"fixed64,4,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` + TotalCpuTimeMs float64 `protobuf:"fixed64,5,opt,name=total_cpu_time_ms,json=totalCpuTimeMs,proto3" json:"total_cpu_time_ms,omitempty"` + SqlLayerCpuTimeMs float64 `protobuf:"fixed64,6,opt,name=sql_layer_cpu_time_ms,json=sqlLayerCpuTimeMs,proto3" json:"sql_layer_cpu_time_ms,omitempty"` + KvReadRpcCount float64 `protobuf:"fixed64,7,opt,name=kv_read_rpc_count,json=kvReadRpcCount,proto3" json:"kv_read_rpc_count,omitempty"` + KvWriteRpcCount float64 `protobuf:"fixed64,8,opt,name=kv_write_rpc_count,json=kvWriteRpcCount,proto3" json:"kv_write_rpc_count,omitempty"` } -var xxx_messageInfo_Consumption proto.InternalMessageInfo +func (m *Consumption) Reset() { *m = Consumption{} } +func (m *Consumption) String() string { return proto.CompactTextString(m) } +func (*Consumption) ProtoMessage() {} +func (*Consumption) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{14} } func (m *Consumption) GetRRU() float64 { if m != nil { @@ -1198,45 +792,14 @@ func (m *Consumption) GetKvWriteRpcCount() float64 { } type RequestUnitItem struct { - Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` - Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestUnitItem) Reset() { *m = RequestUnitItem{} } -func (m *RequestUnitItem) String() string { return proto.CompactTextString(m) } -func (*RequestUnitItem) ProtoMessage() {} -func (*RequestUnitItem) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{15} -} -func (m *RequestUnitItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestUnitItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestUnitItem.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 *RequestUnitItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestUnitItem.Merge(m, src) -} -func (m *RequestUnitItem) XXX_Size() int { - return m.Size() -} -func (m *RequestUnitItem) XXX_DiscardUnknown() { - xxx_messageInfo_RequestUnitItem.DiscardUnknown(m) + Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_RequestUnitItem proto.InternalMessageInfo +func (m *RequestUnitItem) Reset() { *m = RequestUnitItem{} } +func (m *RequestUnitItem) String() string { return proto.CompactTextString(m) } +func (*RequestUnitItem) ProtoMessage() {} +func (*RequestUnitItem) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{15} } func (m *RequestUnitItem) GetType() RequestUnitType { if m != nil { @@ -1253,45 +816,14 @@ func (m *RequestUnitItem) GetValue() float64 { } type RawResourceItem struct { - Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` - Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawResourceItem) Reset() { *m = RawResourceItem{} } -func (m *RawResourceItem) String() string { return proto.CompactTextString(m) } -func (*RawResourceItem) ProtoMessage() {} -func (*RawResourceItem) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{16} -} -func (m *RawResourceItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawResourceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RawResourceItem.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 *RawResourceItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawResourceItem.Merge(m, src) -} -func (m *RawResourceItem) XXX_Size() int { - return m.Size() -} -func (m *RawResourceItem) XXX_DiscardUnknown() { - xxx_messageInfo_RawResourceItem.DiscardUnknown(m) + Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_RawResourceItem proto.InternalMessageInfo +func (m *RawResourceItem) Reset() { *m = RawResourceItem{} } +func (m *RawResourceItem) String() string { return proto.CompactTextString(m) } +func (*RawResourceItem) ProtoMessage() {} +func (*RawResourceItem) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{16} } func (m *RawResourceItem) GetType() RawResourceType { if m != nil { @@ -1312,51 +844,20 @@ type ResourceGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mode GroupMode `protobuf:"varint,2,opt,name=mode,proto3,enum=resource_manager.GroupMode" json:"mode,omitempty"` // Used in RU mode, group settings with WRU/RRU etc resource abstract unit. - RUSettings *GroupRequestUnitSettings `protobuf:"bytes,3,opt,name=r_u_settings,json=rUSettings,proto3" json:"r_u_settings,omitempty"` + RUSettings *GroupRequestUnitSettings `protobuf:"bytes,3,opt,name=r_u_settings,json=rUSettings" json:"r_u_settings,omitempty"` // Used in Raw mode, group settings with CPU/IO etc resource unit. - RawResourceSettings *GroupRawResourceSettings `protobuf:"bytes,4,opt,name=raw_resource_settings,json=rawResourceSettings,proto3" json:"raw_resource_settings,omitempty"` + RawResourceSettings *GroupRawResourceSettings `protobuf:"bytes,4,opt,name=raw_resource_settings,json=rawResourceSettings" json:"raw_resource_settings,omitempty"` // The task scheduling priority Priority uint32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` // Runaway queries settings - RunawaySettings *RunawaySettings `protobuf:"bytes,6,opt,name=runaway_settings,json=runawaySettings,proto3" json:"runaway_settings,omitempty"` - BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings,proto3" json:"background_settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourceGroup) Reset() { *m = ResourceGroup{} } -func (m *ResourceGroup) String() string { return proto.CompactTextString(m) } -func (*ResourceGroup) ProtoMessage() {} -func (*ResourceGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{17} -} -func (m *ResourceGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceGroup.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 *ResourceGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceGroup.Merge(m, src) -} -func (m *ResourceGroup) XXX_Size() int { - return m.Size() -} -func (m *ResourceGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceGroup.DiscardUnknown(m) + RunawaySettings *RunawaySettings `protobuf:"bytes,6,opt,name=runaway_settings,json=runawaySettings" json:"runaway_settings,omitempty"` + BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings" json:"background_settings,omitempty"` } -var xxx_messageInfo_ResourceGroup proto.InternalMessageInfo +func (m *ResourceGroup) Reset() { *m = ResourceGroup{} } +func (m *ResourceGroup) String() string { return proto.CompactTextString(m) } +func (*ResourceGroup) ProtoMessage() {} +func (*ResourceGroup) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{17} } func (m *ResourceGroup) GetName() string { if m != nil { @@ -1408,44 +909,15 @@ func (m *ResourceGroup) GetBackgroundSettings() *BackgroundSettings { } type GroupRequestUnitSettings struct { - RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU,proto3" json:"r_u,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU" json:"r_u,omitempty"` } func (m *GroupRequestUnitSettings) Reset() { *m = GroupRequestUnitSettings{} } func (m *GroupRequestUnitSettings) String() string { return proto.CompactTextString(m) } func (*GroupRequestUnitSettings) ProtoMessage() {} func (*GroupRequestUnitSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{18} -} -func (m *GroupRequestUnitSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupRequestUnitSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRequestUnitSettings.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 *GroupRequestUnitSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupRequestUnitSettings.Merge(m, src) -} -func (m *GroupRequestUnitSettings) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{18} } -func (m *GroupRequestUnitSettings) XXX_DiscardUnknown() { - xxx_messageInfo_GroupRequestUnitSettings.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupRequestUnitSettings proto.InternalMessageInfo func (m *GroupRequestUnitSettings) GetRU() *TokenBucket { if m != nil { @@ -1455,47 +927,18 @@ func (m *GroupRequestUnitSettings) GetRU() *TokenBucket { } type GroupRawResourceSettings struct { - Cpu *TokenBucket `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` - IoRead *TokenBucket `protobuf:"bytes,2,opt,name=io_read,json=ioRead,proto3" json:"io_read,omitempty"` - IoWrite *TokenBucket `protobuf:"bytes,3,opt,name=io_write,json=ioWrite,proto3" json:"io_write,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cpu *TokenBucket `protobuf:"bytes,1,opt,name=cpu" json:"cpu,omitempty"` + IoRead *TokenBucket `protobuf:"bytes,2,opt,name=io_read,json=ioRead" json:"io_read,omitempty"` + IoWrite *TokenBucket `protobuf:"bytes,3,opt,name=io_write,json=ioWrite" json:"io_write,omitempty"` } func (m *GroupRawResourceSettings) Reset() { *m = GroupRawResourceSettings{} } func (m *GroupRawResourceSettings) String() string { return proto.CompactTextString(m) } func (*GroupRawResourceSettings) ProtoMessage() {} func (*GroupRawResourceSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{19} -} -func (m *GroupRawResourceSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupRawResourceSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRawResourceSettings.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 *GroupRawResourceSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupRawResourceSettings.Merge(m, src) -} -func (m *GroupRawResourceSettings) XXX_Size() int { - return m.Size() -} -func (m *GroupRawResourceSettings) XXX_DiscardUnknown() { - xxx_messageInfo_GroupRawResourceSettings.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{19} } -var xxx_messageInfo_GroupRawResourceSettings proto.InternalMessageInfo - func (m *GroupRawResourceSettings) GetCpu() *TokenBucket { if m != nil { return m.Cpu @@ -1518,46 +961,15 @@ func (m *GroupRawResourceSettings) GetIoWrite() *TokenBucket { } type TokenBucket struct { - Settings *TokenLimitSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` + Settings *TokenLimitSettings `protobuf:"bytes,1,opt,name=settings" json:"settings,omitempty"` // Once used to reconfigure, the tokens is delta tokens. - Tokens float64 `protobuf:"fixed64,2,opt,name=tokens,proto3" json:"tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TokenBucket) Reset() { *m = TokenBucket{} } -func (m *TokenBucket) String() string { return proto.CompactTextString(m) } -func (*TokenBucket) ProtoMessage() {} -func (*TokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{20} -} -func (m *TokenBucket) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenBucket.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 *TokenBucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucket.Merge(m, src) -} -func (m *TokenBucket) XXX_Size() int { - return m.Size() -} -func (m *TokenBucket) XXX_DiscardUnknown() { - xxx_messageInfo_TokenBucket.DiscardUnknown(m) + Tokens float64 `protobuf:"fixed64,2,opt,name=tokens,proto3" json:"tokens,omitempty"` } -var xxx_messageInfo_TokenBucket proto.InternalMessageInfo +func (m *TokenBucket) Reset() { *m = TokenBucket{} } +func (m *TokenBucket) String() string { return proto.CompactTextString(m) } +func (*TokenBucket) ProtoMessage() {} +func (*TokenBucket) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{20} } func (m *TokenBucket) GetSettings() *TokenLimitSettings { if m != nil { @@ -1574,46 +986,17 @@ func (m *TokenBucket) GetTokens() float64 { } type TokenLimitSettings struct { - FillRate uint64 `protobuf:"varint,1,opt,name=fill_rate,json=fillRate,proto3" json:"fill_rate,omitempty"` - BurstLimit int64 `protobuf:"varint,2,opt,name=burst_limit,json=burstLimit,proto3" json:"burst_limit,omitempty"` - MaxTokens float64 `protobuf:"fixed64,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + FillRate uint64 `protobuf:"varint,1,opt,name=fill_rate,json=fillRate,proto3" json:"fill_rate,omitempty"` + BurstLimit int64 `protobuf:"varint,2,opt,name=burst_limit,json=burstLimit,proto3" json:"burst_limit,omitempty"` + MaxTokens float64 `protobuf:"fixed64,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` } func (m *TokenLimitSettings) Reset() { *m = TokenLimitSettings{} } func (m *TokenLimitSettings) String() string { return proto.CompactTextString(m) } func (*TokenLimitSettings) ProtoMessage() {} func (*TokenLimitSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{21} -} -func (m *TokenLimitSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenLimitSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TokenLimitSettings.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 *TokenLimitSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenLimitSettings.Merge(m, src) -} -func (m *TokenLimitSettings) XXX_Size() int { - return m.Size() + return fileDescriptorResourceManager, []int{21} } -func (m *TokenLimitSettings) XXX_DiscardUnknown() { - xxx_messageInfo_TokenLimitSettings.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenLimitSettings proto.InternalMessageInfo func (m *TokenLimitSettings) GetFillRate() uint64 { if m != nil { @@ -1637,44 +1020,13 @@ func (m *TokenLimitSettings) GetMaxTokens() float64 { } type Error struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{22} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{22} } func (m *Error) GetMessage() string { if m != nil { @@ -1684,44 +1036,13 @@ func (m *Error) GetMessage() string { } type RunawayRule struct { - ExecElapsedTimeMs uint64 `protobuf:"varint,1,opt,name=exec_elapsed_time_ms,json=execElapsedTimeMs,proto3" json:"exec_elapsed_time_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RunawayRule) Reset() { *m = RunawayRule{} } -func (m *RunawayRule) String() string { return proto.CompactTextString(m) } -func (*RunawayRule) ProtoMessage() {} -func (*RunawayRule) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{23} -} -func (m *RunawayRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunawayRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RunawayRule.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 *RunawayRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunawayRule.Merge(m, src) -} -func (m *RunawayRule) XXX_Size() int { - return m.Size() -} -func (m *RunawayRule) XXX_DiscardUnknown() { - xxx_messageInfo_RunawayRule.DiscardUnknown(m) + ExecElapsedTimeMs uint64 `protobuf:"varint,1,opt,name=exec_elapsed_time_ms,json=execElapsedTimeMs,proto3" json:"exec_elapsed_time_ms,omitempty"` } -var xxx_messageInfo_RunawayRule proto.InternalMessageInfo +func (m *RunawayRule) Reset() { *m = RunawayRule{} } +func (m *RunawayRule) String() string { return proto.CompactTextString(m) } +func (*RunawayRule) ProtoMessage() {} +func (*RunawayRule) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{23} } func (m *RunawayRule) GetExecElapsedTimeMs() uint64 { if m != nil { @@ -1732,45 +1053,14 @@ func (m *RunawayRule) GetExecElapsedTimeMs() uint64 { type RunawayWatch struct { // how long would the watch last - LastingDurationMs int64 `protobuf:"varint,1,opt,name=lasting_duration_ms,json=lastingDurationMs,proto3" json:"lasting_duration_ms,omitempty"` - Type RunawayWatchType `protobuf:"varint,2,opt,name=type,proto3,enum=resource_manager.RunawayWatchType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RunawayWatch) Reset() { *m = RunawayWatch{} } -func (m *RunawayWatch) String() string { return proto.CompactTextString(m) } -func (*RunawayWatch) ProtoMessage() {} -func (*RunawayWatch) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{24} -} -func (m *RunawayWatch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunawayWatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RunawayWatch.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 *RunawayWatch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunawayWatch.Merge(m, src) -} -func (m *RunawayWatch) XXX_Size() int { - return m.Size() -} -func (m *RunawayWatch) XXX_DiscardUnknown() { - xxx_messageInfo_RunawayWatch.DiscardUnknown(m) + LastingDurationMs int64 `protobuf:"varint,1,opt,name=lasting_duration_ms,json=lastingDurationMs,proto3" json:"lasting_duration_ms,omitempty"` + Type RunawayWatchType `protobuf:"varint,2,opt,name=type,proto3,enum=resource_manager.RunawayWatchType" json:"type,omitempty"` } -var xxx_messageInfo_RunawayWatch proto.InternalMessageInfo +func (m *RunawayWatch) Reset() { *m = RunawayWatch{} } +func (m *RunawayWatch) String() string { return proto.CompactTextString(m) } +func (*RunawayWatch) ProtoMessage() {} +func (*RunawayWatch) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{24} } func (m *RunawayWatch) GetLastingDurationMs() int64 { if m != nil { @@ -1787,46 +1077,15 @@ func (m *RunawayWatch) GetType() RunawayWatchType { } type RunawaySettings struct { - Rule *RunawayRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` - Action RunawayAction `protobuf:"varint,2,opt,name=action,proto3,enum=resource_manager.RunawayAction" json:"action,omitempty"` - Watch *RunawayWatch `protobuf:"bytes,3,opt,name=watch,proto3" json:"watch,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RunawaySettings) Reset() { *m = RunawaySettings{} } -func (m *RunawaySettings) String() string { return proto.CompactTextString(m) } -func (*RunawaySettings) ProtoMessage() {} -func (*RunawaySettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{25} -} -func (m *RunawaySettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunawaySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RunawaySettings.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 *RunawaySettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunawaySettings.Merge(m, src) -} -func (m *RunawaySettings) XXX_Size() int { - return m.Size() -} -func (m *RunawaySettings) XXX_DiscardUnknown() { - xxx_messageInfo_RunawaySettings.DiscardUnknown(m) + Rule *RunawayRule `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"` + Action RunawayAction `protobuf:"varint,2,opt,name=action,proto3,enum=resource_manager.RunawayAction" json:"action,omitempty"` + Watch *RunawayWatch `protobuf:"bytes,3,opt,name=watch" json:"watch,omitempty"` } -var xxx_messageInfo_RunawaySettings proto.InternalMessageInfo +func (m *RunawaySettings) Reset() { *m = RunawaySettings{} } +func (m *RunawaySettings) String() string { return proto.CompactTextString(m) } +func (*RunawaySettings) ProtoMessage() {} +func (*RunawaySettings) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{25} } func (m *RunawaySettings) GetRule() *RunawayRule { if m != nil { @@ -1850,45 +1109,16 @@ func (m *RunawaySettings) GetWatch() *RunawayWatch { } type BackgroundSettings struct { - JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes,proto3" json:"job_types,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes" json:"job_types,omitempty"` } func (m *BackgroundSettings) Reset() { *m = BackgroundSettings{} } func (m *BackgroundSettings) String() string { return proto.CompactTextString(m) } func (*BackgroundSettings) ProtoMessage() {} func (*BackgroundSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{26} -} -func (m *BackgroundSettings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BackgroundSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BackgroundSettings.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 *BackgroundSettings) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackgroundSettings.Merge(m, src) -} -func (m *BackgroundSettings) XXX_Size() int { - return m.Size() -} -func (m *BackgroundSettings) XXX_DiscardUnknown() { - xxx_messageInfo_BackgroundSettings.DiscardUnknown(m) + return fileDescriptorResourceManager, []int{26} } -var xxx_messageInfo_BackgroundSettings proto.InternalMessageInfo - func (m *BackgroundSettings) GetJobTypes() []string { if m != nil { return m.JobTypes @@ -1897,11 +1127,6 @@ func (m *BackgroundSettings) GetJobTypes() []string { } func init() { - proto.RegisterEnum("resource_manager.RequestUnitType", RequestUnitType_name, RequestUnitType_value) - proto.RegisterEnum("resource_manager.RawResourceType", RawResourceType_name, RawResourceType_value) - proto.RegisterEnum("resource_manager.GroupMode", GroupMode_name, GroupMode_value) - proto.RegisterEnum("resource_manager.RunawayAction", RunawayAction_name, RunawayAction_value) - proto.RegisterEnum("resource_manager.RunawayWatchType", RunawayWatchType_name, RunawayWatchType_value) proto.RegisterType((*ListResourceGroupsRequest)(nil), "resource_manager.ListResourceGroupsRequest") proto.RegisterType((*ListResourceGroupsResponse)(nil), "resource_manager.ListResourceGroupsResponse") proto.RegisterType((*GetResourceGroupRequest)(nil), "resource_manager.GetResourceGroupRequest") @@ -1931,119 +1156,11 @@ func init() { proto.RegisterType((*RunawayWatch)(nil), "resource_manager.RunawayWatch") proto.RegisterType((*RunawaySettings)(nil), "resource_manager.RunawaySettings") proto.RegisterType((*BackgroundSettings)(nil), "resource_manager.BackgroundSettings") -} - -func init() { proto.RegisterFile("resource_manager.proto", fileDescriptor_7048dd9233ee965d) } - -var fileDescriptor_7048dd9233ee965d = []byte{ - // 1705 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x23, 0x49, - 0x15, 0x77, 0xfb, 0xdb, 0xcf, 0x93, 0xd8, 0xa9, 0x64, 0x76, 0xbc, 0x8e, 0x26, 0x33, 0xdb, 0xc0, - 0x28, 0x93, 0x65, 0x33, 0x3b, 0x81, 0xdd, 0x41, 0x42, 0x42, 0x9b, 0x38, 0xc3, 0x6c, 0xd8, 0x64, - 0x36, 0xaa, 0xc4, 0xda, 0x13, 0xdb, 0x94, 0xdb, 0x35, 0xde, 0x1a, 0xb7, 0xbb, 0x9d, 0xea, 0xea, - 0x38, 0xbe, 0x21, 0xc1, 0x89, 0xbf, 0x80, 0x3f, 0x01, 0x71, 0x42, 0xe2, 0x06, 0xe2, 0x04, 0x07, - 0x8e, 0x1c, 0x39, 0xa2, 0xe1, 0xc2, 0x9f, 0x81, 0xea, 0xa3, 0xdb, 0xed, 0xd8, 0xce, 0x97, 0x56, - 0x70, 0xeb, 0x7e, 0xef, 0xf7, 0x7e, 0xef, 0xc3, 0xef, 0xbd, 0x2e, 0x17, 0xbc, 0xc7, 0x69, 0x18, - 0x44, 0xdc, 0xa5, 0xce, 0x80, 0xf8, 0xa4, 0x47, 0xf9, 0xf6, 0x90, 0x07, 0x22, 0x40, 0xf5, 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xc1, 0x57, 0xc2, 0x33, 0xef, 0x50, - 0xea, 0x26, 0x16, 0x4f, 0x61, 0xa5, 0x7f, 0xee, 0xa8, 0xf8, 0xf8, 0xd0, 0x75, 0xdc, 0x20, 0xf2, - 0x45, 0xa3, 0xa4, 0xc9, 0xfb, 0xe7, 0x98, 0x92, 0x2e, 0x1e, 0xba, 0x2d, 0x29, 0x45, 0x1f, 0x02, - 0xea, 0x9f, 0x3b, 0x3a, 0xd6, 0x09, 0xb6, 0xac, 0xb0, 0xb5, 0xfe, 0xf9, 0x57, 0x52, 0x11, 0x83, - 0xed, 0xaf, 0xa1, 0x76, 0x69, 0xb1, 0xdd, 0xb5, 0x57, 0xd7, 0xa0, 0x70, 0x4e, 0xbc, 0x88, 0x9a, - 0x92, 0xea, 0x17, 0xc5, 0x3f, 0xbd, 0xd6, 0xee, 0xda, 0x44, 0xf3, 0xf9, 0xff, 0x9a, 0x83, 0xa5, - 0xa9, 0x93, 0x88, 0x3c, 0x52, 0xa4, 0x56, 0x8c, 0x7a, 0x46, 0xcf, 0x20, 0x3f, 0x08, 0xba, 0xda, - 0x74, 0x79, 0x67, 0x7d, 0xde, 0xb4, 0x07, 0xd1, 0xf0, 0x28, 0xe8, 0x52, 0xac, 0x80, 0xe8, 0x10, - 0xee, 0xc9, 0xf5, 0x13, 0x52, 0x21, 0x98, 0xdf, 0x8b, 0x3f, 0x96, 0x5b, 0x0b, 0x0c, 0x53, 0x05, - 0x39, 0x31, 0x16, 0x18, 0x78, 0x3b, 0x7e, 0x46, 0x5f, 0xc3, 0xfd, 0xa9, 0x0f, 0x70, 0x42, 0x9b, - 0xbf, 0x9a, 0x76, 0x52, 0x87, 0x84, 0x76, 0x95, 0xcf, 0x0a, 0x51, 0x13, 0xca, 0x43, 0xce, 0x02, - 0xce, 0xc4, 0x58, 0x35, 0xdc, 0x12, 0x4e, 0xde, 0xd1, 0x21, 0xd4, 0x79, 0xe4, 0x93, 0x11, 0x19, - 0x4f, 0xdc, 0x16, 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, 0xdb, 0xed, 0x5e, 0xeb, 0x6c, 0xc1, 0xe5, 0xc3, 0x3c, - 0x67, 0x8b, 0x6e, 0x15, 0xec, 0x0c, 0xf2, 0x61, 0xf5, 0x28, 0xe8, 0xb2, 0x37, 0xe3, 0xff, 0x91, - 0x3f, 0x01, 0xab, 0x73, 0xee, 0x65, 0xd0, 0x9c, 0x1f, 0x64, 0xf1, 0x65, 0x50, 0xf3, 0xa3, 0x1b, - 0xa2, 0x13, 0xaf, 0x6f, 0x61, 0x75, 0xd7, 0x3d, 0x8b, 0x18, 0x4f, 0x9f, 0xba, 0x43, 0x74, 0xf5, - 0xdf, 0xb1, 0xa4, 0x5b, 0x9e, 0x5c, 0x07, 0x8b, 0xfd, 0x6c, 0x5a, 0x1f, 0x5b, 0x7b, 0x6b, 0xff, - 0xfc, 0x5d, 0xd9, 0xfa, 0xfb, 0xbb, 0x0d, 0xeb, 0x1f, 0xef, 0x36, 0xac, 0x7f, 0xbd, 0xdb, 0xb0, - 0x7e, 0xfb, 0xef, 0x8d, 0x4c, 0xa7, 0xa8, 0xae, 0x15, 0x7f, 0xf0, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xea, 0x43, 0xed, 0xd1, 0xa9, 0x14, 0x00, 0x00, + proto.RegisterEnum("resource_manager.RequestUnitType", RequestUnitType_name, RequestUnitType_value) + proto.RegisterEnum("resource_manager.RawResourceType", RawResourceType_name, RawResourceType_value) + proto.RegisterEnum("resource_manager.GroupMode", GroupMode_name, GroupMode_value) + proto.RegisterEnum("resource_manager.RunawayAction", RunawayAction_name, RunawayAction_value) + proto.RegisterEnum("resource_manager.RunawayWatchType", RunawayWatchType_name, RunawayWatchType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -2054,9 +1171,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ResourceManagerClient is the client API for ResourceManager service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ResourceManager service + type ResourceManagerClient interface { ListResourceGroups(ctx context.Context, in *ListResourceGroupsRequest, opts ...grpc.CallOption) (*ListResourceGroupsResponse, error) GetResourceGroup(ctx context.Context, in *GetResourceGroupRequest, opts ...grpc.CallOption) (*GetResourceGroupResponse, error) @@ -2076,7 +1192,7 @@ func NewResourceManagerClient(cc *grpc.ClientConn) ResourceManagerClient { func (c *resourceManagerClient) ListResourceGroups(ctx context.Context, in *ListResourceGroupsRequest, opts ...grpc.CallOption) (*ListResourceGroupsResponse, error) { out := new(ListResourceGroupsResponse) - err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/ListResourceGroups", in, out, opts...) + err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/ListResourceGroups", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2085,7 +1201,7 @@ func (c *resourceManagerClient) ListResourceGroups(ctx context.Context, in *List func (c *resourceManagerClient) GetResourceGroup(ctx context.Context, in *GetResourceGroupRequest, opts ...grpc.CallOption) (*GetResourceGroupResponse, error) { out := new(GetResourceGroupResponse) - err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/GetResourceGroup", in, out, opts...) + err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/GetResourceGroup", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2094,7 +1210,7 @@ func (c *resourceManagerClient) GetResourceGroup(ctx context.Context, in *GetRes func (c *resourceManagerClient) AddResourceGroup(ctx context.Context, in *PutResourceGroupRequest, opts ...grpc.CallOption) (*PutResourceGroupResponse, error) { out := new(PutResourceGroupResponse) - err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/AddResourceGroup", in, out, opts...) + err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/AddResourceGroup", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2103,7 +1219,7 @@ func (c *resourceManagerClient) AddResourceGroup(ctx context.Context, in *PutRes func (c *resourceManagerClient) ModifyResourceGroup(ctx context.Context, in *PutResourceGroupRequest, opts ...grpc.CallOption) (*PutResourceGroupResponse, error) { out := new(PutResourceGroupResponse) - err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/ModifyResourceGroup", in, out, opts...) + err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/ModifyResourceGroup", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2112,7 +1228,7 @@ func (c *resourceManagerClient) ModifyResourceGroup(ctx context.Context, in *Put func (c *resourceManagerClient) DeleteResourceGroup(ctx context.Context, in *DeleteResourceGroupRequest, opts ...grpc.CallOption) (*DeleteResourceGroupResponse, error) { out := new(DeleteResourceGroupResponse) - err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/DeleteResourceGroup", in, out, opts...) + err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/DeleteResourceGroup", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2120,7 +1236,7 @@ func (c *resourceManagerClient) DeleteResourceGroup(ctx context.Context, in *Del } func (c *resourceManagerClient) AcquireTokenBuckets(ctx context.Context, opts ...grpc.CallOption) (ResourceManager_AcquireTokenBucketsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ResourceManager_serviceDesc.Streams[0], "/resource_manager.ResourceManager/AcquireTokenBuckets", opts...) + stream, err := grpc.NewClientStream(ctx, &_ResourceManager_serviceDesc.Streams[0], c.cc, "/resource_manager.ResourceManager/AcquireTokenBuckets", opts...) if err != nil { return nil, err } @@ -2150,7 +1266,8 @@ func (x *resourceManagerAcquireTokenBucketsClient) Recv() (*TokenBucketsResponse return m, nil } -// ResourceManagerServer is the server API for ResourceManager service. +// Server API for ResourceManager service + type ResourceManagerServer interface { ListResourceGroups(context.Context, *ListResourceGroupsRequest) (*ListResourceGroupsResponse, error) GetResourceGroup(context.Context, *GetResourceGroupRequest) (*GetResourceGroupResponse, error) @@ -2160,29 +1277,6 @@ type ResourceManagerServer interface { AcquireTokenBuckets(ResourceManager_AcquireTokenBucketsServer) error } -// UnimplementedResourceManagerServer can be embedded to have forward compatible implementations. -type UnimplementedResourceManagerServer struct { -} - -func (*UnimplementedResourceManagerServer) ListResourceGroups(ctx context.Context, req *ListResourceGroupsRequest) (*ListResourceGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListResourceGroups not implemented") -} -func (*UnimplementedResourceManagerServer) GetResourceGroup(ctx context.Context, req *GetResourceGroupRequest) (*GetResourceGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetResourceGroup not implemented") -} -func (*UnimplementedResourceManagerServer) AddResourceGroup(ctx context.Context, req *PutResourceGroupRequest) (*PutResourceGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddResourceGroup not implemented") -} -func (*UnimplementedResourceManagerServer) ModifyResourceGroup(ctx context.Context, req *PutResourceGroupRequest) (*PutResourceGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ModifyResourceGroup not implemented") -} -func (*UnimplementedResourceManagerServer) DeleteResourceGroup(ctx context.Context, req *DeleteResourceGroupRequest) (*DeleteResourceGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteResourceGroup not implemented") -} -func (*UnimplementedResourceManagerServer) AcquireTokenBuckets(srv ResourceManager_AcquireTokenBucketsServer) error { - return status.Errorf(codes.Unimplemented, "method AcquireTokenBuckets not implemented") -} - func RegisterResourceManagerServer(s *grpc.Server, srv ResourceManagerServer) { s.RegisterService(&_ResourceManager_serviceDesc, srv) } @@ -2342,7 +1436,7 @@ var _ResourceManager_serviceDesc = grpc.ServiceDesc{ func (m *ListResourceGroupsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2350,26 +1444,17 @@ func (m *ListResourceGroupsRequest) Marshal() (dAtA []byte, err error) { } func (m *ListResourceGroupsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListResourceGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ListResourceGroupsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2377,52 +1462,39 @@ func (m *ListResourceGroupsResponse) Marshal() (dAtA []byte, err error) { } func (m *ListResourceGroupsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListResourceGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) + n1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Groups { dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *GetResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2430,33 +1502,23 @@ func (m *GetResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *GetResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - return len(dAtA) - i, nil + return i, nil } func (m *GetResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2464,50 +1526,37 @@ func (m *GetResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Group.Size())) + n3, err := m.Group.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2515,33 +1564,23 @@ func (m *DeleteResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - return len(dAtA) - i, nil + return i, nil } func (m *DeleteResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2549,45 +1588,33 @@ func (m *DeleteResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) + n4, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } if len(m.Body) > 0 { - i -= len(m.Body) - copy(dAtA[i:], m.Body) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) + i += copy(dAtA[i:], m.Body) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *PutResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2595,38 +1622,27 @@ func (m *PutResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *PutResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Group.Size())) + n5, err := m.Group.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *PutResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2634,45 +1650,33 @@ func (m *PutResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *PutResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) + n6, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } if len(m.Body) > 0 { - i -= len(m.Body) - copy(dAtA[i:], m.Body) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) + i += copy(dAtA[i:], m.Body) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2680,50 +1684,39 @@ func (m *TokenBucketsRequest) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ClientUniqueId != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.ClientUniqueId)) - i-- - dAtA[i] = 0x18 + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.TargetRequestPeriodMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.TargetRequestPeriodMs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.TargetRequestPeriodMs)) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.ClientUniqueId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ClientUniqueId)) } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2731,116 +1724,88 @@ func (m *TokenBucketRequest) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - if m.IsTiflash { - i-- - if m.IsTiflash { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Request != nil { + nn7, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x30 + i += nn7 + } + if m.ConsumptionSinceLastRequest != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ConsumptionSinceLastRequest.Size())) + n8, err := m.ConsumptionSinceLastRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } if m.IsBackground { - i-- + dAtA[i] = 0x28 + i++ if m.IsBackground { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if m.ConsumptionSinceLastRequest != nil { - { - size, err := m.ConsumptionSinceLastRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + i++ } - if m.Request != nil { - { - size := m.Request.Size() - i -= size - if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + if m.IsTiflash { + dAtA[i] = 0x30 + i++ + if m.IsTiflash { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketRequest_RuItems) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketRequest_RuItems) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RuItems != nil { - { - size, err := m.RuItems.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RuItems.Size())) + n9, err := m.RuItems.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketRequest_RawResourceItems) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketRequest_RawResourceItems) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawResourceItems != nil { - { - size, err := m.RawResourceItems.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RawResourceItems.Size())) + n10, err := m.RawResourceItems.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketRequest_RequestRU) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2848,40 +1813,29 @@ func (m *TokenBucketRequest_RequestRU) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketRequest_RequestRU) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketRequest_RequestRU) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.RequestRU) > 0 { - for iNdEx := len(m.RequestRU) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RequestRU[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.RequestRU { dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketRequest_RequestRawResource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2889,40 +1843,29 @@ func (m *TokenBucketRequest_RequestRawResource) Marshal() (dAtA []byte, err erro } func (m *TokenBucketRequest_RequestRawResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketRequest_RequestRawResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.RequestRawResource) > 0 { - for iNdEx := len(m.RequestRawResource) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RequestRawResource[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.RequestRawResource { dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2930,52 +1873,39 @@ func (m *TokenBucketsResponse) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) + n11, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } if len(m.Responses) > 0 { - for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Responses { dAtA[i] = 0x12 - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucketResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2983,61 +1913,47 @@ func (m *TokenBucketResponse) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - if len(m.GrantedResourceTokens) > 0 { - for iNdEx := len(m.GrantedResourceTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GrantedResourceTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if len(m.GrantedRUTokens) > 0 { + for _, msg := range m.GrantedRUTokens { + dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n } } - if len(m.GrantedRUTokens) > 0 { - for iNdEx := len(m.GrantedRUTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GrantedRUTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if len(m.GrantedResourceTokens) > 0 { + for _, msg := range m.GrantedResourceTokens { + dAtA[i] = 0x1a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if len(m.ResourceGroupName) > 0 { - i -= len(m.ResourceGroupName) - copy(dAtA[i:], m.ResourceGroupName) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GrantedRUTokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3045,48 +1961,37 @@ func (m *GrantedRUTokenBucket) Marshal() (dAtA []byte, err error) { } func (m *GrantedRUTokenBucket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GrantedRUTokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TrickleTimeMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) - i-- - dAtA[i] = 0x18 + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) } if m.GrantedTokens != nil { - { - size, err := m.GrantedTokens.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.GrantedTokens.Size())) + n12, err := m.GrantedTokens.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - if m.Type != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.TrickleTimeMs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) } - return len(dAtA) - i, nil + return i, nil } func (m *GrantedRawResourceTokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3094,48 +1999,37 @@ func (m *GrantedRawResourceTokenBucket) Marshal() (dAtA []byte, err error) { } func (m *GrantedRawResourceTokenBucket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GrantedRawResourceTokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TrickleTimeMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) - i-- - dAtA[i] = 0x18 + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) } if m.GrantedTokens != nil { - { - size, err := m.GrantedTokens.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.GrantedTokens.Size())) + n13, err := m.GrantedTokens.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - if m.Type != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.TrickleTimeMs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) } - return len(dAtA) - i, nil + return i, nil } func (m *Consumption) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3143,74 +2037,65 @@ func (m *Consumption) Marshal() (dAtA []byte, err error) { } func (m *Consumption) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Consumption) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RRU != 0 { + dAtA[i] = 0x9 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RRU)))) + i += 8 } - if m.KvWriteRpcCount != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvWriteRpcCount)))) - i-- - dAtA[i] = 0x41 + if m.WRU != 0 { + dAtA[i] = 0x11 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WRU)))) + i += 8 } - if m.KvReadRpcCount != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvReadRpcCount)))) - i-- - dAtA[i] = 0x39 + if m.ReadBytes != 0 { + dAtA[i] = 0x19 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReadBytes)))) + i += 8 } - if m.SqlLayerCpuTimeMs != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SqlLayerCpuTimeMs)))) - i-- - dAtA[i] = 0x31 + if m.WriteBytes != 0 { + dAtA[i] = 0x21 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WriteBytes)))) + i += 8 } if m.TotalCpuTimeMs != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.TotalCpuTimeMs)))) - i-- dAtA[i] = 0x29 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.TotalCpuTimeMs)))) + i += 8 } - if m.WriteBytes != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WriteBytes)))) - i-- - dAtA[i] = 0x21 - } - if m.ReadBytes != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReadBytes)))) - i-- - dAtA[i] = 0x19 + if m.SqlLayerCpuTimeMs != 0 { + dAtA[i] = 0x31 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SqlLayerCpuTimeMs)))) + i += 8 } - if m.WRU != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WRU)))) - i-- - dAtA[i] = 0x11 + if m.KvReadRpcCount != 0 { + dAtA[i] = 0x39 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvReadRpcCount)))) + i += 8 } - if m.RRU != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RRU)))) - i-- - dAtA[i] = 0x9 + if m.KvWriteRpcCount != 0 { + dAtA[i] = 0x41 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvWriteRpcCount)))) + i += 8 } - return len(dAtA) - i, nil + return i, nil } func (m *RequestUnitItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3218,37 +2103,28 @@ func (m *RequestUnitItem) Marshal() (dAtA []byte, err error) { } func (m *RequestUnitItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestUnitItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) } if m.Value != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) - i-- dAtA[i] = 0x11 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i += 8 } - if m.Type != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RawResourceItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3256,37 +2132,28 @@ func (m *RawResourceItem) Marshal() (dAtA []byte, err error) { } func (m *RawResourceItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawResourceItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) } if m.Value != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) - i-- dAtA[i] = 0x11 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i += 8 } - if m.Type != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *ResourceGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3294,91 +2161,73 @@ func (m *ResourceGroup) Marshal() (dAtA []byte, err error) { } func (m *ResourceGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.BackgroundSettings != nil { - { - size, err := m.BackgroundSettings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.Mode != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) + } + if m.RUSettings != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RUSettings.Size())) + n14, err := m.RUSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n14 } - if m.RunawaySettings != nil { - { - size, err := m.RunawaySettings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.RawResourceSettings != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RawResourceSettings.Size())) + n15, err := m.RawResourceSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n15 } if m.Priority != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Priority)) - i-- dAtA[i] = 0x28 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Priority)) } - if m.RawResourceSettings != nil { - { - size, err := m.RawResourceSettings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.RunawaySettings != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RunawaySettings.Size())) + n16, err := m.RunawaySettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n16 } - if m.RUSettings != nil { - { - size, err := m.RUSettings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.BackgroundSettings != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.BackgroundSettings.Size())) + n17, err := m.BackgroundSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a - } - if m.Mode != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + i += n17 } - return len(dAtA) - i, nil + return i, nil } func (m *GroupRequestUnitSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3386,38 +2235,27 @@ func (m *GroupRequestUnitSettings) Marshal() (dAtA []byte, err error) { } func (m *GroupRequestUnitSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupRequestUnitSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RU != nil { - { - size, err := m.RU.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RU.Size())) + n18, err := m.RU.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - return len(dAtA) - i, nil + return i, nil } func (m *GroupRawResourceSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3425,62 +2263,47 @@ func (m *GroupRawResourceSettings) Marshal() (dAtA []byte, err error) { } func (m *GroupRawResourceSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupRawResourceSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.IoWrite != nil { - { - size, err := m.IoWrite.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.Cpu != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Cpu.Size())) + n19, err := m.Cpu.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n19 } if m.IoRead != nil { - { - size, err := m.IoRead.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.IoRead.Size())) + n20, err := m.IoRead.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - if m.Cpu != nil { - { - size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.IoWrite != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.IoWrite.Size())) + n21, err := m.IoWrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *TokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3488,44 +2311,33 @@ func (m *TokenBucket) Marshal() (dAtA []byte, err error) { } func (m *TokenBucket) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Settings != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Settings.Size())) + n22, err := m.Settings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } if m.Tokens != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Tokens)))) - i-- dAtA[i] = 0x11 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Tokens)))) + i += 8 } - if m.Settings != nil { - { - size, err := m.Settings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *TokenLimitSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3533,42 +2345,33 @@ func (m *TokenLimitSettings) Marshal() (dAtA []byte, err error) { } func (m *TokenLimitSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenLimitSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MaxTokens != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxTokens)))) - i-- - dAtA[i] = 0x19 + if m.FillRate != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.FillRate)) } if m.BurstLimit != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.BurstLimit)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.BurstLimit)) } - if m.FillRate != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.FillRate)) - i-- - dAtA[i] = 0x8 + if m.MaxTokens != 0 { + dAtA[i] = 0x19 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxTokens)))) + i += 8 } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3576,33 +2379,23 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - return len(dAtA) - i, nil + return i, nil } func (m *RunawayRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3610,31 +2403,22 @@ func (m *RunawayRule) Marshal() (dAtA []byte, err error) { } func (m *RunawayRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunawayRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.ExecElapsedTimeMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) } - return len(dAtA) - i, nil + return i, nil } func (m *RunawayWatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3642,36 +2426,27 @@ func (m *RunawayWatch) Marshal() (dAtA []byte, err error) { } func (m *RunawayWatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunawayWatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.LastingDurationMs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.LastingDurationMs)) } if m.Type != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) } - if m.LastingDurationMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.LastingDurationMs)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *RunawaySettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3679,55 +2454,42 @@ func (m *RunawaySettings) Marshal() (dAtA []byte, err error) { } func (m *RunawaySettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunawaySettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Watch != nil { - { - size, err := m.Watch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.Rule != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Rule.Size())) + n23, err := m.Rule.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n23 } if m.Action != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Action)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Action)) } - if m.Rule != nil { - { - size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.Watch != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Watch.Size())) + n24, err := m.Watch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n24 } - return len(dAtA) - i, nil + return i, nil } func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3735,58 +2497,44 @@ func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { } func (m *BackgroundSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackgroundSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.JobTypes) > 0 { - for iNdEx := len(m.JobTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobTypes[iNdEx]) - copy(dAtA[i:], m.JobTypes[iNdEx]) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.JobTypes[iNdEx]))) - i-- + for _, s := range m.JobTypes { dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return len(dAtA) - i, nil + return i, nil } func encodeVarintResourceManager(dAtA []byte, offset int, v uint64) int { - offset -= sovResourceManager(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *ListResourceGroupsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ListResourceGroupsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3799,32 +2547,20 @@ func (m *ListResourceGroupsResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3835,32 +2571,20 @@ func (m *GetResourceGroupResponse) Size() (n int) { l = m.Group.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3871,32 +2595,20 @@ func (m *DeleteResourceGroupResponse) Size() (n int) { if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Group != nil { l = m.Group.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PutResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3907,16 +2619,10 @@ func (m *PutResourceGroupResponse) Size() (n int) { if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -3931,16 +2637,10 @@ func (m *TokenBucketsRequest) Size() (n int) { if m.ClientUniqueId != 0 { n += 1 + sovResourceManager(uint64(m.ClientUniqueId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -3960,16 +2660,10 @@ func (m *TokenBucketRequest) Size() (n int) { if m.IsTiflash { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketRequest_RuItems) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RuItems != nil { @@ -3979,9 +2673,6 @@ func (m *TokenBucketRequest_RuItems) Size() (n int) { return n } func (m *TokenBucketRequest_RawResourceItems) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawResourceItems != nil { @@ -3991,9 +2682,6 @@ func (m *TokenBucketRequest_RawResourceItems) Size() (n int) { return n } func (m *TokenBucketRequest_RequestRU) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RequestRU) > 0 { @@ -4002,16 +2690,10 @@ func (m *TokenBucketRequest_RequestRU) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RequestRawResource) > 0 { @@ -4020,16 +2702,10 @@ func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -4042,16 +2718,10 @@ func (m *TokenBucketsResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucketResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -4070,16 +2740,10 @@ func (m *TokenBucketResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GrantedRUTokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4092,16 +2756,10 @@ func (m *GrantedRUTokenBucket) Size() (n int) { if m.TrickleTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.TrickleTimeMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GrantedRawResourceTokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4114,16 +2772,10 @@ func (m *GrantedRawResourceTokenBucket) Size() (n int) { if m.TrickleTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.TrickleTimeMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Consumption) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RRU != 0 { @@ -4150,16 +2802,10 @@ func (m *Consumption) Size() (n int) { if m.KvWriteRpcCount != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RequestUnitItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4168,16 +2814,10 @@ func (m *RequestUnitItem) Size() (n int) { if m.Value != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RawResourceItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4186,16 +2826,10 @@ func (m *RawResourceItem) Size() (n int) { if m.Value != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResourceGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -4224,32 +2858,20 @@ func (m *ResourceGroup) Size() (n int) { l = m.BackgroundSettings.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupRequestUnitSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RU != nil { l = m.RU.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupRawResourceSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cpu != nil { @@ -4264,16 +2886,10 @@ func (m *GroupRawResourceSettings) Size() (n int) { l = m.IoWrite.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Settings != nil { @@ -4283,16 +2899,10 @@ func (m *TokenBucket) Size() (n int) { if m.Tokens != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TokenLimitSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FillRate != 0 { @@ -4304,47 +2914,29 @@ func (m *TokenLimitSettings) Size() (n int) { if m.MaxTokens != 0 { n += 9 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RunawayRule) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ExecElapsedTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.ExecElapsedTimeMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RunawayWatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LastingDurationMs != 0 { @@ -4353,16 +2945,10 @@ func (m *RunawayWatch) Size() (n int) { if m.Type != 0 { n += 1 + sovResourceManager(uint64(m.Type)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *RunawaySettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Rule != nil { @@ -4376,16 +2962,10 @@ func (m *RunawaySettings) Size() (n int) { l = m.Watch.Size() n += 1 + l + sovResourceManager(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BackgroundSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.JobTypes) > 0 { @@ -4394,14 +2974,18 @@ func (m *BackgroundSettings) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovResourceManager(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozResourceManager(x uint64) (n int) { return sovResourceManager(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -4421,7 +3005,7 @@ func (m *ListResourceGroupsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4441,13 +3025,12 @@ func (m *ListResourceGroupsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4472,7 +3055,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4500,7 +3083,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4509,9 +3092,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4536,7 +3116,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4545,9 +3125,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4562,13 +3139,12 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4593,7 +3169,7 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4621,7 +3197,7 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4631,9 +3207,6 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4645,13 +3218,12 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4676,7 +3248,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4704,7 +3276,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4713,9 +3285,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4740,7 +3309,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4749,9 +3318,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4768,13 +3334,12 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4799,7 +3364,7 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4827,7 +3392,7 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4837,9 +3402,6 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4851,13 +3413,12 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4882,7 +3443,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4910,7 +3471,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4919,9 +3480,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4946,7 +3504,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4956,9 +3514,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4970,13 +3525,12 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5001,7 +3555,7 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5029,7 +3583,7 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5038,9 +3592,6 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5057,13 +3608,12 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5088,7 +3638,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5116,7 +3666,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5125,9 +3675,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5152,7 +3699,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5162,9 +3709,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5176,13 +3720,12 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5207,7 +3750,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5235,7 +3778,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5244,9 +3787,6 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5269,7 +3809,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TargetRequestPeriodMs |= uint64(b&0x7F) << shift + m.TargetRequestPeriodMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5288,7 +3828,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClientUniqueId |= uint64(b&0x7F) << shift + m.ClientUniqueId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5299,13 +3839,12 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5330,7 +3869,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5358,7 +3897,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5368,9 +3907,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5390,7 +3926,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5399,9 +3935,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5425,7 +3958,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5434,9 +3967,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5460,7 +3990,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5469,9 +3999,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5496,7 +4023,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5516,7 +4043,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5528,13 +4055,12 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5559,7 +4085,7 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5587,7 +4113,7 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5596,9 +4122,6 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5613,13 +4136,12 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5644,7 +4166,7 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5672,7 +4194,7 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5681,9 +4203,6 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5698,13 +4217,12 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5729,7 +4247,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5757,7 +4275,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5766,9 +4284,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5793,7 +4308,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5802,9 +4317,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5819,13 +4331,12 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5850,7 +4361,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5878,7 +4389,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5888,9 +4399,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5910,7 +4418,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5919,9 +4427,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5944,7 +4449,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5953,9 +4458,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5970,13 +4472,12 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6001,7 +4502,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6029,7 +4530,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= RequestUnitType(b&0x7F) << shift + m.Type |= (RequestUnitType(b) & 0x7F) << shift if b < 0x80 { break } @@ -6048,7 +4549,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6057,9 +4558,6 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6084,7 +4582,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TrickleTimeMs |= int64(b&0x7F) << shift + m.TrickleTimeMs |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6095,13 +4593,12 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6126,7 +4623,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6154,7 +4651,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= RawResourceType(b&0x7F) << shift + m.Type |= (RawResourceType(b) & 0x7F) << shift if b < 0x80 { break } @@ -6173,7 +4670,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6182,9 +4679,6 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6209,7 +4703,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TrickleTimeMs |= int64(b&0x7F) << shift + m.TrickleTimeMs |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6220,13 +4714,12 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6251,7 +4744,7 @@ func (m *Consumption) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6359,13 +4852,12 @@ func (m *Consumption) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6390,7 +4882,7 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6418,7 +4910,7 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= RequestUnitType(b&0x7F) << shift + m.Type |= (RequestUnitType(b) & 0x7F) << shift if b < 0x80 { break } @@ -6440,13 +4932,12 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6471,7 +4962,7 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6499,7 +4990,7 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= RawResourceType(b&0x7F) << shift + m.Type |= (RawResourceType(b) & 0x7F) << shift if b < 0x80 { break } @@ -6521,13 +5012,12 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6552,7 +5042,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6580,7 +5070,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6590,9 +5080,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6612,7 +5099,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= GroupMode(b&0x7F) << shift + m.Mode |= (GroupMode(b) & 0x7F) << shift if b < 0x80 { break } @@ -6631,7 +5118,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6640,9 +5127,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6667,7 +5151,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6676,9 +5160,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6703,7 +5184,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= uint32(b&0x7F) << shift + m.Priority |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -6722,7 +5203,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6731,9 +5212,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6758,7 +5236,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6767,9 +5245,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6786,13 +5261,12 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6817,7 +5291,7 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6845,7 +5319,7 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6854,9 +5328,6 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6873,13 +5344,12 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6904,7 +5374,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6932,7 +5402,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6941,9 +5411,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6968,7 +5435,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6977,9 +5444,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7004,7 +5468,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7013,9 +5477,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7032,13 +5493,12 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7063,7 +5523,7 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7091,7 +5551,7 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7100,9 +5560,6 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7130,13 +5587,12 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7161,7 +5617,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7189,7 +5645,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FillRate |= uint64(b&0x7F) << shift + m.FillRate |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7208,7 +5664,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BurstLimit |= int64(b&0x7F) << shift + m.BurstLimit |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7230,13 +5686,12 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7261,7 +5716,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7289,7 +5744,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7299,9 +5754,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7313,13 +5765,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7344,7 +5795,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7372,7 +5823,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExecElapsedTimeMs |= uint64(b&0x7F) << shift + m.ExecElapsedTimeMs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7383,13 +5834,12 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7414,7 +5864,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7442,7 +5892,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastingDurationMs |= int64(b&0x7F) << shift + m.LastingDurationMs |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7461,7 +5911,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= RunawayWatchType(b&0x7F) << shift + m.Type |= (RunawayWatchType(b) & 0x7F) << shift if b < 0x80 { break } @@ -7472,13 +5922,12 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7503,7 +5952,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7531,7 +5980,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7540,9 +5989,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7567,7 +6013,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Action |= RunawayAction(b&0x7F) << shift + m.Action |= (RunawayAction(b) & 0x7F) << shift if b < 0x80 { break } @@ -7586,7 +6032,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7595,9 +6041,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7614,13 +6057,12 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7645,7 +6087,7 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7673,7 +6115,7 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7683,9 +6125,6 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7697,13 +6136,12 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7716,7 +6154,6 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { func skipResourceManager(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -7748,8 +6185,10 @@ func skipResourceManager(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -7766,34 +6205,166 @@ func skipResourceManager(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthResourceManager } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupResourceManager + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowResourceManager + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipResourceManager(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthResourceManager - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthResourceManager = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResourceManager = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupResourceManager = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthResourceManager = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowResourceManager = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("resource_manager.proto", fileDescriptorResourceManager) } + +var fileDescriptorResourceManager = []byte{ + // 1705 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x23, 0x49, + 0x15, 0x77, 0xfb, 0xdb, 0xcf, 0x93, 0xd8, 0xa9, 0x64, 0x76, 0xbc, 0x8e, 0x26, 0x33, 0xdb, 0xc0, + 0x28, 0x93, 0x65, 0x33, 0x3b, 0x81, 0xdd, 0x41, 0x42, 0x42, 0x9b, 0x38, 0xc3, 0x6c, 0xd8, 0x64, + 0x36, 0xaa, 0xc4, 0xda, 0x13, 0xdb, 0x94, 0xdb, 0x35, 0xde, 0x1a, 0xb7, 0xbb, 0x9d, 0xea, 0xea, + 0x38, 0xbe, 0x21, 0xc1, 0x89, 0xbf, 0x80, 0x3f, 0x01, 0x71, 0x42, 0xe2, 0x06, 0xe2, 0x04, 0x07, + 0x8e, 0x1c, 0x39, 0xa2, 0xe1, 0xc2, 0x9f, 0x81, 0xea, 0xa3, 0xdb, 0xed, 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0x06, 0x3c, 0x85, 0x15, 0x11, 0x08, 0xe2, 0x39, 0xee, + 0x30, 0x4a, 0x22, 0x2c, 0x28, 0xd8, 0xb2, 0x52, 0xb4, 0x86, 0x91, 0x0e, 0x11, 0x7d, 0x0c, 0xf7, + 0xc3, 0x33, 0xcf, 0xf1, 0xc8, 0x98, 0xf2, 0x29, 0x78, 0x51, 0xc1, 0x57, 0xc2, 0x33, 0xef, 0x50, + 0xea, 0x26, 0x16, 0x4f, 0x61, 0xa5, 0x7f, 0xee, 0xa8, 0xf8, 0xf8, 0xd0, 0x75, 0xdc, 0x20, 0xf2, + 0x45, 0xa3, 0xa4, 0xc9, 0xfb, 0xe7, 0x98, 0x92, 0x2e, 0x1e, 0xba, 0x2d, 0x29, 0x45, 0x1f, 0x02, + 0xea, 0x9f, 0x3b, 0x3a, 0xd6, 0x09, 0xb6, 0xac, 0xb0, 0xb5, 0xfe, 0xf9, 0x57, 0x52, 0x11, 0x83, + 0xed, 0xaf, 0xa1, 0x76, 0x69, 0xb1, 0xdd, 0xb5, 0x57, 0xd7, 0xa0, 0x70, 0x4e, 0xbc, 0x88, 0x9a, + 0x92, 0xea, 0x17, 0xc5, 0x3f, 0xbd, 0xd6, 0xee, 0xda, 0x44, 0xf3, 0xf9, 0xff, 0x9a, 0x83, 0xa5, + 0xa9, 0x93, 0x88, 0x3c, 0x52, 0xa4, 0x56, 0x8c, 0x7a, 0x46, 0xcf, 0x20, 0x3f, 0x08, 0xba, 0xda, + 0x74, 0x79, 0x67, 0x7d, 0xde, 0xb4, 0x07, 0xd1, 0xf0, 0x28, 0xe8, 0x52, 0xac, 0x80, 0xe8, 0x10, + 0xee, 0xc9, 0xf5, 0x13, 0x52, 0x21, 0x98, 0xdf, 0x8b, 0x3f, 0x96, 0x5b, 0x0b, 0x0c, 0x53, 0x05, + 0x39, 0x31, 0x16, 0x18, 0x78, 0x3b, 0x7e, 0x46, 0x5f, 0xc3, 0xfd, 0xa9, 0x0f, 0x70, 0x42, 0x9b, + 0xbf, 0x9a, 0x76, 0x52, 0x87, 0x84, 0x76, 0x95, 0xcf, 0x0a, 0x51, 0x13, 0xca, 0x43, 0xce, 0x02, + 0xce, 0xc4, 0x58, 0x35, 0xdc, 0x12, 0x4e, 0xde, 0xd1, 0x21, 0xd4, 0x79, 0xe4, 0x93, 0x11, 0x19, + 0x4f, 0xdc, 0x16, 0x95, 0xdb, 0x79, 0x95, 0xd7, 0xc8, 0xc4, 0x5b, 0x8d, 0x4f, 0x0b, 0x50, 0x1b, + 0x56, 0x27, 0x9f, 0xde, 0x09, 0x61, 0x49, 0x11, 0xce, 0x39, 0x8e, 0x4d, 0xbe, 0xc9, 0x09, 0x27, + 0xea, 0xcc, 0xc8, 0xec, 0x9f, 0x41, 0x63, 0x51, 0x21, 0xd1, 0x36, 0xe4, 0xe2, 0xe1, 0xbd, 0x76, + 0x63, 0x64, 0x79, 0xdb, 0xfe, 0x8b, 0x15, 0x93, 0xcd, 0xa9, 0xd4, 0x33, 0xc8, 0xb9, 0xc3, 0x1b, + 0x92, 0x49, 0x24, 0xfa, 0x14, 0x4a, 0x2c, 0x50, 0x73, 0x77, 0xb3, 0x9d, 0x55, 0x64, 0x81, 0x1c, + 0x46, 0xf4, 0x23, 0x28, 0xb3, 0x40, 0x0f, 0xa1, 0x69, 0x9e, 0x6b, 0x0c, 0x4b, 0x2c, 0x50, 0x93, + 0x69, 0xf7, 0xa0, 0x9a, 0x5e, 0xb9, 0x9f, 0x41, 0x39, 0x29, 0xb3, 0xb5, 0xa8, 0xcc, 0xca, 0xe0, + 0x90, 0x0d, 0x52, 0xfd, 0x97, 0x58, 0xa1, 0xf7, 0xa0, 0x98, 0xda, 0xba, 0x16, 0x36, 0x6f, 0xf6, + 0x99, 0x39, 0xa9, 0x4e, 0xd9, 0xa1, 0x75, 0xa8, 0xbc, 0x61, 0x9e, 0xe7, 0x70, 0x22, 0xf4, 0x0c, + 0xe5, 0x71, 0x59, 0x0a, 0x30, 0x11, 0x54, 0xee,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0x3f, 0xcc, 0xc2, 0x0b, 0x9c, 0xe6, 0xf7, 0x6f, 0x06, 0xd6, 0x67, + 0x6d, 0x3b, 0x83, 0xfa, 0x50, 0xbf, 0x7c, 0x3b, 0x82, 0x9e, 0xce, 0xf9, 0xba, 0xcc, 0xbf, 0x8d, + 0x69, 0x6e, 0xdd, 0x04, 0x9a, 0x76, 0xb6, 0xdb, 0xed, 0x5e, 0xeb, 0x6c, 0xc1, 0xe5, 0xc3, 0x3c, + 0x67, 0x8b, 0x6e, 0x15, 0xec, 0x0c, 0xf2, 0x61, 0xf5, 0x28, 0xe8, 0xb2, 0x37, 0xe3, 0xff, 0x91, + 0x3f, 0x01, 0xab, 0x73, 0xee, 0x65, 0xd0, 0x9c, 0x1f, 0x64, 0xf1, 0x65, 0x50, 0xf3, 0xa3, 0x1b, + 0xa2, 0x13, 0xaf, 0x6f, 0x61, 0x75, 0xd7, 0x3d, 0x8b, 0x18, 0x4f, 0x9f, 0xba, 0x43, 0x74, 0xf5, + 0xdf, 0xb1, 0xa4, 0x5b, 0x9e, 0x5c, 0x07, 0x8b, 0xfd, 0x6c, 0x5a, 0x1f, 0x5b, 0x7b, 0x6b, 0xff, + 0xfc, 0x5d, 0xd9, 0xfa, 0xfb, 0xbb, 0x0d, 0xeb, 0x1f, 0xef, 0x36, 0xac, 0x7f, 0xbd, 0xdb, 0xb0, + 0x7e, 0xfb, 0xef, 0x8d, 0x4c, 0xa7, 0xa8, 0xae, 0x15, 0x7f, 0xf0, 0xdf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xea, 0x43, 0xed, 0xd1, 0xa9, 0x14, 0x00, 0x00, +} diff --git a/pkg/resource_usage_agent/resource_usage_agent.pb.go b/pkg/resource_usage_agent/resource_usage_agent.pb.go index 7512e4f15..b4d7d0b12 100644 --- a/pkg/resource_usage_agent/resource_usage_agent.pb.go +++ b/pkg/resource_usage_agent/resource_usage_agent.pb.go @@ -1,20 +1,34 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: resource_usage_agent.proto +/* +Package resource_usage_agent is a generated protocol buffer package. + +It is generated from these files: + + resource_usage_agent.proto + +It has these top-level messages: + + ResourceMeteringRequest + EmptyResponse + ResourceUsageRecord + GroupTagRecord + GroupTagRecordItem +*/ package resource_usage_agent import ( - "context" "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,127 +40,38 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ResourceMeteringRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *ResourceMeteringRequest) Reset() { *m = ResourceMeteringRequest{} } func (m *ResourceMeteringRequest) String() string { return proto.CompactTextString(m) } func (*ResourceMeteringRequest) ProtoMessage() {} func (*ResourceMeteringRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_14aca67aa7bfb0f2, []int{0} -} -func (m *ResourceMeteringRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMeteringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceMeteringRequest.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 *ResourceMeteringRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMeteringRequest.Merge(m, src) -} -func (m *ResourceMeteringRequest) XXX_Size() int { - return m.Size() -} -func (m *ResourceMeteringRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMeteringRequest.DiscardUnknown(m) + return fileDescriptorResourceUsageAgent, []int{0} } -var xxx_messageInfo_ResourceMeteringRequest proto.InternalMessageInfo - type EmptyResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } -func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } -func (*EmptyResponse) ProtoMessage() {} -func (*EmptyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_14aca67aa7bfb0f2, []int{1} -} -func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EmptyResponse.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 *EmptyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyResponse.Merge(m, src) -} -func (m *EmptyResponse) XXX_Size() int { - return m.Size() -} -func (m *EmptyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyResponse.DiscardUnknown(m) } -var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo +func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } +func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } +func (*EmptyResponse) ProtoMessage() {} +func (*EmptyResponse) Descriptor() ([]byte, []int) { return fileDescriptorResourceUsageAgent, []int{1} } type ResourceUsageRecord struct { // Types that are valid to be assigned to RecordOneof: // *ResourceUsageRecord_Record - RecordOneof isResourceUsageRecord_RecordOneof `protobuf_oneof:"record_oneof"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RecordOneof isResourceUsageRecord_RecordOneof `protobuf_oneof:"record_oneof"` } func (m *ResourceUsageRecord) Reset() { *m = ResourceUsageRecord{} } func (m *ResourceUsageRecord) String() string { return proto.CompactTextString(m) } func (*ResourceUsageRecord) ProtoMessage() {} func (*ResourceUsageRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_14aca67aa7bfb0f2, []int{2} -} -func (m *ResourceUsageRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorResourceUsageAgent, []int{2} } -func (m *ResourceUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResourceUsageRecord.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 *ResourceUsageRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceUsageRecord.Merge(m, src) -} -func (m *ResourceUsageRecord) XXX_Size() int { - return m.Size() -} -func (m *ResourceUsageRecord) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceUsageRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceUsageRecord proto.InternalMessageInfo type isResourceUsageRecord_RecordOneof interface { isResourceUsageRecord_RecordOneof() @@ -155,7 +80,7 @@ type isResourceUsageRecord_RecordOneof interface { } type ResourceUsageRecord_Record struct { - Record *GroupTagRecord `protobuf:"bytes,1,opt,name=record,proto3,oneof" json:"record,omitempty"` + Record *GroupTagRecord `protobuf:"bytes,1,opt,name=record,oneof"` } func (*ResourceUsageRecord_Record) isResourceUsageRecord_RecordOneof() {} @@ -174,55 +99,74 @@ func (m *ResourceUsageRecord) GetRecord() *GroupTagRecord { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ResourceUsageRecord) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ResourceUsageRecord) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ResourceUsageRecord_OneofMarshaler, _ResourceUsageRecord_OneofUnmarshaler, _ResourceUsageRecord_OneofSizer, []interface{}{ (*ResourceUsageRecord_Record)(nil), } } +func _ResourceUsageRecord_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ResourceUsageRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *ResourceUsageRecord_Record: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Record); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ResourceUsageRecord.RecordOneof has unexpected type %T", x) + } + return nil +} + +func _ResourceUsageRecord_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ResourceUsageRecord) + switch tag { + case 1: // record_oneof.record + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GroupTagRecord) + err := b.DecodeMessage(msg) + m.RecordOneof = &ResourceUsageRecord_Record{msg} + return true, err + default: + return false, nil + } +} + +func _ResourceUsageRecord_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ResourceUsageRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *ResourceUsageRecord_Record: + s := proto.Size(x.Record) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + // GroupTagRecord is a set of resource usage data grouped by resource_group_tag. type GroupTagRecord struct { - ResourceGroupTag []byte `protobuf:"bytes,1,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` - Items []*GroupTagRecordItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResourceGroupTag []byte `protobuf:"bytes,1,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` + Items []*GroupTagRecordItem `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` } func (m *GroupTagRecord) Reset() { *m = GroupTagRecord{} } func (m *GroupTagRecord) String() string { return proto.CompactTextString(m) } func (*GroupTagRecord) ProtoMessage() {} func (*GroupTagRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_14aca67aa7bfb0f2, []int{3} -} -func (m *GroupTagRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupTagRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupTagRecord.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 *GroupTagRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupTagRecord.Merge(m, src) -} -func (m *GroupTagRecord) XXX_Size() int { - return m.Size() -} -func (m *GroupTagRecord) XXX_DiscardUnknown() { - xxx_messageInfo_GroupTagRecord.DiscardUnknown(m) + return fileDescriptorResourceUsageAgent, []int{3} } -var xxx_messageInfo_GroupTagRecord proto.InternalMessageInfo - func (m *GroupTagRecord) GetResourceGroupTag() []byte { if m != nil { return m.ResourceGroupTag @@ -238,47 +182,18 @@ func (m *GroupTagRecord) GetItems() []*GroupTagRecordItem { } type GroupTagRecordItem struct { - TimestampSec uint64 `protobuf:"varint,1,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"` - CpuTimeMs uint32 `protobuf:"varint,2,opt,name=cpu_time_ms,json=cpuTimeMs,proto3" json:"cpu_time_ms,omitempty"` - ReadKeys uint32 `protobuf:"varint,3,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` - WriteKeys uint32 `protobuf:"varint,4,opt,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TimestampSec uint64 `protobuf:"varint,1,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"` + CpuTimeMs uint32 `protobuf:"varint,2,opt,name=cpu_time_ms,json=cpuTimeMs,proto3" json:"cpu_time_ms,omitempty"` + ReadKeys uint32 `protobuf:"varint,3,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` + WriteKeys uint32 `protobuf:"varint,4,opt,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` } func (m *GroupTagRecordItem) Reset() { *m = GroupTagRecordItem{} } func (m *GroupTagRecordItem) String() string { return proto.CompactTextString(m) } func (*GroupTagRecordItem) ProtoMessage() {} func (*GroupTagRecordItem) Descriptor() ([]byte, []int) { - return fileDescriptor_14aca67aa7bfb0f2, []int{4} -} -func (m *GroupTagRecordItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupTagRecordItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupTagRecordItem.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 fileDescriptorResourceUsageAgent, []int{4} } -func (m *GroupTagRecordItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupTagRecordItem.Merge(m, src) -} -func (m *GroupTagRecordItem) XXX_Size() int { - return m.Size() -} -func (m *GroupTagRecordItem) XXX_DiscardUnknown() { - xxx_messageInfo_GroupTagRecordItem.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupTagRecordItem proto.InternalMessageInfo func (m *GroupTagRecordItem) GetTimestampSec() uint64 { if m != nil { @@ -316,39 +231,6 @@ func init() { proto.RegisterType((*GroupTagRecordItem)(nil), "resource_usage_agent.GroupTagRecordItem") } -func init() { proto.RegisterFile("resource_usage_agent.proto", fileDescriptor_14aca67aa7bfb0f2) } - -var fileDescriptor_14aca67aa7bfb0f2 = []byte{ - // 432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, - 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, - 0x82, 0xae, 0x12, 0xef, 0x05, 0x0b, 0xa2, 0x22, 0x05, 0x99, 0xad, 0x37, 0x61, 0x48, 0xd2, 0xd7, - 0x61, 0x58, 0x92, 0x19, 0xe7, 0xa3, 0xb2, 0x17, 0x2f, 0xfe, 0x06, 0xc1, 0x9f, 0xe0, 0x4f, 0xf1, - 0xe8, 0xd1, 0xa3, 0xac, 0x7f, 0x44, 0x32, 0xe9, 0x16, 0xb6, 0x86, 0xd2, 0x53, 0x5e, 0x9e, 0x8f, - 0x3c, 0xcf, 0xcc, 0xbc, 0x10, 0x19, 0xb4, 0xca, 0x9b, 0x12, 0xb9, 0xb7, 0xb9, 0x40, 0x9e, 0x0b, - 0xac, 0xdd, 0x54, 0x1b, 0xe5, 0x14, 0xdd, 0xeb, 0xe2, 0xa2, 0x3d, 0xa1, 0x84, 0x0a, 0x82, 0xa7, - 0xcd, 0xd4, 0x6a, 0xa3, 0x1d, 0xe3, 0xad, 0x0b, 0x63, 0x0b, 0x24, 0x77, 0xe1, 0x0e, 0x3b, 0xb7, - 0x1f, 0xa3, 0x43, 0x23, 0x6b, 0xc1, 0xf0, 0x93, 0x47, 0xeb, 0x92, 0x1d, 0x18, 0xbf, 0xac, 0xb4, - 0x5b, 0x30, 0xb4, 0x5a, 0xd5, 0x16, 0x13, 0x84, 0x5b, 0x2b, 0xed, 0xfb, 0x26, 0x89, 0x61, 0xa9, - 0xcc, 0x29, 0x3d, 0x84, 0xbe, 0x09, 0xd3, 0x84, 0xec, 0x93, 0x74, 0x98, 0x3d, 0x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 0xce, 0x17, 0x33, 0x5f, 0x50, 0x09, 0x83, 0x99, 0x2f, 0x6c, 0x69, 0x64, 0x81, - 0xf4, 0xc9, 0xd5, 0xd9, 0x97, 0x56, 0x2b, 0xba, 0x7e, 0xd5, 0xa4, 0xf7, 0x8c, 0x1c, 0x3d, 0xfc, - 0xfd, 0x63, 0x8b, 0xfc, 0x5c, 0xc6, 0xe4, 0xd7, 0x32, 0x26, 0x7f, 0x96, 0x31, 0xf9, 0xfe, 0x37, - 0xee, 0xc1, 0xae, 0x32, 0x62, 0xea, 0xe4, 0xfc, 0x6c, 0x3a, 0x3f, 0x0b, 0xcb, 0x5c, 0xf4, 0xc3, - 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -357,9 +239,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// ResourceUsageAgentClient is the client API for ResourceUsageAgent service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ResourceUsageAgent service + type ResourceUsageAgentClient interface { // Report the resource usage records. By default, the records with the same // resource group tag will be batched by minute. @@ -375,7 +256,7 @@ func NewResourceUsageAgentClient(cc *grpc.ClientConn) ResourceUsageAgentClient { } func (c *resourceUsageAgentClient) Report(ctx context.Context, opts ...grpc.CallOption) (ResourceUsageAgent_ReportClient, error) { - stream, err := c.cc.NewStream(ctx, &_ResourceUsageAgent_serviceDesc.Streams[0], "/resource_usage_agent.ResourceUsageAgent/Report", opts...) + stream, err := grpc.NewClientStream(ctx, &_ResourceUsageAgent_serviceDesc.Streams[0], c.cc, "/resource_usage_agent.ResourceUsageAgent/Report", opts...) if err != nil { return nil, err } @@ -408,21 +289,14 @@ func (x *resourceUsageAgentReportClient) CloseAndRecv() (*EmptyResponse, error) return m, nil } -// ResourceUsageAgentServer is the server API for ResourceUsageAgent service. +// Server API for ResourceUsageAgent service + type ResourceUsageAgentServer interface { // Report the resource usage records. By default, the records with the same // resource group tag will be batched by minute. Report(ResourceUsageAgent_ReportServer) error } -// UnimplementedResourceUsageAgentServer can be embedded to have forward compatible implementations. -type UnimplementedResourceUsageAgentServer struct { -} - -func (*UnimplementedResourceUsageAgentServer) Report(srv ResourceUsageAgent_ReportServer) error { - return status.Errorf(codes.Unimplemented, "method Report not implemented") -} - func RegisterResourceUsageAgentServer(s *grpc.Server, srv ResourceUsageAgentServer) { s.RegisterService(&_ResourceUsageAgent_serviceDesc, srv) } @@ -467,9 +341,8 @@ var _ResourceUsageAgent_serviceDesc = grpc.ServiceDesc{ Metadata: "resource_usage_agent.proto", } -// ResourceMeteringPubSubClient is the client API for ResourceMeteringPubSub service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for ResourceMeteringPubSub service + type ResourceMeteringPubSubClient interface { // Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) // publishes resource metering records to clients via gRPC stream. @@ -485,7 +358,7 @@ func NewResourceMeteringPubSubClient(cc *grpc.ClientConn) ResourceMeteringPubSub } func (c *resourceMeteringPubSubClient) Subscribe(ctx context.Context, in *ResourceMeteringRequest, opts ...grpc.CallOption) (ResourceMeteringPubSub_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &_ResourceMeteringPubSub_serviceDesc.Streams[0], "/resource_usage_agent.ResourceMeteringPubSub/Subscribe", opts...) + stream, err := grpc.NewClientStream(ctx, &_ResourceMeteringPubSub_serviceDesc.Streams[0], c.cc, "/resource_usage_agent.ResourceMeteringPubSub/Subscribe", opts...) if err != nil { return nil, err } @@ -516,21 +389,14 @@ func (x *resourceMeteringPubSubSubscribeClient) Recv() (*ResourceUsageRecord, er return m, nil } -// ResourceMeteringPubSubServer is the server API for ResourceMeteringPubSub service. +// Server API for ResourceMeteringPubSub service + type ResourceMeteringPubSubServer interface { // Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) // publishes resource metering records to clients via gRPC stream. Subscribe(*ResourceMeteringRequest, ResourceMeteringPubSub_SubscribeServer) error } -// UnimplementedResourceMeteringPubSubServer can be embedded to have forward compatible implementations. -type UnimplementedResourceMeteringPubSubServer struct { -} - -func (*UnimplementedResourceMeteringPubSubServer) Subscribe(req *ResourceMeteringRequest, srv ResourceMeteringPubSub_SubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") -} - func RegisterResourceMeteringPubSubServer(s *grpc.Server, srv ResourceMeteringPubSubServer) { s.RegisterService(&_ResourceMeteringPubSub_serviceDesc, srv) } @@ -573,7 +439,7 @@ var _ResourceMeteringPubSub_serviceDesc = grpc.ServiceDesc{ func (m *ResourceMeteringRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -581,26 +447,17 @@ func (m *ResourceMeteringRequest) Marshal() (dAtA []byte, err error) { } func (m *ResourceMeteringRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMeteringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -608,26 +465,17 @@ func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { } func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *ResourceUsageRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -635,56 +483,38 @@ func (m *ResourceUsageRecord) Marshal() (dAtA []byte, err error) { } func (m *ResourceUsageRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceUsageRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RecordOneof != nil { - { - size := m.RecordOneof.Size() - i -= size - if _, err := m.RecordOneof.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn1, err := m.RecordOneof.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn1 } - return len(dAtA) - i, nil + return i, nil } func (m *ResourceUsageRecord_Record) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceUsageRecord_Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Record != nil { - { - size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.Record.Size())) + n2, err := m.Record.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *GroupTagRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -692,47 +522,35 @@ func (m *GroupTagRecord) Marshal() (dAtA []byte, err error) { } func (m *GroupTagRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupTagRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.ResourceGroupTag) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(len(m.ResourceGroupTag))) + i += copy(dAtA[i:], m.ResourceGroupTag) } 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 = encodeVarintResourceUsageAgent(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Items { dAtA[i] = 0x12 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.ResourceGroupTag) > 0 { - i -= len(m.ResourceGroupTag) - copy(dAtA[i:], m.ResourceGroupTag) - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(len(m.ResourceGroupTag))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GroupTagRecordItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -740,96 +558,64 @@ func (m *GroupTagRecordItem) Marshal() (dAtA []byte, err error) { } func (m *GroupTagRecordItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupTagRecordItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.TimestampSec != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.TimestampSec)) } - if m.WriteKeys != 0 { - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.WriteKeys)) - i-- - dAtA[i] = 0x20 + if m.CpuTimeMs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.CpuTimeMs)) } if m.ReadKeys != 0 { - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.ReadKeys)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.ReadKeys)) } - if m.CpuTimeMs != 0 { - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.CpuTimeMs)) - i-- - dAtA[i] = 0x10 - } - if m.TimestampSec != 0 { - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.TimestampSec)) - i-- - dAtA[i] = 0x8 + if m.WriteKeys != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.WriteKeys)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintResourceUsageAgent(dAtA []byte, offset int, v uint64) int { - offset -= sovResourceUsageAgent(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *ResourceMeteringRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *EmptyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResourceUsageRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RecordOneof != nil { n += m.RecordOneof.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResourceUsageRecord_Record) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Record != nil { @@ -839,9 +625,6 @@ func (m *ResourceUsageRecord_Record) Size() (n int) { return n } func (m *GroupTagRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupTag) @@ -854,16 +637,10 @@ func (m *GroupTagRecord) Size() (n int) { n += 1 + l + sovResourceUsageAgent(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GroupTagRecordItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimestampSec != 0 { @@ -878,14 +655,18 @@ func (m *GroupTagRecordItem) Size() (n int) { if m.WriteKeys != 0 { n += 1 + sovResourceUsageAgent(uint64(m.WriteKeys)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovResourceUsageAgent(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozResourceUsageAgent(x uint64) (n int) { return sovResourceUsageAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -905,7 +686,7 @@ func (m *ResourceMeteringRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -925,13 +706,12 @@ func (m *ResourceMeteringRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -956,7 +736,7 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -976,13 +756,12 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1007,7 +786,7 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1035,7 +814,7 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1044,9 +823,6 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceUsageAgent - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1062,13 +838,12 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1093,7 +868,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1121,7 +896,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1130,9 +905,6 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthResourceUsageAgent - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1155,7 +927,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1164,9 +936,6 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceUsageAgent - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1181,13 +950,12 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1212,7 +980,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1240,7 +1008,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimestampSec |= uint64(b&0x7F) << shift + m.TimestampSec |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1259,7 +1027,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CpuTimeMs |= uint32(b&0x7F) << shift + m.CpuTimeMs |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1278,7 +1046,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadKeys |= uint32(b&0x7F) << shift + m.ReadKeys |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1297,7 +1065,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WriteKeys |= uint32(b&0x7F) << shift + m.WriteKeys |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1308,13 +1076,12 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1327,7 +1094,6 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { func skipResourceUsageAgent(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1359,8 +1125,10 @@ func skipResourceUsageAgent(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1377,34 +1145,86 @@ func skipResourceUsageAgent(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthResourceUsageAgent } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupResourceUsageAgent + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowResourceUsageAgent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipResourceUsageAgent(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthResourceUsageAgent - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthResourceUsageAgent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResourceUsageAgent = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupResourceUsageAgent = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthResourceUsageAgent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowResourceUsageAgent = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("resource_usage_agent.proto", fileDescriptorResourceUsageAgent) } + +var fileDescriptorResourceUsageAgent = []byte{ + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, + 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, + 0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, 0x31, 0xf9, 0xfe, 0x37, + 0xee, 0xc1, 0xae, 0x32, 0x62, 0xea, 0xe4, 0xfc, 0x6c, 0x3a, 0x3f, 0x0b, 0xcb, 0x5c, 0xf4, 0xc3, + 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, +} diff --git a/pkg/tikvpb/tikvpb.pb.go b/pkg/tikvpb/tikvpb.pb.go index f002e33e8..ccdb153d7 100644 --- a/pkg/tikvpb/tikvpb.pb.go +++ b/pkg/tikvpb/tikvpb.pb.go @@ -1,25 +1,44 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tikvpb.proto +/* +Package tikvpb is a generated protocol buffer package. + +It is generated from these files: + + tikvpb.proto + +It has these top-level messages: + + BatchCommandsRequest + BatchCommandsResponse + BatchRaftMessage + BatchCommandsEmptyRequest + BatchCommandsEmptyResponse +*/ package tikvpb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" - disaggregated "github.com/pingcap/kvproto/pkg/disaggregated" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + mpp "github.com/pingcap/kvproto/pkg/mpp" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" + + disaggregated "github.com/pingcap/kvproto/pkg/disaggregated" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -31,48 +50,17 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type BatchCommandsRequest struct { - Requests []*BatchCommandsRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` - RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchCommandsRequest) Reset() { *m = BatchCommandsRequest{} } -func (m *BatchCommandsRequest) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsRequest) ProtoMessage() {} -func (*BatchCommandsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{0} -} -func (m *BatchCommandsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsRequest.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 *BatchCommandsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsRequest.Merge(m, src) -} -func (m *BatchCommandsRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchCommandsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsRequest.DiscardUnknown(m) + Requests []*BatchCommandsRequest_Request `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` + RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds" json:"request_ids,omitempty"` } -var xxx_messageInfo_BatchCommandsRequest proto.InternalMessageInfo +func (m *BatchCommandsRequest) Reset() { *m = BatchCommandsRequest{} } +func (m *BatchCommandsRequest) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsRequest) ProtoMessage() {} +func (*BatchCommandsRequest) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{0} } func (m *BatchCommandsRequest) GetRequests() []*BatchCommandsRequest_Request { if m != nil { @@ -121,44 +109,15 @@ type BatchCommandsRequest_Request struct { // *BatchCommandsRequest_Request_FlashbackToVersion // *BatchCommandsRequest_Request_PrepareFlashbackToVersion // *BatchCommandsRequest_Request_Empty - Cmd isBatchCommandsRequest_Request_Cmd `protobuf_oneof:"cmd"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cmd isBatchCommandsRequest_Request_Cmd `protobuf_oneof:"cmd"` } func (m *BatchCommandsRequest_Request) Reset() { *m = BatchCommandsRequest_Request{} } func (m *BatchCommandsRequest_Request) String() string { return proto.CompactTextString(m) } func (*BatchCommandsRequest_Request) ProtoMessage() {} func (*BatchCommandsRequest_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{0, 0} -} -func (m *BatchCommandsRequest_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsRequest_Request.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 *BatchCommandsRequest_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsRequest_Request.Merge(m, src) -} -func (m *BatchCommandsRequest_Request) XXX_Size() int { - return m.Size() + return fileDescriptorTikvpb, []int{0, 0} } -func (m *BatchCommandsRequest_Request) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsRequest_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_BatchCommandsRequest_Request proto.InternalMessageInfo type isBatchCommandsRequest_Request_Cmd interface { isBatchCommandsRequest_Request_Cmd() @@ -167,97 +126,97 @@ type isBatchCommandsRequest_Request_Cmd interface { } type BatchCommandsRequest_Request_Get struct { - Get *kvrpcpb.GetRequest `protobuf:"bytes,1,opt,name=Get,proto3,oneof" json:"Get,omitempty"` + Get *kvrpcpb.GetRequest `protobuf:"bytes,1,opt,name=Get,oneof"` } type BatchCommandsRequest_Request_Scan struct { - Scan *kvrpcpb.ScanRequest `protobuf:"bytes,2,opt,name=Scan,proto3,oneof" json:"Scan,omitempty"` + Scan *kvrpcpb.ScanRequest `protobuf:"bytes,2,opt,name=Scan,oneof"` } type BatchCommandsRequest_Request_Prewrite struct { - Prewrite *kvrpcpb.PrewriteRequest `protobuf:"bytes,3,opt,name=Prewrite,proto3,oneof" json:"Prewrite,omitempty"` + Prewrite *kvrpcpb.PrewriteRequest `protobuf:"bytes,3,opt,name=Prewrite,oneof"` } type BatchCommandsRequest_Request_Commit struct { - Commit *kvrpcpb.CommitRequest `protobuf:"bytes,4,opt,name=Commit,proto3,oneof" json:"Commit,omitempty"` + Commit *kvrpcpb.CommitRequest `protobuf:"bytes,4,opt,name=Commit,oneof"` } type BatchCommandsRequest_Request_Import struct { - Import *kvrpcpb.ImportRequest `protobuf:"bytes,5,opt,name=Import,proto3,oneof" json:"Import,omitempty"` + Import *kvrpcpb.ImportRequest `protobuf:"bytes,5,opt,name=Import,oneof"` } type BatchCommandsRequest_Request_Cleanup struct { - Cleanup *kvrpcpb.CleanupRequest `protobuf:"bytes,6,opt,name=Cleanup,proto3,oneof" json:"Cleanup,omitempty"` + Cleanup *kvrpcpb.CleanupRequest `protobuf:"bytes,6,opt,name=Cleanup,oneof"` } type BatchCommandsRequest_Request_BatchGet struct { - BatchGet *kvrpcpb.BatchGetRequest `protobuf:"bytes,7,opt,name=BatchGet,proto3,oneof" json:"BatchGet,omitempty"` + BatchGet *kvrpcpb.BatchGetRequest `protobuf:"bytes,7,opt,name=BatchGet,oneof"` } type BatchCommandsRequest_Request_BatchRollback struct { - BatchRollback *kvrpcpb.BatchRollbackRequest `protobuf:"bytes,8,opt,name=BatchRollback,proto3,oneof" json:"BatchRollback,omitempty"` + BatchRollback *kvrpcpb.BatchRollbackRequest `protobuf:"bytes,8,opt,name=BatchRollback,oneof"` } type BatchCommandsRequest_Request_ScanLock struct { - ScanLock *kvrpcpb.ScanLockRequest `protobuf:"bytes,9,opt,name=ScanLock,proto3,oneof" json:"ScanLock,omitempty"` + ScanLock *kvrpcpb.ScanLockRequest `protobuf:"bytes,9,opt,name=ScanLock,oneof"` } type BatchCommandsRequest_Request_ResolveLock struct { - ResolveLock *kvrpcpb.ResolveLockRequest `protobuf:"bytes,10,opt,name=ResolveLock,proto3,oneof" json:"ResolveLock,omitempty"` + ResolveLock *kvrpcpb.ResolveLockRequest `protobuf:"bytes,10,opt,name=ResolveLock,oneof"` } type BatchCommandsRequest_Request_GC struct { - GC *kvrpcpb.GCRequest `protobuf:"bytes,11,opt,name=GC,proto3,oneof" json:"GC,omitempty"` + GC *kvrpcpb.GCRequest `protobuf:"bytes,11,opt,name=GC,oneof"` } type BatchCommandsRequest_Request_DeleteRange struct { - DeleteRange *kvrpcpb.DeleteRangeRequest `protobuf:"bytes,12,opt,name=DeleteRange,proto3,oneof" json:"DeleteRange,omitempty"` + DeleteRange *kvrpcpb.DeleteRangeRequest `protobuf:"bytes,12,opt,name=DeleteRange,oneof"` } type BatchCommandsRequest_Request_RawGet struct { - RawGet *kvrpcpb.RawGetRequest `protobuf:"bytes,13,opt,name=RawGet,proto3,oneof" json:"RawGet,omitempty"` + RawGet *kvrpcpb.RawGetRequest `protobuf:"bytes,13,opt,name=RawGet,oneof"` } type BatchCommandsRequest_Request_RawBatchGet struct { - RawBatchGet *kvrpcpb.RawBatchGetRequest `protobuf:"bytes,14,opt,name=RawBatchGet,proto3,oneof" json:"RawBatchGet,omitempty"` + RawBatchGet *kvrpcpb.RawBatchGetRequest `protobuf:"bytes,14,opt,name=RawBatchGet,oneof"` } type BatchCommandsRequest_Request_RawPut struct { - RawPut *kvrpcpb.RawPutRequest `protobuf:"bytes,15,opt,name=RawPut,proto3,oneof" json:"RawPut,omitempty"` + RawPut *kvrpcpb.RawPutRequest `protobuf:"bytes,15,opt,name=RawPut,oneof"` } type BatchCommandsRequest_Request_RawBatchPut struct { - RawBatchPut *kvrpcpb.RawBatchPutRequest `protobuf:"bytes,16,opt,name=RawBatchPut,proto3,oneof" json:"RawBatchPut,omitempty"` + RawBatchPut *kvrpcpb.RawBatchPutRequest `protobuf:"bytes,16,opt,name=RawBatchPut,oneof"` } type BatchCommandsRequest_Request_RawDelete struct { - RawDelete *kvrpcpb.RawDeleteRequest `protobuf:"bytes,17,opt,name=RawDelete,proto3,oneof" json:"RawDelete,omitempty"` + RawDelete *kvrpcpb.RawDeleteRequest `protobuf:"bytes,17,opt,name=RawDelete,oneof"` } type BatchCommandsRequest_Request_RawBatchDelete struct { - RawBatchDelete *kvrpcpb.RawBatchDeleteRequest `protobuf:"bytes,18,opt,name=RawBatchDelete,proto3,oneof" json:"RawBatchDelete,omitempty"` + RawBatchDelete *kvrpcpb.RawBatchDeleteRequest `protobuf:"bytes,18,opt,name=RawBatchDelete,oneof"` } type BatchCommandsRequest_Request_RawScan struct { - RawScan *kvrpcpb.RawScanRequest `protobuf:"bytes,19,opt,name=RawScan,proto3,oneof" json:"RawScan,omitempty"` + RawScan *kvrpcpb.RawScanRequest `protobuf:"bytes,19,opt,name=RawScan,oneof"` } type BatchCommandsRequest_Request_RawDeleteRange struct { - RawDeleteRange *kvrpcpb.RawDeleteRangeRequest `protobuf:"bytes,20,opt,name=RawDeleteRange,proto3,oneof" json:"RawDeleteRange,omitempty"` + RawDeleteRange *kvrpcpb.RawDeleteRangeRequest `protobuf:"bytes,20,opt,name=RawDeleteRange,oneof"` } type BatchCommandsRequest_Request_RawBatchScan struct { - RawBatchScan *kvrpcpb.RawBatchScanRequest `protobuf:"bytes,21,opt,name=RawBatchScan,proto3,oneof" json:"RawBatchScan,omitempty"` + RawBatchScan *kvrpcpb.RawBatchScanRequest `protobuf:"bytes,21,opt,name=RawBatchScan,oneof"` } type BatchCommandsRequest_Request_Coprocessor struct { - Coprocessor *coprocessor.Request `protobuf:"bytes,22,opt,name=Coprocessor,proto3,oneof" json:"Coprocessor,omitempty"` + Coprocessor *coprocessor.Request `protobuf:"bytes,22,opt,name=Coprocessor,oneof"` } type BatchCommandsRequest_Request_PessimisticLock struct { - PessimisticLock *kvrpcpb.PessimisticLockRequest `protobuf:"bytes,23,opt,name=PessimisticLock,proto3,oneof" json:"PessimisticLock,omitempty"` + PessimisticLock *kvrpcpb.PessimisticLockRequest `protobuf:"bytes,23,opt,name=PessimisticLock,oneof"` } type BatchCommandsRequest_Request_PessimisticRollback struct { - PessimisticRollback *kvrpcpb.PessimisticRollbackRequest `protobuf:"bytes,24,opt,name=PessimisticRollback,proto3,oneof" json:"PessimisticRollback,omitempty"` + PessimisticRollback *kvrpcpb.PessimisticRollbackRequest `protobuf:"bytes,24,opt,name=PessimisticRollback,oneof"` } type BatchCommandsRequest_Request_CheckTxnStatus struct { - CheckTxnStatus *kvrpcpb.CheckTxnStatusRequest `protobuf:"bytes,25,opt,name=CheckTxnStatus,proto3,oneof" json:"CheckTxnStatus,omitempty"` + CheckTxnStatus *kvrpcpb.CheckTxnStatusRequest `protobuf:"bytes,25,opt,name=CheckTxnStatus,oneof"` } type BatchCommandsRequest_Request_TxnHeartBeat struct { - TxnHeartBeat *kvrpcpb.TxnHeartBeatRequest `protobuf:"bytes,26,opt,name=TxnHeartBeat,proto3,oneof" json:"TxnHeartBeat,omitempty"` + TxnHeartBeat *kvrpcpb.TxnHeartBeatRequest `protobuf:"bytes,26,opt,name=TxnHeartBeat,oneof"` } type BatchCommandsRequest_Request_CheckSecondaryLocks struct { - CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksRequest `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,proto3,oneof" json:"CheckSecondaryLocks,omitempty"` + CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksRequest `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,oneof"` } type BatchCommandsRequest_Request_RawCoprocessor struct { - RawCoprocessor *kvrpcpb.RawCoprocessorRequest `protobuf:"bytes,34,opt,name=RawCoprocessor,proto3,oneof" json:"RawCoprocessor,omitempty"` + RawCoprocessor *kvrpcpb.RawCoprocessorRequest `protobuf:"bytes,34,opt,name=RawCoprocessor,oneof"` } type BatchCommandsRequest_Request_FlashbackToVersion struct { - FlashbackToVersion *kvrpcpb.FlashbackToVersionRequest `protobuf:"bytes,35,opt,name=FlashbackToVersion,proto3,oneof" json:"FlashbackToVersion,omitempty"` + FlashbackToVersion *kvrpcpb.FlashbackToVersionRequest `protobuf:"bytes,35,opt,name=FlashbackToVersion,oneof"` } type BatchCommandsRequest_Request_PrepareFlashbackToVersion struct { - PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionRequest `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` + PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionRequest `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,oneof"` } type BatchCommandsRequest_Request_Empty struct { - Empty *BatchCommandsEmptyRequest `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` + Empty *BatchCommandsEmptyRequest `protobuf:"bytes,255,opt,name=Empty,oneof"` } func (*BatchCommandsRequest_Request_Get) isBatchCommandsRequest_Request_Cmd() {} @@ -516,9 +475,9 @@ func (m *BatchCommandsRequest_Request) GetEmpty() *BatchCommandsEmptyRequest { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BatchCommandsRequest_Request) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BatchCommandsRequest_Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _BatchCommandsRequest_Request_OneofMarshaler, _BatchCommandsRequest_Request_OneofUnmarshaler, _BatchCommandsRequest_Request_OneofSizer, []interface{}{ (*BatchCommandsRequest_Request_Get)(nil), (*BatchCommandsRequest_Request_Scan)(nil), (*BatchCommandsRequest_Request_Prewrite)(nil), @@ -553,48 +512,605 @@ func (*BatchCommandsRequest_Request) XXX_OneofWrappers() []interface{} { } } -type BatchCommandsResponse struct { - Responses []*BatchCommandsResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` - RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"` - // 280 means TiKV gRPC cpu usage is 280%. - TransportLayerLoad uint64 `protobuf:"varint,3,opt,name=transport_layer_load,json=transportLayerLoad,proto3" json:"transport_layer_load,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchCommandsResponse) Reset() { *m = BatchCommandsResponse{} } -func (m *BatchCommandsResponse) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsResponse) ProtoMessage() {} -func (*BatchCommandsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{1} -} -func (m *BatchCommandsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _BatchCommandsRequest_Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BatchCommandsRequest_Request) + // cmd + switch x := m.Cmd.(type) { + case *BatchCommandsRequest_Request_Get: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Get); err != nil { + return err + } + case *BatchCommandsRequest_Request_Scan: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Scan); err != nil { + return err + } + case *BatchCommandsRequest_Request_Prewrite: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Prewrite); err != nil { + return err + } + case *BatchCommandsRequest_Request_Commit: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Commit); err != nil { + return err + } + case *BatchCommandsRequest_Request_Import: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Import); err != nil { + return err + } + case *BatchCommandsRequest_Request_Cleanup: + _ = b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Cleanup); err != nil { + return err + } + case *BatchCommandsRequest_Request_BatchGet: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchGet); err != nil { + return err + } + case *BatchCommandsRequest_Request_BatchRollback: + _ = b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchRollback); err != nil { + return err + } + case *BatchCommandsRequest_Request_ScanLock: + _ = b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ScanLock); err != nil { + return err + } + case *BatchCommandsRequest_Request_ResolveLock: + _ = b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResolveLock); err != nil { + return err + } + case *BatchCommandsRequest_Request_GC: + _ = b.EncodeVarint(11<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GC); err != nil { + return err + } + case *BatchCommandsRequest_Request_DeleteRange: + _ = b.EncodeVarint(12<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DeleteRange); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawGet: + _ = b.EncodeVarint(13<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawGet); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawBatchGet: + _ = b.EncodeVarint(14<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchGet); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawPut: + _ = b.EncodeVarint(15<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawPut); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawBatchPut: + _ = b.EncodeVarint(16<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchPut); err != nil { + return err } - return b[:n], nil + case *BatchCommandsRequest_Request_RawDelete: + _ = b.EncodeVarint(17<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDelete); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawBatchDelete: + _ = b.EncodeVarint(18<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchDelete); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawScan: + _ = b.EncodeVarint(19<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawScan); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawDeleteRange: + _ = b.EncodeVarint(20<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDeleteRange); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawBatchScan: + _ = b.EncodeVarint(21<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchScan); err != nil { + return err + } + case *BatchCommandsRequest_Request_Coprocessor: + _ = b.EncodeVarint(22<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Coprocessor); err != nil { + return err + } + case *BatchCommandsRequest_Request_PessimisticLock: + _ = b.EncodeVarint(23<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticLock); err != nil { + return err + } + case *BatchCommandsRequest_Request_PessimisticRollback: + _ = b.EncodeVarint(24<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticRollback); err != nil { + return err + } + case *BatchCommandsRequest_Request_CheckTxnStatus: + _ = b.EncodeVarint(25<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckTxnStatus); err != nil { + return err + } + case *BatchCommandsRequest_Request_TxnHeartBeat: + _ = b.EncodeVarint(26<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TxnHeartBeat); err != nil { + return err + } + case *BatchCommandsRequest_Request_CheckSecondaryLocks: + _ = b.EncodeVarint(33<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckSecondaryLocks); err != nil { + return err + } + case *BatchCommandsRequest_Request_RawCoprocessor: + _ = b.EncodeVarint(34<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawCoprocessor); err != nil { + return err + } + case *BatchCommandsRequest_Request_FlashbackToVersion: + _ = b.EncodeVarint(35<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FlashbackToVersion); err != nil { + return err + } + case *BatchCommandsRequest_Request_PrepareFlashbackToVersion: + _ = b.EncodeVarint(36<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PrepareFlashbackToVersion); err != nil { + return err + } + case *BatchCommandsRequest_Request_Empty: + _ = b.EncodeVarint(255<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Empty); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("BatchCommandsRequest_Request.Cmd has unexpected type %T", x) } + return nil } -func (m *BatchCommandsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsResponse.Merge(m, src) -} -func (m *BatchCommandsResponse) XXX_Size() int { - return m.Size() + +func _BatchCommandsRequest_Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BatchCommandsRequest_Request) + switch tag { + case 1: // cmd.Get + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GetRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Get{msg} + return true, err + case 2: // cmd.Scan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ScanRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Scan{msg} + return true, err + case 3: // cmd.Prewrite + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PrewriteRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Prewrite{msg} + return true, err + case 4: // cmd.Commit + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CommitRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Commit{msg} + return true, err + case 5: // cmd.Import + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ImportRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Import{msg} + return true, err + case 6: // cmd.Cleanup + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CleanupRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Cleanup{msg} + return true, err + case 7: // cmd.BatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BatchGetRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_BatchGet{msg} + return true, err + case 8: // cmd.BatchRollback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BatchRollbackRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_BatchRollback{msg} + return true, err + case 9: // cmd.ScanLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ScanLockRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_ScanLock{msg} + return true, err + case 10: // cmd.ResolveLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ResolveLockRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_ResolveLock{msg} + return true, err + case 11: // cmd.GC + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GCRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_GC{msg} + return true, err + case 12: // cmd.DeleteRange + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.DeleteRangeRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_DeleteRange{msg} + return true, err + case 13: // cmd.RawGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawGetRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawGet{msg} + return true, err + case 14: // cmd.RawBatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchGetRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawBatchGet{msg} + return true, err + case 15: // cmd.RawPut + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawPutRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawPut{msg} + return true, err + case 16: // cmd.RawBatchPut + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchPutRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawBatchPut{msg} + return true, err + case 17: // cmd.RawDelete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawDeleteRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawDelete{msg} + return true, err + case 18: // cmd.RawBatchDelete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchDeleteRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawBatchDelete{msg} + return true, err + case 19: // cmd.RawScan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawScanRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawScan{msg} + return true, err + case 20: // cmd.RawDeleteRange + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawDeleteRangeRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawDeleteRange{msg} + return true, err + case 21: // cmd.RawBatchScan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchScanRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawBatchScan{msg} + return true, err + case 22: // cmd.Coprocessor + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(coprocessor.Request) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Coprocessor{msg} + return true, err + case 23: // cmd.PessimisticLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PessimisticLockRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_PessimisticLock{msg} + return true, err + case 24: // cmd.PessimisticRollback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PessimisticRollbackRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_PessimisticRollback{msg} + return true, err + case 25: // cmd.CheckTxnStatus + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CheckTxnStatusRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_CheckTxnStatus{msg} + return true, err + case 26: // cmd.TxnHeartBeat + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.TxnHeartBeatRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_TxnHeartBeat{msg} + return true, err + case 33: // cmd.CheckSecondaryLocks + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CheckSecondaryLocksRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_CheckSecondaryLocks{msg} + return true, err + case 34: // cmd.RawCoprocessor + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawCoprocessorRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_RawCoprocessor{msg} + return true, err + case 35: // cmd.FlashbackToVersion + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.FlashbackToVersionRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_FlashbackToVersion{msg} + return true, err + case 36: // cmd.PrepareFlashbackToVersion + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PrepareFlashbackToVersionRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_PrepareFlashbackToVersion{msg} + return true, err + case 255: // cmd.Empty + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BatchCommandsEmptyRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Empty{msg} + return true, err + default: + return false, nil + } +} + +func _BatchCommandsRequest_Request_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BatchCommandsRequest_Request) + // cmd + switch x := m.Cmd.(type) { + case *BatchCommandsRequest_Request_Get: + s := proto.Size(x.Get) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Scan: + s := proto.Size(x.Scan) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Prewrite: + s := proto.Size(x.Prewrite) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Commit: + s := proto.Size(x.Commit) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Import: + s := proto.Size(x.Import) + n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Cleanup: + s := proto.Size(x.Cleanup) + n += proto.SizeVarint(6<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BatchGet: + s := proto.Size(x.BatchGet) + n += proto.SizeVarint(7<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BatchRollback: + s := proto.Size(x.BatchRollback) + n += proto.SizeVarint(8<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_ScanLock: + s := proto.Size(x.ScanLock) + n += proto.SizeVarint(9<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_ResolveLock: + s := proto.Size(x.ResolveLock) + n += proto.SizeVarint(10<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_GC: + s := proto.Size(x.GC) + n += proto.SizeVarint(11<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_DeleteRange: + s := proto.Size(x.DeleteRange) + n += proto.SizeVarint(12<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawGet: + s := proto.Size(x.RawGet) + n += proto.SizeVarint(13<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchGet: + s := proto.Size(x.RawBatchGet) + n += proto.SizeVarint(14<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawPut: + s := proto.Size(x.RawPut) + n += proto.SizeVarint(15<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchPut: + s := proto.Size(x.RawBatchPut) + n += proto.SizeVarint(16<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawDelete: + s := proto.Size(x.RawDelete) + n += proto.SizeVarint(17<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchDelete: + s := proto.Size(x.RawBatchDelete) + n += proto.SizeVarint(18<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawScan: + s := proto.Size(x.RawScan) + n += proto.SizeVarint(19<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawDeleteRange: + s := proto.Size(x.RawDeleteRange) + n += proto.SizeVarint(20<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchScan: + s := proto.Size(x.RawBatchScan) + n += proto.SizeVarint(21<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Coprocessor: + s := proto.Size(x.Coprocessor) + n += proto.SizeVarint(22<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PessimisticLock: + s := proto.Size(x.PessimisticLock) + n += proto.SizeVarint(23<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PessimisticRollback: + s := proto.Size(x.PessimisticRollback) + n += proto.SizeVarint(24<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_CheckTxnStatus: + s := proto.Size(x.CheckTxnStatus) + n += proto.SizeVarint(25<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_TxnHeartBeat: + s := proto.Size(x.TxnHeartBeat) + n += proto.SizeVarint(26<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_CheckSecondaryLocks: + s := proto.Size(x.CheckSecondaryLocks) + n += proto.SizeVarint(33<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawCoprocessor: + s := proto.Size(x.RawCoprocessor) + n += proto.SizeVarint(34<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_FlashbackToVersion: + s := proto.Size(x.FlashbackToVersion) + n += proto.SizeVarint(35<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PrepareFlashbackToVersion: + s := proto.Size(x.PrepareFlashbackToVersion) + n += proto.SizeVarint(36<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Empty: + s := proto.Size(x.Empty) + n += proto.SizeVarint(255<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *BatchCommandsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsResponse.DiscardUnknown(m) + +type BatchCommandsResponse struct { + Responses []*BatchCommandsResponse_Response `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"` + RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds" json:"request_ids,omitempty"` + // 280 means TiKV gRPC cpu usage is 280%. + TransportLayerLoad uint64 `protobuf:"varint,3,opt,name=transport_layer_load,json=transportLayerLoad,proto3" json:"transport_layer_load,omitempty"` } -var xxx_messageInfo_BatchCommandsResponse proto.InternalMessageInfo +func (m *BatchCommandsResponse) Reset() { *m = BatchCommandsResponse{} } +func (m *BatchCommandsResponse) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsResponse) ProtoMessage() {} +func (*BatchCommandsResponse) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{1} } func (m *BatchCommandsResponse) GetResponses() []*BatchCommandsResponse_Response { if m != nil { @@ -650,45 +1166,16 @@ type BatchCommandsResponse_Response struct { // *BatchCommandsResponse_Response_FlashbackToVersion // *BatchCommandsResponse_Response_PrepareFlashbackToVersion // *BatchCommandsResponse_Response_Empty - Cmd isBatchCommandsResponse_Response_Cmd `protobuf_oneof:"cmd"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cmd isBatchCommandsResponse_Response_Cmd `protobuf_oneof:"cmd"` } func (m *BatchCommandsResponse_Response) Reset() { *m = BatchCommandsResponse_Response{} } func (m *BatchCommandsResponse_Response) String() string { return proto.CompactTextString(m) } func (*BatchCommandsResponse_Response) ProtoMessage() {} func (*BatchCommandsResponse_Response) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{1, 0} -} -func (m *BatchCommandsResponse_Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsResponse_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsResponse_Response.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 *BatchCommandsResponse_Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsResponse_Response.Merge(m, src) -} -func (m *BatchCommandsResponse_Response) XXX_Size() int { - return m.Size() -} -func (m *BatchCommandsResponse_Response) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsResponse_Response.DiscardUnknown(m) + return fileDescriptorTikvpb, []int{1, 0} } -var xxx_messageInfo_BatchCommandsResponse_Response proto.InternalMessageInfo - type isBatchCommandsResponse_Response_Cmd interface { isBatchCommandsResponse_Response_Cmd() MarshalTo([]byte) (int, error) @@ -696,97 +1183,97 @@ type isBatchCommandsResponse_Response_Cmd interface { } type BatchCommandsResponse_Response_Get struct { - Get *kvrpcpb.GetResponse `protobuf:"bytes,1,opt,name=Get,proto3,oneof" json:"Get,omitempty"` + Get *kvrpcpb.GetResponse `protobuf:"bytes,1,opt,name=Get,oneof"` } type BatchCommandsResponse_Response_Scan struct { - Scan *kvrpcpb.ScanResponse `protobuf:"bytes,2,opt,name=Scan,proto3,oneof" json:"Scan,omitempty"` + Scan *kvrpcpb.ScanResponse `protobuf:"bytes,2,opt,name=Scan,oneof"` } type BatchCommandsResponse_Response_Prewrite struct { - Prewrite *kvrpcpb.PrewriteResponse `protobuf:"bytes,3,opt,name=Prewrite,proto3,oneof" json:"Prewrite,omitempty"` + Prewrite *kvrpcpb.PrewriteResponse `protobuf:"bytes,3,opt,name=Prewrite,oneof"` } type BatchCommandsResponse_Response_Commit struct { - Commit *kvrpcpb.CommitResponse `protobuf:"bytes,4,opt,name=Commit,proto3,oneof" json:"Commit,omitempty"` + Commit *kvrpcpb.CommitResponse `protobuf:"bytes,4,opt,name=Commit,oneof"` } type BatchCommandsResponse_Response_Import struct { - Import *kvrpcpb.ImportResponse `protobuf:"bytes,5,opt,name=Import,proto3,oneof" json:"Import,omitempty"` + Import *kvrpcpb.ImportResponse `protobuf:"bytes,5,opt,name=Import,oneof"` } type BatchCommandsResponse_Response_Cleanup struct { - Cleanup *kvrpcpb.CleanupResponse `protobuf:"bytes,6,opt,name=Cleanup,proto3,oneof" json:"Cleanup,omitempty"` + Cleanup *kvrpcpb.CleanupResponse `protobuf:"bytes,6,opt,name=Cleanup,oneof"` } type BatchCommandsResponse_Response_BatchGet struct { - BatchGet *kvrpcpb.BatchGetResponse `protobuf:"bytes,7,opt,name=BatchGet,proto3,oneof" json:"BatchGet,omitempty"` + BatchGet *kvrpcpb.BatchGetResponse `protobuf:"bytes,7,opt,name=BatchGet,oneof"` } type BatchCommandsResponse_Response_BatchRollback struct { - BatchRollback *kvrpcpb.BatchRollbackResponse `protobuf:"bytes,8,opt,name=BatchRollback,proto3,oneof" json:"BatchRollback,omitempty"` + BatchRollback *kvrpcpb.BatchRollbackResponse `protobuf:"bytes,8,opt,name=BatchRollback,oneof"` } type BatchCommandsResponse_Response_ScanLock struct { - ScanLock *kvrpcpb.ScanLockResponse `protobuf:"bytes,9,opt,name=ScanLock,proto3,oneof" json:"ScanLock,omitempty"` + ScanLock *kvrpcpb.ScanLockResponse `protobuf:"bytes,9,opt,name=ScanLock,oneof"` } type BatchCommandsResponse_Response_ResolveLock struct { - ResolveLock *kvrpcpb.ResolveLockResponse `protobuf:"bytes,10,opt,name=ResolveLock,proto3,oneof" json:"ResolveLock,omitempty"` + ResolveLock *kvrpcpb.ResolveLockResponse `protobuf:"bytes,10,opt,name=ResolveLock,oneof"` } type BatchCommandsResponse_Response_GC struct { - GC *kvrpcpb.GCResponse `protobuf:"bytes,11,opt,name=GC,proto3,oneof" json:"GC,omitempty"` + GC *kvrpcpb.GCResponse `protobuf:"bytes,11,opt,name=GC,oneof"` } type BatchCommandsResponse_Response_DeleteRange struct { - DeleteRange *kvrpcpb.DeleteRangeResponse `protobuf:"bytes,12,opt,name=DeleteRange,proto3,oneof" json:"DeleteRange,omitempty"` + DeleteRange *kvrpcpb.DeleteRangeResponse `protobuf:"bytes,12,opt,name=DeleteRange,oneof"` } type BatchCommandsResponse_Response_RawGet struct { - RawGet *kvrpcpb.RawGetResponse `protobuf:"bytes,13,opt,name=RawGet,proto3,oneof" json:"RawGet,omitempty"` + RawGet *kvrpcpb.RawGetResponse `protobuf:"bytes,13,opt,name=RawGet,oneof"` } type BatchCommandsResponse_Response_RawBatchGet struct { - RawBatchGet *kvrpcpb.RawBatchGetResponse `protobuf:"bytes,14,opt,name=RawBatchGet,proto3,oneof" json:"RawBatchGet,omitempty"` + RawBatchGet *kvrpcpb.RawBatchGetResponse `protobuf:"bytes,14,opt,name=RawBatchGet,oneof"` } type BatchCommandsResponse_Response_RawPut struct { - RawPut *kvrpcpb.RawPutResponse `protobuf:"bytes,15,opt,name=RawPut,proto3,oneof" json:"RawPut,omitempty"` + RawPut *kvrpcpb.RawPutResponse `protobuf:"bytes,15,opt,name=RawPut,oneof"` } type BatchCommandsResponse_Response_RawBatchPut struct { - RawBatchPut *kvrpcpb.RawBatchPutResponse `protobuf:"bytes,16,opt,name=RawBatchPut,proto3,oneof" json:"RawBatchPut,omitempty"` + RawBatchPut *kvrpcpb.RawBatchPutResponse `protobuf:"bytes,16,opt,name=RawBatchPut,oneof"` } type BatchCommandsResponse_Response_RawDelete struct { - RawDelete *kvrpcpb.RawDeleteResponse `protobuf:"bytes,17,opt,name=RawDelete,proto3,oneof" json:"RawDelete,omitempty"` + RawDelete *kvrpcpb.RawDeleteResponse `protobuf:"bytes,17,opt,name=RawDelete,oneof"` } type BatchCommandsResponse_Response_RawBatchDelete struct { - RawBatchDelete *kvrpcpb.RawBatchDeleteResponse `protobuf:"bytes,18,opt,name=RawBatchDelete,proto3,oneof" json:"RawBatchDelete,omitempty"` + RawBatchDelete *kvrpcpb.RawBatchDeleteResponse `protobuf:"bytes,18,opt,name=RawBatchDelete,oneof"` } type BatchCommandsResponse_Response_RawScan struct { - RawScan *kvrpcpb.RawScanResponse `protobuf:"bytes,19,opt,name=RawScan,proto3,oneof" json:"RawScan,omitempty"` + RawScan *kvrpcpb.RawScanResponse `protobuf:"bytes,19,opt,name=RawScan,oneof"` } type BatchCommandsResponse_Response_RawDeleteRange struct { - RawDeleteRange *kvrpcpb.RawDeleteRangeResponse `protobuf:"bytes,20,opt,name=RawDeleteRange,proto3,oneof" json:"RawDeleteRange,omitempty"` + RawDeleteRange *kvrpcpb.RawDeleteRangeResponse `protobuf:"bytes,20,opt,name=RawDeleteRange,oneof"` } type BatchCommandsResponse_Response_RawBatchScan struct { - RawBatchScan *kvrpcpb.RawBatchScanResponse `protobuf:"bytes,21,opt,name=RawBatchScan,proto3,oneof" json:"RawBatchScan,omitempty"` + RawBatchScan *kvrpcpb.RawBatchScanResponse `protobuf:"bytes,21,opt,name=RawBatchScan,oneof"` } type BatchCommandsResponse_Response_Coprocessor struct { - Coprocessor *coprocessor.Response `protobuf:"bytes,22,opt,name=Coprocessor,proto3,oneof" json:"Coprocessor,omitempty"` + Coprocessor *coprocessor.Response `protobuf:"bytes,22,opt,name=Coprocessor,oneof"` } type BatchCommandsResponse_Response_PessimisticLock struct { - PessimisticLock *kvrpcpb.PessimisticLockResponse `protobuf:"bytes,23,opt,name=PessimisticLock,proto3,oneof" json:"PessimisticLock,omitempty"` + PessimisticLock *kvrpcpb.PessimisticLockResponse `protobuf:"bytes,23,opt,name=PessimisticLock,oneof"` } type BatchCommandsResponse_Response_PessimisticRollback struct { - PessimisticRollback *kvrpcpb.PessimisticRollbackResponse `protobuf:"bytes,24,opt,name=PessimisticRollback,proto3,oneof" json:"PessimisticRollback,omitempty"` + PessimisticRollback *kvrpcpb.PessimisticRollbackResponse `protobuf:"bytes,24,opt,name=PessimisticRollback,oneof"` } type BatchCommandsResponse_Response_CheckTxnStatus struct { - CheckTxnStatus *kvrpcpb.CheckTxnStatusResponse `protobuf:"bytes,25,opt,name=CheckTxnStatus,proto3,oneof" json:"CheckTxnStatus,omitempty"` + CheckTxnStatus *kvrpcpb.CheckTxnStatusResponse `protobuf:"bytes,25,opt,name=CheckTxnStatus,oneof"` } type BatchCommandsResponse_Response_TxnHeartBeat struct { - TxnHeartBeat *kvrpcpb.TxnHeartBeatResponse `protobuf:"bytes,26,opt,name=TxnHeartBeat,proto3,oneof" json:"TxnHeartBeat,omitempty"` + TxnHeartBeat *kvrpcpb.TxnHeartBeatResponse `protobuf:"bytes,26,opt,name=TxnHeartBeat,oneof"` } type BatchCommandsResponse_Response_CheckSecondaryLocks struct { - CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksResponse `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,proto3,oneof" json:"CheckSecondaryLocks,omitempty"` + CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksResponse `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,oneof"` } type BatchCommandsResponse_Response_RawCoprocessor struct { - RawCoprocessor *kvrpcpb.RawCoprocessorResponse `protobuf:"bytes,34,opt,name=RawCoprocessor,proto3,oneof" json:"RawCoprocessor,omitempty"` + RawCoprocessor *kvrpcpb.RawCoprocessorResponse `protobuf:"bytes,34,opt,name=RawCoprocessor,oneof"` } type BatchCommandsResponse_Response_FlashbackToVersion struct { - FlashbackToVersion *kvrpcpb.FlashbackToVersionResponse `protobuf:"bytes,35,opt,name=FlashbackToVersion,proto3,oneof" json:"FlashbackToVersion,omitempty"` + FlashbackToVersion *kvrpcpb.FlashbackToVersionResponse `protobuf:"bytes,35,opt,name=FlashbackToVersion,oneof"` } type BatchCommandsResponse_Response_PrepareFlashbackToVersion struct { - PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionResponse `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` + PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionResponse `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,oneof"` } type BatchCommandsResponse_Response_Empty struct { - Empty *BatchCommandsEmptyResponse `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` + Empty *BatchCommandsEmptyResponse `protobuf:"bytes,255,opt,name=Empty,oneof"` } func (*BatchCommandsResponse_Response_Get) isBatchCommandsResponse_Response_Cmd() {} @@ -1046,9 +1533,9 @@ func (m *BatchCommandsResponse_Response) GetEmpty() *BatchCommandsEmptyResponse return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BatchCommandsResponse_Response) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BatchCommandsResponse_Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _BatchCommandsResponse_Response_OneofMarshaler, _BatchCommandsResponse_Response_OneofUnmarshaler, _BatchCommandsResponse_Response_OneofSizer, []interface{}{ (*BatchCommandsResponse_Response_Get)(nil), (*BatchCommandsResponse_Response_Scan)(nil), (*BatchCommandsResponse_Response_Prewrite)(nil), @@ -1083,45 +1570,602 @@ func (*BatchCommandsResponse_Response) XXX_OneofWrappers() []interface{} { } } -type BatchRaftMessage struct { - Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchRaftMessage) Reset() { *m = BatchRaftMessage{} } -func (m *BatchRaftMessage) String() string { return proto.CompactTextString(m) } -func (*BatchRaftMessage) ProtoMessage() {} -func (*BatchRaftMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{2} -} -func (m *BatchRaftMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchRaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchRaftMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _BatchCommandsResponse_Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BatchCommandsResponse_Response) + // cmd + switch x := m.Cmd.(type) { + case *BatchCommandsResponse_Response_Get: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Get); err != nil { + return err + } + case *BatchCommandsResponse_Response_Scan: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Scan); err != nil { + return err + } + case *BatchCommandsResponse_Response_Prewrite: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Prewrite); err != nil { + return err + } + case *BatchCommandsResponse_Response_Commit: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Commit); err != nil { + return err + } + case *BatchCommandsResponse_Response_Import: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Import); err != nil { + return err + } + case *BatchCommandsResponse_Response_Cleanup: + _ = b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Cleanup); err != nil { + return err + } + case *BatchCommandsResponse_Response_BatchGet: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_BatchRollback: + _ = b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchRollback); err != nil { + return err + } + case *BatchCommandsResponse_Response_ScanLock: + _ = b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ScanLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_ResolveLock: + _ = b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResolveLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_GC: + _ = b.EncodeVarint(11<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GC); err != nil { + return err + } + case *BatchCommandsResponse_Response_DeleteRange: + _ = b.EncodeVarint(12<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DeleteRange); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawGet: + _ = b.EncodeVarint(13<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchGet: + _ = b.EncodeVarint(14<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawPut: + _ = b.EncodeVarint(15<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawPut); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchPut: + _ = b.EncodeVarint(16<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchPut); err != nil { + return err } - return b[:n], nil + case *BatchCommandsResponse_Response_RawDelete: + _ = b.EncodeVarint(17<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDelete); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchDelete: + _ = b.EncodeVarint(18<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchDelete); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawScan: + _ = b.EncodeVarint(19<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawScan); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawDeleteRange: + _ = b.EncodeVarint(20<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDeleteRange); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchScan: + _ = b.EncodeVarint(21<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchScan); err != nil { + return err + } + case *BatchCommandsResponse_Response_Coprocessor: + _ = b.EncodeVarint(22<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Coprocessor); err != nil { + return err + } + case *BatchCommandsResponse_Response_PessimisticLock: + _ = b.EncodeVarint(23<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_PessimisticRollback: + _ = b.EncodeVarint(24<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticRollback); err != nil { + return err + } + case *BatchCommandsResponse_Response_CheckTxnStatus: + _ = b.EncodeVarint(25<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckTxnStatus); err != nil { + return err + } + case *BatchCommandsResponse_Response_TxnHeartBeat: + _ = b.EncodeVarint(26<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TxnHeartBeat); err != nil { + return err + } + case *BatchCommandsResponse_Response_CheckSecondaryLocks: + _ = b.EncodeVarint(33<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckSecondaryLocks); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawCoprocessor: + _ = b.EncodeVarint(34<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawCoprocessor); err != nil { + return err + } + case *BatchCommandsResponse_Response_FlashbackToVersion: + _ = b.EncodeVarint(35<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FlashbackToVersion); err != nil { + return err + } + case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: + _ = b.EncodeVarint(36<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PrepareFlashbackToVersion); err != nil { + return err + } + case *BatchCommandsResponse_Response_Empty: + _ = b.EncodeVarint(255<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Empty); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("BatchCommandsResponse_Response.Cmd has unexpected type %T", x) } + return nil } -func (m *BatchRaftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchRaftMessage.Merge(m, src) -} -func (m *BatchRaftMessage) XXX_Size() int { - return m.Size() + +func _BatchCommandsResponse_Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BatchCommandsResponse_Response) + switch tag { + case 1: // cmd.Get + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GetResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Get{msg} + return true, err + case 2: // cmd.Scan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ScanResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Scan{msg} + return true, err + case 3: // cmd.Prewrite + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PrewriteResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Prewrite{msg} + return true, err + case 4: // cmd.Commit + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CommitResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Commit{msg} + return true, err + case 5: // cmd.Import + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ImportResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Import{msg} + return true, err + case 6: // cmd.Cleanup + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CleanupResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Cleanup{msg} + return true, err + case 7: // cmd.BatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BatchGetResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_BatchGet{msg} + return true, err + case 8: // cmd.BatchRollback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BatchRollbackResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_BatchRollback{msg} + return true, err + case 9: // cmd.ScanLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ScanLockResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_ScanLock{msg} + return true, err + case 10: // cmd.ResolveLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.ResolveLockResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_ResolveLock{msg} + return true, err + case 11: // cmd.GC + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GCResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_GC{msg} + return true, err + case 12: // cmd.DeleteRange + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.DeleteRangeResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_DeleteRange{msg} + return true, err + case 13: // cmd.RawGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawGetResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawGet{msg} + return true, err + case 14: // cmd.RawBatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchGetResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawBatchGet{msg} + return true, err + case 15: // cmd.RawPut + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawPutResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawPut{msg} + return true, err + case 16: // cmd.RawBatchPut + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchPutResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawBatchPut{msg} + return true, err + case 17: // cmd.RawDelete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawDeleteResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawDelete{msg} + return true, err + case 18: // cmd.RawBatchDelete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchDeleteResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawBatchDelete{msg} + return true, err + case 19: // cmd.RawScan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawScanResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawScan{msg} + return true, err + case 20: // cmd.RawDeleteRange + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawDeleteRangeResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawDeleteRange{msg} + return true, err + case 21: // cmd.RawBatchScan + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawBatchScanResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawBatchScan{msg} + return true, err + case 22: // cmd.Coprocessor + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(coprocessor.Response) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Coprocessor{msg} + return true, err + case 23: // cmd.PessimisticLock + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PessimisticLockResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_PessimisticLock{msg} + return true, err + case 24: // cmd.PessimisticRollback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PessimisticRollbackResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_PessimisticRollback{msg} + return true, err + case 25: // cmd.CheckTxnStatus + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CheckTxnStatusResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_CheckTxnStatus{msg} + return true, err + case 26: // cmd.TxnHeartBeat + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.TxnHeartBeatResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_TxnHeartBeat{msg} + return true, err + case 33: // cmd.CheckSecondaryLocks + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.CheckSecondaryLocksResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_CheckSecondaryLocks{msg} + return true, err + case 34: // cmd.RawCoprocessor + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.RawCoprocessorResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_RawCoprocessor{msg} + return true, err + case 35: // cmd.FlashbackToVersion + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.FlashbackToVersionResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_FlashbackToVersion{msg} + return true, err + case 36: // cmd.PrepareFlashbackToVersion + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.PrepareFlashbackToVersionResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_PrepareFlashbackToVersion{msg} + return true, err + case 255: // cmd.Empty + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BatchCommandsEmptyResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Empty{msg} + return true, err + default: + return false, nil + } +} + +func _BatchCommandsResponse_Response_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BatchCommandsResponse_Response) + // cmd + switch x := m.Cmd.(type) { + case *BatchCommandsResponse_Response_Get: + s := proto.Size(x.Get) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Scan: + s := proto.Size(x.Scan) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Prewrite: + s := proto.Size(x.Prewrite) + n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Commit: + s := proto.Size(x.Commit) + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Import: + s := proto.Size(x.Import) + n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Cleanup: + s := proto.Size(x.Cleanup) + n += proto.SizeVarint(6<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BatchGet: + s := proto.Size(x.BatchGet) + n += proto.SizeVarint(7<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BatchRollback: + s := proto.Size(x.BatchRollback) + n += proto.SizeVarint(8<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_ScanLock: + s := proto.Size(x.ScanLock) + n += proto.SizeVarint(9<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_ResolveLock: + s := proto.Size(x.ResolveLock) + n += proto.SizeVarint(10<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_GC: + s := proto.Size(x.GC) + n += proto.SizeVarint(11<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_DeleteRange: + s := proto.Size(x.DeleteRange) + n += proto.SizeVarint(12<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawGet: + s := proto.Size(x.RawGet) + n += proto.SizeVarint(13<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchGet: + s := proto.Size(x.RawBatchGet) + n += proto.SizeVarint(14<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawPut: + s := proto.Size(x.RawPut) + n += proto.SizeVarint(15<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchPut: + s := proto.Size(x.RawBatchPut) + n += proto.SizeVarint(16<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawDelete: + s := proto.Size(x.RawDelete) + n += proto.SizeVarint(17<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchDelete: + s := proto.Size(x.RawBatchDelete) + n += proto.SizeVarint(18<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawScan: + s := proto.Size(x.RawScan) + n += proto.SizeVarint(19<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawDeleteRange: + s := proto.Size(x.RawDeleteRange) + n += proto.SizeVarint(20<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchScan: + s := proto.Size(x.RawBatchScan) + n += proto.SizeVarint(21<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Coprocessor: + s := proto.Size(x.Coprocessor) + n += proto.SizeVarint(22<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PessimisticLock: + s := proto.Size(x.PessimisticLock) + n += proto.SizeVarint(23<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PessimisticRollback: + s := proto.Size(x.PessimisticRollback) + n += proto.SizeVarint(24<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_CheckTxnStatus: + s := proto.Size(x.CheckTxnStatus) + n += proto.SizeVarint(25<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_TxnHeartBeat: + s := proto.Size(x.TxnHeartBeat) + n += proto.SizeVarint(26<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_CheckSecondaryLocks: + s := proto.Size(x.CheckSecondaryLocks) + n += proto.SizeVarint(33<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawCoprocessor: + s := proto.Size(x.RawCoprocessor) + n += proto.SizeVarint(34<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_FlashbackToVersion: + s := proto.Size(x.FlashbackToVersion) + n += proto.SizeVarint(35<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: + s := proto.Size(x.PrepareFlashbackToVersion) + n += proto.SizeVarint(36<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Empty: + s := proto.Size(x.Empty) + n += proto.SizeVarint(255<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *BatchRaftMessage) XXX_DiscardUnknown() { - xxx_messageInfo_BatchRaftMessage.DiscardUnknown(m) + +type BatchRaftMessage struct { + Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs" json:"msgs,omitempty"` } -var xxx_messageInfo_BatchRaftMessage proto.InternalMessageInfo +func (m *BatchRaftMessage) Reset() { *m = BatchRaftMessage{} } +func (m *BatchRaftMessage) String() string { return proto.CompactTextString(m) } +func (*BatchRaftMessage) ProtoMessage() {} +func (*BatchRaftMessage) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{2} } func (m *BatchRaftMessage) GetMsgs() []*raft_serverpb.RaftMessage { if m != nil { @@ -1134,44 +2178,13 @@ type BatchCommandsEmptyRequest struct { // ID of the test request. TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` // TiKV needs to delay at least such a time to response the client. - DelayTime uint64 `protobuf:"varint,2,opt,name=delay_time,json=delayTime,proto3" json:"delay_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchCommandsEmptyRequest) Reset() { *m = BatchCommandsEmptyRequest{} } -func (m *BatchCommandsEmptyRequest) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsEmptyRequest) ProtoMessage() {} -func (*BatchCommandsEmptyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{3} -} -func (m *BatchCommandsEmptyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsEmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsEmptyRequest.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 *BatchCommandsEmptyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsEmptyRequest.Merge(m, src) -} -func (m *BatchCommandsEmptyRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchCommandsEmptyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsEmptyRequest.DiscardUnknown(m) + DelayTime uint64 `protobuf:"varint,2,opt,name=delay_time,json=delayTime,proto3" json:"delay_time,omitempty"` } -var xxx_messageInfo_BatchCommandsEmptyRequest proto.InternalMessageInfo +func (m *BatchCommandsEmptyRequest) Reset() { *m = BatchCommandsEmptyRequest{} } +func (m *BatchCommandsEmptyRequest) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsEmptyRequest) ProtoMessage() {} +func (*BatchCommandsEmptyRequest) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{3} } func (m *BatchCommandsEmptyRequest) GetTestId() uint64 { if m != nil { @@ -1189,45 +2202,16 @@ func (m *BatchCommandsEmptyRequest) GetDelayTime() uint64 { type BatchCommandsEmptyResponse struct { // ID of the test request. - TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` } func (m *BatchCommandsEmptyResponse) Reset() { *m = BatchCommandsEmptyResponse{} } func (m *BatchCommandsEmptyResponse) String() string { return proto.CompactTextString(m) } func (*BatchCommandsEmptyResponse) ProtoMessage() {} func (*BatchCommandsEmptyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{4} -} -func (m *BatchCommandsEmptyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchCommandsEmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchCommandsEmptyResponse.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 *BatchCommandsEmptyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsEmptyResponse.Merge(m, src) -} -func (m *BatchCommandsEmptyResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchCommandsEmptyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchCommandsEmptyResponse.DiscardUnknown(m) + return fileDescriptorTikvpb, []int{4} } -var xxx_messageInfo_BatchCommandsEmptyResponse proto.InternalMessageInfo - func (m *BatchCommandsEmptyResponse) GetTestId() uint64 { if m != nil { return m.TestId @@ -1245,182 +2229,16 @@ func init() { proto.RegisterType((*BatchCommandsEmptyResponse)(nil), "tikvpb.BatchCommandsEmptyResponse") } -func init() { proto.RegisterFile("tikvpb.proto", fileDescriptor_274fe050f0c997b3) } - -var fileDescriptor_274fe050f0c997b3 = []byte{ - // 2540 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0x6d, 0x53, 0xdb, 0xc8, - 0x1d, 0xc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09, 0x8f, 0xbc, 0xce, 0xf1, 0xc8, 0xaa, 0x81, 0x47, 0xb8, 0x93, 0x00, 0x92, 0x17, - 0x1a, 0x90, 0xac, 0xe4, 0x80, 0x84, 0x3b, 0x65, 0x44, 0xf2, 0x42, 0x23, 0x92, 0x95, 0x1c, 0x91, - 0x08, 0x97, 0x14, 0x49, 0x5e, 0xe9, 0x48, 0x62, 0xe7, 0x91, 0x84, 0x3b, 0x71, 0x26, 0x79, 0x9d, - 0x63, 0x92, 0x55, 0x03, 0x93, 0x88, 0x49, 0xf1, 0xa3, 0xef, 0xad, 0x19, 0x4a, 0xd6, 0x8b, 0xa0, - 0x84, 0x87, 0xd0, 0xa8, 0xe4, 0x75, 0x8e, 0x4a, 0x56, 0x0d, 0x54, 0x22, 0x06, 0xc0, 0xb1, 0x64, - 0xc7, 0x84, 0x25, 0x6b, 0x66, 0x2c, 0xe1, 0xee, 0x0a, 0x97, 0x3c, 0x91, 0xb8, 0x64, 0x51, 0xe1, - 0x12, 0x6e, 0x4f, 0xc1, 0x64, 0xc7, 0x04, 0x26, 0x6b, 0x66, 0x30, 0x11, 0x89, 0xe4, 0xf3, 0xea, - 0x85, 0x46, 0x26, 0x2b, 0x39, 0x32, 0x11, 0x6f, 0x33, 0x45, 0x93, 0x1d, 0x13, 0x9a, 0xac, 0x99, - 0xd1, 0x44, 0x9a, 0x9d, 0xc4, 0x26, 0x2f, 0x34, 0x36, 0x59, 0xc9, 0xb1, 0x89, 0x92, 0x94, 0xb2, - 0xc5, 0x8e, 0x09, 0x4e, 0xd6, 0xcc, 0x70, 0x92, 0x4f, 0x4a, 0x23, 0x7c, 0x95, 0xa7, 0x13, 0xc7, - 0x44, 0x27, 0xdc, 0x5b, 0xc2, 0x93, 0xa3, 0x02, 0x3c, 0xd9, 0x28, 0xc4, 0x13, 0x1e, 0x45, 0xe7, - 0x93, 0x57, 0x3a, 0x9f, 0xd8, 0x79, 0x3e, 0x11, 0x7b, 0x21, 0x03, 0x94, 0xa3, 0x02, 0x40, 0xd9, - 0x28, 0x04, 0x14, 0x65, 0x00, 0xf2, 0x1b, 0xaf, 0x19, 0x09, 0xe5, 0x41, 0x01, 0xa1, 0xf0, 0x30, - 0x2a, 0xa2, 0x7c, 0x69, 0x42, 0x94, 0x65, 0x0d, 0x51, 0xc4, 0x7b, 0x90, 0x0f, 0xb3, 0xe3, 0x22, - 0x46, 0x79, 0x58, 0xcc, 0x28, 0x3c, 0x52, 0x0e, 0x52, 0xde, 0x97, 0x41, 0xca, 0x66, 0x39, 0xa4, - 0xf0, 0xa8, 0x46, 0x4a, 0x39, 0x2a, 0xa0, 0x94, 0x8d, 0x42, 0x4a, 0x11, 0x4b, 0xae, 0x61, 0x4a, - 0xcd, 0x88, 0x29, 0x0f, 0x0a, 0x30, 0x45, 0x2c, 0xb9, 0xc2, 0x29, 0xef, 0xcb, 0x38, 0x65, 0xb3, - 0x9c, 0x53, 0xc4, 0x4c, 0x4d, 0xa0, 0x72, 0x54, 0x00, 0x2a, 0x1b, 0x85, 0xa0, 0xa2, 0x7c, 0x5c, - 0xf2, 0xcb, 0x7d, 0x57, 0x42, 0x2a, 0x8f, 0x4b, 0x49, 0x85, 0x87, 0x34, 0xa1, 0xca, 0x1f, 0xc6, - 0xa3, 0xca, 0x67, 0x37, 0x41, 0x15, 0x9e, 0xa4, 0x84, 0x55, 0xbe, 0xd6, 0x58, 0xc5, 0x2d, 0x63, - 0x15, 0x1e, 0xd0, 0x04, 0x2b, 0x7b, 0x60, 0x3e, 0x39, 0x50, 0xd0, 0x39, 0x39, 0xc1, 0x51, 0x84, - 0x7a, 0x18, 0x6e, 0x83, 0xea, 0x20, 0xea, 0x65, 0x84, 0xe2, 0x6c, 0xab, 0xd7, 0x2e, 0x92, 0x65, - 0x93, 0xd9, 0xb9, 0x2d, 0xb0, 0x5a, 0xc8, 0x48, 0x70, 0x05, 0x4c, 0x92, 0x04, 0x55, 0x18, 0x51, - 0x54, 0x9b, 0x13, 0x84, 0x61, 0x0a,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0xa5, 0x46, 0x3c, 0xba, - 0x0f, 0x16, 0xf9, 0x3e, 0xdb, 0x67, 0x1e, 0x6c, 0x3b, 0x3f, 0xd3, 0xdc, 0x0d, 0x36, 0xa2, 0x31, - 0xbc, 0x81, 0xa9, 0x04, 0x78, 0xf3, 0x49, 0x31, 0x90, 0x92, 0x3d, 0xd5, 0x22, 0xe8, 0x06, 0x59, - 0xa6, 0x4f, 0xc7, 0xda, 0xf1, 0x34, 0xbf, 0x05, 0xf3, 0x6f, 0x31, 0x6d, 0x44, 0x98, 0xb2, 0x81, - 0x7a, 0x38, 0xca, 0xa5, 0xd1, 0x0d, 0xc4, 0x09, 0xa2, 0xda, 0x31, 0xa5, 0x54, 0x61, 0xce, 0xd8, - 0xe6, 0x49, 0x1c, 0x6b, 0x81, 0x7f, 0xee, 0xf5, 0xe0, 0x13, 0xcd, 0x45, 0xd3, 0x67, 0x91, 0x9f, - 0x8e, 0x33, 0xcb, 0xc6, 0xbf, 0xf7, 0xf4, 0x5f, 0x7f, 0x9e, 0xaa, 0xfc, 0xed, 0xe3, 0x7a, 0xe5, - 0xef, 0x1f, 0xd7, 0x2b, 0xff, 0xfe, 0xb8, 0x5e, 0xf9, 0xd3, 0x7f, 0xd6, 0x2d, 0x30, 0x1f, 0x84, - 0x3d, 0x56, 0xe7, 0xb7, 0x2f, 0x63, 0xf6, 0x53, 0xb5, 0xb3, 0x09, 0xf6, 0xcf, 0xe7, 0xff, 0x0f, - 0x00, 0x00, 0xff, 0xff, 0x57, 0x97, 0x63, 0x5f, 0x47, 0x27, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +// 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 -// TikvClient is the client API for Tikv service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Tikv service + type TikvClient interface { // Commands using a transactional interface. KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) @@ -1490,37 +2308,37 @@ type TikvClient interface { EstablishMPPConnection(ctx context.Context, in *mpp.EstablishMPPConnectionRequest, opts ...grpc.CallOption) (Tikv_EstablishMPPConnectionClient, error) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts ...grpc.CallOption) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTaskStatusRequest, opts ...grpc.CallOption) (*mpp.ReportTaskStatusResponse, error) - /// CheckLeader sends all information (includes region term and epoch) to other stores. - /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - /// term and epoch match with local information in the store. - /// After the client collected all responses from all stores, it checks if got a quorum of responses from - /// other stores for every region, and decides to advance resolved ts from these regions. + // / CheckLeader sends all information (includes region term and epoch) to other stores. + // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + // / term and epoch match with local information in the store. + // / After the client collected all responses from all stores, it checks if got a quorum of responses from + // / other stores for every region, and decides to advance resolved ts from these regions. CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLeaderResponse, error) - /// Get the minimal `safe_ts` from regions at the store + // / Get the minimal `safe_ts` from regions at the store GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTSRequest, opts ...grpc.CallOption) (*kvrpcpb.StoreSafeTSResponse, error) - /// Get the information about lock waiting from TiKV. + // / Get the information about lock waiting from TiKV. GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWaitInfoRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitInfoResponse, error) - /// Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. - /// It only compacts data on this node. - /// TODO: Currently this RPC is designed to be only compatible with TiFlash. - /// Shall be move out in https://github.com/pingcap/kvproto/issues/912 + // / Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. + // / It only compacts data on this node. + // / TODO: Currently this RPC is designed to be only compatible with TiFlash. + // / Shall be move out in https://github.com/pingcap/kvproto/issues/912 Compact(ctx context.Context, in *kvrpcpb.CompactRequest, opts ...grpc.CallOption) (*kvrpcpb.CompactResponse, error) - /// Get the information about history lock waiting from TiKV. + // / Get the information about history lock waiting from TiKV. GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLockWaitHistoryRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitHistoryResponse, error) - /// Get system table from TiFlash + // / Get system table from TiFlash GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFlashSystemTableRequest, opts ...grpc.CallOption) (*kvrpcpb.TiFlashSystemTableResponse, error) // These are for TiFlash disaggregated architecture - /// Try to lock a S3 object, atomically + // / Try to lock a S3 object, atomically TryAddLock(ctx context.Context, in *disaggregated.TryAddLockRequest, opts ...grpc.CallOption) (*disaggregated.TryAddLockResponse, error) - /// Try to delete a S3 object, atomically + // / Try to delete a S3 object, atomically TryMarkDelete(ctx context.Context, in *disaggregated.TryMarkDeleteRequest, opts ...grpc.CallOption) (*disaggregated.TryMarkDeleteResponse, error) - /// Build the disaggregated task on TiFlash write node + // / Build the disaggregated task on TiFlash write node EstablishDisaggTask(ctx context.Context, in *disaggregated.EstablishDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.EstablishDisaggTaskResponse, error) - /// Cancel the disaggregated task on TiFlash write node + // / Cancel the disaggregated task on TiFlash write node CancelDisaggTask(ctx context.Context, in *disaggregated.CancelDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.CancelDisaggTaskResponse, error) - /// Exchange page data between TiFlash write node and compute node + // / Exchange page data between TiFlash write node and compute node FetchDisaggPages(ctx context.Context, in *disaggregated.FetchDisaggPagesRequest, opts ...grpc.CallOption) (Tikv_FetchDisaggPagesClient, error) - /// Compute node get configuration from Write node + // / Compute node get configuration from Write node GetDisaggConfig(ctx context.Context, in *disaggregated.GetDisaggConfigRequest, opts ...grpc.CallOption) (*disaggregated.GetDisaggConfigResponse, error) } @@ -1534,7 +2352,7 @@ func NewTikvClient(cc *grpc.ClientConn) TikvClient { func (c *tikvClient) KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) { out := new(kvrpcpb.GetResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvGet", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvGet", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1543,7 +2361,7 @@ func (c *tikvClient) KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ... func (c *tikvClient) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) { out := new(kvrpcpb.ScanResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScan", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvScan", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1552,7 +2370,7 @@ func (c *tikvClient) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts . func (c *tikvClient) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) { out := new(kvrpcpb.PrewriteResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPrewrite", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPrewrite", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1561,7 +2379,7 @@ func (c *tikvClient) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest func (c *tikvClient) KvPessimisticLock(ctx context.Context, in *kvrpcpb.PessimisticLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticLockResponse, error) { out := new(kvrpcpb.PessimisticLockResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPessimisticLock", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPessimisticLock", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1570,7 +2388,7 @@ func (c *tikvClient) KvPessimisticLock(ctx context.Context, in *kvrpcpb.Pessimis func (c *tikvClient) KVPessimisticRollback(ctx context.Context, in *kvrpcpb.PessimisticRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticRollbackResponse, error) { out := new(kvrpcpb.PessimisticRollbackResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KVPessimisticRollback", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KVPessimisticRollback", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1579,7 +2397,7 @@ func (c *tikvClient) KVPessimisticRollback(ctx context.Context, in *kvrpcpb.Pess func (c *tikvClient) KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBeatRequest, opts ...grpc.CallOption) (*kvrpcpb.TxnHeartBeatResponse, error) { out := new(kvrpcpb.TxnHeartBeatResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvTxnHeartBeat", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvTxnHeartBeat", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1588,7 +2406,7 @@ func (c *tikvClient) KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBea func (c *tikvClient) KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnStatusRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckTxnStatusResponse, error) { out := new(kvrpcpb.CheckTxnStatusResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCheckTxnStatus", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCheckTxnStatus", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1597,7 +2415,7 @@ func (c *tikvClient) KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnS func (c *tikvClient) KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.CheckSecondaryLocksRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckSecondaryLocksResponse, error) { out := new(kvrpcpb.CheckSecondaryLocksResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCheckSecondaryLocks", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCheckSecondaryLocks", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1606,7 +2424,7 @@ func (c *tikvClient) KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.Chec func (c *tikvClient) KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, opts ...grpc.CallOption) (*kvrpcpb.CommitResponse, error) { out := new(kvrpcpb.CommitResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCommit", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCommit", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1615,7 +2433,7 @@ func (c *tikvClient) KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, op func (c *tikvClient) KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, opts ...grpc.CallOption) (*kvrpcpb.ImportResponse, error) { out := new(kvrpcpb.ImportResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvImport", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvImport", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1624,7 +2442,7 @@ func (c *tikvClient) KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, op func (c *tikvClient) KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, opts ...grpc.CallOption) (*kvrpcpb.CleanupResponse, error) { out := new(kvrpcpb.CleanupResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCleanup", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCleanup", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1633,7 +2451,7 @@ func (c *tikvClient) KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, func (c *tikvClient) KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchGetResponse, error) { out := new(kvrpcpb.BatchGetResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvBatchGet", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvBatchGet", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1642,7 +2460,7 @@ func (c *tikvClient) KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest func (c *tikvClient) KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchRollbackResponse, error) { out := new(kvrpcpb.BatchRollbackResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvBatchRollback", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvBatchRollback", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1651,7 +2469,7 @@ func (c *tikvClient) KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollb func (c *tikvClient) KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanLockResponse, error) { out := new(kvrpcpb.ScanLockResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScanLock", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvScanLock", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1660,7 +2478,7 @@ func (c *tikvClient) KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest func (c *tikvClient) KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ResolveLockResponse, error) { out := new(kvrpcpb.ResolveLockResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvResolveLock", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvResolveLock", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1669,7 +2487,7 @@ func (c *tikvClient) KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockR func (c *tikvClient) KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...grpc.CallOption) (*kvrpcpb.GCResponse, error) { out := new(kvrpcpb.GCResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvGC", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvGC", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1678,7 +2496,7 @@ func (c *tikvClient) KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...gr func (c *tikvClient) KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.DeleteRangeResponse, error) { out := new(kvrpcpb.DeleteRangeResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvDeleteRange", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvDeleteRange", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1687,7 +2505,7 @@ func (c *tikvClient) KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeR func (c *tikvClient) KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcpb.PrepareFlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) { out := new(kvrpcpb.PrepareFlashbackToVersionResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPrepareFlashbackToVersion", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPrepareFlashbackToVersion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1696,7 +2514,7 @@ func (c *tikvClient) KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcp func (c *tikvClient) KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.FlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.FlashbackToVersionResponse, error) { out := new(kvrpcpb.FlashbackToVersionResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvFlashbackToVersion", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvFlashbackToVersion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1705,7 +2523,7 @@ func (c *tikvClient) KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.Flash func (c *tikvClient) RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetResponse, error) { out := new(kvrpcpb.RawGetResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawGet", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawGet", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1714,7 +2532,7 @@ func (c *tikvClient) RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts func (c *tikvClient) RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchGetResponse, error) { out := new(kvrpcpb.RawBatchGetResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchGet", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchGet", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1723,7 +2541,7 @@ func (c *tikvClient) RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetReq func (c *tikvClient) RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawPutResponse, error) { out := new(kvrpcpb.RawPutResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawPut", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawPut", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1732,7 +2550,7 @@ func (c *tikvClient) RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts func (c *tikvClient) RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchPutResponse, error) { out := new(kvrpcpb.RawBatchPutResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchPut", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchPut", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1741,7 +2559,7 @@ func (c *tikvClient) RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutReq func (c *tikvClient) RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteResponse, error) { out := new(kvrpcpb.RawDeleteResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawDelete", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawDelete", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1750,7 +2568,7 @@ func (c *tikvClient) RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest func (c *tikvClient) RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchDeleteResponse, error) { out := new(kvrpcpb.RawBatchDeleteResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchDelete", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchDelete", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1759,7 +2577,7 @@ func (c *tikvClient) RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDel func (c *tikvClient) RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawScanResponse, error) { out := new(kvrpcpb.RawScanResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawScan", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawScan", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1768,7 +2586,7 @@ func (c *tikvClient) RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, op func (c *tikvClient) RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteRangeResponse, error) { out := new(kvrpcpb.RawDeleteRangeResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawDeleteRange", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawDeleteRange", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1777,7 +2595,7 @@ func (c *tikvClient) RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRa func (c *tikvClient) RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchScanResponse, error) { out := new(kvrpcpb.RawBatchScanResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchScan", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchScan", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1786,7 +2604,7 @@ func (c *tikvClient) RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanR func (c *tikvClient) RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetKeyTTLResponse, error) { out := new(kvrpcpb.RawGetKeyTTLResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawGetKeyTTL", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawGetKeyTTL", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1795,7 +2613,7 @@ func (c *tikvClient) RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLR func (c *tikvClient) RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCASResponse, error) { out := new(kvrpcpb.RawCASResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawCompareAndSwap", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawCompareAndSwap", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1804,7 +2622,7 @@ func (c *tikvClient) RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRe func (c *tikvClient) RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumRequest, opts ...grpc.CallOption) (*kvrpcpb.RawChecksumResponse, error) { out := new(kvrpcpb.RawChecksumResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawChecksum", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawChecksum", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1813,7 +2631,7 @@ func (c *tikvClient) RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumReq func (c *tikvClient) UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeDestroyRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.UnsafeDestroyRangeResponse, error) { out := new(kvrpcpb.UnsafeDestroyRangeResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/UnsafeDestroyRange", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/UnsafeDestroyRange", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1822,7 +2640,7 @@ func (c *tikvClient) UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeD func (c *tikvClient) RegisterLockObserver(ctx context.Context, in *kvrpcpb.RegisterLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RegisterLockObserverResponse, error) { out := new(kvrpcpb.RegisterLockObserverResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RegisterLockObserver", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RegisterLockObserver", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1831,7 +2649,7 @@ func (c *tikvClient) RegisterLockObserver(ctx context.Context, in *kvrpcpb.Regis func (c *tikvClient) CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLockObserverResponse, error) { out := new(kvrpcpb.CheckLockObserverResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CheckLockObserver", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/CheckLockObserver", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1840,7 +2658,7 @@ func (c *tikvClient) CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLoc func (c *tikvClient) RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RemoveLockObserverResponse, error) { out := new(kvrpcpb.RemoveLockObserverResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RemoveLockObserver", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RemoveLockObserver", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1849,7 +2667,7 @@ func (c *tikvClient) RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveL func (c *tikvClient) PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PhysicalScanLockResponse, error) { out := new(kvrpcpb.PhysicalScanLockResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/PhysicalScanLock", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/PhysicalScanLock", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1858,7 +2676,7 @@ func (c *tikvClient) PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalS func (c *tikvClient) Coprocessor(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (*coprocessor.Response, error) { out := new(coprocessor.Response) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/Coprocessor", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/Coprocessor", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1866,7 +2684,7 @@ func (c *tikvClient) Coprocessor(ctx context.Context, in *coprocessor.Request, o } func (c *tikvClient) CoprocessorStream(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (Tikv_CoprocessorStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[0], "/tikvpb.Tikv/CoprocessorStream", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[0], c.cc, "/tikvpb.Tikv/CoprocessorStream", opts...) if err != nil { return nil, err } @@ -1898,7 +2716,7 @@ func (x *tikvCoprocessorStreamClient) Recv() (*coprocessor.Response, error) { } func (c *tikvClient) BatchCoprocessor(ctx context.Context, in *coprocessor.BatchRequest, opts ...grpc.CallOption) (Tikv_BatchCoprocessorClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[1], "/tikvpb.Tikv/BatchCoprocessor", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[1], c.cc, "/tikvpb.Tikv/BatchCoprocessor", opts...) if err != nil { return nil, err } @@ -1931,7 +2749,7 @@ func (x *tikvBatchCoprocessorClient) Recv() (*coprocessor.BatchResponse, error) func (c *tikvClient) RawCoprocessor(ctx context.Context, in *kvrpcpb.RawCoprocessorRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCoprocessorResponse, error) { out := new(kvrpcpb.RawCoprocessorResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawCoprocessor", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawCoprocessor", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1939,7 +2757,7 @@ func (c *tikvClient) RawCoprocessor(ctx context.Context, in *kvrpcpb.RawCoproces } func (c *tikvClient) Raft(ctx context.Context, opts ...grpc.CallOption) (Tikv_RaftClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[2], "/tikvpb.Tikv/Raft", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[2], c.cc, "/tikvpb.Tikv/Raft", opts...) if err != nil { return nil, err } @@ -1973,7 +2791,7 @@ func (x *tikvRaftClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) BatchRaft(ctx context.Context, opts ...grpc.CallOption) (Tikv_BatchRaftClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[3], "/tikvpb.Tikv/BatchRaft", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[3], c.cc, "/tikvpb.Tikv/BatchRaft", opts...) if err != nil { return nil, err } @@ -2007,7 +2825,7 @@ func (x *tikvBatchRaftClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) Snapshot(ctx context.Context, opts ...grpc.CallOption) (Tikv_SnapshotClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[4], "/tikvpb.Tikv/Snapshot", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[4], c.cc, "/tikvpb.Tikv/Snapshot", opts...) if err != nil { return nil, err } @@ -2041,7 +2859,7 @@ func (x *tikvSnapshotClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) TabletSnapshot(ctx context.Context, opts ...grpc.CallOption) (Tikv_TabletSnapshotClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[5], "/tikvpb.Tikv/TabletSnapshot", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[5], c.cc, "/tikvpb.Tikv/TabletSnapshot", opts...) if err != nil { return nil, err } @@ -2073,7 +2891,7 @@ func (x *tikvTabletSnapshotClient) Recv() (*raft_serverpb.TabletSnapshotResponse func (c *tikvClient) SplitRegion(ctx context.Context, in *kvrpcpb.SplitRegionRequest, opts ...grpc.CallOption) (*kvrpcpb.SplitRegionResponse, error) { out := new(kvrpcpb.SplitRegionResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/SplitRegion", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/SplitRegion", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2082,7 +2900,7 @@ func (c *tikvClient) SplitRegion(ctx context.Context, in *kvrpcpb.SplitRegionReq func (c *tikvClient) ReadIndex(ctx context.Context, in *kvrpcpb.ReadIndexRequest, opts ...grpc.CallOption) (*kvrpcpb.ReadIndexResponse, error) { out := new(kvrpcpb.ReadIndexResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/ReadIndex", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/ReadIndex", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2091,7 +2909,7 @@ func (c *tikvClient) ReadIndex(ctx context.Context, in *kvrpcpb.ReadIndexRequest func (c *tikvClient) MvccGetByKey(ctx context.Context, in *kvrpcpb.MvccGetByKeyRequest, opts ...grpc.CallOption) (*kvrpcpb.MvccGetByKeyResponse, error) { out := new(kvrpcpb.MvccGetByKeyResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByKey", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByKey", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2100,7 +2918,7 @@ func (c *tikvClient) MvccGetByKey(ctx context.Context, in *kvrpcpb.MvccGetByKeyR func (c *tikvClient) MvccGetByStartTs(ctx context.Context, in *kvrpcpb.MvccGetByStartTsRequest, opts ...grpc.CallOption) (*kvrpcpb.MvccGetByStartTsResponse, error) { out := new(kvrpcpb.MvccGetByStartTsResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByStartTs", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByStartTs", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2108,7 +2926,7 @@ func (c *tikvClient) MvccGetByStartTs(ctx context.Context, in *kvrpcpb.MvccGetBy } func (c *tikvClient) BatchCommands(ctx context.Context, opts ...grpc.CallOption) (Tikv_BatchCommandsClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[6], "/tikvpb.Tikv/BatchCommands", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[6], c.cc, "/tikvpb.Tikv/BatchCommands", opts...) if err != nil { return nil, err } @@ -2140,7 +2958,7 @@ func (x *tikvBatchCommandsClient) Recv() (*BatchCommandsResponse, error) { func (c *tikvClient) DispatchMPPTask(ctx context.Context, in *mpp.DispatchTaskRequest, opts ...grpc.CallOption) (*mpp.DispatchTaskResponse, error) { out := new(mpp.DispatchTaskResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/DispatchMPPTask", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/DispatchMPPTask", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2149,7 +2967,7 @@ func (c *tikvClient) DispatchMPPTask(ctx context.Context, in *mpp.DispatchTaskRe func (c *tikvClient) CancelMPPTask(ctx context.Context, in *mpp.CancelTaskRequest, opts ...grpc.CallOption) (*mpp.CancelTaskResponse, error) { out := new(mpp.CancelTaskResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CancelMPPTask", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/CancelMPPTask", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2157,7 +2975,7 @@ func (c *tikvClient) CancelMPPTask(ctx context.Context, in *mpp.CancelTaskReques } func (c *tikvClient) EstablishMPPConnection(ctx context.Context, in *mpp.EstablishMPPConnectionRequest, opts ...grpc.CallOption) (Tikv_EstablishMPPConnectionClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[7], "/tikvpb.Tikv/EstablishMPPConnection", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[7], c.cc, "/tikvpb.Tikv/EstablishMPPConnection", opts...) if err != nil { return nil, err } @@ -2190,7 +3008,7 @@ func (x *tikvEstablishMPPConnectionClient) Recv() (*mpp.MPPDataPacket, error) { func (c *tikvClient) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts ...grpc.CallOption) (*mpp.IsAliveResponse, error) { out := new(mpp.IsAliveResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/IsAlive", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/IsAlive", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2199,7 +3017,7 @@ func (c *tikvClient) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts . func (c *tikvClient) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTaskStatusRequest, opts ...grpc.CallOption) (*mpp.ReportTaskStatusResponse, error) { out := new(mpp.ReportTaskStatusResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/ReportMPPTaskStatus", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/ReportMPPTaskStatus", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2208,7 +3026,7 @@ func (c *tikvClient) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTask func (c *tikvClient) CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLeaderResponse, error) { out := new(kvrpcpb.CheckLeaderResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CheckLeader", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/CheckLeader", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2217,7 +3035,7 @@ func (c *tikvClient) CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderReq func (c *tikvClient) GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTSRequest, opts ...grpc.CallOption) (*kvrpcpb.StoreSafeTSResponse, error) { out := new(kvrpcpb.StoreSafeTSResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetStoreSafeTS", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetStoreSafeTS", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2226,7 +3044,7 @@ func (c *tikvClient) GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTS func (c *tikvClient) GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWaitInfoRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitInfoResponse, error) { out := new(kvrpcpb.GetLockWaitInfoResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitInfo", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitInfo", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2235,7 +3053,7 @@ func (c *tikvClient) GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWai func (c *tikvClient) Compact(ctx context.Context, in *kvrpcpb.CompactRequest, opts ...grpc.CallOption) (*kvrpcpb.CompactResponse, error) { out := new(kvrpcpb.CompactResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/Compact", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/Compact", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2244,7 +3062,7 @@ func (c *tikvClient) Compact(ctx context.Context, in *kvrpcpb.CompactRequest, op func (c *tikvClient) GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLockWaitHistoryRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitHistoryResponse, error) { out := new(kvrpcpb.GetLockWaitHistoryResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitHistory", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitHistory", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2253,7 +3071,7 @@ func (c *tikvClient) GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLock func (c *tikvClient) GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFlashSystemTableRequest, opts ...grpc.CallOption) (*kvrpcpb.TiFlashSystemTableResponse, error) { out := new(kvrpcpb.TiFlashSystemTableResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetTiFlashSystemTable", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetTiFlashSystemTable", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2262,7 +3080,7 @@ func (c *tikvClient) GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFl func (c *tikvClient) TryAddLock(ctx context.Context, in *disaggregated.TryAddLockRequest, opts ...grpc.CallOption) (*disaggregated.TryAddLockResponse, error) { out := new(disaggregated.TryAddLockResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/tryAddLock", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/tryAddLock", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2271,7 +3089,7 @@ func (c *tikvClient) TryAddLock(ctx context.Context, in *disaggregated.TryAddLoc func (c *tikvClient) TryMarkDelete(ctx context.Context, in *disaggregated.TryMarkDeleteRequest, opts ...grpc.CallOption) (*disaggregated.TryMarkDeleteResponse, error) { out := new(disaggregated.TryMarkDeleteResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/tryMarkDelete", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/tryMarkDelete", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2280,7 +3098,7 @@ func (c *tikvClient) TryMarkDelete(ctx context.Context, in *disaggregated.TryMar func (c *tikvClient) EstablishDisaggTask(ctx context.Context, in *disaggregated.EstablishDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.EstablishDisaggTaskResponse, error) { out := new(disaggregated.EstablishDisaggTaskResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/EstablishDisaggTask", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/EstablishDisaggTask", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2289,7 +3107,7 @@ func (c *tikvClient) EstablishDisaggTask(ctx context.Context, in *disaggregated. func (c *tikvClient) CancelDisaggTask(ctx context.Context, in *disaggregated.CancelDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.CancelDisaggTaskResponse, error) { out := new(disaggregated.CancelDisaggTaskResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CancelDisaggTask", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/CancelDisaggTask", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2297,7 +3115,7 @@ func (c *tikvClient) CancelDisaggTask(ctx context.Context, in *disaggregated.Can } func (c *tikvClient) FetchDisaggPages(ctx context.Context, in *disaggregated.FetchDisaggPagesRequest, opts ...grpc.CallOption) (Tikv_FetchDisaggPagesClient, error) { - stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[8], "/tikvpb.Tikv/FetchDisaggPages", opts...) + stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[8], c.cc, "/tikvpb.Tikv/FetchDisaggPages", opts...) if err != nil { return nil, err } @@ -2330,14 +3148,15 @@ func (x *tikvFetchDisaggPagesClient) Recv() (*disaggregated.PagesPacket, error) func (c *tikvClient) GetDisaggConfig(ctx context.Context, in *disaggregated.GetDisaggConfigRequest, opts ...grpc.CallOption) (*disaggregated.GetDisaggConfigResponse, error) { out := new(disaggregated.GetDisaggConfigResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetDisaggConfig", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetDisaggConfig", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// TikvServer is the server API for Tikv service. +// Server API for Tikv service + type TikvServer interface { // Commands using a transactional interface. KvGet(context.Context, *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) @@ -2407,243 +3226,40 @@ type TikvServer interface { EstablishMPPConnection(*mpp.EstablishMPPConnectionRequest, Tikv_EstablishMPPConnectionServer) error IsAlive(context.Context, *mpp.IsAliveRequest) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(context.Context, *mpp.ReportTaskStatusRequest) (*mpp.ReportTaskStatusResponse, error) - /// CheckLeader sends all information (includes region term and epoch) to other stores. - /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - /// term and epoch match with local information in the store. - /// After the client collected all responses from all stores, it checks if got a quorum of responses from - /// other stores for every region, and decides to advance resolved ts from these regions. + // / CheckLeader sends all information (includes region term and epoch) to other stores. + // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + // / term and epoch match with local information in the store. + // / After the client collected all responses from all stores, it checks if got a quorum of responses from + // / other stores for every region, and decides to advance resolved ts from these regions. CheckLeader(context.Context, *kvrpcpb.CheckLeaderRequest) (*kvrpcpb.CheckLeaderResponse, error) - /// Get the minimal `safe_ts` from regions at the store + // / Get the minimal `safe_ts` from regions at the store GetStoreSafeTS(context.Context, *kvrpcpb.StoreSafeTSRequest) (*kvrpcpb.StoreSafeTSResponse, error) - /// Get the information about lock waiting from TiKV. + // / Get the information about lock waiting from TiKV. GetLockWaitInfo(context.Context, *kvrpcpb.GetLockWaitInfoRequest) (*kvrpcpb.GetLockWaitInfoResponse, error) - /// Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. - /// It only compacts data on this node. - /// TODO: Currently this RPC is designed to be only compatible with TiFlash. - /// Shall be move out in https://github.com/pingcap/kvproto/issues/912 + // / Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. + // / It only compacts data on this node. + // / TODO: Currently this RPC is designed to be only compatible with TiFlash. + // / Shall be move out in https://github.com/pingcap/kvproto/issues/912 Compact(context.Context, *kvrpcpb.CompactRequest) (*kvrpcpb.CompactResponse, error) - /// Get the information about history lock waiting from TiKV. + // / Get the information about history lock waiting from TiKV. GetLockWaitHistory(context.Context, *kvrpcpb.GetLockWaitHistoryRequest) (*kvrpcpb.GetLockWaitHistoryResponse, error) - /// Get system table from TiFlash + // / Get system table from TiFlash GetTiFlashSystemTable(context.Context, *kvrpcpb.TiFlashSystemTableRequest) (*kvrpcpb.TiFlashSystemTableResponse, error) // These are for TiFlash disaggregated architecture - /// Try to lock a S3 object, atomically + // / Try to lock a S3 object, atomically TryAddLock(context.Context, *disaggregated.TryAddLockRequest) (*disaggregated.TryAddLockResponse, error) - /// Try to delete a S3 object, atomically + // / Try to delete a S3 object, atomically TryMarkDelete(context.Context, *disaggregated.TryMarkDeleteRequest) (*disaggregated.TryMarkDeleteResponse, error) - /// Build the disaggregated task on TiFlash write node + // / Build the disaggregated task on TiFlash write node EstablishDisaggTask(context.Context, *disaggregated.EstablishDisaggTaskRequest) (*disaggregated.EstablishDisaggTaskResponse, error) - /// Cancel the disaggregated task on TiFlash write node + // / Cancel the disaggregated task on TiFlash write node CancelDisaggTask(context.Context, *disaggregated.CancelDisaggTaskRequest) (*disaggregated.CancelDisaggTaskResponse, error) - /// Exchange page data between TiFlash write node and compute node + // / Exchange page data between TiFlash write node and compute node FetchDisaggPages(*disaggregated.FetchDisaggPagesRequest, Tikv_FetchDisaggPagesServer) error - /// Compute node get configuration from Write node + // / Compute node get configuration from Write node GetDisaggConfig(context.Context, *disaggregated.GetDisaggConfigRequest) (*disaggregated.GetDisaggConfigResponse, error) } -// UnimplementedTikvServer can be embedded to have forward compatible implementations. -type UnimplementedTikvServer struct { -} - -func (*UnimplementedTikvServer) KvGet(ctx context.Context, req *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented") -} -func (*UnimplementedTikvServer) KvScan(ctx context.Context, req *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvScan not implemented") -} -func (*UnimplementedTikvServer) KvPrewrite(ctx context.Context, req *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPrewrite not implemented") -} -func (*UnimplementedTikvServer) KvPessimisticLock(ctx context.Context, req *kvrpcpb.PessimisticLockRequest) (*kvrpcpb.PessimisticLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPessimisticLock not implemented") -} -func (*UnimplementedTikvServer) KVPessimisticRollback(ctx context.Context, req *kvrpcpb.PessimisticRollbackRequest) (*kvrpcpb.PessimisticRollbackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KVPessimisticRollback not implemented") -} -func (*UnimplementedTikvServer) KvTxnHeartBeat(ctx context.Context, req *kvrpcpb.TxnHeartBeatRequest) (*kvrpcpb.TxnHeartBeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvTxnHeartBeat not implemented") -} -func (*UnimplementedTikvServer) KvCheckTxnStatus(ctx context.Context, req *kvrpcpb.CheckTxnStatusRequest) (*kvrpcpb.CheckTxnStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCheckTxnStatus not implemented") -} -func (*UnimplementedTikvServer) KvCheckSecondaryLocks(ctx context.Context, req *kvrpcpb.CheckSecondaryLocksRequest) (*kvrpcpb.CheckSecondaryLocksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCheckSecondaryLocks not implemented") -} -func (*UnimplementedTikvServer) KvCommit(ctx context.Context, req *kvrpcpb.CommitRequest) (*kvrpcpb.CommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCommit not implemented") -} -func (*UnimplementedTikvServer) KvImport(ctx context.Context, req *kvrpcpb.ImportRequest) (*kvrpcpb.ImportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvImport not implemented") -} -func (*UnimplementedTikvServer) KvCleanup(ctx context.Context, req *kvrpcpb.CleanupRequest) (*kvrpcpb.CleanupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCleanup not implemented") -} -func (*UnimplementedTikvServer) KvBatchGet(ctx context.Context, req *kvrpcpb.BatchGetRequest) (*kvrpcpb.BatchGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvBatchGet not implemented") -} -func (*UnimplementedTikvServer) KvBatchRollback(ctx context.Context, req *kvrpcpb.BatchRollbackRequest) (*kvrpcpb.BatchRollbackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvBatchRollback not implemented") -} -func (*UnimplementedTikvServer) KvScanLock(ctx context.Context, req *kvrpcpb.ScanLockRequest) (*kvrpcpb.ScanLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvScanLock not implemented") -} -func (*UnimplementedTikvServer) KvResolveLock(ctx context.Context, req *kvrpcpb.ResolveLockRequest) (*kvrpcpb.ResolveLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvResolveLock not implemented") -} -func (*UnimplementedTikvServer) KvGC(ctx context.Context, req *kvrpcpb.GCRequest) (*kvrpcpb.GCResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvGC not implemented") -} -func (*UnimplementedTikvServer) KvDeleteRange(ctx context.Context, req *kvrpcpb.DeleteRangeRequest) (*kvrpcpb.DeleteRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvDeleteRange not implemented") -} -func (*UnimplementedTikvServer) KvPrepareFlashbackToVersion(ctx context.Context, req *kvrpcpb.PrepareFlashbackToVersionRequest) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPrepareFlashbackToVersion not implemented") -} -func (*UnimplementedTikvServer) KvFlashbackToVersion(ctx context.Context, req *kvrpcpb.FlashbackToVersionRequest) (*kvrpcpb.FlashbackToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvFlashbackToVersion not implemented") -} -func (*UnimplementedTikvServer) RawGet(ctx context.Context, req *kvrpcpb.RawGetRequest) (*kvrpcpb.RawGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawGet not implemented") -} -func (*UnimplementedTikvServer) RawBatchGet(ctx context.Context, req *kvrpcpb.RawBatchGetRequest) (*kvrpcpb.RawBatchGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawBatchGet not implemented") -} -func (*UnimplementedTikvServer) RawPut(ctx context.Context, req *kvrpcpb.RawPutRequest) (*kvrpcpb.RawPutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawPut not implemented") -} -func (*UnimplementedTikvServer) RawBatchPut(ctx context.Context, req *kvrpcpb.RawBatchPutRequest) (*kvrpcpb.RawBatchPutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawBatchPut not implemented") -} -func (*UnimplementedTikvServer) RawDelete(ctx context.Context, req *kvrpcpb.RawDeleteRequest) (*kvrpcpb.RawDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawDelete not implemented") -} -func (*UnimplementedTikvServer) RawBatchDelete(ctx context.Context, req *kvrpcpb.RawBatchDeleteRequest) (*kvrpcpb.RawBatchDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawBatchDelete not implemented") -} -func (*UnimplementedTikvServer) RawScan(ctx context.Context, req *kvrpcpb.RawScanRequest) (*kvrpcpb.RawScanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawScan not implemented") -} -func (*UnimplementedTikvServer) RawDeleteRange(ctx context.Context, req *kvrpcpb.RawDeleteRangeRequest) (*kvrpcpb.RawDeleteRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawDeleteRange not implemented") -} -func (*UnimplementedTikvServer) RawBatchScan(ctx context.Context, req *kvrpcpb.RawBatchScanRequest) (*kvrpcpb.RawBatchScanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawBatchScan not implemented") -} -func (*UnimplementedTikvServer) RawGetKeyTTL(ctx context.Context, req *kvrpcpb.RawGetKeyTTLRequest) (*kvrpcpb.RawGetKeyTTLResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawGetKeyTTL not implemented") -} -func (*UnimplementedTikvServer) RawCompareAndSwap(ctx context.Context, req *kvrpcpb.RawCASRequest) (*kvrpcpb.RawCASResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawCompareAndSwap not implemented") -} -func (*UnimplementedTikvServer) RawChecksum(ctx context.Context, req *kvrpcpb.RawChecksumRequest) (*kvrpcpb.RawChecksumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawChecksum not implemented") -} -func (*UnimplementedTikvServer) UnsafeDestroyRange(ctx context.Context, req *kvrpcpb.UnsafeDestroyRangeRequest) (*kvrpcpb.UnsafeDestroyRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnsafeDestroyRange not implemented") -} -func (*UnimplementedTikvServer) RegisterLockObserver(ctx context.Context, req *kvrpcpb.RegisterLockObserverRequest) (*kvrpcpb.RegisterLockObserverResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterLockObserver not implemented") -} -func (*UnimplementedTikvServer) CheckLockObserver(ctx context.Context, req *kvrpcpb.CheckLockObserverRequest) (*kvrpcpb.CheckLockObserverResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckLockObserver not implemented") -} -func (*UnimplementedTikvServer) RemoveLockObserver(ctx context.Context, req *kvrpcpb.RemoveLockObserverRequest) (*kvrpcpb.RemoveLockObserverResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveLockObserver not implemented") -} -func (*UnimplementedTikvServer) PhysicalScanLock(ctx context.Context, req *kvrpcpb.PhysicalScanLockRequest) (*kvrpcpb.PhysicalScanLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PhysicalScanLock not implemented") -} -func (*UnimplementedTikvServer) Coprocessor(ctx context.Context, req *coprocessor.Request) (*coprocessor.Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Coprocessor not implemented") -} -func (*UnimplementedTikvServer) CoprocessorStream(req *coprocessor.Request, srv Tikv_CoprocessorStreamServer) error { - return status.Errorf(codes.Unimplemented, "method CoprocessorStream not implemented") -} -func (*UnimplementedTikvServer) BatchCoprocessor(req *coprocessor.BatchRequest, srv Tikv_BatchCoprocessorServer) error { - return status.Errorf(codes.Unimplemented, "method BatchCoprocessor not implemented") -} -func (*UnimplementedTikvServer) RawCoprocessor(ctx context.Context, req *kvrpcpb.RawCoprocessorRequest) (*kvrpcpb.RawCoprocessorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RawCoprocessor not implemented") -} -func (*UnimplementedTikvServer) Raft(srv Tikv_RaftServer) error { - return status.Errorf(codes.Unimplemented, "method Raft not implemented") -} -func (*UnimplementedTikvServer) BatchRaft(srv Tikv_BatchRaftServer) error { - return status.Errorf(codes.Unimplemented, "method BatchRaft not implemented") -} -func (*UnimplementedTikvServer) Snapshot(srv Tikv_SnapshotServer) error { - return status.Errorf(codes.Unimplemented, "method Snapshot not implemented") -} -func (*UnimplementedTikvServer) TabletSnapshot(srv Tikv_TabletSnapshotServer) error { - return status.Errorf(codes.Unimplemented, "method TabletSnapshot not implemented") -} -func (*UnimplementedTikvServer) SplitRegion(ctx context.Context, req *kvrpcpb.SplitRegionRequest) (*kvrpcpb.SplitRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitRegion not implemented") -} -func (*UnimplementedTikvServer) ReadIndex(ctx context.Context, req *kvrpcpb.ReadIndexRequest) (*kvrpcpb.ReadIndexResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReadIndex not implemented") -} -func (*UnimplementedTikvServer) MvccGetByKey(ctx context.Context, req *kvrpcpb.MvccGetByKeyRequest) (*kvrpcpb.MvccGetByKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MvccGetByKey not implemented") -} -func (*UnimplementedTikvServer) MvccGetByStartTs(ctx context.Context, req *kvrpcpb.MvccGetByStartTsRequest) (*kvrpcpb.MvccGetByStartTsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MvccGetByStartTs not implemented") -} -func (*UnimplementedTikvServer) BatchCommands(srv Tikv_BatchCommandsServer) error { - return status.Errorf(codes.Unimplemented, "method BatchCommands not implemented") -} -func (*UnimplementedTikvServer) DispatchMPPTask(ctx context.Context, req *mpp.DispatchTaskRequest) (*mpp.DispatchTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DispatchMPPTask not implemented") -} -func (*UnimplementedTikvServer) CancelMPPTask(ctx context.Context, req *mpp.CancelTaskRequest) (*mpp.CancelTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelMPPTask not implemented") -} -func (*UnimplementedTikvServer) EstablishMPPConnection(req *mpp.EstablishMPPConnectionRequest, srv Tikv_EstablishMPPConnectionServer) error { - return status.Errorf(codes.Unimplemented, "method EstablishMPPConnection not implemented") -} -func (*UnimplementedTikvServer) IsAlive(ctx context.Context, req *mpp.IsAliveRequest) (*mpp.IsAliveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsAlive not implemented") -} -func (*UnimplementedTikvServer) ReportMPPTaskStatus(ctx context.Context, req *mpp.ReportTaskStatusRequest) (*mpp.ReportTaskStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportMPPTaskStatus not implemented") -} -func (*UnimplementedTikvServer) CheckLeader(ctx context.Context, req *kvrpcpb.CheckLeaderRequest) (*kvrpcpb.CheckLeaderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckLeader not implemented") -} -func (*UnimplementedTikvServer) GetStoreSafeTS(ctx context.Context, req *kvrpcpb.StoreSafeTSRequest) (*kvrpcpb.StoreSafeTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStoreSafeTS not implemented") -} -func (*UnimplementedTikvServer) GetLockWaitInfo(ctx context.Context, req *kvrpcpb.GetLockWaitInfoRequest) (*kvrpcpb.GetLockWaitInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLockWaitInfo not implemented") -} -func (*UnimplementedTikvServer) Compact(ctx context.Context, req *kvrpcpb.CompactRequest) (*kvrpcpb.CompactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") -} -func (*UnimplementedTikvServer) GetLockWaitHistory(ctx context.Context, req *kvrpcpb.GetLockWaitHistoryRequest) (*kvrpcpb.GetLockWaitHistoryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLockWaitHistory not implemented") -} -func (*UnimplementedTikvServer) GetTiFlashSystemTable(ctx context.Context, req *kvrpcpb.TiFlashSystemTableRequest) (*kvrpcpb.TiFlashSystemTableResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTiFlashSystemTable not implemented") -} -func (*UnimplementedTikvServer) TryAddLock(ctx context.Context, req *disaggregated.TryAddLockRequest) (*disaggregated.TryAddLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TryAddLock not implemented") -} -func (*UnimplementedTikvServer) TryMarkDelete(ctx context.Context, req *disaggregated.TryMarkDeleteRequest) (*disaggregated.TryMarkDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TryMarkDelete not implemented") -} -func (*UnimplementedTikvServer) EstablishDisaggTask(ctx context.Context, req *disaggregated.EstablishDisaggTaskRequest) (*disaggregated.EstablishDisaggTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EstablishDisaggTask not implemented") -} -func (*UnimplementedTikvServer) CancelDisaggTask(ctx context.Context, req *disaggregated.CancelDisaggTaskRequest) (*disaggregated.CancelDisaggTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelDisaggTask not implemented") -} -func (*UnimplementedTikvServer) FetchDisaggPages(req *disaggregated.FetchDisaggPagesRequest, srv Tikv_FetchDisaggPagesServer) error { - return status.Errorf(codes.Unimplemented, "method FetchDisaggPages not implemented") -} -func (*UnimplementedTikvServer) GetDisaggConfig(ctx context.Context, req *disaggregated.GetDisaggConfigRequest) (*disaggregated.GetDisaggConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDisaggConfig not implemented") -} - func RegisterTikvServer(s *grpc.Server, srv TikvServer) { s.RegisterService(&_Tikv_serviceDesc, srv) } @@ -4176,7 +4792,7 @@ var _Tikv_serviceDesc = grpc.ServiceDesc{ func (m *BatchCommandsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4184,18 +4800,21 @@ func (m *BatchCommandsRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0xa + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if len(m.RequestIds) > 0 { dAtA2 := make([]byte, len(m.RequestIds)*10) @@ -4209,33 +4828,18 @@ func (m *BatchCommandsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintTikvpb(dAtA, i, uint64(j1)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(j1)) + i += copy(dAtA[i:], dAtA2[:j1]) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4243,718 +4847,490 @@ func (m *BatchCommandsRequest_Request) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsRequest_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Cmd != nil { - { - size := m.Cmd.Size() - i -= size - if _, err := m.Cmd.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn3, err := m.Cmd.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn3 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Get) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Get != nil { - { - size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Get.Size())) + n4, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Scan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Scan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Scan != nil { - { - size, err := m.Scan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Scan.Size())) + n5, err := m.Scan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Prewrite) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Prewrite != nil { - { - size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Prewrite.Size())) + n6, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Commit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Commit != nil { - { - size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Commit.Size())) + n7, err := m.Commit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Import) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Import) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Import != nil { - { - size, err := m.Import.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Import.Size())) + n8, err := m.Import.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Cleanup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Cleanup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Cleanup != nil { - { - size, err := m.Cleanup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Cleanup.Size())) + n9, err := m.Cleanup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_BatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_BatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.BatchGet != nil { - { - size, err := m.BatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchGet.Size())) + n10, err := m.BatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_BatchRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_BatchRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.BatchRollback != nil { - { - size, err := m.BatchRollback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x42 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchRollback.Size())) + n11, err := m.BatchRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_ScanLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_ScanLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ScanLock != nil { - { - size, err := m.ScanLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x4a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanLock.Size())) + n12, err := m.ScanLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_ResolveLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_ResolveLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ResolveLock != nil { - { - size, err := m.ResolveLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x52 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.ResolveLock.Size())) + n13, err := m.ResolveLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_GC) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_GC) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.GC != nil { - { - size, err := m.GC.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x5a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.GC.Size())) + n14, err := m.GC.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_DeleteRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_DeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.DeleteRange != nil { - { - size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x62 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.DeleteRange.Size())) + n15, err := m.DeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawGet != nil { - { - size, err := m.RawGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x6a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawGet.Size())) + n16, err := m.RawGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawBatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchGet != nil { - { - size, err := m.RawBatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x72 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchGet.Size())) + n17, err := m.RawBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawPut) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawPut != nil { - { - size, err := m.RawPut.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x7a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawPut.Size())) + n18, err := m.RawPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawBatchPut) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawBatchPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchPut != nil { - { - size, err := m.RawBatchPut.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchPut.Size())) + n19, err := m.RawBatchPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawDelete != nil { - { - size, err := m.RawDelete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDelete.Size())) + n20, err := m.RawDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawBatchDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawBatchDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchDelete != nil { - { - size, err := m.RawBatchDelete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchDelete.Size())) + n21, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawScan != nil { - { - size, err := m.RawScan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawScan.Size())) + n22, err := m.RawScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawDeleteRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawDeleteRange != nil { - { - size, err := m.RawDeleteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDeleteRange.Size())) + n23, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawBatchScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawBatchScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchScan != nil { - { - size, err := m.RawBatchScan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchScan.Size())) + n24, err := m.RawBatchScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Coprocessor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Coprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Coprocessor != nil { - { - size, err := m.Coprocessor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Coprocessor.Size())) + n25, err := m.Coprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_PessimisticLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_PessimisticLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PessimisticLock != nil { - { - size, err := m.PessimisticLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticLock.Size())) + n26, err := m.PessimisticLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_PessimisticRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_PessimisticRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PessimisticRollback != nil { - { - size, err := m.PessimisticRollback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xc2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticRollback.Size())) + n27, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_CheckTxnStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_CheckTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.CheckTxnStatus != nil { - { - size, err := m.CheckTxnStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckTxnStatus.Size())) + n28, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_TxnHeartBeat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_TxnHeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.TxnHeartBeat != nil { - { - size, err := m.TxnHeartBeat.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xd2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.TxnHeartBeat.Size())) + n29, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.CheckSecondaryLocks != nil { - { - size, err := m.CheckSecondaryLocks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x8a + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckSecondaryLocks.Size())) + n30, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_RawCoprocessor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_RawCoprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawCoprocessor != nil { - { - size, err := m.RawCoprocessor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x92 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawCoprocessor.Size())) + n31, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_FlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_FlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.FlashbackToVersion != nil { - { - size, err := m.FlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x9a + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.FlashbackToVersion.Size())) + n32, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PrepareFlashbackToVersion != nil { - { - size, err := m.PrepareFlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PrepareFlashbackToVersion.Size())) + n33, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_Empty) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Empty) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Empty != nil { - { - size, err := m.Empty.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xf - i-- dAtA[i] = 0xfa + i++ + dAtA[i] = 0xf + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Empty.Size())) + n34, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -4962,63 +5338,51 @@ func (m *BatchCommandsResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TransportLayerLoad != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.TransportLayerLoad)) - i-- - dAtA[i] = 0x18 + if len(m.Responses) > 0 { + for _, msg := range m.Responses { + dAtA[i] = 0xa + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if len(m.RequestIds) > 0 { - dAtA35 := make([]byte, len(m.RequestIds)*10) - var j34 int + dAtA36 := make([]byte, len(m.RequestIds)*10) + var j35 int for _, num := range m.RequestIds { for num >= 1<<7 { - dAtA35[j34] = uint8(uint64(num)&0x7f | 0x80) + dAtA36[j35] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j34++ + j35++ } - dAtA35[j34] = uint8(num) - j34++ + dAtA36[j35] = uint8(num) + j35++ } - i -= j34 - copy(dAtA[i:], dAtA35[:j34]) - i = encodeVarintTikvpb(dAtA, i, uint64(j34)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(j35)) + i += copy(dAtA[i:], dAtA36[:j35]) } - if len(m.Responses) > 0 { - for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.TransportLayerLoad != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.TransportLayerLoad)) } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5026,718 +5390,490 @@ func (m *BatchCommandsResponse_Response) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsResponse_Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Cmd != nil { - { - size := m.Cmd.Size() - i -= size - if _, err := m.Cmd.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn37, err := m.Cmd.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn37 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Get) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Get != nil { - { - size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Get.Size())) + n38, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Scan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Scan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Scan != nil { - { - size, err := m.Scan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *BatchCommandsResponse_Response_Prewrite) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Prewrite != nil { - { - size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Scan.Size())) + n39, err := m.Scan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- + i += n39 + } + return i, nil +} +func (m *BatchCommandsResponse_Response_Prewrite) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.Prewrite != nil { dAtA[i] = 0x1a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Prewrite.Size())) + n40, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Commit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Commit != nil { - { - size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Commit.Size())) + n41, err := m.Commit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Import) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Import) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Import != nil { - { - size, err := m.Import.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Import.Size())) + n42, err := m.Import.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Cleanup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Cleanup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Cleanup != nil { - { - size, err := m.Cleanup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Cleanup.Size())) + n43, err := m.Cleanup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_BatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_BatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.BatchGet != nil { - { - size, err := m.BatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchGet.Size())) + n44, err := m.BatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_BatchRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_BatchRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.BatchRollback != nil { - { - size, err := m.BatchRollback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x42 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchRollback.Size())) + n45, err := m.BatchRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_ScanLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_ScanLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ScanLock != nil { - { - size, err := m.ScanLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x4a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanLock.Size())) + n46, err := m.ScanLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_ResolveLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_ResolveLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.ResolveLock != nil { - { - size, err := m.ResolveLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x52 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.ResolveLock.Size())) + n47, err := m.ResolveLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_GC) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_GC) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.GC != nil { - { - size, err := m.GC.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x5a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.GC.Size())) + n48, err := m.GC.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_DeleteRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_DeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.DeleteRange != nil { - { - size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x62 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.DeleteRange.Size())) + n49, err := m.DeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawGet != nil { - { - size, err := m.RawGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x6a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawGet.Size())) + n50, err := m.RawGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawBatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchGet != nil { - { - size, err := m.RawBatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x72 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchGet.Size())) + n51, err := m.RawBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawPut) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawPut != nil { - { - size, err := m.RawPut.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x7a + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawPut.Size())) + n52, err := m.RawPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n52 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawBatchPut) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawBatchPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchPut != nil { - { - size, err := m.RawBatchPut.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchPut.Size())) + n53, err := m.RawBatchPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawDelete != nil { - { - size, err := m.RawDelete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDelete.Size())) + n54, err := m.RawDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawBatchDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawBatchDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchDelete != nil { - { - size, err := m.RawBatchDelete.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchDelete.Size())) + n55, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawScan != nil { - { - size, err := m.RawScan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawScan.Size())) + n56, err := m.RawScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawDeleteRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawDeleteRange != nil { - { - size, err := m.RawDeleteRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDeleteRange.Size())) + n57, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawBatchScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawBatchScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawBatchScan != nil { - { - size, err := m.RawBatchScan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchScan.Size())) + n58, err := m.RawBatchScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Coprocessor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Coprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Coprocessor != nil { - { - size, err := m.Coprocessor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Coprocessor.Size())) + n59, err := m.Coprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_PessimisticLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_PessimisticLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PessimisticLock != nil { - { - size, err := m.PessimisticLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticLock.Size())) + n60, err := m.PessimisticLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_PessimisticRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_PessimisticRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PessimisticRollback != nil { - { - size, err := m.PessimisticRollback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xc2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticRollback.Size())) + n61, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_CheckTxnStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_CheckTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.CheckTxnStatus != nil { - { - size, err := m.CheckTxnStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckTxnStatus.Size())) + n62, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_TxnHeartBeat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_TxnHeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.TxnHeartBeat != nil { - { - size, err := m.TxnHeartBeat.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0xd2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.TxnHeartBeat.Size())) + n63, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.CheckSecondaryLocks != nil { - { - size, err := m.CheckSecondaryLocks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x8a + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckSecondaryLocks.Size())) + n64, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_RawCoprocessor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_RawCoprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.RawCoprocessor != nil { - { - size, err := m.RawCoprocessor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x92 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.RawCoprocessor.Size())) + n65, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_FlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_FlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.FlashbackToVersion != nil { - { - size, err := m.FlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0x9a + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.FlashbackToVersion.Size())) + n66, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PrepareFlashbackToVersion != nil { - { - size, err := m.PrepareFlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.PrepareFlashbackToVersion.Size())) + n67, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Empty) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Empty) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Empty != nil { - { - size, err := m.Empty.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xf - i-- dAtA[i] = 0xfa + i++ + dAtA[i] = 0xf + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Empty.Size())) + n68, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchRaftMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5745,40 +5881,29 @@ func (m *BatchRaftMessage) Marshal() (dAtA []byte, err error) { } func (m *BatchRaftMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchRaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.Msgs) > 0 { - for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Msgs { dAtA[i] = 0xa + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsEmptyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5786,36 +5911,27 @@ func (m *BatchCommandsEmptyRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsEmptyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsEmptyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.TestId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) } if m.DelayTime != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.DelayTime)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.DelayTime)) } - if m.TestId != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsEmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5823,42 +5939,28 @@ func (m *BatchCommandsEmptyResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsEmptyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsEmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.TestId != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintTikvpb(dAtA []byte, offset int, v uint64) int { - offset -= sovTikvpb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *BatchCommandsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -5874,31 +5976,19 @@ func (m *BatchCommandsRequest) Size() (n int) { } n += 1 + sovTikvpb(uint64(l)) + l } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsRequest_Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cmd != nil { n += m.Cmd.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsRequest_Request_Get) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Get != nil { @@ -5908,9 +5998,6 @@ func (m *BatchCommandsRequest_Request_Get) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Scan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Scan != nil { @@ -5920,9 +6007,6 @@ func (m *BatchCommandsRequest_Request_Scan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Prewrite) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Prewrite != nil { @@ -5932,9 +6016,6 @@ func (m *BatchCommandsRequest_Request_Prewrite) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Commit) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Commit != nil { @@ -5944,9 +6025,6 @@ func (m *BatchCommandsRequest_Request_Commit) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Import) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Import != nil { @@ -5956,9 +6034,6 @@ func (m *BatchCommandsRequest_Request_Import) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Cleanup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cleanup != nil { @@ -5968,9 +6043,6 @@ func (m *BatchCommandsRequest_Request_Cleanup) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_BatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BatchGet != nil { @@ -5980,9 +6052,6 @@ func (m *BatchCommandsRequest_Request_BatchGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_BatchRollback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BatchRollback != nil { @@ -5992,9 +6061,6 @@ func (m *BatchCommandsRequest_Request_BatchRollback) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_ScanLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ScanLock != nil { @@ -6004,9 +6070,6 @@ func (m *BatchCommandsRequest_Request_ScanLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_ResolveLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ResolveLock != nil { @@ -6016,9 +6079,6 @@ func (m *BatchCommandsRequest_Request_ResolveLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_GC) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GC != nil { @@ -6028,9 +6088,6 @@ func (m *BatchCommandsRequest_Request_GC) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_DeleteRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.DeleteRange != nil { @@ -6040,9 +6097,6 @@ func (m *BatchCommandsRequest_Request_DeleteRange) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawGet != nil { @@ -6052,9 +6106,6 @@ func (m *BatchCommandsRequest_Request_RawGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchGet != nil { @@ -6064,9 +6115,6 @@ func (m *BatchCommandsRequest_Request_RawBatchGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawPut) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawPut != nil { @@ -6076,9 +6124,6 @@ func (m *BatchCommandsRequest_Request_RawPut) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchPut) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchPut != nil { @@ -6088,9 +6133,6 @@ func (m *BatchCommandsRequest_Request_RawBatchPut) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawDelete) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawDelete != nil { @@ -6100,9 +6142,6 @@ func (m *BatchCommandsRequest_Request_RawDelete) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchDelete) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchDelete != nil { @@ -6112,9 +6151,6 @@ func (m *BatchCommandsRequest_Request_RawBatchDelete) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawScan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawScan != nil { @@ -6124,9 +6160,6 @@ func (m *BatchCommandsRequest_Request_RawScan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawDeleteRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawDeleteRange != nil { @@ -6136,9 +6169,6 @@ func (m *BatchCommandsRequest_Request_RawDeleteRange) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchScan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchScan != nil { @@ -6148,9 +6178,6 @@ func (m *BatchCommandsRequest_Request_RawBatchScan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Coprocessor) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Coprocessor != nil { @@ -6160,9 +6187,6 @@ func (m *BatchCommandsRequest_Request_Coprocessor) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PessimisticLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PessimisticLock != nil { @@ -6172,9 +6196,6 @@ func (m *BatchCommandsRequest_Request_PessimisticLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PessimisticRollback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PessimisticRollback != nil { @@ -6184,9 +6205,6 @@ func (m *BatchCommandsRequest_Request_PessimisticRollback) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_CheckTxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CheckTxnStatus != nil { @@ -6196,9 +6214,6 @@ func (m *BatchCommandsRequest_Request_CheckTxnStatus) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_TxnHeartBeat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TxnHeartBeat != nil { @@ -6208,9 +6223,6 @@ func (m *BatchCommandsRequest_Request_TxnHeartBeat) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CheckSecondaryLocks != nil { @@ -6220,9 +6232,6 @@ func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawCoprocessor) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawCoprocessor != nil { @@ -6232,9 +6241,6 @@ func (m *BatchCommandsRequest_Request_RawCoprocessor) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_FlashbackToVersion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FlashbackToVersion != nil { @@ -6244,9 +6250,6 @@ func (m *BatchCommandsRequest_Request_FlashbackToVersion) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PrepareFlashbackToVersion != nil { @@ -6256,9 +6259,6 @@ func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) return n } func (m *BatchCommandsRequest_Request_Empty) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Empty != nil { @@ -6268,9 +6268,6 @@ func (m *BatchCommandsRequest_Request_Empty) Size() (n int) { return n } func (m *BatchCommandsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Responses) > 0 { @@ -6289,31 +6286,19 @@ func (m *BatchCommandsResponse) Size() (n int) { if m.TransportLayerLoad != 0 { n += 1 + sovTikvpb(uint64(m.TransportLayerLoad)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsResponse_Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cmd != nil { n += m.Cmd.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsResponse_Response_Get) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Get != nil { @@ -6323,9 +6308,6 @@ func (m *BatchCommandsResponse_Response_Get) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Scan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Scan != nil { @@ -6335,9 +6317,6 @@ func (m *BatchCommandsResponse_Response_Scan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Prewrite) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Prewrite != nil { @@ -6347,9 +6326,6 @@ func (m *BatchCommandsResponse_Response_Prewrite) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Commit) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Commit != nil { @@ -6359,9 +6335,6 @@ func (m *BatchCommandsResponse_Response_Commit) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Import) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Import != nil { @@ -6371,9 +6344,6 @@ func (m *BatchCommandsResponse_Response_Import) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Cleanup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cleanup != nil { @@ -6383,9 +6353,6 @@ func (m *BatchCommandsResponse_Response_Cleanup) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_BatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BatchGet != nil { @@ -6395,9 +6362,6 @@ func (m *BatchCommandsResponse_Response_BatchGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_BatchRollback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BatchRollback != nil { @@ -6407,9 +6371,6 @@ func (m *BatchCommandsResponse_Response_BatchRollback) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_ScanLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ScanLock != nil { @@ -6419,9 +6380,6 @@ func (m *BatchCommandsResponse_Response_ScanLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_ResolveLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ResolveLock != nil { @@ -6431,9 +6389,6 @@ func (m *BatchCommandsResponse_Response_ResolveLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_GC) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GC != nil { @@ -6443,9 +6398,6 @@ func (m *BatchCommandsResponse_Response_GC) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_DeleteRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.DeleteRange != nil { @@ -6455,9 +6407,6 @@ func (m *BatchCommandsResponse_Response_DeleteRange) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawGet != nil { @@ -6467,9 +6416,6 @@ func (m *BatchCommandsResponse_Response_RawGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchGet != nil { @@ -6479,9 +6425,6 @@ func (m *BatchCommandsResponse_Response_RawBatchGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawPut) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawPut != nil { @@ -6491,9 +6434,6 @@ func (m *BatchCommandsResponse_Response_RawPut) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchPut) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchPut != nil { @@ -6503,9 +6443,6 @@ func (m *BatchCommandsResponse_Response_RawBatchPut) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawDelete) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawDelete != nil { @@ -6515,9 +6452,6 @@ func (m *BatchCommandsResponse_Response_RawDelete) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchDelete) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchDelete != nil { @@ -6527,9 +6461,6 @@ func (m *BatchCommandsResponse_Response_RawBatchDelete) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawScan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawScan != nil { @@ -6539,9 +6470,6 @@ func (m *BatchCommandsResponse_Response_RawScan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawDeleteRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawDeleteRange != nil { @@ -6551,9 +6479,6 @@ func (m *BatchCommandsResponse_Response_RawDeleteRange) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchScan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawBatchScan != nil { @@ -6563,9 +6488,6 @@ func (m *BatchCommandsResponse_Response_RawBatchScan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Coprocessor) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Coprocessor != nil { @@ -6575,9 +6497,6 @@ func (m *BatchCommandsResponse_Response_Coprocessor) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PessimisticLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PessimisticLock != nil { @@ -6587,9 +6506,6 @@ func (m *BatchCommandsResponse_Response_PessimisticLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PessimisticRollback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PessimisticRollback != nil { @@ -6599,9 +6515,6 @@ func (m *BatchCommandsResponse_Response_PessimisticRollback) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_CheckTxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CheckTxnStatus != nil { @@ -6611,9 +6524,6 @@ func (m *BatchCommandsResponse_Response_CheckTxnStatus) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_TxnHeartBeat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TxnHeartBeat != nil { @@ -6623,9 +6533,6 @@ func (m *BatchCommandsResponse_Response_TxnHeartBeat) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CheckSecondaryLocks != nil { @@ -6635,9 +6542,6 @@ func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawCoprocessor) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RawCoprocessor != nil { @@ -6647,9 +6551,6 @@ func (m *BatchCommandsResponse_Response_RawCoprocessor) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_FlashbackToVersion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FlashbackToVersion != nil { @@ -6659,9 +6560,6 @@ func (m *BatchCommandsResponse_Response_FlashbackToVersion) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PrepareFlashbackToVersion != nil { @@ -6671,9 +6569,6 @@ func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int return n } func (m *BatchCommandsResponse_Response_Empty) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Empty != nil { @@ -6683,9 +6578,6 @@ func (m *BatchCommandsResponse_Response_Empty) Size() (n int) { return n } func (m *BatchRaftMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Msgs) > 0 { @@ -6694,16 +6586,10 @@ func (m *BatchRaftMessage) Size() (n int) { n += 1 + l + sovTikvpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsEmptyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TestId != 0 { @@ -6712,29 +6598,27 @@ func (m *BatchCommandsEmptyRequest) Size() (n int) { if m.DelayTime != 0 { n += 1 + sovTikvpb(uint64(m.DelayTime)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchCommandsEmptyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TestId != 0 { n += 1 + sovTikvpb(uint64(m.TestId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovTikvpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozTikvpb(x uint64) (n int) { return sovTikvpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -6754,7 +6638,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6782,7 +6666,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6791,9 +6675,6 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6814,7 +6695,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6831,7 +6712,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6840,23 +6721,9 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } 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.RequestIds) == 0 { - m.RequestIds = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -6868,7 +6735,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6884,13 +6751,12 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6915,7 +6781,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -6943,7 +6809,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6952,9 +6818,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6978,7 +6841,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -6987,9 +6850,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7013,7 +6873,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7022,9 +6882,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7048,7 +6905,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7057,9 +6914,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7083,7 +6937,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7092,9 +6946,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7118,7 +6969,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7127,9 +6978,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7153,7 +7001,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7162,9 +7010,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7188,7 +7033,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7197,9 +7042,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7223,7 +7065,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7232,9 +7074,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7258,7 +7097,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7267,9 +7106,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7293,7 +7129,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7302,9 +7138,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7328,7 +7161,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7337,9 +7170,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7363,7 +7193,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7372,9 +7202,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7398,7 +7225,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7407,9 +7234,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7433,7 +7257,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7442,9 +7266,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7468,7 +7289,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7477,9 +7298,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7503,7 +7321,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7512,9 +7330,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7538,7 +7353,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7547,9 +7362,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7573,7 +7385,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7582,9 +7394,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7608,7 +7417,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7617,9 +7426,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7643,7 +7449,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7652,9 +7458,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7678,7 +7481,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7687,9 +7490,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7713,7 +7513,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7722,9 +7522,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7748,7 +7545,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7757,9 +7554,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7783,7 +7577,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7792,9 +7586,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7818,7 +7609,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7827,9 +7618,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7853,7 +7641,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7862,9 +7650,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7888,7 +7673,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7897,9 +7682,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7923,7 +7705,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7932,9 +7714,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7958,7 +7737,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -7967,9 +7746,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7993,7 +7769,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8002,9 +7778,6 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8020,13 +7793,12 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8051,7 +7823,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8079,7 +7851,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8088,9 +7860,6 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8111,7 +7880,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8128,7 +7897,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8137,23 +7906,9 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } 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.RequestIds) == 0 { - m.RequestIds = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -8165,7 +7920,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8189,7 +7944,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TransportLayerLoad |= uint64(b&0x7F) << shift + m.TransportLayerLoad |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8200,13 +7955,12 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8231,7 +7985,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8259,7 +8013,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8268,9 +8022,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8294,7 +8045,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8302,10 +8053,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { if msglen < 0 { return ErrInvalidLengthTikvpb } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } @@ -8329,7 +8077,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8338,9 +8086,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8364,7 +8109,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8373,9 +8118,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8399,7 +8141,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8408,9 +8150,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8434,7 +8173,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8443,9 +8182,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8469,7 +8205,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8478,9 +8214,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8504,7 +8237,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8513,9 +8246,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8539,7 +8269,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8548,9 +8278,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8574,7 +8301,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8583,9 +8310,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8609,7 +8333,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8618,9 +8342,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8644,7 +8365,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8653,9 +8374,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8679,7 +8397,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8688,9 +8406,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8714,7 +8429,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8723,9 +8438,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8749,7 +8461,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8758,9 +8470,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8784,7 +8493,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8793,9 +8502,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8819,7 +8525,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8828,9 +8534,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8854,7 +8557,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8863,9 +8566,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8889,7 +8589,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8898,9 +8598,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8924,7 +8621,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8933,9 +8630,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8959,7 +8653,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -8968,9 +8662,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8994,7 +8685,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9003,9 +8694,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9029,7 +8717,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9038,9 +8726,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9064,7 +8749,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9073,9 +8758,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9099,7 +8781,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9108,9 +8790,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9134,7 +8813,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9143,9 +8822,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9169,7 +8845,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9178,9 +8854,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9204,7 +8877,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9213,9 +8886,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9239,7 +8909,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9248,9 +8918,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9274,7 +8941,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9283,9 +8950,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9309,7 +8973,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9318,9 +8982,6 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9336,13 +8997,12 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9367,7 +9027,7 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9395,7 +9055,7 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9404,9 +9064,6 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9421,13 +9078,12 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9452,7 +9108,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9480,7 +9136,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TestId |= uint64(b&0x7F) << shift + m.TestId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9499,7 +9155,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DelayTime |= uint64(b&0x7F) << shift + m.DelayTime |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9510,13 +9166,12 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9541,7 +9196,7 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9569,7 +9224,7 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TestId |= uint64(b&0x7F) << shift + m.TestId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -9580,13 +9235,12 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9599,7 +9253,6 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { func skipTikvpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -9631,8 +9284,10 @@ func skipTikvpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -9649,34 +9304,218 @@ func skipTikvpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthTikvpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTikvpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTikvpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipTikvpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthTikvpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthTikvpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTikvpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTikvpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTikvpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTikvpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("tikvpb.proto", fileDescriptorTikvpb) } + +var fileDescriptorTikvpb = []byte{ + // 2540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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64, 0x38, 0xf2, 0x33, 0x05, 0x47, 0x96, 0x35, 0x1c, + 0xe1, 0xb6, 0x09, 0x8f, 0xbc, 0xce, 0xf1, 0xc8, 0xaa, 0x81, 0x47, 0xb8, 0x93, 0x00, 0x92, 0x17, + 0x1a, 0x90, 0xac, 0xe4, 0x80, 0x84, 0x3b, 0x65, 0x44, 0xf2, 0x42, 0x23, 0x92, 0x95, 0x1c, 0x91, + 0x08, 0x97, 0x14, 0x49, 0x5e, 0xe9, 0x48, 0x62, 0xe7, 0x91, 0x84, 0x3b, 0x71, 0x26, 0x79, 0x9d, + 0x63, 0x92, 0x55, 0x03, 0x93, 0x88, 0x49, 0xf1, 0xa3, 0xef, 0xad, 0x19, 0x4a, 0xd6, 0x8b, 0xa0, + 0x84, 0x87, 0xd0, 0xa8, 0xe4, 0x75, 0x8e, 0x4a, 0x56, 0x0d, 0x54, 0x22, 0x06, 0xc0, 0xb1, 0x64, + 0xc7, 0x84, 0x25, 0x6b, 0x66, 0x2c, 0xe1, 0xee, 0x0a, 0x97, 0x3c, 0x91, 0xb8, 0x64, 0x51, 0xe1, + 0x12, 0x6e, 0x4f, 0xc1, 0x64, 0xc7, 0x04, 0x26, 0x6b, 0x66, 0x30, 0x11, 0x89, 0xe4, 0xf3, 0xea, + 0x85, 0x46, 0x26, 0x2b, 0x39, 0x32, 0x11, 0x6f, 0x33, 0x45, 0x93, 0x1d, 0x13, 0x9a, 0xac, 0x99, + 0xd1, 0x44, 0x9a, 0x9d, 0xc4, 0x26, 0x2f, 0x34, 0x36, 0x59, 0xc9, 0xb1, 0x89, 0x92, 0x94, 0xb2, + 0xc5, 0x8e, 0x09, 0x4e, 0xd6, 0xcc, 0x70, 0x92, 0x4f, 0x4a, 0x23, 0x7c, 0x95, 0xa7, 0x13, 0xc7, + 0x44, 0x27, 0xdc, 0x5b, 0xc2, 0x93, 0xa3, 0x02, 0x3c, 0xd9, 0x28, 0xc4, 0x13, 0x1e, 0x45, 0xe7, + 0x93, 0x57, 0x3a, 0x9f, 0xd8, 0x79, 0x3e, 0x11, 0x7b, 0x21, 0x03, 0x94, 0xa3, 0x02, 0x40, 0xd9, + 0x28, 0x04, 0x14, 0x65, 0x00, 0xf2, 0x1b, 0xaf, 0x19, 0x09, 0xe5, 0x41, 0x01, 0xa1, 0xf0, 0x30, + 0x2a, 0xa2, 0x7c, 0x69, 0x42, 0x94, 0x65, 0x0d, 0x51, 0xc4, 0x7b, 0x90, 0x0f, 0xb3, 0xe3, 0x22, + 0x46, 0x79, 0x58, 0xcc, 0x28, 0x3c, 0x52, 0x0e, 0x52, 0xde, 0x97, 0x41, 0xca, 0x66, 0x39, 0xa4, + 0xf0, 0xa8, 0x46, 0x4a, 0x39, 0x2a, 0xa0, 0x94, 0x8d, 0x42, 0x4a, 0x11, 0x4b, 0xae, 0x61, 0x4a, + 0xcd, 0x88, 0x29, 0x0f, 0x0a, 0x30, 0x45, 0x2c, 0xb9, 0xc2, 0x29, 0xef, 0xcb, 0x38, 0x65, 0xb3, + 0x9c, 0x53, 0xc4, 0x4c, 0x4d, 0xa0, 0x72, 0x54, 0x00, 0x2a, 0x1b, 0x85, 0xa0, 0xa2, 0x7c, 0x5c, + 0xf2, 0xcb, 0x7d, 0x57, 0x42, 0x2a, 0x8f, 0x4b, 0x49, 0x85, 0x87, 0x34, 0xa1, 0xca, 0x1f, 0xc6, + 0xa3, 0xca, 0x67, 0x37, 0x41, 0x15, 0x9e, 0xa4, 0x84, 0x55, 0xbe, 0xd6, 0x58, 0xc5, 0x2d, 0x63, + 0x15, 0x1e, 0xd0, 0x04, 0x2b, 0x7b, 0x60, 0x3e, 0x39, 0x50, 0xd0, 0x39, 0x39, 0xc1, 0x51, 0x84, + 0x7a, 0x18, 0x6e, 0x83, 0xea, 0x20, 0xea, 0x65, 0x84, 0xe2, 0x6c, 0xab, 0xd7, 0x2e, 0x92, 0x65, + 0x93, 0xd9, 0xb9, 0x2d, 0xb0, 0x5a, 0xc8, 0x48, 0x70, 0x05, 0x4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f0, 0x32, 0xc5, 0xf1, 0xc7, 0x79, 0x2f, 0xa1, 0x15, 0xb7, 0x11, 0xa5, 0x46, 0x3c, 0xba, + 0x0f, 0x16, 0xf9, 0x3e, 0xdb, 0x67, 0x1e, 0x6c, 0x3b, 0x3f, 0xd3, 0xdc, 0x0d, 0x36, 0xa2, 0x31, + 0xbc, 0x81, 0xa9, 0x04, 0x78, 0xf3, 0x49, 0x31, 0x90, 0x92, 0x3d, 0xd5, 0x22, 0xe8, 0x06, 0x59, + 0xa6, 0x4f, 0xc7, 0xda, 0xf1, 0x34, 0xbf, 0x05, 0xf3, 0x6f, 0x31, 0x6d, 0x44, 0x98, 0xb2, 0x81, + 0x7a, 0x38, 0xca, 0xa5, 0xd1, 0x0d, 0xc4, 0x09, 0xa2, 0xda, 0x31, 0xa5, 0x54, 0x61, 0xce, 0xd8, + 0xe6, 0x49, 0x1c, 0x6b, 0x81, 0x7f, 0xee, 0xf5, 0xe0, 0x13, 0xcd, 0x45, 0xd3, 0x67, 0x91, 0x9f, + 0x8e, 0x33, 0xcb, 0xc6, 0xbf, 0xf7, 0xf4, 0x5f, 0x7f, 0x9e, 0xaa, 0xfc, 0xed, 0xe3, 0x7a, 0xe5, + 0xef, 0x1f, 0xd7, 0x2b, 0xff, 0xfe, 0xb8, 0x5e, 0xf9, 0xd3, 0x7f, 0xd6, 0x2d, 0x30, 0x1f, 0x84, + 0x3d, 0x56, 0xe7, 0xb7, 0x2f, 0x63, 0xf6, 0x53, 0xb5, 0xb3, 0x09, 0xf6, 0xcf, 0xe7, 0xff, 0x0f, + 0x00, 0x00, 0xff, 0xff, 0x57, 0x97, 0x63, 0x5f, 0x47, 0x27, 0x00, 0x00, +} diff --git a/pkg/tracepb/tracepb.pb.go b/pkg/tracepb/tracepb.pb.go index 55cf091a7..5c8860082 100644 --- a/pkg/tracepb/tracepb.pb.go +++ b/pkg/tracepb/tracepb.pb.go @@ -1,19 +1,36 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tracepb.proto +/* +Package tracepb is a generated protocol buffer package. + +It is generated from these files: + + tracepb.proto + +It has these top-level messages: + + TraceRecordRequest + TraceRecord + RemoteParentSpan + TraceContext + Report + NotifyCollect + Span + Property +*/ package tracepb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -25,90 +42,27 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type TraceRecordRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TraceRecordRequest) Reset() { *m = TraceRecordRequest{} } -func (m *TraceRecordRequest) String() string { return proto.CompactTextString(m) } -func (*TraceRecordRequest) ProtoMessage() {} -func (*TraceRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{0} -} -func (m *TraceRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TraceRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TraceRecordRequest.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 *TraceRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TraceRecordRequest.Merge(m, src) -} -func (m *TraceRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *TraceRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TraceRecordRequest.DiscardUnknown(m) } -var xxx_messageInfo_TraceRecordRequest proto.InternalMessageInfo +func (m *TraceRecordRequest) Reset() { *m = TraceRecordRequest{} } +func (m *TraceRecordRequest) String() string { return proto.CompactTextString(m) } +func (*TraceRecordRequest) ProtoMessage() {} +func (*TraceRecordRequest) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{0} } type TraceRecord struct { // Types that are valid to be assigned to RecordOneof: - // // *TraceRecord_Report // *TraceRecord_NotifyCollect - RecordOneof isTraceRecord_RecordOneof `protobuf_oneof:"record_oneof"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TraceRecord) Reset() { *m = TraceRecord{} } -func (m *TraceRecord) String() string { return proto.CompactTextString(m) } -func (*TraceRecord) ProtoMessage() {} -func (*TraceRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{1} -} -func (m *TraceRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TraceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TraceRecord.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 *TraceRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_TraceRecord.Merge(m, src) -} -func (m *TraceRecord) XXX_Size() int { - return m.Size() -} -func (m *TraceRecord) XXX_DiscardUnknown() { - xxx_messageInfo_TraceRecord.DiscardUnknown(m) + RecordOneof isTraceRecord_RecordOneof `protobuf_oneof:"record_oneof"` } -var xxx_messageInfo_TraceRecord proto.InternalMessageInfo +func (m *TraceRecord) Reset() { *m = TraceRecord{} } +func (m *TraceRecord) String() string { return proto.CompactTextString(m) } +func (*TraceRecord) ProtoMessage() {} +func (*TraceRecord) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{1} } type isTraceRecord_RecordOneof interface { isTraceRecord_RecordOneof() @@ -117,10 +71,10 @@ type isTraceRecord_RecordOneof interface { } type TraceRecord_Report struct { - Report *Report `protobuf:"bytes,1,opt,name=report,proto3,oneof" json:"report,omitempty"` + Report *Report `protobuf:"bytes,1,opt,name=report,oneof"` } type TraceRecord_NotifyCollect struct { - NotifyCollect *NotifyCollect `protobuf:"bytes,2,opt,name=notify_collect,json=notifyCollect,proto3,oneof" json:"notify_collect,omitempty"` + NotifyCollect *NotifyCollect `protobuf:"bytes,2,opt,name=notify_collect,json=notifyCollect,oneof"` } func (*TraceRecord_Report) isTraceRecord_RecordOneof() {} @@ -147,56 +101,91 @@ func (m *TraceRecord) GetNotifyCollect() *NotifyCollect { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TraceRecord) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TraceRecord) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TraceRecord_OneofMarshaler, _TraceRecord_OneofUnmarshaler, _TraceRecord_OneofSizer, []interface{}{ (*TraceRecord_Report)(nil), (*TraceRecord_NotifyCollect)(nil), } } -type RemoteParentSpan struct { - // A unique id to identify the request. It's usually a UUID. - TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` - // The span of remote caller that is awaiting the request. - SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteParentSpan) Reset() { *m = RemoteParentSpan{} } -func (m *RemoteParentSpan) String() string { return proto.CompactTextString(m) } -func (*RemoteParentSpan) ProtoMessage() {} -func (*RemoteParentSpan) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{2} -} -func (m *RemoteParentSpan) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoteParentSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoteParentSpan.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _TraceRecord_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TraceRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *TraceRecord_Report: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Report); err != nil { + return err } - return b[:n], nil + case *TraceRecord_NotifyCollect: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NotifyCollect); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TraceRecord.RecordOneof has unexpected type %T", x) } + return nil } -func (m *RemoteParentSpan) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteParentSpan.Merge(m, src) -} -func (m *RemoteParentSpan) XXX_Size() int { - return m.Size() + +func _TraceRecord_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TraceRecord) + switch tag { + case 1: // record_oneof.report + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Report) + err := b.DecodeMessage(msg) + m.RecordOneof = &TraceRecord_Report{msg} + return true, err + case 2: // record_oneof.notify_collect + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(NotifyCollect) + err := b.DecodeMessage(msg) + m.RecordOneof = &TraceRecord_NotifyCollect{msg} + return true, err + default: + return false, nil + } +} + +func _TraceRecord_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TraceRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *TraceRecord_Report: + s := proto.Size(x.Report) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *TraceRecord_NotifyCollect: + s := proto.Size(x.NotifyCollect) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (m *RemoteParentSpan) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteParentSpan.DiscardUnknown(m) + +type RemoteParentSpan struct { + // A unique id to identify the request. It's usually a UUID. + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // The span of remote caller that is awaiting the request. + SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` } -var xxx_messageInfo_RemoteParentSpan proto.InternalMessageInfo +func (m *RemoteParentSpan) Reset() { *m = RemoteParentSpan{} } +func (m *RemoteParentSpan) String() string { return proto.CompactTextString(m) } +func (*RemoteParentSpan) ProtoMessage() {} +func (*RemoteParentSpan) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{2} } func (m *RemoteParentSpan) GetTraceId() uint64 { if m != nil { @@ -214,46 +203,15 @@ func (m *RemoteParentSpan) GetSpanId() uint64 { // The context of the request to be traced. type TraceContext struct { - RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans,proto3" json:"remote_parent_spans,omitempty"` + RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans" json:"remote_parent_spans,omitempty"` // Report the trace records only if the duration of handling the request exceeds the threshold. - DurationThresholdMs uint32 `protobuf:"varint,2,opt,name=duration_threshold_ms,json=durationThresholdMs,proto3" json:"duration_threshold_ms,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TraceContext) Reset() { *m = TraceContext{} } -func (m *TraceContext) String() string { return proto.CompactTextString(m) } -func (*TraceContext) ProtoMessage() {} -func (*TraceContext) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{3} -} -func (m *TraceContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TraceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TraceContext.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 *TraceContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_TraceContext.Merge(m, src) -} -func (m *TraceContext) XXX_Size() int { - return m.Size() -} -func (m *TraceContext) XXX_DiscardUnknown() { - xxx_messageInfo_TraceContext.DiscardUnknown(m) + DurationThresholdMs uint32 `protobuf:"varint,2,opt,name=duration_threshold_ms,json=durationThresholdMs,proto3" json:"duration_threshold_ms,omitempty"` } -var xxx_messageInfo_TraceContext proto.InternalMessageInfo +func (m *TraceContext) Reset() { *m = TraceContext{} } +func (m *TraceContext) String() string { return proto.CompactTextString(m) } +func (*TraceContext) ProtoMessage() {} +func (*TraceContext) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{3} } func (m *TraceContext) GetRemoteParentSpans() []*RemoteParentSpan { if m != nil { @@ -271,45 +229,14 @@ func (m *TraceContext) GetDurationThresholdMs() uint32 { // Report the spans collected when handling a request on a service. type Report struct { - RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans,proto3" json:"remote_parent_spans,omitempty"` - Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Report) Reset() { *m = Report{} } -func (m *Report) String() string { return proto.CompactTextString(m) } -func (*Report) ProtoMessage() {} -func (*Report) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{4} -} -func (m *Report) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Report.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 *Report) XXX_Merge(src proto.Message) { - xxx_messageInfo_Report.Merge(m, src) -} -func (m *Report) XXX_Size() int { - return m.Size() -} -func (m *Report) XXX_DiscardUnknown() { - xxx_messageInfo_Report.DiscardUnknown(m) + RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans" json:"remote_parent_spans,omitempty"` + Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"` } -var xxx_messageInfo_Report proto.InternalMessageInfo +func (m *Report) Reset() { *m = Report{} } +func (m *Report) String() string { return proto.CompactTextString(m) } +func (*Report) ProtoMessage() {} +func (*Report) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{4} } func (m *Report) GetRemoteParentSpans() []*RemoteParentSpan { if m != nil { @@ -327,44 +254,13 @@ func (m *Report) GetSpans() []*Span { // Notify the subscriber to persis the spans of the trace. type NotifyCollect struct { - TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NotifyCollect) Reset() { *m = NotifyCollect{} } -func (m *NotifyCollect) String() string { return proto.CompactTextString(m) } -func (*NotifyCollect) ProtoMessage() {} -func (*NotifyCollect) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{5} -} -func (m *NotifyCollect) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NotifyCollect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NotifyCollect.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 *NotifyCollect) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotifyCollect.Merge(m, src) -} -func (m *NotifyCollect) XXX_Size() int { - return m.Size() -} -func (m *NotifyCollect) XXX_DiscardUnknown() { - xxx_messageInfo_NotifyCollect.DiscardUnknown(m) + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` } -var xxx_messageInfo_NotifyCollect proto.InternalMessageInfo +func (m *NotifyCollect) Reset() { *m = NotifyCollect{} } +func (m *NotifyCollect) String() string { return proto.CompactTextString(m) } +func (*NotifyCollect) ProtoMessage() {} +func (*NotifyCollect) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{5} } func (m *NotifyCollect) GetTraceId() uint64 { if m != nil { @@ -376,49 +272,18 @@ func (m *NotifyCollect) GetTraceId() uint64 { type Span struct { // The unique span id within the spans with the same `trace_id`. // The most significant 32 bits should be random number generated by each service instance. - SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` - ParentId uint64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` - BeginUnixNs uint64 `protobuf:"varint,3,opt,name=begin_unix_ns,json=beginUnixNs,proto3" json:"begin_unix_ns,omitempty"` - DurationNs uint64 `protobuf:"varint,4,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"` - Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` - Properties []*Property `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Span) Reset() { *m = Span{} } -func (m *Span) String() string { return proto.CompactTextString(m) } -func (*Span) ProtoMessage() {} -func (*Span) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{6} -} -func (m *Span) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Span.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 *Span) XXX_Merge(src proto.Message) { - xxx_messageInfo_Span.Merge(m, src) -} -func (m *Span) XXX_Size() int { - return m.Size() -} -func (m *Span) XXX_DiscardUnknown() { - xxx_messageInfo_Span.DiscardUnknown(m) + SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + ParentId uint64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + BeginUnixNs uint64 `protobuf:"varint,3,opt,name=begin_unix_ns,json=beginUnixNs,proto3" json:"begin_unix_ns,omitempty"` + DurationNs uint64 `protobuf:"varint,4,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"` + Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` + Properties []*Property `protobuf:"bytes,6,rep,name=properties" json:"properties,omitempty"` } -var xxx_messageInfo_Span proto.InternalMessageInfo +func (m *Span) Reset() { *m = Span{} } +func (m *Span) String() string { return proto.CompactTextString(m) } +func (*Span) ProtoMessage() {} +func (*Span) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{6} } func (m *Span) GetSpanId() uint64 { if m != nil { @@ -463,45 +328,14 @@ func (m *Span) GetProperties() []*Property { } type Property struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Property) Reset() { *m = Property{} } -func (m *Property) String() string { return proto.CompactTextString(m) } -func (*Property) ProtoMessage() {} -func (*Property) Descriptor() ([]byte, []int) { - return fileDescriptor_26aed79969e856c7, []int{7} -} -func (m *Property) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Property.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 *Property) XXX_Merge(src proto.Message) { - xxx_messageInfo_Property.Merge(m, src) -} -func (m *Property) XXX_Size() int { - return m.Size() -} -func (m *Property) XXX_DiscardUnknown() { - xxx_messageInfo_Property.DiscardUnknown(m) + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -var xxx_messageInfo_Property proto.InternalMessageInfo +func (m *Property) Reset() { *m = Property{} } +func (m *Property) String() string { return proto.CompactTextString(m) } +func (*Property) ProtoMessage() {} +func (*Property) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{7} } func (m *Property) GetKey() string { if m != nil { @@ -528,44 +362,6 @@ func init() { proto.RegisterType((*Property)(nil), "tracepb.Property") } -func init() { proto.RegisterFile("tracepb.proto", fileDescriptor_26aed79969e856c7) } - -var fileDescriptor_26aed79969e856c7 = []byte{ - // 511 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0xcd, 0xe4, 0xd5, 0xe4, 0xa6, 0x2e, 0xc9, 0x34, 0x80, 0x4b, 0xa5, 0x10, 0x0d, 0x9b, 0xc0, - 0x22, 0x82, 0xf0, 0x01, 0x48, 0xa9, 0x84, 0x9a, 0x05, 0x51, 0x34, 0x29, 0x62, 0x69, 0xd9, 0xf1, - 0x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xc5, 0x16, - 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, - 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, - 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, - 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, - 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, - 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -574,9 +370,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// TraceRecordPubSubClient is the client API for TraceRecordPubSub service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for TraceRecordPubSub service + type TraceRecordPubSubClient interface { // Subscribe the Trace records generated on this service. The service will periodically (e.g. per minute) // publishes Trace records to clients via gRPC stream. @@ -592,7 +387,7 @@ func NewTraceRecordPubSubClient(cc *grpc.ClientConn) TraceRecordPubSubClient { } func (c *traceRecordPubSubClient) Subscribe(ctx context.Context, in *TraceRecordRequest, opts ...grpc.CallOption) (TraceRecordPubSub_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &_TraceRecordPubSub_serviceDesc.Streams[0], "/tracepb.TraceRecordPubSub/Subscribe", opts...) + stream, err := grpc.NewClientStream(ctx, &_TraceRecordPubSub_serviceDesc.Streams[0], c.cc, "/tracepb.TraceRecordPubSub/Subscribe", opts...) if err != nil { return nil, err } @@ -623,21 +418,14 @@ func (x *traceRecordPubSubSubscribeClient) Recv() (*TraceRecord, error) { return m, nil } -// TraceRecordPubSubServer is the server API for TraceRecordPubSub service. +// Server API for TraceRecordPubSub service + type TraceRecordPubSubServer interface { // Subscribe the Trace records generated on this service. The service will periodically (e.g. per minute) // publishes Trace records to clients via gRPC stream. Subscribe(*TraceRecordRequest, TraceRecordPubSub_SubscribeServer) error } -// UnimplementedTraceRecordPubSubServer can be embedded to have forward compatible implementations. -type UnimplementedTraceRecordPubSubServer struct { -} - -func (*UnimplementedTraceRecordPubSubServer) Subscribe(req *TraceRecordRequest, srv TraceRecordPubSub_SubscribeServer) error { - return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") -} - func RegisterTraceRecordPubSubServer(s *grpc.Server, srv TraceRecordPubSubServer) { s.RegisterService(&_TraceRecordPubSub_serviceDesc, srv) } @@ -680,7 +468,7 @@ var _TraceRecordPubSub_serviceDesc = grpc.ServiceDesc{ func (m *TraceRecordRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -688,26 +476,17 @@ func (m *TraceRecordRequest) Marshal() (dAtA []byte, err error) { } func (m *TraceRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TraceRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + return i, nil } func (m *TraceRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -715,77 +494,52 @@ func (m *TraceRecord) Marshal() (dAtA []byte, err error) { } func (m *TraceRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TraceRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.RecordOneof != nil { - { - size := m.RecordOneof.Size() - i -= size - if _, err := m.RecordOneof.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn1, err := m.RecordOneof.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn1 } - return len(dAtA) - i, nil + return i, nil } func (m *TraceRecord_Report) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TraceRecord_Report) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Report != nil { - { - size, err := m.Report.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.Report.Size())) + n2, err := m.Report.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - return len(dAtA) - i, nil + return i, nil } func (m *TraceRecord_NotifyCollect) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TraceRecord_NotifyCollect) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.NotifyCollect != nil { - { - size, err := m.NotifyCollect.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.NotifyCollect.Size())) + n3, err := m.NotifyCollect.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - return len(dAtA) - i, nil + return i, nil } func (m *RemoteParentSpan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -793,36 +547,27 @@ func (m *RemoteParentSpan) Marshal() (dAtA []byte, err error) { } func (m *RemoteParentSpan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoteParentSpan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.TraceId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) } if m.SpanId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) } - if m.TraceId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *TraceContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -830,45 +575,34 @@ func (m *TraceContext) Marshal() (dAtA []byte, err error) { } func (m *TraceContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TraceContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DurationThresholdMs != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.DurationThresholdMs)) - i-- - dAtA[i] = 0x10 - } if len(m.RemoteParentSpans) > 0 { - for iNdEx := len(m.RemoteParentSpans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RemoteParentSpans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.RemoteParentSpans { dAtA[i] = 0xa + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return len(dAtA) - i, nil + if m.DurationThresholdMs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.DurationThresholdMs)) + } + return i, nil } func (m *Report) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -876,54 +610,41 @@ func (m *Report) Marshal() (dAtA []byte, err error) { } func (m *Report) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Spans) > 0 { - for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) + if len(m.RemoteParentSpans) > 0 { + for _, msg := range m.RemoteParentSpans { + dAtA[i] = 0xa + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if len(m.RemoteParentSpans) > 0 { - for iNdEx := len(m.RemoteParentSpans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RemoteParentSpans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) + if len(m.Spans) > 0 { + for _, msg := range m.Spans { + dAtA[i] = 0x12 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n } } - return len(dAtA) - i, nil + return i, nil } func (m *NotifyCollect) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -931,31 +652,22 @@ func (m *NotifyCollect) Marshal() (dAtA []byte, err error) { } func (m *NotifyCollect) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NotifyCollect) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.TraceId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) } - return len(dAtA) - i, nil + return i, nil } func (m *Span) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -963,67 +675,55 @@ func (m *Span) Marshal() (dAtA []byte, err error) { } func (m *Span) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.SpanId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) } - if len(m.Properties) > 0 { - for iNdEx := len(m.Properties) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Properties[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } + if m.ParentId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.ParentId)) } - if len(m.Event) > 0 { - i -= len(m.Event) - copy(dAtA[i:], m.Event) - i = encodeVarintTracepb(dAtA, i, uint64(len(m.Event))) - i-- - dAtA[i] = 0x2a + if m.BeginUnixNs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.BeginUnixNs)) } if m.DurationNs != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.DurationNs)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.DurationNs)) } - if m.BeginUnixNs != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.BeginUnixNs)) - i-- - dAtA[i] = 0x18 - } - if m.ParentId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.ParentId)) - i-- - dAtA[i] = 0x10 + if len(m.Event) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Event))) + i += copy(dAtA[i:], m.Event) } - if m.SpanId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) - i-- - dAtA[i] = 0x8 + if len(m.Properties) > 0 { + for _, msg := range m.Properties { + dAtA[i] = 0x32 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return len(dAtA) - i, nil + return i, nil } func (m *Property) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1031,78 +731,50 @@ func (m *Property) Marshal() (dAtA []byte, err error) { } func (m *Property) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Property) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Key) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintTracepb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintTracepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func encodeVarintTracepb(dAtA []byte, offset int, v uint64) int { - offset -= sovTracepb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *TraceRecordRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TraceRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RecordOneof != nil { n += m.RecordOneof.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TraceRecord_Report) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Report != nil { @@ -1112,9 +784,6 @@ func (m *TraceRecord_Report) Size() (n int) { return n } func (m *TraceRecord_NotifyCollect) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotifyCollect != nil { @@ -1124,9 +793,6 @@ func (m *TraceRecord_NotifyCollect) Size() (n int) { return n } func (m *RemoteParentSpan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TraceId != 0 { @@ -1135,16 +801,10 @@ func (m *RemoteParentSpan) Size() (n int) { if m.SpanId != 0 { n += 1 + sovTracepb(uint64(m.SpanId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TraceContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -1156,16 +816,10 @@ func (m *TraceContext) Size() (n int) { if m.DurationThresholdMs != 0 { n += 1 + sovTracepb(uint64(m.DurationThresholdMs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Report) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -1180,31 +834,19 @@ func (m *Report) Size() (n int) { n += 1 + l + sovTracepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *NotifyCollect) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TraceId != 0 { n += 1 + sovTracepb(uint64(m.TraceId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Span) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SpanId != 0 { @@ -1229,16 +871,10 @@ func (m *Span) Size() (n int) { n += 1 + l + sovTracepb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Property) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1249,14 +885,18 @@ func (m *Property) Size() (n int) { if l > 0 { n += 1 + l + sovTracepb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovTracepb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozTracepb(x uint64) (n int) { return sovTracepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1276,7 +916,7 @@ func (m *TraceRecordRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1296,13 +936,12 @@ func (m *TraceRecordRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1327,7 +966,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1355,7 +994,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1364,9 +1003,6 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1390,7 +1026,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1399,9 +1035,6 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1417,13 +1050,12 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1448,7 +1080,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1476,7 +1108,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TraceId |= uint64(b&0x7F) << shift + m.TraceId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1495,7 +1127,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpanId |= uint64(b&0x7F) << shift + m.SpanId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1506,13 +1138,12 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1537,7 +1168,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1565,7 +1196,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1574,9 +1205,6 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1599,7 +1227,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationThresholdMs |= uint32(b&0x7F) << shift + m.DurationThresholdMs |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -1610,13 +1238,12 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1641,7 +1268,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1669,7 +1296,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1678,9 +1305,6 @@ func (m *Report) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1703,7 +1327,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1712,9 +1336,6 @@ func (m *Report) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1729,13 +1350,12 @@ func (m *Report) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1760,7 +1380,7 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1788,7 +1408,7 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TraceId |= uint64(b&0x7F) << shift + m.TraceId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1799,13 +1419,12 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1830,7 +1449,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1858,7 +1477,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpanId |= uint64(b&0x7F) << shift + m.SpanId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1877,7 +1496,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ParentId |= uint64(b&0x7F) << shift + m.ParentId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1896,7 +1515,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BeginUnixNs |= uint64(b&0x7F) << shift + m.BeginUnixNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1915,7 +1534,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationNs |= uint64(b&0x7F) << shift + m.DurationNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1934,7 +1553,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1944,9 +1563,6 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1966,7 +1582,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1975,9 +1591,6 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1992,13 +1605,12 @@ func (m *Span) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2023,7 +1635,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2051,7 +1663,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2061,9 +1673,6 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2083,7 +1692,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2093,9 +1702,6 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTracepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2107,13 +1713,12 @@ func (m *Property) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2126,7 +1731,6 @@ func (m *Property) Unmarshal(dAtA []byte) error { func skipTracepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2158,8 +1762,10 @@ func skipTracepb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2176,34 +1782,91 @@ func skipTracepb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthTracepb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTracepb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTracepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipTracepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthTracepb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthTracepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTracepb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTracepb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTracepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTracepb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("tracepb.proto", fileDescriptorTracepb) } + +var fileDescriptorTracepb = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0xd3, 0x40, + 0x14, 0xcd, 0xe4, 0xd5, 0xe4, 0xa6, 0x2e, 0xc9, 0x34, 0x80, 0x4b, 0xa5, 0x10, 0x0d, 0x9b, 0xc0, + 0x22, 0x82, 0xf0, 0x01, 0x48, 0xa9, 0x84, 0x9a, 0x05, 0x51, 0x34, 0x29, 0x62, 0x69, 0xd9, 0xf1, + 0xb4, 0xb5, 0x92, 0xce, 0x98, 0x99, 0x71, 0x94, 0x7c, 0x02, 0x0b, 0xf6, 0x7c, 0x12, 0x62, 0xc5, + 0x27, 0xa0, 0xf0, 0x23, 0xc8, 0xd7, 0x89, 0xe5, 0x02, 0x62, 0xc5, 0xca, 0x73, 0xcf, 0xb9, 0xaf, + 0x73, 0xac, 0x0b, 0x8e, 0xd5, 0xfe, 0x42, 0xc4, 0xc1, 0x30, 0xd6, 0xca, 0x2a, 0x7a, 0xb4, 0x0f, + 0x59, 0x17, 0xe8, 0x55, 0xfa, 0xe4, 0x62, 0xa1, 0x74, 0xc8, 0xc5, 0xc7, 0x44, 0x18, 0xcb, 0x3e, + 0x11, 0x68, 0x15, 0x60, 0xfa, 0x1c, 0xea, 0x5a, 0xc4, 0x4a, 0x5b, 0x97, 0xf4, 0xc9, 0xa0, 0x35, + 0x7a, 0x30, 0x3c, 0xb4, 0xe3, 0x08, 0x5f, 0x96, 0xf8, 0x3e, 0x81, 0xbe, 0x81, 0x13, 0xa9, 0x6c, + 0x74, 0xbd, 0xf5, 0x16, 0x6a, 0xb5, 0x12, 0x0b, 0xeb, 0x96, 0xb1, 0xe4, 0x51, 0x5e, 0x32, 0x45, + 0xfa, 0x22, 0x63, 0x2f, 0x4b, 0xdc, 0x91, 0x45, 0x60, 0x7c, 0x02, 0xc7, 0x1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46, 0x9b, 0xa9, 0xa1, 0x4f, 0xa1, 0x95, 0x9b, 0x27, 0x8d, 0x5b, 0xc5, 0x0c, + 0x38, 0x40, 0x53, 0x43, 0xbb, 0x50, 0x13, 0x6b, 0x21, 0xad, 0x5b, 0xeb, 0x93, 0x41, 0x93, 0x67, + 0x01, 0x7d, 0x05, 0x10, 0x6b, 0x15, 0x0b, 0x6d, 0x23, 0x61, 0xdc, 0x3a, 0xea, 0xed, 0xe4, 0x7a, + 0x67, 0x19, 0xb5, 0xe5, 0x85, 0x24, 0x36, 0x82, 0xc6, 0x01, 0xa7, 0x6d, 0xa8, 0x2c, 0xc5, 0x16, + 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, + 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, + 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, + 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, + 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, + 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, +} diff --git a/pkg/tsopb/tsopb.pb.go b/pkg/tsopb/tsopb.pb.go index c093253be..5c4808f62 100644 --- a/pkg/tsopb/tsopb.pb.go +++ b/pkg/tsopb/tsopb.pb.go @@ -1,21 +1,44 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tsopb.proto +/* +Package tsopb is a generated protocol buffer package. + +It is generated from these files: + + tsopb.proto + +It has these top-level messages: + + RequestHeader + ResponseHeader + Error + TsoRequest + TsoResponse + Participant + KeyspaceGroupMember + SplitState + KeyspaceGroup + FindGroupByKeyspaceIDRequest + FindGroupByKeyspaceIDResponse + GetMinTSRequest + GetMinTSResponse +*/ package tsopb import ( - "context" "fmt" "io" "math" - math_bits "math/bits" - _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" pdpb "github.com/pingcap/kvproto/pkg/pdpb" + + _ "github.com/gogo/protobuf/gogoproto" + + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -27,7 +50,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -48,7 +71,6 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -61,10 +83,7 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } - -func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{0} -} +func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{0} } type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. @@ -74,44 +93,13 @@ type RequestHeader struct { // keyspace_id is the unique id of the tenant/keyspace. KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` // keyspace_group_id is the unique id of the keyspace group to which the tenant/keyspace belongs. - KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{0} -} -func (m *RequestHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestHeader.Merge(m, src) -} -func (m *RequestHeader) XXX_Size() int { - return m.Size() -} -func (m *RequestHeader) XXX_DiscardUnknown() { - xxx_messageInfo_RequestHeader.DiscardUnknown(m) + KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` } -var xxx_messageInfo_RequestHeader proto.InternalMessageInfo +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{0} } func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -144,48 +132,17 @@ func (m *RequestHeader) GetKeyspaceGroupId() uint32 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // keyspace_id is the unique id of the tenant/keyspace as the response receiver. KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` // keyspace_group_id is the unique id of the keyspace group to which the tenant/keyspace belongs. - KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{1} -} -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) -} -func (m *ResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` } -var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{1} } func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -216,45 +173,14 @@ func (m *ResponseHeader) GetKeyspaceGroupId() uint32 { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=tsopb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{2} -} -func (m *Error) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return m.Size() -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=tsopb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -var xxx_messageInfo_Error proto.InternalMessageInfo +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{2} } func (m *Error) GetType() ErrorType { if m != nil { @@ -271,46 +197,15 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TsoRequest) Reset() { *m = TsoRequest{} } -func (m *TsoRequest) String() string { return proto.CompactTextString(m) } -func (*TsoRequest) ProtoMessage() {} -func (*TsoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{3} -} -func (m *TsoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TsoRequest.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 *TsoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TsoRequest.Merge(m, src) -} -func (m *TsoRequest) XXX_Size() int { - return m.Size() -} -func (m *TsoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TsoRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -var xxx_messageInfo_TsoRequest proto.InternalMessageInfo +func (m *TsoRequest) Reset() { *m = TsoRequest{} } +func (m *TsoRequest) String() string { return proto.CompactTextString(m) } +func (*TsoRequest) ProtoMessage() {} +func (*TsoRequest) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{3} } func (m *TsoRequest) GetHeader() *RequestHeader { if m != nil { @@ -334,46 +229,15 @@ func (m *TsoRequest) GetDcLocation() string { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Timestamp *pdpb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TsoResponse) Reset() { *m = TsoResponse{} } -func (m *TsoResponse) String() string { return proto.CompactTextString(m) } -func (*TsoResponse) ProtoMessage() {} -func (*TsoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{4} -} -func (m *TsoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TsoResponse.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 *TsoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TsoResponse.Merge(m, src) -} -func (m *TsoResponse) XXX_Size() int { - return m.Size() -} -func (m *TsoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TsoResponse.DiscardUnknown(m) + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Timestamp *pdpb.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` } -var xxx_messageInfo_TsoResponse proto.InternalMessageInfo +func (m *TsoResponse) Reset() { *m = TsoResponse{} } +func (m *TsoResponse) String() string { return proto.CompactTextString(m) } +func (*TsoResponse) ProtoMessage() {} +func (*TsoResponse) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{4} } func (m *TsoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -403,44 +267,13 @@ type Participant struct { Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // listen_urls is the serivce endpoint list in the url format. // listen_urls[0] is primary service endpoint. - ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls,proto3" json:"listen_urls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Participant) Reset() { *m = Participant{} } -func (m *Participant) String() string { return proto.CompactTextString(m) } -func (*Participant) ProtoMessage() {} -func (*Participant) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{5} -} -func (m *Participant) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Participant.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 *Participant) XXX_Merge(src proto.Message) { - xxx_messageInfo_Participant.Merge(m, src) -} -func (m *Participant) XXX_Size() int { - return m.Size() -} -func (m *Participant) XXX_DiscardUnknown() { - xxx_messageInfo_Participant.DiscardUnknown(m) + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` } -var xxx_messageInfo_Participant proto.InternalMessageInfo +func (m *Participant) Reset() { *m = Participant{} } +func (m *Participant) String() string { return proto.CompactTextString(m) } +func (*Participant) ProtoMessage() {} +func (*Participant) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{5} } func (m *Participant) GetName() string { if m != nil { @@ -464,45 +297,14 @@ func (m *Participant) GetListenUrls() []string { } type KeyspaceGroupMember struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyspaceGroupMember) Reset() { *m = KeyspaceGroupMember{} } -func (m *KeyspaceGroupMember) String() string { return proto.CompactTextString(m) } -func (*KeyspaceGroupMember) ProtoMessage() {} -func (*KeyspaceGroupMember) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{6} -} -func (m *KeyspaceGroupMember) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyspaceGroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyspaceGroupMember.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 *KeyspaceGroupMember) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyspaceGroupMember.Merge(m, src) -} -func (m *KeyspaceGroupMember) XXX_Size() int { - return m.Size() -} -func (m *KeyspaceGroupMember) XXX_DiscardUnknown() { - xxx_messageInfo_KeyspaceGroupMember.DiscardUnknown(m) + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` } -var xxx_messageInfo_KeyspaceGroupMember proto.InternalMessageInfo +func (m *KeyspaceGroupMember) Reset() { *m = KeyspaceGroupMember{} } +func (m *KeyspaceGroupMember) String() string { return proto.CompactTextString(m) } +func (*KeyspaceGroupMember) ProtoMessage() {} +func (*KeyspaceGroupMember) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{6} } func (m *KeyspaceGroupMember) GetAddress() string { if m != nil { @@ -519,44 +321,13 @@ func (m *KeyspaceGroupMember) GetIsPrimary() bool { } type SplitState struct { - SplitSource uint32 `protobuf:"varint,1,opt,name=split_source,json=splitSource,proto3" json:"split_source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SplitState) Reset() { *m = SplitState{} } -func (m *SplitState) String() string { return proto.CompactTextString(m) } -func (*SplitState) ProtoMessage() {} -func (*SplitState) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{7} -} -func (m *SplitState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitState.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 *SplitState) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitState.Merge(m, src) -} -func (m *SplitState) XXX_Size() int { - return m.Size() -} -func (m *SplitState) XXX_DiscardUnknown() { - xxx_messageInfo_SplitState.DiscardUnknown(m) + SplitSource uint32 `protobuf:"varint,1,opt,name=split_source,json=splitSource,proto3" json:"split_source,omitempty"` } -var xxx_messageInfo_SplitState proto.InternalMessageInfo +func (m *SplitState) Reset() { *m = SplitState{} } +func (m *SplitState) String() string { return proto.CompactTextString(m) } +func (*SplitState) ProtoMessage() {} +func (*SplitState) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{7} } func (m *SplitState) GetSplitSource() uint32 { if m != nil { @@ -566,47 +337,16 @@ func (m *SplitState) GetSplitSource() uint32 { } type KeyspaceGroup struct { - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - UserKind string `protobuf:"bytes,2,opt,name=user_kind,json=userKind,proto3" json:"user_kind,omitempty"` - SplitState *SplitState `protobuf:"bytes,3,opt,name=split_state,json=splitState,proto3" json:"split_state,omitempty"` - Members []*KeyspaceGroupMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyspaceGroup) Reset() { *m = KeyspaceGroup{} } -func (m *KeyspaceGroup) String() string { return proto.CompactTextString(m) } -func (*KeyspaceGroup) ProtoMessage() {} -func (*KeyspaceGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{8} -} -func (m *KeyspaceGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyspaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyspaceGroup.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 *KeyspaceGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyspaceGroup.Merge(m, src) -} -func (m *KeyspaceGroup) XXX_Size() int { - return m.Size() -} -func (m *KeyspaceGroup) XXX_DiscardUnknown() { - xxx_messageInfo_KeyspaceGroup.DiscardUnknown(m) + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + UserKind string `protobuf:"bytes,2,opt,name=user_kind,json=userKind,proto3" json:"user_kind,omitempty"` + SplitState *SplitState `protobuf:"bytes,3,opt,name=split_state,json=splitState" json:"split_state,omitempty"` + Members []*KeyspaceGroupMember `protobuf:"bytes,4,rep,name=members" json:"members,omitempty"` } -var xxx_messageInfo_KeyspaceGroup proto.InternalMessageInfo +func (m *KeyspaceGroup) Reset() { *m = KeyspaceGroup{} } +func (m *KeyspaceGroup) String() string { return proto.CompactTextString(m) } +func (*KeyspaceGroup) ProtoMessage() {} +func (*KeyspaceGroup) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{8} } func (m *KeyspaceGroup) GetId() uint32 { if m != nil { @@ -637,45 +377,16 @@ func (m *KeyspaceGroup) GetMembers() []*KeyspaceGroupMember { } type FindGroupByKeyspaceIDRequest 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` } func (m *FindGroupByKeyspaceIDRequest) Reset() { *m = FindGroupByKeyspaceIDRequest{} } func (m *FindGroupByKeyspaceIDRequest) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDRequest) ProtoMessage() {} func (*FindGroupByKeyspaceIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{9} -} -func (m *FindGroupByKeyspaceIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorTsopb, []int{9} } -func (m *FindGroupByKeyspaceIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FindGroupByKeyspaceIDRequest.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 *FindGroupByKeyspaceIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindGroupByKeyspaceIDRequest.Merge(m, src) -} -func (m *FindGroupByKeyspaceIDRequest) XXX_Size() int { - return m.Size() -} -func (m *FindGroupByKeyspaceIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindGroupByKeyspaceIDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FindGroupByKeyspaceIDRequest proto.InternalMessageInfo func (m *FindGroupByKeyspaceIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -692,46 +403,17 @@ func (m *FindGroupByKeyspaceIDRequest) GetKeyspaceId() uint32 { } type FindGroupByKeyspaceIDResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeyspaceGroup *KeyspaceGroup `protobuf:"bytes,2,opt,name=keyspace_group,json=keyspaceGroup,proto3" json:"keyspace_group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + KeyspaceGroup *KeyspaceGroup `protobuf:"bytes,2,opt,name=keyspace_group,json=keyspaceGroup" json:"keyspace_group,omitempty"` } func (m *FindGroupByKeyspaceIDResponse) Reset() { *m = FindGroupByKeyspaceIDResponse{} } func (m *FindGroupByKeyspaceIDResponse) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDResponse) ProtoMessage() {} func (*FindGroupByKeyspaceIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{10} -} -func (m *FindGroupByKeyspaceIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FindGroupByKeyspaceIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FindGroupByKeyspaceIDResponse.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 *FindGroupByKeyspaceIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindGroupByKeyspaceIDResponse.Merge(m, src) -} -func (m *FindGroupByKeyspaceIDResponse) XXX_Size() int { - return m.Size() -} -func (m *FindGroupByKeyspaceIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FindGroupByKeyspaceIDResponse.DiscardUnknown(m) + return fileDescriptorTsopb, []int{10} } -var xxx_messageInfo_FindGroupByKeyspaceIDResponse proto.InternalMessageInfo - func (m *FindGroupByKeyspaceIDResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -747,45 +429,14 @@ func (m *FindGroupByKeyspaceIDResponse) GetKeyspaceGroup() *KeyspaceGroup { } type GetMinTSRequest 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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_ad96434e4f0d3c2b, []int{11} -} -func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 (m *GetMinTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSRequest.Merge(m, src) -} -func (m *GetMinTSRequest) XXX_Size() int { - return m.Size() -} -func (m *GetMinTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo +func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } +func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } +func (*GetMinTSRequest) ProtoMessage() {} +func (*GetMinTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{11} } func (m *GetMinTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -802,49 +453,18 @@ func (m *GetMinTSRequest) GetDcLocation() string { } type GetMinTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Timestamp *pdpb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Timestamp *pdpb.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` // the count of keyspace group primaries that the TSO server/pod is serving KeyspaceGroupsServing uint32 `protobuf:"varint,3,opt,name=keyspace_groups_serving,json=keyspaceGroupsServing,proto3" json:"keyspace_groups_serving,omitempty"` // the total count of keyspace groups - KeyspaceGroupsTotal uint32 `protobuf:"varint,4,opt,name=keyspace_groups_total,json=keyspaceGroupsTotal,proto3" json:"keyspace_groups_total,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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_ad96434e4f0d3c2b, []int{12} -} -func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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 (m *GetMinTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSResponse.Merge(m, src) -} -func (m *GetMinTSResponse) XXX_Size() int { - return m.Size() -} -func (m *GetMinTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) + KeyspaceGroupsTotal uint32 `protobuf:"varint,4,opt,name=keyspace_groups_total,json=keyspaceGroupsTotal,proto3" json:"keyspace_groups_total,omitempty"` } -var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo +func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } +func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } +func (*GetMinTSResponse) ProtoMessage() {} +func (*GetMinTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{12} } func (m *GetMinTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -875,7 +495,6 @@ func (m *GetMinTSResponse) GetKeyspaceGroupsTotal() uint32 { } func init() { - proto.RegisterEnum("tsopb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "tsopb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "tsopb.ResponseHeader") proto.RegisterType((*Error)(nil), "tsopb.Error") @@ -889,68 +508,7 @@ func init() { proto.RegisterType((*FindGroupByKeyspaceIDResponse)(nil), "tsopb.FindGroupByKeyspaceIDResponse") proto.RegisterType((*GetMinTSRequest)(nil), "tsopb.GetMinTSRequest") proto.RegisterType((*GetMinTSResponse)(nil), "tsopb.GetMinTSResponse") -} - -func init() { proto.RegisterFile("tsopb.proto", fileDescriptor_ad96434e4f0d3c2b) } - -var fileDescriptor_ad96434e4f0d3c2b = []byte{ - // 881 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xce, 0xf8, 0x23, 0xf5, 0xbe, 0x5b, 0x27, 0x9b, 0xa9, 0xd3, 0x5a, 0x2e, 0x0d, 0x61, 0xa9, - 0x50, 0x54, 0x51, 0x17, 0x2d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 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, - 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, - 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, - 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, - 0xe2, 0x26, 0xdc, 0x99, 0x51, 0x21, 0x82, 0x09, 0x55, 0x11, 0x1a, 0x24, 0xdf, 0xda, 0xaf, 0x00, - 0x3c, 0x11, 0xeb, 0x46, 0xe0, 0x8f, 0x61, 0xf3, 0x3b, 0x95, 0xb0, 0xba, 0xcf, 0x74, 0x1a, 0xfa, - 0xbe, 0x42, 0xa3, 0x88, 0xf6, 0xc1, 0x0d, 0xa8, 0x8e, 0xe3, 0x79, 0x24, 0xd5, 0x9d, 0x75, 0x92, - 0x6d, 0xd2, 0x3c, 0xc3, 0xb1, 0x3f, 0x8d, 0xc7, 0x81, 0x64, 0x71, 0xa4, 0xf2, 0x34, 0x08, 0x84, - 0xe3, 0x81, 0x46, 0xec, 0x1f, 0x10, 0x98, 0x8a, 0x33, 0xab, 0x30, 0x7e, 0xba, 0x46, 0xba, 0x7b, - 0x4d, 0xba, 0xda, 0x82, 0x77, 0xb0, 0x3e, 0x05, 0x43, 0xb2, 0x19, 0x15, 0x32, 0x98, 0x25, 0x8a, - 0xd3, 0x74, 0xb6, 0xdb, 0x6a, 0x2a, 0xbd, 0x1c, 0x26, 0x4b, 0x0f, 0x9b, 0x80, 0x79, 0x1a, 0x70, - 0xc9, 0xc6, 0x2c, 0x09, 0x22, 0x89, 0x31, 0x54, 0xa2, 0x60, 0x96, 0x55, 0xd1, 0x20, 0x6a, 0x8d, - 0xb7, 0xa0, 0x74, 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 0x11, 0x94, - 0x3d, 0x77, 0x84, 0x1d, 0x28, 0x7b, 0x22, 0xc6, 0xb9, 0x3c, 0x96, 0x6f, 0x68, 0x0b, 0xaf, 0x42, - 0x59, 0x6d, 0xed, 0x8d, 0x03, 0xf4, 0x09, 0xc2, 0x21, 0xec, 0xde, 0x38, 0x86, 0xf8, 0x43, 0x7d, - 0xe4, 0x6d, 0xa2, 0x68, 0x3d, 0x7e, 0xbb, 0x53, 0xce, 0x84, 0xbf, 0x84, 0x5a, 0xde, 0x7c, 0x7c, - 0x5f, 0x9f, 0x59, 0x1b, 0xb8, 0xd6, 0x83, 0x37, 0xf0, 0xfc, 0xf8, 0xe1, 0x47, 0xbf, 0xff, 0x52, - 0x43, 0xbf, 0x5e, 0xed, 0xa1, 0xdf, 0xae, 0xf6, 0xd0, 0x5f, 0x57, 0x7b, 0xe8, 0xf5, 0xdf, 0x7b, - 0x1b, 0x60, 0xc5, 0x7c, 0xd2, 0x96, 0xec, 0xe2, 0xb2, 0x7d, 0x71, 0xa9, 0xfe, 0xdf, 0xe7, 0x9b, - 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, - 0x00, + proto.RegisterEnum("tsopb.ErrorType", ErrorType_name, ErrorType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -961,9 +519,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// TSOClient is the client API for TSO service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for TSO service + type TSOClient interface { Tso(ctx context.Context, opts ...grpc.CallOption) (TSO_TsoClient, error) // Find the keyspace group that the keyspace belongs to by keyspace id. @@ -984,7 +541,7 @@ func NewTSOClient(cc *grpc.ClientConn) TSOClient { } func (c *tSOClient) Tso(ctx context.Context, opts ...grpc.CallOption) (TSO_TsoClient, error) { - stream, err := c.cc.NewStream(ctx, &_TSO_serviceDesc.Streams[0], "/tsopb.TSO/Tso", opts...) + stream, err := grpc.NewClientStream(ctx, &_TSO_serviceDesc.Streams[0], c.cc, "/tsopb.TSO/Tso", opts...) if err != nil { return nil, err } @@ -1016,7 +573,7 @@ func (x *tSOTsoClient) Recv() (*TsoResponse, error) { func (c *tSOClient) FindGroupByKeyspaceID(ctx context.Context, in *FindGroupByKeyspaceIDRequest, opts ...grpc.CallOption) (*FindGroupByKeyspaceIDResponse, error) { out := new(FindGroupByKeyspaceIDResponse) - err := c.cc.Invoke(ctx, "/tsopb.TSO/FindGroupByKeyspaceID", in, out, opts...) + err := grpc.Invoke(ctx, "/tsopb.TSO/FindGroupByKeyspaceID", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1025,14 +582,15 @@ func (c *tSOClient) FindGroupByKeyspaceID(ctx context.Context, in *FindGroupByKe func (c *tSOClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) { out := new(GetMinTSResponse) - err := c.cc.Invoke(ctx, "/tsopb.TSO/GetMinTS", in, out, opts...) + err := grpc.Invoke(ctx, "/tsopb.TSO/GetMinTS", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// TSOServer is the server API for TSO service. +// Server API for TSO service + type TSOServer interface { Tso(TSO_TsoServer) error // Find the keyspace group that the keyspace belongs to by keyspace id. @@ -1044,20 +602,6 @@ type TSOServer interface { GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) } -// UnimplementedTSOServer can be embedded to have forward compatible implementations. -type UnimplementedTSOServer struct { -} - -func (*UnimplementedTSOServer) Tso(srv TSO_TsoServer) error { - return status.Errorf(codes.Unimplemented, "method Tso not implemented") -} -func (*UnimplementedTSOServer) FindGroupByKeyspaceID(ctx context.Context, req *FindGroupByKeyspaceIDRequest) (*FindGroupByKeyspaceIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindGroupByKeyspaceID not implemented") -} -func (*UnimplementedTSOServer) GetMinTS(ctx context.Context, req *GetMinTSRequest) (*GetMinTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMinTS not implemented") -} - func RegisterTSOServer(s *grpc.Server, srv TSOServer) { s.RegisterService(&_TSO_serviceDesc, srv) } @@ -1151,7 +695,7 @@ var _TSO_serviceDesc = grpc.ServiceDesc{ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1159,46 +703,37 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) } - if m.KeyspaceGroupId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) - i-- - dAtA[i] = 0x20 + if m.SenderId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.SenderId)) } if m.KeyspaceId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) } - if m.SenderId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.SenderId)) - i-- - dAtA[i] = 0x10 - } - if m.ClusterId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.KeyspaceGroupId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) } - return len(dAtA) - i, nil + return i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1206,53 +741,42 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) } - if m.KeyspaceGroupId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) - i-- - dAtA[i] = 0x20 + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Error.Size())) + n1, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if m.KeyspaceId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ClusterId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.KeyspaceGroupId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) } - return len(dAtA) - i, nil + return i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1260,38 +784,28 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Type)) } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Type != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *TsoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1299,50 +813,38 @@ func (m *TsoRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) - i-- - dAtA[i] = 0x1a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.Count != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.DcLocation) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - return len(dAtA) - i, nil + return i, nil } func (m *TsoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1350,55 +852,42 @@ func (m *TsoResponse) Marshal() (dAtA []byte, err error) { } func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Timestamp != nil { - { - size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n3, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n3 } if m.Count != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) + if m.Timestamp != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Timestamp.Size())) + n4, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *Participant) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1406,47 +895,43 @@ func (m *Participant) Marshal() (dAtA []byte, err error) { } func (m *Participant) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Participant) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ListenUrls) > 0 { - for iNdEx := len(m.ListenUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ListenUrls[iNdEx]) - copy(dAtA[i:], m.ListenUrls[iNdEx]) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if m.Id != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if len(m.ListenUrls) > 0 { + for _, s := range m.ListenUrls { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - return len(dAtA) - i, nil + return i, nil } func (m *KeyspaceGroupMember) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1454,43 +939,33 @@ func (m *KeyspaceGroupMember) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceGroupMember) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyspaceGroupMember) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Address) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } if m.IsPrimary { - i-- + dAtA[i] = 0x10 + i++ if m.IsPrimary { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *SplitState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1498,31 +973,22 @@ func (m *SplitState) Marshal() (dAtA []byte, err error) { } func (m *SplitState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.SplitSource != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.SplitSource)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.SplitSource)) } - return len(dAtA) - i, nil + return i, nil } func (m *KeyspaceGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1530,64 +996,50 @@ func (m *KeyspaceGroup) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyspaceGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) } - 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 = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if len(m.UserKind) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.UserKind))) + i += copy(dAtA[i:], m.UserKind) } if m.SplitState != nil { - { - size, err := m.SplitState.MarshalToSizedBuffer(dAtA[:i]) + dAtA[i] = 0x1a + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.SplitState.Size())) + n5, err := m.SplitState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if len(m.Members) > 0 { + for _, msg := range m.Members { + dAtA[i] = 0x22 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a - } - if len(m.UserKind) > 0 { - i -= len(m.UserKind) - copy(dAtA[i:], m.UserKind) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.UserKind))) - i-- - dAtA[i] = 0x12 - } - if m.Id != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 } - return len(dAtA) - i, nil + return i, nil } func (m *FindGroupByKeyspaceIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1595,43 +1047,32 @@ func (m *FindGroupByKeyspaceIDRequest) Marshal() (dAtA []byte, err error) { } func (m *FindGroupByKeyspaceIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FindGroupByKeyspaceIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } if m.KeyspaceId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *FindGroupByKeyspaceIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1639,50 +1080,37 @@ func (m *FindGroupByKeyspaceIDResponse) Marshal() (dAtA []byte, err error) { } func (m *FindGroupByKeyspaceIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FindGroupByKeyspaceIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n7, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if m.KeyspaceGroup != nil { - { - size, err := m.KeyspaceGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(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 = encodeVarintTsopb(dAtA, i, uint64(size)) + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroup.Size())) + n8, err := m.KeyspaceGroup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n8 } - return len(dAtA) - i, nil + return i, nil } func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1690,45 +1118,33 @@ func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n9, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1736,71 +1152,53 @@ func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { } 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) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) + n10, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - if m.KeyspaceGroupsTotal != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsTotal)) - i-- - dAtA[i] = 0x20 + if m.Timestamp != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Timestamp.Size())) + n11, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } if m.KeyspaceGroupsServing != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsServing)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsServing)) } - if m.Timestamp != nil { - { - size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTsopb(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 = encodeVarintTsopb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.KeyspaceGroupsTotal != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsTotal)) } - return len(dAtA) - i, nil + return i, nil } func encodeVarintTsopb(dAtA []byte, offset int, v uint64) int { - offset -= sovTsopb(v) - base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return base + return offset + 1 } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1815,16 +1213,10 @@ func (m *RequestHeader) Size() (n int) { if m.KeyspaceGroupId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1840,16 +1232,10 @@ func (m *ResponseHeader) Size() (n int) { if m.KeyspaceGroupId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -1859,16 +1245,10 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TsoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1882,16 +1262,10 @@ func (m *TsoRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *TsoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1905,16 +1279,10 @@ func (m *TsoResponse) Size() (n int) { l = m.Timestamp.Size() n += 1 + l + sovTsopb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Participant) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -1930,16 +1298,10 @@ func (m *Participant) Size() (n int) { n += 1 + l + sovTsopb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyspaceGroupMember) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Address) @@ -1949,31 +1311,19 @@ func (m *KeyspaceGroupMember) Size() (n int) { if m.IsPrimary { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *SplitState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SplitSource != 0 { n += 1 + sovTsopb(uint64(m.SplitSource)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *KeyspaceGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1993,16 +1343,10 @@ func (m *KeyspaceGroup) Size() (n int) { n += 1 + l + sovTsopb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2012,16 +1356,10 @@ func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { if m.KeyspaceId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceId)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2032,16 +1370,10 @@ func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { l = m.KeyspaceGroup.Size() n += 1 + l + sovTsopb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMinTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2052,16 +1384,10 @@ func (m *GetMinTSRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *GetMinTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2078,14 +1404,18 @@ func (m *GetMinTSResponse) Size() (n int) { if m.KeyspaceGroupsTotal != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupsTotal)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovTsopb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozTsopb(x uint64) (n int) { return sovTsopb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2105,7 +1435,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2133,7 +1463,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2152,7 +1482,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= uint64(b&0x7F) << shift + m.SenderId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2171,7 +1501,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2190,7 +1520,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupId |= uint32(b&0x7F) << shift + m.KeyspaceGroupId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2201,13 +1531,12 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2232,7 +1561,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2260,7 +1589,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2279,7 +1608,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2288,9 +1617,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2315,7 +1641,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2334,7 +1660,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupId |= uint32(b&0x7F) << shift + m.KeyspaceGroupId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2345,13 +1671,12 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2376,7 +1701,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2404,7 +1729,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ErrorType(b&0x7F) << shift + m.Type |= (ErrorType(b) & 0x7F) << shift if b < 0x80 { break } @@ -2423,7 +1748,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2433,9 +1758,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2447,13 +1769,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2478,7 +1799,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2506,7 +1827,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2515,9 +1836,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2542,7 +1860,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + m.Count |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2561,7 +1879,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2571,9 +1889,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2585,13 +1900,12 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2616,7 +1930,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2644,7 +1958,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2653,9 +1967,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2680,7 +1991,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + m.Count |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -2699,7 +2010,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2708,9 +2019,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2727,13 +2035,12 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2758,7 +2065,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2786,7 +2093,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2796,9 +2103,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2818,7 +2122,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Id |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2837,7 +2141,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2847,9 +2151,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2861,13 +2162,12 @@ func (m *Participant) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2892,7 +2192,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2920,7 +2220,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2930,9 +2230,6 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2952,7 +2249,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2964,13 +2261,12 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2995,7 +2291,7 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3023,7 +2319,7 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SplitSource |= uint32(b&0x7F) << shift + m.SplitSource |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3034,13 +2330,12 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3065,7 +2360,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3093,7 +2388,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint32(b&0x7F) << shift + m.Id |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3112,7 +2407,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3122,9 +2417,6 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3144,7 +2436,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3153,9 +2445,6 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3180,7 +2469,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3189,9 +2478,6 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3206,13 +2492,12 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3237,7 +2522,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3265,7 +2550,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3274,9 +2559,6 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3301,7 +2583,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.KeyspaceId |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3312,13 +2594,12 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3343,7 +2624,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3371,7 +2652,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3380,9 +2661,6 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3407,7 +2685,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3416,9 +2694,6 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3435,13 +2710,12 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3466,7 +2740,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3494,7 +2768,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3503,9 +2777,6 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3530,7 +2801,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3540,9 +2811,6 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3554,13 +2822,12 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3585,7 +2852,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3613,7 +2880,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3622,9 +2889,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3649,7 +2913,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3658,9 +2922,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTsopb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3685,7 +2946,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupsServing |= uint32(b&0x7F) << shift + m.KeyspaceGroupsServing |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3704,7 +2965,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupsTotal |= uint32(b&0x7F) << shift + m.KeyspaceGroupsTotal |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3715,13 +2976,12 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3734,7 +2994,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { func skipTsopb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3766,8 +3025,10 @@ func skipTsopb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3784,34 +3045,115 @@ func skipTsopb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthTsopb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTsopb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTsopb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipTsopb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthTsopb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthTsopb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTsopb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTsopb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthTsopb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTsopb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("tsopb.proto", fileDescriptorTsopb) } + +var fileDescriptorTsopb = []byte{ + // 881 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xce, 0xf8, 0x23, 0xf5, 0xbe, 0x5b, 0x27, 0x9b, 0xa9, 0xd3, 0x5a, 0x2e, 0x0d, 0x61, 0xa9, + 0x50, 0x54, 0x51, 0x17, 0x2d, 0x88, 0x0b, 0xe2, 0xe0, 0xd4, 0x26, 0xb5, 0xe2, 0xd8, 0xd1, 0xec, + 0xa6, 0x88, 0xd3, 0xb2, 0xf1, 0x8e, 0xcc, 0x28, 0xf6, 0xee, 0x76, 0x66, 0x1c, 0xc9, 0xe2, 0xc4, + 0x99, 0x3f, 0xd0, 0x23, 0x27, 0xc4, 0x4f, 0xe1, 0xc8, 0x91, 0x03, 0x42, 0x28, 0xfc, 0x11, 0xb4, + 0xb3, 0xb3, 0xb1, 0xd7, 0x0d, 0x2d, 0x8a, 0x38, 0xed, 0xcc, 0xf3, 0xbe, 0x33, 0xcf, 0xfb, 0xf5, + 0xcc, 0x82, 0x29, 0x45, 0x9c, 0x9c, 0xb7, 0x13, 0x1e, 0xcb, 0x18, 0x57, 0xd5, 0xa6, 0x05, 0x49, + 0x98, 0x43, 0xad, 0xc6, 0x24, 0x9e, 0xc4, 0x6a, 0xf9, 0x2c, 0x5d, 0x69, 0x74, 0x9b, 0xcf, 0x85, + 0x54, 0xcb, 0x0c, 0xb0, 0x5f, 0x23, 0xa8, 0x13, 0xfa, 0x6a, 0x4e, 0x85, 0x7c, 0x41, 0x83, 0x90, + 0x72, 0xfc, 0x08, 0x60, 0x3c, 0x9d, 0x0b, 0x49, 0xb9, 0xcf, 0xc2, 0x26, 0xda, 0x47, 0x07, 0x15, + 0x62, 0x68, 0xa4, 0x1f, 0xe2, 0x87, 0x60, 0x08, 0x1a, 0x85, 0x99, 0xb5, 0xa4, 0xac, 0xb5, 0x0c, + 0xe8, 0x87, 0xf8, 0x7d, 0x30, 0x2f, 0xe8, 0x42, 0x24, 0xc1, 0x98, 0xa6, 0xe6, 0xf2, 0x3e, 0x3a, + 0xa8, 0x13, 0xc8, 0xa1, 0x7e, 0x88, 0x9f, 0xc0, 0xce, 0xb5, 0xc3, 0x84, 0xc7, 0xf3, 0x24, 0x75, + 0xab, 0x28, 0xb7, 0xed, 0xdc, 0x70, 0x94, 0xe2, 0xfd, 0xd0, 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, + 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, + 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, + 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, + 0xe2, 0x26, 0xdc, 0x99, 0x51, 0x21, 0x82, 0x09, 0x55, 0x11, 0x1a, 0x24, 0xdf, 0xda, 0xaf, 0x00, + 0x3c, 0x11, 0xeb, 0x46, 0xe0, 0x8f, 0x61, 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 0x5f, 0x57, 0x7b, 0xe8, 0xf5, 0xdf, 0x7b, + 0x1b, 0x60, 0xc5, 0x7c, 0xd2, 0x96, 0xec, 0xe2, 0xb2, 0x7d, 0x71, 0xa9, 0xfe, 0xdf, 0xe7, 0x9b, + 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, + 0x00, +} diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 69f2d4a4c..efdc705bb 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -1530,3 +1530,48 @@ message TiFlashSystemTableRequest { message TiFlashSystemTableResponse { bytes data = 1 [(gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes", (gogoproto.nullable) = false]; } + +message TxnEntry { + message Prewrite { + bytes key = 1; + bytes value = 2; + uint64 start_ts = 3; + bytes primary_key = 4; + } + message Commit { + bytes key = 1; + bytes value = 2; + uint64 start_ts = 3; + uint64 commit_ts = 4; + } + oneof entry { + Prewrite prewrite = 1; + Commit commit = 2; + } +} + +// ScanTxnEntriesRequest is like ScanRequest, but retrieves transaction entries +// instead of key-value pairs. +message ScanTxnEntriesRequest { + Context context = 1; + + // start_key and end_key must be specified, however limit is optional. + // by default limit is 0, which means no limit. + bytes start_key = 2; + bytes end_key = 3; + uint32 limit = 4; + bool key_only = 5; + + // entries will be filtered by commit_ts >= start_ts. + // uncommitted entries will be kept. + uint64 start_ts = 6; + + // only keeps specified versions at most for every key. + // default is 0, which means all versions will be kept. + uint32 versions_per_key = 7; +} + +message ScanTxnEntriesResponse { + errorpb.Error region_error = 1; + repeated TxnEntry entries = 2; +} diff --git a/proto/tikvpb.proto b/proto/tikvpb.proto index f48e9d14a..42ca49313 100644 --- a/proto/tikvpb.proto +++ b/proto/tikvpb.proto @@ -22,6 +22,7 @@ service Tikv { // Commands using a transactional interface. rpc KvGet(kvrpcpb.GetRequest) returns (kvrpcpb.GetResponse) {} rpc KvScan(kvrpcpb.ScanRequest) returns (kvrpcpb.ScanResponse) {} + rpc KvScanTxnEntries(kvrpcpb.ScanTxnEntriesRequest) returns (kvrpcpb.ScanTxnEntriesResponse) {} rpc KvPrewrite(kvrpcpb.PrewriteRequest) returns (kvrpcpb.PrewriteResponse) {} rpc KvPessimisticLock(kvrpcpb.PessimisticLockRequest) returns (kvrpcpb.PessimisticLockResponse) {} rpc KVPessimisticRollback(kvrpcpb.PessimisticRollbackRequest) returns (kvrpcpb.PessimisticRollbackResponse) {} @@ -179,6 +180,8 @@ message BatchCommandsRequest { kvrpcpb.FlashbackToVersionRequest FlashbackToVersion = 35; kvrpcpb.PrepareFlashbackToVersionRequest PrepareFlashbackToVersion = 36; + kvrpcpb.ScanTxnEntriesRequest ScanTxnEntries = 37; + // For some test cases. BatchCommandsEmptyRequest Empty = 255; } @@ -233,6 +236,8 @@ message BatchCommandsResponse { kvrpcpb.FlashbackToVersionResponse FlashbackToVersion = 35; kvrpcpb.PrepareFlashbackToVersionResponse PrepareFlashbackToVersion = 36; + kvrpcpb.ScanTxnEntriesResponse ScanTxnEntries = 37; + // For some test cases. BatchCommandsEmptyResponse Empty = 255; } diff --git a/scripts/proto.lock b/scripts/proto.lock index 166d56322..e29e89c6d 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -11116,6 +11116,124 @@ ] } ] + }, + { + "name": "TxnEntry", + "fields": [ + { + "id": 1, + "name": "prewrite", + "type": "Prewrite" + }, + { + "id": 2, + "name": "commit", + "type": "Commit" + } + ], + "messages": [ + { + "name": "Prewrite", + "fields": [ + { + "id": 1, + "name": "key", + "type": "bytes" + }, + { + "id": 2, + "name": "value", + "type": "bytes" + }, + { + "id": 3, + "name": "start_ts", + "type": "uint64" + }, + { + "id": 4, + "name": "primary_key", + "type": "bytes" + } + ] + }, + { + "name": "Commit", + "fields": [ + { + "id": 1, + "name": "key", + "type": "bytes" + }, + { + "id": 2, + "name": "value", + "type": "bytes" + }, + { + "id": 3, + "name": "start_ts", + "type": "uint64" + }, + { + "id": 4, + "name": "commit_ts", + "type": "uint64" + } + ] + } + ] + }, + { + "name": "ScanTxnEntriesRequest", + "fields": [ + { + "id": 1, + "name": "context", + "type": "Context" + }, + { + "id": 2, + "name": "start_key", + "type": "bytes" + }, + { + "id": 3, + "name": "end_key", + "type": "bytes" + }, + { + "id": 4, + "name": "limit", + "type": "uint32" + }, + { + "id": 5, + "name": "key_only", + "type": "bool" + }, + { + "id": 6, + "name": "start_ts", + "type": "uint64" + } + ] + }, + { + "name": "ScanTxnEntriesResponse", + "fields": [ + { + "id": 1, + "name": "region_error", + "type": "errorpb.Error" + }, + { + "id": 2, + "name": "entries", + "type": "TxnEntry", + "is_repeated": true + } + ] } ], "imports": [ From 112353552f25480ee6d991420da8411b4a50d9fe Mon Sep 17 00:00:00 2001 From: qupeng Date: Mon, 16 Oct 2023 12:22:41 +0800 Subject: [PATCH 2/4] fix Signed-off-by: qupeng --- go.mod | 2 +- pkg/autoid/autoid.pb.go | 633 +- pkg/brpb/brpb.pb.go | 7211 +- pkg/cdcpb/cdcpb.pb.go | 2813 +- pkg/configpb/configpb.pb.go | 2581 +- pkg/coprocessor/coprocessor.pb.go | 1793 +- pkg/deadlock/deadlock.pb.go | 705 +- pkg/debugpb/debugpb.pb.go | 4599 +- pkg/diagnosticspb/diagnosticspb.pb.go | 955 +- pkg/disaggregated/disaggregated.pb.go | 2937 +- pkg/disk_usage/disk_usage.pb.go | 21 +- pkg/encryptionpb/encryptionpb.pb.go | 1509 +- pkg/enginepb/enginepb.pb.go | 1449 +- pkg/eraftpb/eraftpb.pb.go | 1524 +- pkg/errorpb/errorpb.pb.go | 2593 +- pkg/gcpb/gcpb.pb.go | 1533 +- pkg/import_kvpb/import_kvpb.pb.go | 2536 +- pkg/import_sstpb/import_sstpb.pb.go | 5112 +- pkg/keyspacepb/keyspacepb.pb.go | 1242 +- pkg/kvrpcpb/kvrpcpb.pb.go | 19915 +++-- pkg/logbackuppb/logbackuppb.pb.go | 827 +- pkg/meta_storagepb/meta_storagepb.pb.go | 1636 +- pkg/metapb/metapb.pb.go | 1513 +- pkg/mpp/mpp.pb.go | 1713 +- pkg/pdpb/pdpb.pb.go | 61332 +++++++++------- pkg/raft_cmdpb/raft_cmdpb.pb.go | 7342 +- pkg/raft_serverpb/raft_serverpb.pb.go | 4361 +- pkg/recoverdatapb/recoverdatapb.pb.go | 1080 +- .../replication_modepb.pb.go | 589 +- pkg/resource_manager/resource_manager.pb.go | 3592 +- .../resource_usage_agent.pb.go | 674 +- pkg/schedulingpb/schedulingpb.pb.go | 1462 +- pkg/tikvpb/tikvpb.pb.go | 5284 +- pkg/tracepb/tracepb.pb.go | 1107 +- pkg/tsopb/tsopb.pb.go | 1684 +- proto/kvrpcpb.proto | 4 - scripts/proto.lock | 5 - 37 files changed, 98144 insertions(+), 57724 deletions(-) diff --git a/go.mod b/go.mod index 31e2a37c7..a36ce5b5e 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,6 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.3 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - golang.org/x/net v0.10.0 golang.org/x/tools v0.6.0 google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 google.golang.org/grpc v1.51.0 @@ -14,6 +13,7 @@ require ( github.com/ghodss/yaml v1.0.0 // indirect github.com/golang/glog v1.1.0 // indirect golang.org/x/mod v0.8.0 // indirect + golang.org/x/net v0.10.0 // indirect golang.org/x/sys v0.8.0 // indirect golang.org/x/text v0.9.0 // indirect google.golang.org/protobuf v1.30.0 // indirect diff --git a/pkg/autoid/autoid.pb.go b/pkg/autoid/autoid.pb.go index 9d70e45f7..a4b5e1b8d 100644 --- a/pkg/autoid/autoid.pb.go +++ b/pkg/autoid/autoid.pb.go @@ -1,33 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: autoid.proto -/* -Package autoid is a generated protocol buffer package. - -It is generated from these files: - - autoid.proto - -It has these top-level messages: - - AutoIDRequest - AutoIDResponse - RebaseRequest - RebaseResponse -*/ package autoid import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -39,22 +26,53 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AutoIDRequest struct { - DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` - TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` - IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` - N uint64 `protobuf:"varint,4,opt,name=n,proto3" json:"n,omitempty"` - Increment int64 `protobuf:"varint,5,opt,name=increment,proto3" json:"increment,omitempty"` - Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` - KeyspaceID uint32 `protobuf:"varint,7,opt,name=keyspaceID,proto3" json:"keyspaceID,omitempty"` + DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` + TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` + IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` + N uint64 `protobuf:"varint,4,opt,name=n,proto3" json:"n,omitempty"` + Increment int64 `protobuf:"varint,5,opt,name=increment,proto3" json:"increment,omitempty"` + Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + KeyspaceID uint32 `protobuf:"varint,7,opt,name=keyspaceID,proto3" json:"keyspaceID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AutoIDRequest) Reset() { *m = AutoIDRequest{} } +func (m *AutoIDRequest) String() string { return proto.CompactTextString(m) } +func (*AutoIDRequest) ProtoMessage() {} +func (*AutoIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d81e5bb779eac45f, []int{0} +} +func (m *AutoIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AutoIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AutoIDRequest.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 *AutoIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoIDRequest.Merge(m, src) +} +func (m *AutoIDRequest) XXX_Size() int { + return m.Size() +} +func (m *AutoIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AutoIDRequest.DiscardUnknown(m) } -func (m *AutoIDRequest) Reset() { *m = AutoIDRequest{} } -func (m *AutoIDRequest) String() string { return proto.CompactTextString(m) } -func (*AutoIDRequest) ProtoMessage() {} -func (*AutoIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{0} } +var xxx_messageInfo_AutoIDRequest proto.InternalMessageInfo func (m *AutoIDRequest) GetDbID() int64 { if m != nil { @@ -106,15 +124,46 @@ func (m *AutoIDRequest) GetKeyspaceID() uint32 { } type AutoIDResponse struct { - Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` - Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` - Errmsg []byte `protobuf:"bytes,3,opt,name=errmsg,proto3" json:"errmsg,omitempty"` + Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` + Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` + Errmsg []byte `protobuf:"bytes,3,opt,name=errmsg,proto3" json:"errmsg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AutoIDResponse) Reset() { *m = AutoIDResponse{} } -func (m *AutoIDResponse) String() string { return proto.CompactTextString(m) } -func (*AutoIDResponse) ProtoMessage() {} -func (*AutoIDResponse) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{1} } +func (m *AutoIDResponse) Reset() { *m = AutoIDResponse{} } +func (m *AutoIDResponse) String() string { return proto.CompactTextString(m) } +func (*AutoIDResponse) ProtoMessage() {} +func (*AutoIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d81e5bb779eac45f, []int{1} +} +func (m *AutoIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AutoIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AutoIDResponse.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 *AutoIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoIDResponse.Merge(m, src) +} +func (m *AutoIDResponse) XXX_Size() int { + return m.Size() +} +func (m *AutoIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AutoIDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AutoIDResponse proto.InternalMessageInfo func (m *AutoIDResponse) GetMin() int64 { if m != nil { @@ -138,17 +187,48 @@ func (m *AutoIDResponse) GetErrmsg() []byte { } type RebaseRequest struct { - DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` - TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` - IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` - Base int64 `protobuf:"varint,4,opt,name=base,proto3" json:"base,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + DbID int64 `protobuf:"varint,1,opt,name=dbID,proto3" json:"dbID,omitempty"` + TblID int64 `protobuf:"varint,2,opt,name=tblID,proto3" json:"tblID,omitempty"` + IsUnsigned bool `protobuf:"varint,3,opt,name=isUnsigned,proto3" json:"isUnsigned,omitempty"` + Base int64 `protobuf:"varint,4,opt,name=base,proto3" json:"base,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RebaseRequest) Reset() { *m = RebaseRequest{} } -func (m *RebaseRequest) String() string { return proto.CompactTextString(m) } -func (*RebaseRequest) ProtoMessage() {} -func (*RebaseRequest) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{2} } +func (m *RebaseRequest) Reset() { *m = RebaseRequest{} } +func (m *RebaseRequest) String() string { return proto.CompactTextString(m) } +func (*RebaseRequest) ProtoMessage() {} +func (*RebaseRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d81e5bb779eac45f, []int{2} +} +func (m *RebaseRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RebaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RebaseRequest.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 *RebaseRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebaseRequest.Merge(m, src) +} +func (m *RebaseRequest) XXX_Size() int { + return m.Size() +} +func (m *RebaseRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RebaseRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RebaseRequest proto.InternalMessageInfo func (m *RebaseRequest) GetDbID() int64 { if m != nil { @@ -186,13 +266,44 @@ func (m *RebaseRequest) GetForce() bool { } type RebaseResponse struct { - Errmsg []byte `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"` + Errmsg []byte `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RebaseResponse) Reset() { *m = RebaseResponse{} } -func (m *RebaseResponse) String() string { return proto.CompactTextString(m) } -func (*RebaseResponse) ProtoMessage() {} -func (*RebaseResponse) Descriptor() ([]byte, []int) { return fileDescriptorAutoid, []int{3} } +func (m *RebaseResponse) Reset() { *m = RebaseResponse{} } +func (m *RebaseResponse) String() string { return proto.CompactTextString(m) } +func (*RebaseResponse) ProtoMessage() {} +func (*RebaseResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d81e5bb779eac45f, []int{3} +} +func (m *RebaseResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RebaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RebaseResponse.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 *RebaseResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebaseResponse.Merge(m, src) +} +func (m *RebaseResponse) XXX_Size() int { + return m.Size() +} +func (m *RebaseResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RebaseResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RebaseResponse proto.InternalMessageInfo func (m *RebaseResponse) GetErrmsg() []byte { if m != nil { @@ -208,6 +319,36 @@ func init() { proto.RegisterType((*RebaseResponse)(nil), "autoid.RebaseResponse") } +func init() { proto.RegisterFile("autoid.proto", fileDescriptor_d81e5bb779eac45f) } + +var fileDescriptor_d81e5bb779eac45f = []byte{ + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0xeb, 0x2f, 0x69, 0xbe, 0x72, 0xfb, 0x87, 0xca, 0x2a, 0x55, 0x54, 0xa1, 0x28, 0xca, + 0x80, 0x32, 0x05, 0x09, 0x26, 0x16, 0xa4, 0xa2, 0x2c, 0x91, 0x98, 0x2c, 0xf1, 0x00, 0x49, 0xea, + 0x46, 0x51, 0x5b, 0xbb, 0xc4, 0x4e, 0x05, 0x33, 0x0b, 0x8f, 0xc0, 0x23, 0xf0, 0x12, 0xec, 0x8c, + 0x8c, 0x8c, 0xa8, 0xbc, 0x08, 0x8a, 0x9d, 0x2a, 0x2d, 0x33, 0x53, 0xce, 0xf9, 0x59, 0xbe, 0xf7, + 0xf8, 0xe6, 0x42, 0x2f, 0x2e, 0x25, 0xcf, 0x67, 0xc1, 0xba, 0xe0, 0x92, 0x63, 0x4b, 0xbb, 0xc9, + 0x28, 0xe3, 0x19, 0x57, 0xe8, 0xbc, 0x52, 0xfa, 0x74, 0x72, 0x5c, 0x94, 0x42, 0x2a, 0xa9, 0x81, + 0xf7, 0x86, 0xa0, 0x3f, 0x2d, 0x25, 0x8f, 0x42, 0x42, 0xef, 0x4b, 0x2a, 0x24, 0xc6, 0x60, 0xce, + 0x92, 0x28, 0xb4, 0x91, 0x8b, 0x7c, 0x83, 0x28, 0x8d, 0x47, 0xd0, 0x96, 0xc9, 0x32, 0x0a, 0xed, + 0x7f, 0x0a, 0x6a, 0x83, 0x1d, 0x80, 0x5c, 0xdc, 0x31, 0x91, 0x67, 0x8c, 0xce, 0x6c, 0xc3, 0x45, + 0x7e, 0x87, 0xec, 0x11, 0xdc, 0x03, 0xc4, 0x6c, 0xd3, 0x45, 0xbe, 0x49, 0x10, 0xc3, 0xa7, 0x70, + 0x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 0xc8, 0x7c, 0xb1, 0x09, 0x16, 0x1b, 0xb5, 0x70, 0x89, 0xa5, + 0x3e, 0x97, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe8, 0x66, 0x90, 0xb6, 0x02, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -216,8 +357,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for AutoIDAlloc service - +// AutoIDAllocClient is the client API for AutoIDAlloc service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AutoIDAllocClient interface { AllocAutoID(ctx context.Context, in *AutoIDRequest, opts ...grpc.CallOption) (*AutoIDResponse, error) Rebase(ctx context.Context, in *RebaseRequest, opts ...grpc.CallOption) (*RebaseResponse, error) @@ -233,7 +375,7 @@ func NewAutoIDAllocClient(cc *grpc.ClientConn) AutoIDAllocClient { func (c *autoIDAllocClient) AllocAutoID(ctx context.Context, in *AutoIDRequest, opts ...grpc.CallOption) (*AutoIDResponse, error) { out := new(AutoIDResponse) - err := grpc.Invoke(ctx, "/autoid.AutoIDAlloc/AllocAutoID", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/autoid.AutoIDAlloc/AllocAutoID", in, out, opts...) if err != nil { return nil, err } @@ -242,20 +384,30 @@ func (c *autoIDAllocClient) AllocAutoID(ctx context.Context, in *AutoIDRequest, func (c *autoIDAllocClient) Rebase(ctx context.Context, in *RebaseRequest, opts ...grpc.CallOption) (*RebaseResponse, error) { out := new(RebaseResponse) - err := grpc.Invoke(ctx, "/autoid.AutoIDAlloc/Rebase", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/autoid.AutoIDAlloc/Rebase", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for AutoIDAlloc service - +// AutoIDAllocServer is the server API for AutoIDAlloc service. type AutoIDAllocServer interface { AllocAutoID(context.Context, *AutoIDRequest) (*AutoIDResponse, error) Rebase(context.Context, *RebaseRequest) (*RebaseResponse, error) } +// UnimplementedAutoIDAllocServer can be embedded to have forward compatible implementations. +type UnimplementedAutoIDAllocServer struct { +} + +func (*UnimplementedAutoIDAllocServer) AllocAutoID(ctx context.Context, req *AutoIDRequest) (*AutoIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllocAutoID not implemented") +} +func (*UnimplementedAutoIDAllocServer) Rebase(ctx context.Context, req *RebaseRequest) (*RebaseResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rebase not implemented") +} + func RegisterAutoIDAllocServer(s *grpc.Server, srv AutoIDAllocServer) { s.RegisterService(&_AutoIDAlloc_serviceDesc, srv) } @@ -316,7 +468,7 @@ var _AutoIDAlloc_serviceDesc = grpc.ServiceDesc{ func (m *AutoIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -324,57 +476,66 @@ func (m *AutoIDRequest) Marshal() (dAtA []byte, err error) { } func (m *AutoIDRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AutoIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.DbID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TblID != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) + if m.KeyspaceID != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.KeyspaceID)) + i-- + dAtA[i] = 0x38 + } + if m.Offset != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x30 + } + if m.Increment != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.Increment)) + i-- + dAtA[i] = 0x28 + } + if m.N != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.N)) + i-- + dAtA[i] = 0x20 } if m.IsUnsigned { - dAtA[i] = 0x18 - i++ + i-- if m.IsUnsigned { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.N != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.N)) - } - if m.Increment != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.Increment)) + i-- + dAtA[i] = 0x18 } - if m.Offset != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.Offset)) + if m.TblID != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) + i-- + dAtA[i] = 0x10 } - if m.KeyspaceID != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.KeyspaceID)) + if m.DbID != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *AutoIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -382,33 +543,43 @@ func (m *AutoIDResponse) Marshal() (dAtA []byte, err error) { } func (m *AutoIDResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AutoIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Min != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.Min)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Errmsg) > 0 { + i -= len(m.Errmsg) + copy(dAtA[i:], m.Errmsg) + i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) + i-- + dAtA[i] = 0x1a } if m.Max != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintAutoid(dAtA, i, uint64(m.Max)) + i-- + dAtA[i] = 0x10 } - if len(m.Errmsg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) - i += copy(dAtA[i:], m.Errmsg) + if m.Min != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.Min)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RebaseRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -416,52 +587,61 @@ func (m *RebaseRequest) Marshal() (dAtA []byte, err error) { } func (m *RebaseRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RebaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.DbID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TblID != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) - } - if m.IsUnsigned { - dAtA[i] = 0x18 - i++ - if m.IsUnsigned { + if m.Force { + i-- + if m.Force { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } if m.Base != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintAutoid(dAtA, i, uint64(m.Base)) + i-- + dAtA[i] = 0x20 } - if m.Force { - dAtA[i] = 0x28 - i++ - if m.Force { + if m.IsUnsigned { + i-- + if m.IsUnsigned { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if m.TblID != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.TblID)) + i-- + dAtA[i] = 0x10 + } + if m.DbID != 0 { + i = encodeVarintAutoid(dAtA, i, uint64(m.DbID)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RebaseResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -469,29 +649,44 @@ func (m *RebaseResponse) Marshal() (dAtA []byte, err error) { } func (m *RebaseResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RebaseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Errmsg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Errmsg) + copy(dAtA[i:], m.Errmsg) i = encodeVarintAutoid(dAtA, i, uint64(len(m.Errmsg))) - i += copy(dAtA[i:], m.Errmsg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintAutoid(dAtA []byte, offset int, v uint64) int { + offset -= sovAutoid(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *AutoIDRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DbID != 0 { @@ -515,10 +710,16 @@ func (m *AutoIDRequest) Size() (n int) { if m.KeyspaceID != 0 { n += 1 + sovAutoid(uint64(m.KeyspaceID)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AutoIDResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Min != 0 { @@ -531,10 +732,16 @@ func (m *AutoIDResponse) Size() (n int) { if l > 0 { n += 1 + l + sovAutoid(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RebaseRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DbID != 0 { @@ -552,28 +759,30 @@ func (m *RebaseRequest) Size() (n int) { if m.Force { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RebaseResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Errmsg) if l > 0 { n += 1 + l + sovAutoid(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovAutoid(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozAutoid(x uint64) (n int) { return sovAutoid(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -593,7 +802,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -621,7 +830,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DbID |= (int64(b) & 0x7F) << shift + m.DbID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -640,7 +849,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TblID |= (int64(b) & 0x7F) << shift + m.TblID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -659,7 +868,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -679,7 +888,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.N |= (uint64(b) & 0x7F) << shift + m.N |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -698,7 +907,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Increment |= (int64(b) & 0x7F) << shift + m.Increment |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -717,7 +926,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Offset |= (int64(b) & 0x7F) << shift + m.Offset |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -736,7 +945,7 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceID |= (uint32(b) & 0x7F) << shift + m.KeyspaceID |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -747,12 +956,13 @@ func (m *AutoIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -777,7 +987,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -805,7 +1015,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Min |= (int64(b) & 0x7F) << shift + m.Min |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -824,7 +1034,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Max |= (int64(b) & 0x7F) << shift + m.Max |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -843,7 +1053,7 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -852,6 +1062,9 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAutoid } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAutoid + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -866,12 +1079,13 @@ func (m *AutoIDResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -896,7 +1110,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -924,7 +1138,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DbID |= (int64(b) & 0x7F) << shift + m.DbID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -943,7 +1157,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TblID |= (int64(b) & 0x7F) << shift + m.TblID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -962,7 +1176,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -982,7 +1196,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Base |= (int64(b) & 0x7F) << shift + m.Base |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1001,7 +1215,7 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1013,12 +1227,13 @@ func (m *RebaseRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1043,7 +1258,7 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1071,7 +1286,7 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1080,6 +1295,9 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthAutoid } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAutoid + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1094,12 +1312,13 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthAutoid } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1112,6 +1331,7 @@ func (m *RebaseResponse) Unmarshal(dAtA []byte) error { func skipAutoid(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1143,10 +1363,8 @@ func skipAutoid(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1163,83 +1381,34 @@ func skipAutoid(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthAutoid } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAutoid - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipAutoid(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAutoid + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthAutoid + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthAutoid = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAutoid = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthAutoid = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAutoid = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAutoid = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("autoid.proto", fileDescriptorAutoid) } - -var fileDescriptorAutoid = []byte{ - // 384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbf, 0x4e, 0xf3, 0x30, - 0x14, 0xc5, 0xeb, 0x2f, 0x69, 0xbe, 0x72, 0xfb, 0x87, 0xca, 0x2a, 0x55, 0x54, 0xa1, 0x28, 0xca, - 0x80, 0x32, 0x05, 0x09, 0x26, 0x16, 0xa4, 0xa2, 0x2c, 0x91, 0x98, 0x2c, 0xf1, 0x00, 0x49, 0xea, - 0x46, 0x51, 0x5b, 0xbb, 0xc4, 0x4e, 0x05, 0x33, 0x0b, 0x8f, 0xc0, 0x23, 0xf0, 0x12, 0xec, 0x8c, - 0x8c, 0x8c, 0xa8, 0xbc, 0x08, 0x8a, 0x9d, 0x2a, 0x2d, 0x33, 0x53, 0xce, 0xf9, 0x59, 0xbe, 0xf7, - 0xf8, 0xe6, 0x42, 0x2f, 0x2e, 0x25, 0xcf, 0x67, 0xc1, 0xba, 0xe0, 0x92, 0x63, 0x4b, 0xbb, 0xc9, - 0x28, 0xe3, 0x19, 0x57, 0xe8, 0xbc, 0x52, 0xfa, 0x74, 0x72, 0x5c, 0x94, 0x42, 0x2a, 0xa9, 0x81, - 0xf7, 0x86, 0xa0, 0x3f, 0x2d, 0x25, 0x8f, 0x42, 0x42, 0xef, 0x4b, 0x2a, 0x24, 0xc6, 0x60, 0xce, - 0x92, 0x28, 0xb4, 0x91, 0x8b, 0x7c, 0x83, 0x28, 0x8d, 0x47, 0xd0, 0x96, 0xc9, 0x32, 0x0a, 0xed, - 0x7f, 0x0a, 0x6a, 0x83, 0x1d, 0x80, 0x5c, 0xdc, 0x31, 0x91, 0x67, 0x8c, 0xce, 0x6c, 0xc3, 0x45, - 0x7e, 0x87, 0xec, 0x11, 0xdc, 0x03, 0xc4, 0x6c, 0xd3, 0x45, 0xbe, 0x49, 0x10, 0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x30, 0xe4, 0x45, 0x16, 0xc8, 0x7c, 0xb1, 0x09, 0x16, 0x1b, 0xb5, 0x70, 0x89, 0xa5, - 0x3e, 0x97, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x86, 0xe8, 0x66, 0x90, 0xb6, 0x02, 0x00, 0x00, -} diff --git a/pkg/brpb/brpb.pb.go b/pkg/brpb/brpb.pb.go index 0b083a0ec..305eaaa33 100644 --- a/pkg/brpb/brpb.pb.go +++ b/pkg/brpb/brpb.pb.go @@ -1,77 +1,24 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: brpb.proto -/* -Package backup is a generated protocol buffer package. - -It is generated from these files: - - brpb.proto - -It has these top-level messages: - - BackupMeta - BackupRange - File - MetaFile - PlacementPolicy - Schema - IDMap - PitrTableMap - PitrDBMap - RawRange - ClusterIDError - Error - CipherInfo - BackupRequest - StreamBackupTaskInfo - StorageBackend - Noop - Local - S3 - GCS - AzureCustomerKey - AzureBlobStorage - Bucket - CloudDynamic - HDFS - BackupResponse - CleanupRequest - CleanupResponse - PrepareRequest - PrepareResponse - CheckAdminRequest - CheckAdminResponse - ExternalStorageRestoreRequest - ExternalStorageRestoreResponse - ExternalStorageSaveRequest - ExternalStorageSaveResponse - Metadata - DataFileGroup - DataFileInfo - StreamBackupError -*/ package backup import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - + encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" errorpb "github.com/pingcap/kvproto/pkg/errorpb" - + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" metapb "github.com/pingcap/kvproto/pkg/metapb" - - encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -83,7 +30,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // sst files or log files compression algorithm // for log files, unknown means not use compression algorithm @@ -102,6 +49,7 @@ var CompressionType_name = map[int32]string{ 2: "SNAPPY", 3: "ZSTD", } + var CompressionType_value = map[string]int32{ "UNKNOWN": 0, "LZ4": 1, @@ -112,7 +60,10 @@ var CompressionType_value = map[string]int32{ func (x CompressionType) String() string { return proto.EnumName(CompressionType_name, int32(x)) } -func (CompressionType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{0} } + +func (CompressionType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{0} +} // BackupMpde represents the mode of this whole backup request to the cluster. // and we need to store it in `backupmeta`. @@ -133,6 +84,7 @@ var BackupMode_name = map[int32]string{ 0: "SCAN", 1: "FILE", } + var BackupMode_value = map[string]int32{ "SCAN": 0, "FILE": 1, @@ -141,7 +93,10 @@ var BackupMode_value = map[string]int32{ func (x BackupMode) String() string { return proto.EnumName(BackupMode_name, int32(x)) } -func (BackupMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{1} } + +func (BackupMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{1} +} type MetaVersion int32 @@ -154,6 +109,7 @@ var MetaVersion_name = map[int32]string{ 0: "V1", 1: "V2", } + var MetaVersion_value = map[string]int32{ "V1": 0, "V2": 1, @@ -162,7 +118,10 @@ var MetaVersion_value = map[string]int32{ func (x MetaVersion) String() string { return proto.EnumName(MetaVersion_name, int32(x)) } -func (MetaVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{2} } + +func (MetaVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{2} +} type FileType int32 @@ -175,6 +134,7 @@ var FileType_name = map[int32]string{ 0: "Delete", 1: "Put", } + var FileType_value = map[string]int32{ "Delete": 0, "Put": 1, @@ -183,7 +143,10 @@ var FileType_value = map[string]int32{ func (x FileType) String() string { return proto.EnumName(FileType_name, int32(x)) } -func (FileType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{3} } + +func (FileType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{3} +} // The message save the metadata of a backup. type BackupMeta struct { @@ -197,9 +160,9 @@ type BackupMeta struct { // A set of files that compose a backup. // Note: `files` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - Files []*File `protobuf:"bytes,4,rep,name=files" json:"files,omitempty"` + Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // An index to files contains data files. - FileIndex *MetaFile `protobuf:"bytes,13,opt,name=file_index,json=fileIndex" json:"file_index,omitempty"` + FileIndex *MetaFile `protobuf:"bytes,13,opt,name=file_index,json=fileIndex,proto3" json:"file_index,omitempty"` // A pair of timestamp specifies a time range of a backup. // For full backup, the start_version equals to the end_version, // it means point in time. @@ -210,45 +173,76 @@ type BackupMeta struct { // Table metadata describes database and table info. // Note: `schemas` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - Schemas []*Schema `protobuf:"bytes,7,rep,name=schemas" json:"schemas,omitempty"` + Schemas []*Schema `protobuf:"bytes,7,rep,name=schemas,proto3" json:"schemas,omitempty"` // An index to files contains Schemas. - SchemaIndex *MetaFile `protobuf:"bytes,14,opt,name=schema_index,json=schemaIndex" json:"schema_index,omitempty"` + SchemaIndex *MetaFile `protobuf:"bytes,14,opt,name=schema_index,json=schemaIndex,proto3" json:"schema_index,omitempty"` // If in raw kv mode, `start_versions`, `end_versions` and `schemas` will be // ignored, and the backup data's range is represented by raw_ranges. IsRawKv bool `protobuf:"varint,8,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` // Note: `raw_ranges` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. - RawRanges []*RawRange `protobuf:"bytes,9,rep,name=raw_ranges,json=rawRanges" json:"raw_ranges,omitempty"` + RawRanges []*RawRange `protobuf:"bytes,9,rep,name=raw_ranges,json=rawRanges,proto3" json:"raw_ranges,omitempty"` // An index to files contains RawRanges. - RawRangeIndex *MetaFile `protobuf:"bytes,15,opt,name=raw_range_index,json=rawRangeIndex" json:"raw_range_index,omitempty"` + RawRangeIndex *MetaFile `protobuf:"bytes,15,opt,name=raw_range_index,json=rawRangeIndex,proto3" json:"raw_range_index,omitempty"` // In incremental backup, DDLs which are completed in // (lastBackupTS, backupTS] will be stored here. // Note: `raw_ranges` is deprecated, as it bloats backupmeta. It is kept for // compatibility, so new BR can restore older backups. Ddls []byte `protobuf:"bytes,10,opt,name=ddls,proto3" json:"ddls,omitempty"` // An index to files contains DDLs. - DdlIndexes *MetaFile `protobuf:"bytes,16,opt,name=ddl_indexes,json=ddlIndexes" json:"ddl_indexes,omitempty"` + DdlIndexes *MetaFile `protobuf:"bytes,16,opt,name=ddl_indexes,json=ddlIndexes,proto3" json:"ddl_indexes,omitempty"` // the backup result into `backupmeta` file BackupResult string `protobuf:"bytes,17,opt,name=backup_result,json=backupResult,proto3" json:"backup_result,omitempty"` // API version implies the encode of the key and value. ApiVersion kvrpcpb.APIVersion `protobuf:"varint,18,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // the placement policy info in backup cluster. we assume the policy won't be too much for one cluster. - Policies []*PlacementPolicy `protobuf:"bytes,19,rep,name=policies" json:"policies,omitempty"` + Policies []*PlacementPolicy `protobuf:"bytes,19,rep,name=policies,proto3" json:"policies,omitempty"` // new_collations_enabled specifies the config `new_collations_enabled_on_first_bootstrap` in tidb. NewCollationsEnabled string `protobuf:"bytes,20,opt,name=new_collations_enabled,json=newCollationsEnabled,proto3" json:"new_collations_enabled,omitempty"` // If in txn kv mode, `schemas` will be ignored, the backup data's range is as same as normal backup. IsTxnKv bool `protobuf:"varint,21,opt,name=is_txn_kv,json=isTxnKv,proto3" json:"is_txn_kv,omitempty"` // maintain the id mapping from upstream cluster to downstream cluster. - DbMaps []*PitrDBMap `protobuf:"bytes,22,rep,name=db_maps,json=dbMaps" json:"db_maps,omitempty"` + DbMaps []*PitrDBMap `protobuf:"bytes,22,rep,name=db_maps,json=dbMaps,proto3" json:"db_maps,omitempty"` Mode BackupMode `protobuf:"varint,23,opt,name=mode,proto3,enum=backup.BackupMode" json:"mode,omitempty"` // record the backup range and the correspond SST files when using file-copy backup. - Ranges []*BackupRange `protobuf:"bytes,24,rep,name=ranges" json:"ranges,omitempty"` + Ranges []*BackupRange `protobuf:"bytes,24,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BackupMeta) Reset() { *m = BackupMeta{} } +func (m *BackupMeta) String() string { return proto.CompactTextString(m) } +func (*BackupMeta) ProtoMessage() {} +func (*BackupMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{0} +} +func (m *BackupMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BackupMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BackupMeta.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 *BackupMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupMeta.Merge(m, src) +} +func (m *BackupMeta) XXX_Size() int { + return m.Size() +} +func (m *BackupMeta) XXX_DiscardUnknown() { + xxx_messageInfo_BackupMeta.DiscardUnknown(m) } -func (m *BackupMeta) Reset() { *m = BackupMeta{} } -func (m *BackupMeta) String() string { return proto.CompactTextString(m) } -func (*BackupMeta) ProtoMessage() {} -func (*BackupMeta) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{0} } +var xxx_messageInfo_BackupMeta proto.InternalMessageInfo func (m *BackupMeta) GetClusterId() uint64 { if m != nil { @@ -412,15 +406,46 @@ func (m *BackupMeta) GetRanges() []*BackupRange { } type BackupRange struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Files []*File `protobuf:"bytes,3,rep,name=files" json:"files,omitempty"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Files []*File `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BackupRange) Reset() { *m = BackupRange{} } +func (m *BackupRange) String() string { return proto.CompactTextString(m) } +func (*BackupRange) ProtoMessage() {} +func (*BackupRange) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{1} +} +func (m *BackupRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BackupRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BackupRange.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 *BackupRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupRange.Merge(m, src) +} +func (m *BackupRange) XXX_Size() int { + return m.Size() +} +func (m *BackupRange) XXX_DiscardUnknown() { + xxx_messageInfo_BackupRange.DiscardUnknown(m) } -func (m *BackupRange) Reset() { *m = BackupRange{} } -func (m *BackupRange) String() string { return proto.CompactTextString(m) } -func (*BackupRange) ProtoMessage() {} -func (*BackupRange) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{1} } +var xxx_messageInfo_BackupRange proto.InternalMessageInfo func (m *BackupRange) GetStartKey() []byte { if m != nil { @@ -456,13 +481,44 @@ type File struct { Cf string `protobuf:"bytes,10,opt,name=cf,proto3" json:"cf,omitempty"` Size_ uint64 `protobuf:"varint,11,opt,name=size,proto3" json:"size,omitempty"` // cipher_iv is used for AES cipher - CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` + CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *File) Reset() { *m = File{} } +func (m *File) String() string { return proto.CompactTextString(m) } +func (*File) ProtoMessage() {} +func (*File) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{2} +} +func (m *File) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_File.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 *File) XXX_Merge(src proto.Message) { + xxx_messageInfo_File.Merge(m, src) +} +func (m *File) XXX_Size() int { + return m.Size() +} +func (m *File) XXX_DiscardUnknown() { + xxx_messageInfo_File.DiscardUnknown(m) } -func (m *File) Reset() { *m = File{} } -func (m *File) String() string { return proto.CompactTextString(m) } -func (*File) ProtoMessage() {} -func (*File) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{2} } +var xxx_messageInfo_File proto.InternalMessageInfo func (m *File) GetName() string { if m != nil { @@ -552,23 +608,54 @@ func (m *File) GetCipherIv() []byte { type MetaFile struct { // A set of files that contains a MetaFile. // It is used as a multi-level index. - MetaFiles []*File `protobuf:"bytes,1,rep,name=meta_files,json=metaFiles" json:"meta_files,omitempty"` + MetaFiles []*File `protobuf:"bytes,1,rep,name=meta_files,json=metaFiles,proto3" json:"meta_files,omitempty"` // A set of files that contains user data. - DataFiles []*File `protobuf:"bytes,2,rep,name=data_files,json=dataFiles" json:"data_files,omitempty"` + DataFiles []*File `protobuf:"bytes,2,rep,name=data_files,json=dataFiles,proto3" json:"data_files,omitempty"` // A set of files that contains Schemas. - Schemas []*Schema `protobuf:"bytes,3,rep,name=schemas" json:"schemas,omitempty"` + Schemas []*Schema `protobuf:"bytes,3,rep,name=schemas,proto3" json:"schemas,omitempty"` // A set of files that contains RawRanges. - RawRanges []*RawRange `protobuf:"bytes,4,rep,name=raw_ranges,json=rawRanges" json:"raw_ranges,omitempty"` + RawRanges []*RawRange `protobuf:"bytes,4,rep,name=raw_ranges,json=rawRanges,proto3" json:"raw_ranges,omitempty"` // A set of files that contains BackupRanges. - BackupRanges []*BackupRange `protobuf:"bytes,6,rep,name=backup_ranges,json=backupRanges" json:"backup_ranges,omitempty"` + BackupRanges []*BackupRange `protobuf:"bytes,6,rep,name=backup_ranges,json=backupRanges,proto3" json:"backup_ranges,omitempty"` // A set of files that contains DDLs. - Ddls [][]byte `protobuf:"bytes,5,rep,name=ddls" json:"ddls,omitempty"` + Ddls [][]byte `protobuf:"bytes,5,rep,name=ddls,proto3" json:"ddls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MetaFile) Reset() { *m = MetaFile{} } +func (m *MetaFile) String() string { return proto.CompactTextString(m) } +func (*MetaFile) ProtoMessage() {} +func (*MetaFile) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{3} +} +func (m *MetaFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetaFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetaFile.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 *MetaFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetaFile.Merge(m, src) +} +func (m *MetaFile) XXX_Size() int { + return m.Size() +} +func (m *MetaFile) XXX_DiscardUnknown() { + xxx_messageInfo_MetaFile.DiscardUnknown(m) } -func (m *MetaFile) Reset() { *m = MetaFile{} } -func (m *MetaFile) String() string { return proto.CompactTextString(m) } -func (*MetaFile) ProtoMessage() {} -func (*MetaFile) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{3} } +var xxx_messageInfo_MetaFile proto.InternalMessageInfo func (m *MetaFile) GetMetaFiles() []*File { if m != nil { @@ -613,13 +700,44 @@ func (m *MetaFile) GetDdls() [][]byte { } type PlacementPolicy struct { - Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + Info []byte `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} } +func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } +func (*PlacementPolicy) ProtoMessage() {} +func (*PlacementPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{4} +} +func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlacementPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlacementPolicy.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 *PlacementPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlacementPolicy.Merge(m, src) +} +func (m *PlacementPolicy) XXX_Size() int { + return m.Size() +} +func (m *PlacementPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_PlacementPolicy.DiscardUnknown(m) } -func (m *PlacementPolicy) Reset() { *m = PlacementPolicy{} } -func (m *PlacementPolicy) String() string { return proto.CompactTextString(m) } -func (*PlacementPolicy) ProtoMessage() {} -func (*PlacementPolicy) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{4} } +var xxx_messageInfo_PlacementPolicy proto.InternalMessageInfo func (m *PlacementPolicy) GetInfo() []byte { if m != nil { @@ -637,13 +755,44 @@ type Schema struct { TiflashReplicas uint32 `protobuf:"varint,6,opt,name=tiflash_replicas,json=tiflashReplicas,proto3" json:"tiflash_replicas,omitempty"` // stats represents the dump stats for a analyzed table, which generate by DumpStatsToJSON // https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116 - Stats []byte `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"` + Stats []byte `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{5} +} +func (m *Schema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Schema.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 *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(m, src) +} +func (m *Schema) XXX_Size() int { + return m.Size() +} +func (m *Schema) XXX_DiscardUnknown() { + xxx_messageInfo_Schema.DiscardUnknown(m) } -func (m *Schema) Reset() { *m = Schema{} } -func (m *Schema) String() string { return proto.CompactTextString(m) } -func (*Schema) ProtoMessage() {} -func (*Schema) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{5} } +var xxx_messageInfo_Schema proto.InternalMessageInfo func (m *Schema) GetDb() []byte { if m != nil { @@ -695,14 +844,45 @@ func (m *Schema) GetStats() []byte { } type IDMap struct { - UpstreamId int64 `protobuf:"varint,1,opt,name=upstream_id,json=upstreamId,proto3" json:"upstream_id,omitempty"` - DownstreamId int64 `protobuf:"varint,2,opt,name=downstream_id,json=downstreamId,proto3" json:"downstream_id,omitempty"` + UpstreamId int64 `protobuf:"varint,1,opt,name=upstream_id,json=upstreamId,proto3" json:"upstream_id,omitempty"` + DownstreamId int64 `protobuf:"varint,2,opt,name=downstream_id,json=downstreamId,proto3" json:"downstream_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IDMap) Reset() { *m = IDMap{} } +func (m *IDMap) String() string { return proto.CompactTextString(m) } +func (*IDMap) ProtoMessage() {} +func (*IDMap) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{6} +} +func (m *IDMap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IDMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IDMap.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 *IDMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_IDMap.Merge(m, src) +} +func (m *IDMap) XXX_Size() int { + return m.Size() +} +func (m *IDMap) XXX_DiscardUnknown() { + xxx_messageInfo_IDMap.DiscardUnknown(m) } -func (m *IDMap) Reset() { *m = IDMap{} } -func (m *IDMap) String() string { return proto.CompactTextString(m) } -func (*IDMap) ProtoMessage() {} -func (*IDMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{6} } +var xxx_messageInfo_IDMap proto.InternalMessageInfo func (m *IDMap) GetUpstreamId() int64 { if m != nil { @@ -719,15 +899,46 @@ func (m *IDMap) GetDownstreamId() int64 { } type PitrTableMap struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap" json:"id_map,omitempty"` - Partitions []*IDMap `protobuf:"bytes,3,rep,name=partitions" json:"partitions,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap,proto3" json:"id_map,omitempty"` + Partitions []*IDMap `protobuf:"bytes,3,rep,name=partitions,proto3" json:"partitions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PitrTableMap) Reset() { *m = PitrTableMap{} } +func (m *PitrTableMap) String() string { return proto.CompactTextString(m) } +func (*PitrTableMap) ProtoMessage() {} +func (*PitrTableMap) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{7} +} +func (m *PitrTableMap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PitrTableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PitrTableMap.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 *PitrTableMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_PitrTableMap.Merge(m, src) +} +func (m *PitrTableMap) XXX_Size() int { + return m.Size() +} +func (m *PitrTableMap) XXX_DiscardUnknown() { + xxx_messageInfo_PitrTableMap.DiscardUnknown(m) } -func (m *PitrTableMap) Reset() { *m = PitrTableMap{} } -func (m *PitrTableMap) String() string { return proto.CompactTextString(m) } -func (*PitrTableMap) ProtoMessage() {} -func (*PitrTableMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{7} } +var xxx_messageInfo_PitrTableMap proto.InternalMessageInfo func (m *PitrTableMap) GetName() string { if m != nil { @@ -751,15 +962,46 @@ func (m *PitrTableMap) GetPartitions() []*IDMap { } type PitrDBMap struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap" json:"id_map,omitempty"` - Tables []*PitrTableMap `protobuf:"bytes,3,rep,name=tables" json:"tables,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IdMap *IDMap `protobuf:"bytes,2,opt,name=id_map,json=idMap,proto3" json:"id_map,omitempty"` + Tables []*PitrTableMap `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PitrDBMap) Reset() { *m = PitrDBMap{} } +func (m *PitrDBMap) String() string { return proto.CompactTextString(m) } +func (*PitrDBMap) ProtoMessage() {} +func (*PitrDBMap) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{8} +} +func (m *PitrDBMap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PitrDBMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PitrDBMap.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 *PitrDBMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_PitrDBMap.Merge(m, src) +} +func (m *PitrDBMap) XXX_Size() int { + return m.Size() +} +func (m *PitrDBMap) XXX_DiscardUnknown() { + xxx_messageInfo_PitrDBMap.DiscardUnknown(m) } -func (m *PitrDBMap) Reset() { *m = PitrDBMap{} } -func (m *PitrDBMap) String() string { return proto.CompactTextString(m) } -func (*PitrDBMap) ProtoMessage() {} -func (*PitrDBMap) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{8} } +var xxx_messageInfo_PitrDBMap proto.InternalMessageInfo func (m *PitrDBMap) GetName() string { if m != nil { @@ -783,15 +1025,46 @@ func (m *PitrDBMap) GetTables() []*PitrTableMap { } type RawRange struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawRange) Reset() { *m = RawRange{} } +func (m *RawRange) String() string { return proto.CompactTextString(m) } +func (*RawRange) ProtoMessage() {} +func (*RawRange) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{9} +} +func (m *RawRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawRange.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 *RawRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawRange.Merge(m, src) +} +func (m *RawRange) XXX_Size() int { + return m.Size() +} +func (m *RawRange) XXX_DiscardUnknown() { + xxx_messageInfo_RawRange.DiscardUnknown(m) } -func (m *RawRange) Reset() { *m = RawRange{} } -func (m *RawRange) String() string { return proto.CompactTextString(m) } -func (*RawRange) ProtoMessage() {} -func (*RawRange) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{9} } +var xxx_messageInfo_RawRange proto.InternalMessageInfo func (m *RawRange) GetStartKey() []byte { if m != nil { @@ -815,14 +1088,45 @@ func (m *RawRange) GetCf() string { } type ClusterIDError struct { - Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` + Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterIDError) Reset() { *m = ClusterIDError{} } +func (m *ClusterIDError) String() string { return proto.CompactTextString(m) } +func (*ClusterIDError) ProtoMessage() {} +func (*ClusterIDError) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{10} +} +func (m *ClusterIDError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterIDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClusterIDError.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 *ClusterIDError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterIDError.Merge(m, src) +} +func (m *ClusterIDError) XXX_Size() int { + return m.Size() +} +func (m *ClusterIDError) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterIDError.DiscardUnknown(m) } -func (m *ClusterIDError) Reset() { *m = ClusterIDError{} } -func (m *ClusterIDError) String() string { return proto.CompactTextString(m) } -func (*ClusterIDError) ProtoMessage() {} -func (*ClusterIDError) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{10} } +var xxx_messageInfo_ClusterIDError proto.InternalMessageInfo func (m *ClusterIDError) GetCurrent() uint64 { if m != nil { @@ -844,13 +1148,44 @@ type Error struct { // *Error_ClusterIdError // *Error_KvError // *Error_RegionError - Detail isError_Detail `protobuf_oneof:"detail"` + Detail isError_Detail `protobuf_oneof:"detail"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{11} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{11} } +var xxx_messageInfo_Error proto.InternalMessageInfo type isError_Detail interface { isError_Detail() @@ -859,13 +1194,13 @@ type isError_Detail interface { } type Error_ClusterIdError struct { - ClusterIdError *ClusterIDError `protobuf:"bytes,3,opt,name=cluster_id_error,json=clusterIdError,oneof"` + ClusterIdError *ClusterIDError `protobuf:"bytes,3,opt,name=cluster_id_error,json=clusterIdError,proto3,oneof" json:"cluster_id_error,omitempty"` } type Error_KvError struct { - KvError *kvrpcpb.KeyError `protobuf:"bytes,4,opt,name=kv_error,json=kvError,oneof"` + KvError *kvrpcpb.KeyError `protobuf:"bytes,4,opt,name=kv_error,json=kvError,proto3,oneof" json:"kv_error,omitempty"` } type Error_RegionError struct { - RegionError *errorpb.Error `protobuf:"bytes,5,opt,name=region_error,json=regionError,oneof"` + RegionError *errorpb.Error `protobuf:"bytes,5,opt,name=region_error,json=regionError,proto3,oneof" json:"region_error,omitempty"` } func (*Error_ClusterIdError) isError_Detail() {} @@ -907,108 +1242,55 @@ func (m *Error) GetRegionError() *errorpb.Error { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Error) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Error_OneofMarshaler, _Error_OneofUnmarshaler, _Error_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Error) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*Error_ClusterIdError)(nil), (*Error_KvError)(nil), (*Error_RegionError)(nil), } } -func _Error_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Error) - // detail - switch x := m.Detail.(type) { - case *Error_ClusterIdError: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ClusterIdError); err != nil { - return err - } - case *Error_KvError: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.KvError); err != nil { - return err - } - case *Error_RegionError: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RegionError); err != nil { - return err +type CipherInfo struct { + CipherType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=cipher_type,json=cipherType,proto3,enum=encryptionpb.EncryptionMethod" json:"cipher_type,omitempty"` + CipherKey []byte `protobuf:"bytes,2,opt,name=cipher_key,json=cipherKey,proto3" json:"cipher_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CipherInfo) Reset() { *m = CipherInfo{} } +func (m *CipherInfo) String() string { return proto.CompactTextString(m) } +func (*CipherInfo) ProtoMessage() {} +func (*CipherInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{12} +} +func (m *CipherInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CipherInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CipherInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("Error.Detail has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _Error_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Error) - switch tag { - case 3: // detail.cluster_id_error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ClusterIDError) - err := b.DecodeMessage(msg) - m.Detail = &Error_ClusterIdError{msg} - return true, err - case 4: // detail.kv_error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.KeyError) - err := b.DecodeMessage(msg) - m.Detail = &Error_KvError{msg} - return true, err - case 5: // detail.region_error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(errorpb.Error) - err := b.DecodeMessage(msg) - m.Detail = &Error_RegionError{msg} - return true, err - default: - return false, nil - } -} - -func _Error_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Error) - // detail - switch x := m.Detail.(type) { - case *Error_ClusterIdError: - s := proto.Size(x.ClusterIdError) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Error_KvError: - s := proto.Size(x.KvError) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Error_RegionError: - s := proto.Size(x.RegionError) - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *CipherInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CipherInfo.Merge(m, src) } - -type CipherInfo struct { - CipherType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=cipher_type,json=cipherType,proto3,enum=encryptionpb.EncryptionMethod" json:"cipher_type,omitempty"` - CipherKey []byte `protobuf:"bytes,2,opt,name=cipher_key,json=cipherKey,proto3" json:"cipher_key,omitempty"` +func (m *CipherInfo) XXX_Size() int { + return m.Size() +} +func (m *CipherInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CipherInfo.DiscardUnknown(m) } -func (m *CipherInfo) Reset() { *m = CipherInfo{} } -func (m *CipherInfo) String() string { return proto.CompactTextString(m) } -func (*CipherInfo) ProtoMessage() {} -func (*CipherInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{12} } +var xxx_messageInfo_CipherInfo proto.InternalMessageInfo func (m *CipherInfo) GetCipherType() encryptionpb.EncryptionMethod { if m != nil { @@ -1034,7 +1316,7 @@ type BackupRequest struct { RateLimit uint64 `protobuf:"varint,7,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` // The concurrency for executing the backup request in every tikv node. Concurrency uint32 `protobuf:"varint,8,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - StorageBackend *StorageBackend `protobuf:"bytes,9,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` + StorageBackend *StorageBackend `protobuf:"bytes,9,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` // If raw kv mode is enabled, `start_version` and `end_version` will be ignored, and `cf` // specifies which cf to backup. IsRawKv bool `protobuf:"varint,10,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` @@ -1044,7 +1326,7 @@ type BackupRequest struct { // sst compression level, some algorithms support negative compression levels CompressionLevel int32 `protobuf:"varint,13,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"` // The cipher_info is Used to encrypt sst - CipherInfo *CipherInfo `protobuf:"bytes,14,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` + CipherInfo *CipherInfo `protobuf:"bytes,14,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` // dst_api_version indicates the key-value encoding version used by the // generated SST file. Accepted values: // 1. "v1": the generated SST files are encoded with api-v1, can be restored @@ -1054,7 +1336,7 @@ type BackupRequest struct { DstApiVersion kvrpcpb.APIVersion `protobuf:"varint,15,opt,name=dst_api_version,json=dstApiVersion,proto3,enum=kvrpcpb.APIVersion" json:"dst_api_version,omitempty"` // with checkpoint, some subintervals of the range have been backed up and recorded. // only the remaining sub ranges of the range need to be backed up this time. - SubRanges []*kvrpcpb.KeyRange `protobuf:"bytes,16,rep,name=sub_ranges,json=subRanges" json:"sub_ranges,omitempty"` + SubRanges []*kvrpcpb.KeyRange `protobuf:"bytes,16,rep,name=sub_ranges,json=subRanges,proto3" json:"sub_ranges,omitempty"` // replica_read indicates whether to use replica read for backup. // If it is false, the backup will only read data from leader. // If it is true, the backup will read data from both leader and follower. @@ -1063,14 +1345,45 @@ type BackupRequest struct { // unique_id represents the handle of this backup. after we implement file-copy backup. // we need generate some internal states during the whole backup precedure. // this unique id is help to find the state effictively. - UniqueId string `protobuf:"bytes,19,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,20,opt,name=context" json:"context,omitempty"` + UniqueId string `protobuf:"bytes,19,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,20,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BackupRequest) Reset() { *m = BackupRequest{} } +func (m *BackupRequest) String() string { return proto.CompactTextString(m) } +func (*BackupRequest) ProtoMessage() {} +func (*BackupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{13} +} +func (m *BackupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BackupRequest.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 *BackupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupRequest.Merge(m, src) +} +func (m *BackupRequest) XXX_Size() int { + return m.Size() +} +func (m *BackupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BackupRequest.DiscardUnknown(m) } -func (m *BackupRequest) Reset() { *m = BackupRequest{} } -func (m *BackupRequest) String() string { return proto.CompactTextString(m) } -func (*BackupRequest) ProtoMessage() {} -func (*BackupRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{13} } +var xxx_messageInfo_BackupRequest proto.InternalMessageInfo func (m *BackupRequest) GetClusterId() uint64 { if m != nil { @@ -1207,7 +1520,7 @@ func (m *BackupRequest) GetContext() *kvrpcpb.Context { type StreamBackupTaskInfo struct { // The storage for backup, parsed by BR. - Storage *StorageBackend `protobuf:"bytes,1,opt,name=storage" json:"storage,omitempty"` + Storage *StorageBackend `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` // The time range for backing up. StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` EndTs uint64 `protobuf:"varint,3,opt,name=end_ts,json=endTs,proto3" json:"end_ts,omitempty"` @@ -1216,15 +1529,46 @@ type StreamBackupTaskInfo struct { Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The table filter of the task. // Only for displaying the task info. - TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter" json:"table_filter,omitempty"` + TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter,proto3" json:"table_filter,omitempty"` // compression type - CompressionType CompressionType `protobuf:"varint,6,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + CompressionType CompressionType `protobuf:"varint,6,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamBackupTaskInfo) Reset() { *m = StreamBackupTaskInfo{} } +func (m *StreamBackupTaskInfo) String() string { return proto.CompactTextString(m) } +func (*StreamBackupTaskInfo) ProtoMessage() {} +func (*StreamBackupTaskInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{14} +} +func (m *StreamBackupTaskInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StreamBackupTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StreamBackupTaskInfo.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 *StreamBackupTaskInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamBackupTaskInfo.Merge(m, src) +} +func (m *StreamBackupTaskInfo) XXX_Size() int { + return m.Size() +} +func (m *StreamBackupTaskInfo) XXX_DiscardUnknown() { + xxx_messageInfo_StreamBackupTaskInfo.DiscardUnknown(m) } -func (m *StreamBackupTaskInfo) Reset() { *m = StreamBackupTaskInfo{} } -func (m *StreamBackupTaskInfo) String() string { return proto.CompactTextString(m) } -func (*StreamBackupTaskInfo) ProtoMessage() {} -func (*StreamBackupTaskInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{14} } +var xxx_messageInfo_StreamBackupTaskInfo proto.InternalMessageInfo func (m *StreamBackupTaskInfo) GetStorage() *StorageBackend { if m != nil { @@ -1277,13 +1621,44 @@ type StorageBackend struct { // *StorageBackend_CloudDynamic // *StorageBackend_Hdfs // *StorageBackend_AzureBlobStorage - Backend isStorageBackend_Backend `protobuf_oneof:"backend"` + Backend isStorageBackend_Backend `protobuf_oneof:"backend"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StorageBackend) Reset() { *m = StorageBackend{} } +func (m *StorageBackend) String() string { return proto.CompactTextString(m) } +func (*StorageBackend) ProtoMessage() {} +func (*StorageBackend) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{15} +} +func (m *StorageBackend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StorageBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StorageBackend.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 *StorageBackend) XXX_Merge(src proto.Message) { + xxx_messageInfo_StorageBackend.Merge(m, src) +} +func (m *StorageBackend) XXX_Size() int { + return m.Size() +} +func (m *StorageBackend) XXX_DiscardUnknown() { + xxx_messageInfo_StorageBackend.DiscardUnknown(m) } -func (m *StorageBackend) Reset() { *m = StorageBackend{} } -func (m *StorageBackend) String() string { return proto.CompactTextString(m) } -func (*StorageBackend) ProtoMessage() {} -func (*StorageBackend) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{15} } +var xxx_messageInfo_StorageBackend proto.InternalMessageInfo type isStorageBackend_Backend interface { isStorageBackend_Backend() @@ -1292,25 +1667,25 @@ type isStorageBackend_Backend interface { } type StorageBackend_Noop struct { - Noop *Noop `protobuf:"bytes,1,opt,name=noop,oneof"` + Noop *Noop `protobuf:"bytes,1,opt,name=noop,proto3,oneof" json:"noop,omitempty"` } type StorageBackend_Local struct { - Local *Local `protobuf:"bytes,2,opt,name=local,oneof"` + Local *Local `protobuf:"bytes,2,opt,name=local,proto3,oneof" json:"local,omitempty"` } type StorageBackend_S3 struct { - S3 *S3 `protobuf:"bytes,3,opt,name=s3,oneof"` + S3 *S3 `protobuf:"bytes,3,opt,name=s3,proto3,oneof" json:"s3,omitempty"` } type StorageBackend_Gcs struct { - Gcs *GCS `protobuf:"bytes,4,opt,name=gcs,oneof"` + Gcs *GCS `protobuf:"bytes,4,opt,name=gcs,proto3,oneof" json:"gcs,omitempty"` } type StorageBackend_CloudDynamic struct { - CloudDynamic *CloudDynamic `protobuf:"bytes,5,opt,name=cloud_dynamic,json=cloudDynamic,oneof"` + CloudDynamic *CloudDynamic `protobuf:"bytes,5,opt,name=cloud_dynamic,json=cloudDynamic,proto3,oneof" json:"cloud_dynamic,omitempty"` } type StorageBackend_Hdfs struct { - Hdfs *HDFS `protobuf:"bytes,6,opt,name=hdfs,oneof"` + Hdfs *HDFS `protobuf:"bytes,6,opt,name=hdfs,proto3,oneof" json:"hdfs,omitempty"` } type StorageBackend_AzureBlobStorage struct { - AzureBlobStorage *AzureBlobStorage `protobuf:"bytes,7,opt,name=azure_blob_storage,json=azureBlobStorage,oneof"` + AzureBlobStorage *AzureBlobStorage `protobuf:"bytes,7,opt,name=azure_blob_storage,json=azureBlobStorage,proto3,oneof" json:"azure_blob_storage,omitempty"` } func (*StorageBackend_Noop) isStorageBackend_Backend() {} @@ -1377,9 +1752,9 @@ func (m *StorageBackend) GetAzureBlobStorage() *AzureBlobStorage { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*StorageBackend) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _StorageBackend_OneofMarshaler, _StorageBackend_OneofUnmarshaler, _StorageBackend_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StorageBackend) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*StorageBackend_Noop)(nil), (*StorageBackend_Local)(nil), (*StorageBackend_S3)(nil), @@ -1390,180 +1765,86 @@ func (*StorageBackend) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer } } -func _StorageBackend_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*StorageBackend) - // backend - switch x := m.Backend.(type) { - case *StorageBackend_Noop: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Noop); err != nil { - return err - } - case *StorageBackend_Local: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Local); err != nil { - return err - } - case *StorageBackend_S3: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.S3); err != nil { - return err - } - case *StorageBackend_Gcs: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Gcs); err != nil { - return err - } - case *StorageBackend_CloudDynamic: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.CloudDynamic); err != nil { - return err - } - case *StorageBackend_Hdfs: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hdfs); err != nil { - return err - } - case *StorageBackend_AzureBlobStorage: - _ = b.EncodeVarint(7<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.AzureBlobStorage); err != nil { - return err +// Noop storage backend saves files into void. +type Noop struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Noop) Reset() { *m = Noop{} } +func (m *Noop) String() string { return proto.CompactTextString(m) } +func (*Noop) ProtoMessage() {} +func (*Noop) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{16} +} +func (m *Noop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Noop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Noop.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("StorageBackend.Backend has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _StorageBackend_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*StorageBackend) - switch tag { - case 1: // backend.noop - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Noop) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_Noop{msg} - return true, err - case 2: // backend.local - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Local) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_Local{msg} - return true, err - case 3: // backend.s3 - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(S3) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_S3{msg} - return true, err - case 4: // backend.gcs - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GCS) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_Gcs{msg} - return true, err - case 5: // backend.cloud_dynamic - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CloudDynamic) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_CloudDynamic{msg} - return true, err - case 6: // backend.hdfs - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(HDFS) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_Hdfs{msg} - return true, err - case 7: // backend.azure_blob_storage - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(AzureBlobStorage) - err := b.DecodeMessage(msg) - m.Backend = &StorageBackend_AzureBlobStorage{msg} - return true, err - default: - return false, nil - } -} - -func _StorageBackend_OneofSizer(msg proto.Message) (n int) { - m := msg.(*StorageBackend) - // backend - switch x := m.Backend.(type) { - case *StorageBackend_Noop: - s := proto.Size(x.Noop) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_Local: - s := proto.Size(x.Local) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_S3: - s := proto.Size(x.S3) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_Gcs: - s := proto.Size(x.Gcs) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_CloudDynamic: - s := proto.Size(x.CloudDynamic) - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_Hdfs: - s := proto.Size(x.Hdfs) - n += proto.SizeVarint(6<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *StorageBackend_AzureBlobStorage: - s := proto.Size(x.AzureBlobStorage) - n += proto.SizeVarint(7<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *Noop) XXX_Merge(src proto.Message) { + xxx_messageInfo_Noop.Merge(m, src) } - -// Noop storage backend saves files into void. -type Noop struct { +func (m *Noop) XXX_Size() int { + return m.Size() +} +func (m *Noop) XXX_DiscardUnknown() { + xxx_messageInfo_Noop.DiscardUnknown(m) } -func (m *Noop) Reset() { *m = Noop{} } -func (m *Noop) String() string { return proto.CompactTextString(m) } -func (*Noop) ProtoMessage() {} -func (*Noop) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{16} } +var xxx_messageInfo_Noop proto.InternalMessageInfo // Local storage backend saves files into local disk type Local struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Local) Reset() { *m = Local{} } +func (m *Local) String() string { return proto.CompactTextString(m) } +func (*Local) ProtoMessage() {} +func (*Local) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{17} +} +func (m *Local) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Local.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 *Local) XXX_Merge(src proto.Message) { + xxx_messageInfo_Local.Merge(m, src) +} +func (m *Local) XXX_Size() int { + return m.Size() +} +func (m *Local) XXX_DiscardUnknown() { + xxx_messageInfo_Local.DiscardUnknown(m) } -func (m *Local) Reset() { *m = Local{} } -func (m *Local) String() string { return proto.CompactTextString(m) } -func (*Local) ProtoMessage() {} -func (*Local) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{17} } +var xxx_messageInfo_Local proto.InternalMessageInfo func (m *Local) GetPath() string { if m != nil { @@ -1581,24 +1862,55 @@ type S3 struct { Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"` StorageClass string `protobuf:"bytes,5,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` // server side encryption - Sse string `protobuf:"bytes,6,opt,name=sse,proto3" json:"sse,omitempty"` - Acl string `protobuf:"bytes,7,opt,name=acl,proto3" json:"acl,omitempty"` - AccessKey string `protobuf:"bytes,8,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretAccessKey string `protobuf:"bytes,9,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` - ForcePathStyle bool `protobuf:"varint,10,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` - SseKmsKeyId string `protobuf:"bytes,11,opt,name=sse_kms_key_id,json=sseKmsKeyId,proto3" json:"sse_kms_key_id,omitempty"` - RoleArn string `protobuf:"bytes,12,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` - ExternalId string `protobuf:"bytes,13,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` - ObjectLockEnabled bool `protobuf:"varint,14,opt,name=object_lock_enabled,json=objectLockEnabled,proto3" json:"object_lock_enabled,omitempty"` - SessionToken string `protobuf:"bytes,15,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` - Provider string `protobuf:"bytes,16,opt,name=provider,proto3" json:"provider,omitempty"` - Profile string `protobuf:"bytes,17,opt,name=profile,proto3" json:"profile,omitempty"` -} - -func (m *S3) Reset() { *m = S3{} } -func (m *S3) String() string { return proto.CompactTextString(m) } -func (*S3) ProtoMessage() {} -func (*S3) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{18} } + Sse string `protobuf:"bytes,6,opt,name=sse,proto3" json:"sse,omitempty"` + Acl string `protobuf:"bytes,7,opt,name=acl,proto3" json:"acl,omitempty"` + AccessKey string `protobuf:"bytes,8,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretAccessKey string `protobuf:"bytes,9,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` + ForcePathStyle bool `protobuf:"varint,10,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` + SseKmsKeyId string `protobuf:"bytes,11,opt,name=sse_kms_key_id,json=sseKmsKeyId,proto3" json:"sse_kms_key_id,omitempty"` + RoleArn string `protobuf:"bytes,12,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"` + ExternalId string `protobuf:"bytes,13,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + ObjectLockEnabled bool `protobuf:"varint,14,opt,name=object_lock_enabled,json=objectLockEnabled,proto3" json:"object_lock_enabled,omitempty"` + SessionToken string `protobuf:"bytes,15,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Provider string `protobuf:"bytes,16,opt,name=provider,proto3" json:"provider,omitempty"` + Profile string `protobuf:"bytes,17,opt,name=profile,proto3" json:"profile,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *S3) Reset() { *m = S3{} } +func (m *S3) String() string { return proto.CompactTextString(m) } +func (*S3) ProtoMessage() {} +func (*S3) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{18} +} +func (m *S3) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *S3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_S3.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 *S3) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3.Merge(m, src) +} +func (m *S3) XXX_Size() int { + return m.Size() +} +func (m *S3) XXX_DiscardUnknown() { + xxx_messageInfo_S3.DiscardUnknown(m) +} + +var xxx_messageInfo_S3 proto.InternalMessageInfo func (m *S3) GetEndpoint() string { if m != nil { @@ -1732,13 +2044,44 @@ type GCS struct { // Service Account Credentials JSON blob // You can get one from https://console.cloud.google.com/apis/credentials, and // copy the content, set it as string here. - CredentialsBlob string `protobuf:"bytes,6,opt,name=credentials_blob,json=credentialsBlob,proto3" json:"credentials_blob,omitempty"` + CredentialsBlob string `protobuf:"bytes,6,opt,name=credentials_blob,json=credentialsBlob,proto3" json:"credentials_blob,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GCS) Reset() { *m = GCS{} } +func (m *GCS) String() string { return proto.CompactTextString(m) } +func (*GCS) ProtoMessage() {} +func (*GCS) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{19} +} +func (m *GCS) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GCS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GCS.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 *GCS) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCS.Merge(m, src) +} +func (m *GCS) XXX_Size() int { + return m.Size() +} +func (m *GCS) XXX_DiscardUnknown() { + xxx_messageInfo_GCS.DiscardUnknown(m) } -func (m *GCS) Reset() { *m = GCS{} } -func (m *GCS) String() string { return proto.CompactTextString(m) } -func (*GCS) ProtoMessage() {} -func (*GCS) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{19} } +var xxx_messageInfo_GCS proto.InternalMessageInfo func (m *GCS) GetEndpoint() string { if m != nil { @@ -1787,13 +2130,44 @@ type AzureCustomerKey struct { // A Base64-encoded AES-256 encryption key value. EncryptionKey string `protobuf:"bytes,1,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` // The Base64-encoded SHA256 of the encryption key. - EncryptionKeySha256 string `protobuf:"bytes,2,opt,name=encryption_key_sha256,json=encryptionKeySha256,proto3" json:"encryption_key_sha256,omitempty"` + EncryptionKeySha256 string `protobuf:"bytes,2,opt,name=encryption_key_sha256,json=encryptionKeySha256,proto3" json:"encryption_key_sha256,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AzureCustomerKey) Reset() { *m = AzureCustomerKey{} } +func (m *AzureCustomerKey) String() string { return proto.CompactTextString(m) } +func (*AzureCustomerKey) ProtoMessage() {} +func (*AzureCustomerKey) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{20} +} +func (m *AzureCustomerKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AzureCustomerKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AzureCustomerKey.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 *AzureCustomerKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_AzureCustomerKey.Merge(m, src) +} +func (m *AzureCustomerKey) XXX_Size() int { + return m.Size() +} +func (m *AzureCustomerKey) XXX_DiscardUnknown() { + xxx_messageInfo_AzureCustomerKey.DiscardUnknown(m) } -func (m *AzureCustomerKey) Reset() { *m = AzureCustomerKey{} } -func (m *AzureCustomerKey) String() string { return proto.CompactTextString(m) } -func (*AzureCustomerKey) ProtoMessage() {} -func (*AzureCustomerKey) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{20} } +var xxx_messageInfo_AzureCustomerKey proto.InternalMessageInfo func (m *AzureCustomerKey) GetEncryptionKey() string { if m != nil { @@ -1856,13 +2230,44 @@ type AzureBlobStorage struct { // // See https://learn.microsoft.com/en-us/azure/storage/blobs/encryption-customer-provided-keys // - EncryptionKey *AzureCustomerKey `protobuf:"bytes,10,opt,name=encryption_key,json=encryptionKey" json:"encryption_key,omitempty"` + EncryptionKey *AzureCustomerKey `protobuf:"bytes,10,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AzureBlobStorage) Reset() { *m = AzureBlobStorage{} } +func (m *AzureBlobStorage) String() string { return proto.CompactTextString(m) } +func (*AzureBlobStorage) ProtoMessage() {} +func (*AzureBlobStorage) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{21} +} +func (m *AzureBlobStorage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AzureBlobStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AzureBlobStorage.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 *AzureBlobStorage) XXX_Merge(src proto.Message) { + xxx_messageInfo_AzureBlobStorage.Merge(m, src) +} +func (m *AzureBlobStorage) XXX_Size() int { + return m.Size() +} +func (m *AzureBlobStorage) XXX_DiscardUnknown() { + xxx_messageInfo_AzureBlobStorage.DiscardUnknown(m) } -func (m *AzureBlobStorage) Reset() { *m = AzureBlobStorage{} } -func (m *AzureBlobStorage) String() string { return proto.CompactTextString(m) } -func (*AzureBlobStorage) ProtoMessage() {} -func (*AzureBlobStorage) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{21} } +var xxx_messageInfo_AzureBlobStorage proto.InternalMessageInfo func (m *AzureBlobStorage) GetEndpoint() string { if m != nil { @@ -1928,17 +2333,48 @@ func (m *AzureBlobStorage) GetEncryptionKey() *AzureCustomerKey { } type Bucket struct { - Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"` - Prefix string `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"` - StorageClass string `protobuf:"bytes,6,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` + Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"` + Prefix string `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"` + StorageClass string `protobuf:"bytes,6,opt,name=storage_class,json=storageClass,proto3" json:"storage_class,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bucket) Reset() { *m = Bucket{} } +func (m *Bucket) String() string { return proto.CompactTextString(m) } +func (*Bucket) ProtoMessage() {} +func (*Bucket) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{22} +} +func (m *Bucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Bucket.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 *Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bucket.Merge(m, src) +} +func (m *Bucket) XXX_Size() int { + return m.Size() +} +func (m *Bucket) XXX_DiscardUnknown() { + xxx_messageInfo_Bucket.DiscardUnknown(m) } -func (m *Bucket) Reset() { *m = Bucket{} } -func (m *Bucket) String() string { return proto.CompactTextString(m) } -func (*Bucket) ProtoMessage() {} -func (*Bucket) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{22} } +var xxx_messageInfo_Bucket proto.InternalMessageInfo func (m *Bucket) GetEndpoint() string { if m != nil { @@ -1977,15 +2413,46 @@ func (m *Bucket) GetStorageClass() string { // CloudDynamic allows testing new cloud providers and new fields without changing protobuf definitions type CloudDynamic struct { - Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"` - ProviderName string `protobuf:"bytes,2,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` - Attrs map[string]string `protobuf:"bytes,3,rep,name=attrs" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Bucket *Bucket `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` + ProviderName string `protobuf:"bytes,2,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` + Attrs map[string]string `protobuf:"bytes,3,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CloudDynamic) Reset() { *m = CloudDynamic{} } +func (m *CloudDynamic) String() string { return proto.CompactTextString(m) } +func (*CloudDynamic) ProtoMessage() {} +func (*CloudDynamic) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{23} +} +func (m *CloudDynamic) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CloudDynamic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CloudDynamic.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 *CloudDynamic) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloudDynamic.Merge(m, src) +} +func (m *CloudDynamic) XXX_Size() int { + return m.Size() +} +func (m *CloudDynamic) XXX_DiscardUnknown() { + xxx_messageInfo_CloudDynamic.DiscardUnknown(m) } -func (m *CloudDynamic) Reset() { *m = CloudDynamic{} } -func (m *CloudDynamic) String() string { return proto.CompactTextString(m) } -func (*CloudDynamic) ProtoMessage() {} -func (*CloudDynamic) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{23} } +var xxx_messageInfo_CloudDynamic proto.InternalMessageInfo func (m *CloudDynamic) GetBucket() *Bucket { if m != nil { @@ -2011,13 +2478,44 @@ func (m *CloudDynamic) GetAttrs() map[string]string { // HDFS storage backend saves file into HDFS compatible storages type HDFS struct { // a URL: hdfs:///some/path or hdfs://host:port/some/path - Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` + Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HDFS) Reset() { *m = HDFS{} } +func (m *HDFS) String() string { return proto.CompactTextString(m) } +func (*HDFS) ProtoMessage() {} +func (*HDFS) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{24} +} +func (m *HDFS) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HDFS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HDFS.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 *HDFS) XXX_Merge(src proto.Message) { + xxx_messageInfo_HDFS.Merge(m, src) +} +func (m *HDFS) XXX_Size() int { + return m.Size() +} +func (m *HDFS) XXX_DiscardUnknown() { + xxx_messageInfo_HDFS.DiscardUnknown(m) } -func (m *HDFS) Reset() { *m = HDFS{} } -func (m *HDFS) String() string { return proto.CompactTextString(m) } -func (*HDFS) ProtoMessage() {} -func (*HDFS) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{24} } +var xxx_messageInfo_HDFS proto.InternalMessageInfo func (m *HDFS) GetRemote() string { if m != nil { @@ -2027,18 +2525,49 @@ func (m *HDFS) GetRemote() string { } type BackupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Files []*File `protobuf:"bytes,4,rep,name=files" json:"files,omitempty"` + Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // API version implies the encode of the key and value. - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,5,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,5,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BackupResponse) Reset() { *m = BackupResponse{} } +func (m *BackupResponse) String() string { return proto.CompactTextString(m) } +func (*BackupResponse) ProtoMessage() {} +func (*BackupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{25} +} +func (m *BackupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BackupResponse.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 *BackupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupResponse.Merge(m, src) +} +func (m *BackupResponse) XXX_Size() int { + return m.Size() +} +func (m *BackupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BackupResponse.DiscardUnknown(m) } -func (m *BackupResponse) Reset() { *m = BackupResponse{} } -func (m *BackupResponse) String() string { return proto.CompactTextString(m) } -func (*BackupResponse) ProtoMessage() {} -func (*BackupResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{25} } +var xxx_messageInfo_BackupResponse proto.InternalMessageInfo func (m *BackupResponse) GetError() *Error { if m != nil { @@ -2078,13 +2607,44 @@ func (m *BackupResponse) GetApiVersion() kvrpcpb.APIVersion { type CleanupRequest struct { // unique_id represents the unique handle of the whole backup predecure. // it generated in prepare request and corrosponed to one specific backup. - UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + UniqueId string `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } +func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupRequest) ProtoMessage() {} +func (*CleanupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{26} +} +func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupRequest.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 *CleanupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupRequest.Merge(m, src) +} +func (m *CleanupRequest) XXX_Size() int { + return m.Size() +} +func (m *CleanupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupRequest.DiscardUnknown(m) } -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{26} } +var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo func (m *CleanupRequest) GetUniqueId() string { if m != nil { @@ -2094,14 +2654,45 @@ func (m *CleanupRequest) GetUniqueId() string { } type CleanupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } +func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } +func (*CleanupResponse) ProtoMessage() {} +func (*CleanupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{27} +} +func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupResponse.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 *CleanupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupResponse.Merge(m, src) +} +func (m *CleanupResponse) XXX_Size() int { + return m.Size() +} +func (m *CleanupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupResponse.DiscardUnknown(m) } -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{27} } +var xxx_messageInfo_CleanupResponse proto.InternalMessageInfo func (m *CleanupResponse) GetError() *Error { if m != nil { @@ -2119,13 +2710,44 @@ func (m *CleanupResponse) GetSuccess() bool { type PrepareRequest struct { // whether save state to the storage. - SaveToStorage bool `protobuf:"varint,1,opt,name=save_to_storage,json=saveToStorage,proto3" json:"save_to_storage,omitempty"` + SaveToStorage bool `protobuf:"varint,1,opt,name=save_to_storage,json=saveToStorage,proto3" json:"save_to_storage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrepareRequest) Reset() { *m = PrepareRequest{} } +func (m *PrepareRequest) String() string { return proto.CompactTextString(m) } +func (*PrepareRequest) ProtoMessage() {} +func (*PrepareRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{28} +} +func (m *PrepareRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareRequest.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 *PrepareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareRequest.Merge(m, src) +} +func (m *PrepareRequest) XXX_Size() int { + return m.Size() +} +func (m *PrepareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareRequest.DiscardUnknown(m) } -func (m *PrepareRequest) Reset() { *m = PrepareRequest{} } -func (m *PrepareRequest) String() string { return proto.CompactTextString(m) } -func (*PrepareRequest) ProtoMessage() {} -func (*PrepareRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{28} } +var xxx_messageInfo_PrepareRequest proto.InternalMessageInfo func (m *PrepareRequest) GetSaveToStorage() bool { if m != nil { @@ -2135,19 +2757,50 @@ func (m *PrepareRequest) GetSaveToStorage() bool { } type PrepareResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // unique_id represents the unique handle of the whole backup predecure. // if unique_id = 0 means prepare failed. // if unique_id > 0 means prepare success and all states saved with this unique info. - UniqueId string `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` - CollectFileCount uint64 `protobuf:"varint,3,opt,name=collect_file_count,json=collectFileCount,proto3" json:"collect_file_count,omitempty"` - CollectFileSize uint64 `protobuf:"varint,4,opt,name=collect_file_size,json=collectFileSize,proto3" json:"collect_file_size,omitempty"` + UniqueId string `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"` + CollectFileCount uint64 `protobuf:"varint,3,opt,name=collect_file_count,json=collectFileCount,proto3" json:"collect_file_count,omitempty"` + CollectFileSize uint64 `protobuf:"varint,4,opt,name=collect_file_size,json=collectFileSize,proto3" json:"collect_file_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrepareResponse) Reset() { *m = PrepareResponse{} } +func (m *PrepareResponse) String() string { return proto.CompactTextString(m) } +func (*PrepareResponse) ProtoMessage() {} +func (*PrepareResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{29} +} +func (m *PrepareResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareResponse.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 *PrepareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareResponse.Merge(m, src) +} +func (m *PrepareResponse) XXX_Size() int { + return m.Size() +} +func (m *PrepareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareResponse.DiscardUnknown(m) } -func (m *PrepareResponse) Reset() { *m = PrepareResponse{} } -func (m *PrepareResponse) String() string { return proto.CompactTextString(m) } -func (*PrepareResponse) ProtoMessage() {} -func (*PrepareResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{29} } +var xxx_messageInfo_PrepareResponse proto.InternalMessageInfo func (m *PrepareResponse) GetError() *Error { if m != nil { @@ -2178,23 +2831,85 @@ func (m *PrepareResponse) GetCollectFileSize() uint64 { } type CheckAdminRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckAdminRequest) Reset() { *m = CheckAdminRequest{} } +func (m *CheckAdminRequest) String() string { return proto.CompactTextString(m) } +func (*CheckAdminRequest) ProtoMessage() {} +func (*CheckAdminRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{30} +} +func (m *CheckAdminRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckAdminRequest.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 *CheckAdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckAdminRequest.Merge(m, src) +} +func (m *CheckAdminRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckAdminRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckAdminRequest.DiscardUnknown(m) } -func (m *CheckAdminRequest) Reset() { *m = CheckAdminRequest{} } -func (m *CheckAdminRequest) String() string { return proto.CompactTextString(m) } -func (*CheckAdminRequest) ProtoMessage() {} -func (*CheckAdminRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{30} } +var xxx_messageInfo_CheckAdminRequest proto.InternalMessageInfo type CheckAdminResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` - HasPendingAdmin bool `protobuf:"varint,3,opt,name=has_pending_admin,json=hasPendingAdmin,proto3" json:"has_pending_admin,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + HasPendingAdmin bool `protobuf:"varint,3,opt,name=has_pending_admin,json=hasPendingAdmin,proto3" json:"has_pending_admin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckAdminResponse) Reset() { *m = CheckAdminResponse{} } +func (m *CheckAdminResponse) String() string { return proto.CompactTextString(m) } +func (*CheckAdminResponse) ProtoMessage() {} +func (*CheckAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{31} +} +func (m *CheckAdminResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckAdminResponse.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 *CheckAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckAdminResponse.Merge(m, src) +} +func (m *CheckAdminResponse) XXX_Size() int { + return m.Size() +} +func (m *CheckAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckAdminResponse.DiscardUnknown(m) } -func (m *CheckAdminResponse) Reset() { *m = CheckAdminResponse{} } -func (m *CheckAdminResponse) String() string { return proto.CompactTextString(m) } -func (*CheckAdminResponse) ProtoMessage() {} -func (*CheckAdminResponse) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{31} } +var xxx_messageInfo_CheckAdminResponse proto.InternalMessageInfo func (m *CheckAdminResponse) GetError() *Error { if m != nil { @@ -2218,19 +2933,48 @@ func (m *CheckAdminResponse) GetHasPendingAdmin() bool { } type ExternalStorageRestoreRequest struct { - StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` - ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - RestoreName string `protobuf:"bytes,3,opt,name=restore_name,json=restoreName,proto3" json:"restore_name,omitempty"` - ContentLength uint64 `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` + StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + RestoreName string `protobuf:"bytes,3,opt,name=restore_name,json=restoreName,proto3" json:"restore_name,omitempty"` + ContentLength uint64 `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ExternalStorageRestoreRequest) Reset() { *m = ExternalStorageRestoreRequest{} } func (m *ExternalStorageRestoreRequest) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreRequest) ProtoMessage() {} func (*ExternalStorageRestoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptorBrpb, []int{32} + return fileDescriptor_483d1f48d58a4885, []int{32} +} +func (m *ExternalStorageRestoreRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExternalStorageRestoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExternalStorageRestoreRequest.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 *ExternalStorageRestoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageRestoreRequest.Merge(m, src) +} +func (m *ExternalStorageRestoreRequest) XXX_Size() int { + return m.Size() +} +func (m *ExternalStorageRestoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalStorageRestoreRequest.DiscardUnknown(m) } +var xxx_messageInfo_ExternalStorageRestoreRequest proto.InternalMessageInfo + func (m *ExternalStorageRestoreRequest) GetStorageBackend() *StorageBackend { if m != nil { return m.StorageBackend @@ -2260,33 +3004,93 @@ func (m *ExternalStorageRestoreRequest) GetContentLength() uint64 { } type ExternalStorageRestoreResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ExternalStorageRestoreResponse) Reset() { *m = ExternalStorageRestoreResponse{} } func (m *ExternalStorageRestoreResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreResponse) ProtoMessage() {} func (*ExternalStorageRestoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptorBrpb, []int{33} + return fileDescriptor_483d1f48d58a4885, []int{33} } - -type ExternalStorageSaveRequest struct { - StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` - ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` - ContentLength uint64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` +func (m *ExternalStorageRestoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *ExternalStorageSaveRequest) Reset() { *m = ExternalStorageSaveRequest{} } -func (m *ExternalStorageSaveRequest) String() string { return proto.CompactTextString(m) } -func (*ExternalStorageSaveRequest) ProtoMessage() {} -func (*ExternalStorageSaveRequest) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{34} } - -func (m *ExternalStorageSaveRequest) GetStorageBackend() *StorageBackend { - if m != nil { - return m.StorageBackend +func (m *ExternalStorageRestoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExternalStorageRestoreResponse.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 *ExternalStorageRestoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageRestoreResponse.Merge(m, src) +} +func (m *ExternalStorageRestoreResponse) XXX_Size() int { + return m.Size() +} +func (m *ExternalStorageRestoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalStorageRestoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExternalStorageRestoreResponse proto.InternalMessageInfo + +type ExternalStorageSaveRequest struct { + StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` + ContentLength uint64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExternalStorageSaveRequest) Reset() { *m = ExternalStorageSaveRequest{} } +func (m *ExternalStorageSaveRequest) String() string { return proto.CompactTextString(m) } +func (*ExternalStorageSaveRequest) ProtoMessage() {} +func (*ExternalStorageSaveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{34} +} +func (m *ExternalStorageSaveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExternalStorageSaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExternalStorageSaveRequest.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 *ExternalStorageSaveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageSaveRequest.Merge(m, src) +} +func (m *ExternalStorageSaveRequest) XXX_Size() int { + return m.Size() +} +func (m *ExternalStorageSaveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalStorageSaveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExternalStorageSaveRequest proto.InternalMessageInfo + +func (m *ExternalStorageSaveRequest) GetStorageBackend() *StorageBackend { + if m != nil { + return m.StorageBackend + } + return nil +} + func (m *ExternalStorageSaveRequest) GetObjectName() string { if m != nil { return m.ObjectName @@ -2302,30 +3106,90 @@ func (m *ExternalStorageSaveRequest) GetContentLength() uint64 { } type ExternalStorageSaveResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ExternalStorageSaveResponse) Reset() { *m = ExternalStorageSaveResponse{} } func (m *ExternalStorageSaveResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageSaveResponse) ProtoMessage() {} func (*ExternalStorageSaveResponse) Descriptor() ([]byte, []int) { - return fileDescriptorBrpb, []int{35} + return fileDescriptor_483d1f48d58a4885, []int{35} +} +func (m *ExternalStorageSaveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExternalStorageSaveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExternalStorageSaveResponse.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 *ExternalStorageSaveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageSaveResponse.Merge(m, src) +} +func (m *ExternalStorageSaveResponse) XXX_Size() int { + return m.Size() +} +func (m *ExternalStorageSaveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalStorageSaveResponse.DiscardUnknown(m) } +var xxx_messageInfo_ExternalStorageSaveResponse proto.InternalMessageInfo + type Metadata struct { // deprecated after(in) v6.3.0 TiKV cluster - Files []*DataFileInfo `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"` - FileGroups []*DataFileGroup `protobuf:"bytes,6,rep,name=file_groups,json=fileGroups" json:"file_groups,omitempty"` - StoreId int64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - MaxTs uint64 `protobuf:"varint,4,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - MinTs uint64 `protobuf:"varint,5,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` - MetaVersion MetaVersion `protobuf:"varint,7,opt,name=meta_version,json=metaVersion,proto3,enum=backup.MetaVersion" json:"meta_version,omitempty"` + Files []*DataFileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` + FileGroups []*DataFileGroup `protobuf:"bytes,6,rep,name=file_groups,json=fileGroups,proto3" json:"file_groups,omitempty"` + StoreId int64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + MaxTs uint64 `protobuf:"varint,4,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + MinTs uint64 `protobuf:"varint,5,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` + MetaVersion MetaVersion `protobuf:"varint,7,opt,name=meta_version,json=metaVersion,proto3,enum=backup.MetaVersion" json:"meta_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{36} +} +func (m *Metadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Metadata.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 *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) +} +func (m *Metadata) XXX_Size() int { + return m.Size() +} +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) } -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{36} } +var xxx_messageInfo_Metadata proto.InternalMessageInfo func (m *Metadata) GetFiles() []*DataFileInfo { if m != nil { @@ -2381,8 +3245,8 @@ type DataFileGroup struct { // Path of the file. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Partitions of the file. - DataFilesInfo []*DataFileInfo `protobuf:"bytes,2,rep,name=data_files_info,json=dataFilesInfo" json:"data_files_info,omitempty"` - // / Below are extra information of the file, for better filtering files. + DataFilesInfo []*DataFileInfo `protobuf:"bytes,2,rep,name=data_files_info,json=dataFilesInfo,proto3" json:"data_files_info,omitempty"` + /// Below are extra information of the file, for better filtering files. // The min ts of the keys in the file. MinTs uint64 `protobuf:"varint,3,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` // The max ts of the keys in the file. @@ -2390,13 +3254,44 @@ type DataFileGroup struct { // The resolved ts of the region when saving the file. MinResolvedTs uint64 `protobuf:"varint,5,opt,name=min_resolved_ts,json=minResolvedTs,proto3" json:"min_resolved_ts,omitempty"` // The file length after compressed. - Length uint64 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` + Length uint64 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataFileGroup) Reset() { *m = DataFileGroup{} } +func (m *DataFileGroup) String() string { return proto.CompactTextString(m) } +func (*DataFileGroup) ProtoMessage() {} +func (*DataFileGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{37} +} +func (m *DataFileGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataFileGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataFileGroup.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 *DataFileGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataFileGroup.Merge(m, src) +} +func (m *DataFileGroup) XXX_Size() int { + return m.Size() +} +func (m *DataFileGroup) XXX_DiscardUnknown() { + xxx_messageInfo_DataFileGroup.DiscardUnknown(m) } -func (m *DataFileGroup) Reset() { *m = DataFileGroup{} } -func (m *DataFileGroup) String() string { return proto.CompactTextString(m) } -func (*DataFileGroup) ProtoMessage() {} -func (*DataFileGroup) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{37} } +var xxx_messageInfo_DataFileGroup proto.InternalMessageInfo func (m *DataFileGroup) GetPath() string { if m != nil { @@ -2446,7 +3341,7 @@ type DataFileInfo struct { // Path of the file. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` NumberOfEntries int64 `protobuf:"varint,3,opt,name=number_of_entries,json=numberOfEntries,proto3" json:"number_of_entries,omitempty"` - // / Below are extra information of the file, for better filtering files. + /// Below are extra information of the file, for better filtering files. // The min ts of the keys in the file. MinTs uint64 `protobuf:"varint,4,opt,name=min_ts,json=minTs,proto3" json:"min_ts,omitempty"` // The max ts of the keys in the file. @@ -2476,13 +3371,44 @@ type DataFileInfo struct { // The range length of the merged file, if it exists. RangeLength uint64 `protobuf:"varint,17,opt,name=range_length,json=rangeLength,proto3" json:"range_length,omitempty"` // The compression type for the file. - CompressionType CompressionType `protobuf:"varint,18,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + CompressionType CompressionType `protobuf:"varint,18,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataFileInfo) Reset() { *m = DataFileInfo{} } +func (m *DataFileInfo) String() string { return proto.CompactTextString(m) } +func (*DataFileInfo) ProtoMessage() {} +func (*DataFileInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{38} +} +func (m *DataFileInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataFileInfo.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 *DataFileInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataFileInfo.Merge(m, src) +} +func (m *DataFileInfo) XXX_Size() int { + return m.Size() +} +func (m *DataFileInfo) XXX_DiscardUnknown() { + xxx_messageInfo_DataFileInfo.DiscardUnknown(m) } -func (m *DataFileInfo) Reset() { *m = DataFileInfo{} } -func (m *DataFileInfo) String() string { return proto.CompactTextString(m) } -func (*DataFileInfo) ProtoMessage() {} -func (*DataFileInfo) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{38} } +var xxx_messageInfo_DataFileInfo proto.InternalMessageInfo func (m *DataFileInfo) GetSha256() []byte { if m != nil { @@ -2618,13 +3544,44 @@ type StreamBackupError struct { // the user-friendly error message. ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // the store id of who issues the error. - StoreId uint64 `protobuf:"varint,4,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + StoreId uint64 `protobuf:"varint,4,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StreamBackupError) Reset() { *m = StreamBackupError{} } +func (m *StreamBackupError) String() string { return proto.CompactTextString(m) } +func (*StreamBackupError) ProtoMessage() {} +func (*StreamBackupError) Descriptor() ([]byte, []int) { + return fileDescriptor_483d1f48d58a4885, []int{39} +} +func (m *StreamBackupError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StreamBackupError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StreamBackupError.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 *StreamBackupError) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamBackupError.Merge(m, src) +} +func (m *StreamBackupError) XXX_Size() int { + return m.Size() +} +func (m *StreamBackupError) XXX_DiscardUnknown() { + xxx_messageInfo_StreamBackupError.DiscardUnknown(m) } -func (m *StreamBackupError) Reset() { *m = StreamBackupError{} } -func (m *StreamBackupError) String() string { return proto.CompactTextString(m) } -func (*StreamBackupError) ProtoMessage() {} -func (*StreamBackupError) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{39} } +var xxx_messageInfo_StreamBackupError proto.InternalMessageInfo func (m *StreamBackupError) GetHappenAt() uint64 { if m != nil { @@ -2655,6 +3612,10 @@ func (m *StreamBackupError) GetStoreId() uint64 { } func init() { + proto.RegisterEnum("backup.CompressionType", CompressionType_name, CompressionType_value) + proto.RegisterEnum("backup.BackupMode", BackupMode_name, BackupMode_value) + proto.RegisterEnum("backup.MetaVersion", MetaVersion_name, MetaVersion_value) + proto.RegisterEnum("backup.FileType", FileType_name, FileType_value) proto.RegisterType((*BackupMeta)(nil), "backup.BackupMeta") proto.RegisterType((*BackupRange)(nil), "backup.BackupRange") proto.RegisterType((*File)(nil), "backup.File") @@ -2679,6 +3640,7 @@ func init() { proto.RegisterType((*AzureBlobStorage)(nil), "backup.AzureBlobStorage") proto.RegisterType((*Bucket)(nil), "backup.Bucket") proto.RegisterType((*CloudDynamic)(nil), "backup.CloudDynamic") + proto.RegisterMapType((map[string]string)(nil), "backup.CloudDynamic.AttrsEntry") proto.RegisterType((*HDFS)(nil), "backup.HDFS") proto.RegisterType((*BackupResponse)(nil), "backup.BackupResponse") proto.RegisterType((*CleanupRequest)(nil), "backup.CleanupRequest") @@ -2695,10 +3657,222 @@ func init() { proto.RegisterType((*DataFileGroup)(nil), "backup.DataFileGroup") proto.RegisterType((*DataFileInfo)(nil), "backup.DataFileInfo") proto.RegisterType((*StreamBackupError)(nil), "backup.StreamBackupError") - proto.RegisterEnum("backup.CompressionType", CompressionType_name, CompressionType_value) - proto.RegisterEnum("backup.BackupMode", BackupMode_name, BackupMode_value) - proto.RegisterEnum("backup.MetaVersion", MetaVersion_name, MetaVersion_value) - proto.RegisterEnum("backup.FileType", FileType_name, FileType_value) +} + +func init() { proto.RegisterFile("brpb.proto", fileDescriptor_483d1f48d58a4885) } + +var fileDescriptor_483d1f48d58a4885 = []byte{ + // 3358 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0x5b, 0x6f, 0xe4,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 0xe0, 0x74, 0x2a, 0x70, 0x65, 0x49, 0x1c, + 0xdc, 0x64, 0x14, 0x74, 0xb4, 0x32, 0x41, 0xfb, 0x88, 0x58, 0x1d, 0x28, 0x79, 0x43, 0x8a, 0x93, + 0x06, 0x2b, 0x79, 0x43, 0xd4, 0x88, 0x08, 0xbe, 0xe5, 0x94, 0xed, 0x4c, 0x46, 0xdf, 0xb8, 0x83, + 0x17, 0x24, 0x57, 0x98, 0x4e, 0xa7, 0x94, 0xea, 0x5a, 0xac, 0x2e, 0x81, 0x93, 0xa9, 0xfd, 0x5d, + 0x09, 0xea, 0x3a, 0x78, 0xac, 0x8f, 0x00, 0x30, 0xa7, 0x3b, 0xd2, 0x02, 0xc6, 0x2d, 0x16, 0x68, + 0x8c, 0x15, 0xaf, 0x40, 0x66, 0xdf, 0xcd, 0x99, 0x4b, 0xb7, 0x31, 0x23, 0x5d, 0x32, 0x17, 0xf2, + 0x56, 0xf9, 0xee, 0xbc, 0x35, 0x9f, 0x66, 0xcc, 0xb7, 0x49, 0x33, 0x79, 0x94, 0xcb, 0x39, 0xd5, + 0xe5, 0x6e, 0xab, 0x43, 0x5f, 0xce, 0xd4, 0x69, 0xa6, 0xb2, 0x51, 0xd6, 0x69, 0xc6, 0x7e, 0x0a, + 0xdd, 0x85, 0x00, 0x46, 0xb6, 0x20, 0x1a, 0xc6, 0xca, 0x87, 0xe9, 0xdb, 0xfe, 0xb5, 0x01, 0x55, + 0x29, 0x39, 0x9a, 0xc0, 0x1f, 0x28, 0x62, 0xc9, 0x1f, 0x58, 0xf7, 0xa0, 0x92, 0x61, 0xe4, 0x2a, + 0xff, 0x93, 0x83, 0x39, 0x17, 0x28, 0xdf, 0xe5, 0x02, 0xe6, 0xdd, 0x2e, 0x50, 0x79, 0xcd, 0x05, + 0xfe, 0x00, 0x7a, 0x59, 0x30, 0x0c, 0x5d, 0x71, 0xe5, 0xa4, 0x3c, 0x09, 0x03, 0xcf, 0x15, 0xe4, + 0x82, 0x6d,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1, 0xeb, 0x8c, 0x3a, 0x4e, 0x2c, 0xac, 0x5a, 0xac, 0x03, + 0x89, 0x33, 0xcd, 0xf0, 0x73, 0xb3, 0x5e, 0xed, 0xd5, 0x54, 0x67, 0xf7, 0x77, 0x25, 0xb8, 0x77, + 0x4e, 0xf9, 0x5d, 0xee, 0x77, 0xe1, 0x8a, 0x11, 0xe9, 0xe9, 0x63, 0xa8, 0x29, 0x5f, 0xa0, 0x98, + 0x58, 0xee, 0x32, 0x9a, 0xcd, 0x7a, 0x1f, 0x64, 0x60, 0x38, 0x99, 0xd0, 0x29, 0x8b, 0xc6, 0x17, + 0xc2, 0xba, 0x0f, 0x18, 0x18, 0x48, 0x90, 0x05, 0xb2, 0xc2, 0x23, 0xff, 0x42, 0xe4, 0x99, 0xdc, + 0x2c, 0x64, 0xf2, 0x0f, 0xa0, 0x45, 0xf9, 0x17, 0x9b, 0x8f, 0x8c, 0xa7, 0x54, 0xc1, 0x1b, 0xac, + 0x49, 0xd8, 0x97, 0x04, 0xdd, 0xea, 0x68, 0xd5, 0x77, 0x73, 0x34, 0xd6, 0x09, 0x5d, 0x91, 0x39, + 0x93, 0xc4, 0xc7, 0xf8, 0xca, 0x84, 0xee, 0x7a, 0x59, 0x15, 0x0b, 0xe7, 0x44, 0xd8, 0xbf, 0x29, + 0x41, 0x67, 0xfe, 0xa0, 0x96, 0x0d, 0x66, 0x14, 0xc7, 0x89, 0x52, 0x47, 0xde, 0x0f, 0xbd, 0x8c, + 0xe3, 0xe4, 0x78, 0x85, 0x11, 0xcd, 0x7a, 0x0a, 0x95, 0x30, 0xf6, 0xdc, 0x70, 0xb1, 0x0c, 0x3d, + 0x47, 0xf0, 0x78, 0x85, 0x49, 0xaa, 0xf5, 0x7b, 0x50, 0x12, 0xbb, 0x2a, 0x31, 0x43, 0xae, 0xd7, + 0xdd, 0xe3, 0x15, 0x56, 0x12, 0xbb, 0xd6, 0x13, 0x28, 0x5f, 0x7a, 0x42, 0xe5, 0xde, 0xa6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 0x9d, 0x3c, 0x7a, 0xc9, 0xfd, 0x67, 0xff, 0xf5, 0x8f, 0x75, 0xe3, 0x57, 0xdf, 0x3f, 0x36, 0x7e, + 0xf3, 0xfd, 0x63, 0xe3, 0xbf, 0xbf, 0x7f, 0x6c, 0xfc, 0xfd, 0xff, 0x3c, 0x5e, 0x81, 0x5e, 0x9c, + 0x5e, 0x6e, 0x67, 0xc1, 0x68, 0xba, 0x3d, 0x9a, 0xd2, 0xff, 0x94, 0x0c, 0xaa, 0xf4, 0x67, 0xf7, + 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xee, 0xa6, 0xb1, 0x45, 0xd7, 0x22, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2709,8 +3883,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Backup service - +// BackupClient is the client API for Backup service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type BackupClient interface { Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (Backup_BackupClient, error) // CheckPendingAdminOp used for snapshot backup. before we start snapshot for a TiKV. @@ -2734,7 +3909,7 @@ func NewBackupClient(cc *grpc.ClientConn) BackupClient { } func (c *backupClient) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (Backup_BackupClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Backup_serviceDesc.Streams[0], c.cc, "/backup.Backup/backup", opts...) + stream, err := c.cc.NewStream(ctx, &_Backup_serviceDesc.Streams[0], "/backup.Backup/backup", opts...) if err != nil { return nil, err } @@ -2766,7 +3941,7 @@ func (x *backupBackupClient) Recv() (*BackupResponse, error) { } func (c *backupClient) CheckPendingAdminOp(ctx context.Context, in *CheckAdminRequest, opts ...grpc.CallOption) (Backup_CheckPendingAdminOpClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Backup_serviceDesc.Streams[1], c.cc, "/backup.Backup/CheckPendingAdminOp", opts...) + stream, err := c.cc.NewStream(ctx, &_Backup_serviceDesc.Streams[1], "/backup.Backup/CheckPendingAdminOp", opts...) if err != nil { return nil, err } @@ -2799,7 +3974,7 @@ func (x *backupCheckPendingAdminOpClient) Recv() (*CheckAdminResponse, error) { func (c *backupClient) Prepare(ctx context.Context, in *PrepareRequest, opts ...grpc.CallOption) (*PrepareResponse, error) { out := new(PrepareResponse) - err := grpc.Invoke(ctx, "/backup.Backup/prepare", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/backup.Backup/prepare", in, out, opts...) if err != nil { return nil, err } @@ -2808,15 +3983,14 @@ func (c *backupClient) Prepare(ctx context.Context, in *PrepareRequest, opts ... func (c *backupClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { out := new(CleanupResponse) - err := grpc.Invoke(ctx, "/backup.Backup/cleanup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/backup.Backup/cleanup", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Backup service - +// BackupServer is the server API for Backup service. type BackupServer interface { Backup(*BackupRequest, Backup_BackupServer) error // CheckPendingAdminOp used for snapshot backup. before we start snapshot for a TiKV. @@ -2831,6 +4005,23 @@ type BackupServer interface { Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) } +// UnimplementedBackupServer can be embedded to have forward compatible implementations. +type UnimplementedBackupServer struct { +} + +func (*UnimplementedBackupServer) Backup(req *BackupRequest, srv Backup_BackupServer) error { + return status.Errorf(codes.Unimplemented, "method Backup not implemented") +} +func (*UnimplementedBackupServer) CheckPendingAdminOp(req *CheckAdminRequest, srv Backup_CheckPendingAdminOpServer) error { + return status.Errorf(codes.Unimplemented, "method CheckPendingAdminOp not implemented") +} +func (*UnimplementedBackupServer) Prepare(ctx context.Context, req *PrepareRequest) (*PrepareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Prepare not implemented") +} +func (*UnimplementedBackupServer) Cleanup(ctx context.Context, req *CleanupRequest) (*CleanupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented") +} + func RegisterBackupServer(s *grpc.Server, srv BackupServer) { s.RegisterService(&_Backup_serviceDesc, srv) } @@ -2941,8 +4132,9 @@ var _Backup_serviceDesc = grpc.ServiceDesc{ Metadata: "brpb.proto", } -// Client API for ExternalStorage service - +// ExternalStorageClient is the client API for ExternalStorage service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ExternalStorageClient interface { // Restore to a file Restore(ctx context.Context, in *ExternalStorageRestoreRequest, opts ...grpc.CallOption) (*ExternalStorageRestoreResponse, error) @@ -2960,7 +4152,7 @@ func NewExternalStorageClient(cc *grpc.ClientConn) ExternalStorageClient { func (c *externalStorageClient) Restore(ctx context.Context, in *ExternalStorageRestoreRequest, opts ...grpc.CallOption) (*ExternalStorageRestoreResponse, error) { out := new(ExternalStorageRestoreResponse) - err := grpc.Invoke(ctx, "/backup.ExternalStorage/restore", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/backup.ExternalStorage/restore", in, out, opts...) if err != nil { return nil, err } @@ -2969,15 +4161,14 @@ func (c *externalStorageClient) Restore(ctx context.Context, in *ExternalStorage func (c *externalStorageClient) Save(ctx context.Context, in *ExternalStorageSaveRequest, opts ...grpc.CallOption) (*ExternalStorageSaveResponse, error) { out := new(ExternalStorageSaveResponse) - err := grpc.Invoke(ctx, "/backup.ExternalStorage/save", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/backup.ExternalStorage/save", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for ExternalStorage service - +// ExternalStorageServer is the server API for ExternalStorage service. type ExternalStorageServer interface { // Restore to a file Restore(context.Context, *ExternalStorageRestoreRequest) (*ExternalStorageRestoreResponse, error) @@ -2985,6 +4176,17 @@ type ExternalStorageServer interface { Save(context.Context, *ExternalStorageSaveRequest) (*ExternalStorageSaveResponse, error) } +// UnimplementedExternalStorageServer can be embedded to have forward compatible implementations. +type UnimplementedExternalStorageServer struct { +} + +func (*UnimplementedExternalStorageServer) Restore(ctx context.Context, req *ExternalStorageRestoreRequest) (*ExternalStorageRestoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Restore not implemented") +} +func (*UnimplementedExternalStorageServer) Save(ctx context.Context, req *ExternalStorageSaveRequest) (*ExternalStorageSaveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Save not implemented") +} + func RegisterExternalStorageServer(s *grpc.Server, srv ExternalStorageServer) { s.RegisterService(&_ExternalStorage_serviceDesc, srv) } @@ -3045,7 +4247,7 @@ var _ExternalStorage_serviceDesc = grpc.ServiceDesc{ func (m *BackupMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3053,353 +4255,415 @@ func (m *BackupMeta) Marshal() (dAtA []byte, err error) { } func (m *BackupMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BackupMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - } - if len(m.ClusterVersion) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ClusterVersion))) - i += copy(dAtA[i:], m.ClusterVersion) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Files) > 0 { - for _, msg := range m.Files { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 } } - if m.StartVersion != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - } - if m.EndVersion != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + if m.Mode != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 } - if len(m.Schemas) > 0 { - for _, msg := range m.Schemas { - dAtA[i] = 0x3a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.DbMaps) > 0 { + for iNdEx := len(m.DbMaps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DbMaps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 } } - if m.IsRawKv { - dAtA[i] = 0x40 - i++ - if m.IsRawKv { + if m.IsTxnKv { + i-- + if m.IsTxnKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.RawRanges) > 0 { - for _, msg := range m.RawRanges { - dAtA[i] = 0x4a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Ddls) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) - i += copy(dAtA[i:], m.Ddls) - } - if len(m.BrVersion) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) - i += copy(dAtA[i:], m.BrVersion) - } - if m.Version != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) - } - if m.FileIndex != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.FileIndex.Size())) - n1, err := m.FileIndex.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 } - if m.SchemaIndex != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.SchemaIndex.Size())) - n2, err := m.SchemaIndex.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if len(m.NewCollationsEnabled) > 0 { + i -= len(m.NewCollationsEnabled) + copy(dAtA[i:], m.NewCollationsEnabled) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.NewCollationsEnabled))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - if m.RawRangeIndex != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RawRangeIndex.Size())) - n3, err := m.RawRangeIndex.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Policies) > 0 { + for iNdEx := len(m.Policies) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Policies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - i += n3 } - if m.DdlIndexes != nil { - dAtA[i] = 0x82 - i++ + if m.ApiVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.DdlIndexes.Size())) - n4, err := m.DdlIndexes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + i-- + dAtA[i] = 0x90 } if len(m.BackupResult) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ + i -= len(m.BackupResult) + copy(dAtA[i:], m.BackupResult) i = encodeVarintBrpb(dAtA, i, uint64(len(m.BackupResult))) - i += copy(dAtA[i:], m.BackupResult) - } - if m.ApiVersion != 0 { - dAtA[i] = 0x90 - i++ + i-- dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x8a } - if len(m.Policies) > 0 { - for _, msg := range m.Policies { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.DdlIndexes != nil { + { + size, err := m.DdlIndexes.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - } - if len(m.NewCollationsEnabled) > 0 { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.NewCollationsEnabled))) - i += copy(dAtA[i:], m.NewCollationsEnabled) - } - if m.IsTxnKv { - dAtA[i] = 0xa8 - i++ + i-- dAtA[i] = 0x1 - i++ - if m.IsTxnKv { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + i-- + dAtA[i] = 0x82 } - if len(m.DbMaps) > 0 { - for _, msg := range m.DbMaps { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RawRangeIndex != nil { + { + size, err := m.RawRangeIndex.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x7a } - if m.Mode != 0 { - dAtA[i] = 0xb8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) - } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.SchemaIndex != nil { + { + size, err := m.SchemaIndex.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x72 } - return i, nil -} - -func (m *BackupRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BackupRange) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) - } - if len(m.EndKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) - } - if len(m.Files) > 0 { - for _, msg := range m.Files { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.FileIndex != nil { + { + size, err := m.FileIndex.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x6a } - return i, nil -} - -func (m *File) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + if m.Version != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x60 + } + if len(m.BrVersion) > 0 { + i -= len(m.BrVersion) + copy(dAtA[i:], m.BrVersion) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) + i-- + dAtA[i] = 0x5a + } + if len(m.Ddls) > 0 { + i -= len(m.Ddls) + copy(dAtA[i:], m.Ddls) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) + i-- + dAtA[i] = 0x52 + } + if len(m.RawRanges) > 0 { + for iNdEx := len(m.RawRanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RawRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if m.IsRawKv { + i-- + if m.IsRawKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if len(m.Schemas) > 0 { + for iNdEx := len(m.Schemas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Schemas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.EndVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + i-- + dAtA[i] = 0x30 + } + if m.StartVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x28 + } + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ClusterVersion) > 0 { + i -= len(m.ClusterVersion) + copy(dAtA[i:], m.ClusterVersion) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ClusterVersion))) + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BackupRange) 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 *File) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *BackupRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BackupRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Sha256) > 0 { + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) - i += copy(dAtA[i:], m.Sha256) } if len(m.StartKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0xa } - if len(m.EndKey) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + return len(dAtA) - i, nil +} + +func (m *File) 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.StartVersion != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) + return dAtA[:n], nil +} + +func (m *File) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.EndVersion != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + if len(m.CipherIv) > 0 { + i -= len(m.CipherIv) + copy(dAtA[i:], m.CipherIv) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) + i-- + dAtA[i] = 0x62 } - if m.Crc64Xor != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) + if m.Size_ != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x58 } - if m.TotalKvs != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x52 } if m.TotalBytes != 0 { - dAtA[i] = 0x48 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) + i-- + dAtA[i] = 0x48 } - if len(m.Cf) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.TotalKvs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) + i-- + dAtA[i] = 0x40 } - if m.Size_ != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) + if m.Crc64Xor != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) + i-- + dAtA[i] = 0x38 } - if len(m.CipherIv) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) - i += copy(dAtA[i:], m.CipherIv) + if m.EndVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + i-- + dAtA[i] = 0x30 + } + if m.StartVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x28 + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x22 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x1a } - return i, nil + if len(m.Sha256) > 0 { + i -= len(m.Sha256) + copy(dAtA[i:], m.Sha256) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *MetaFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3407,85 +4671,105 @@ func (m *MetaFile) Marshal() (dAtA []byte, err error) { } func (m *MetaFile) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetaFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.MetaFiles) > 0 { - for _, msg := range m.MetaFiles { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.DataFiles) > 0 { - for _, msg := range m.DataFiles { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.BackupRanges) > 0 { + for iNdEx := len(m.BackupRanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BackupRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - if len(m.Schemas) > 0 { - for _, msg := range m.Schemas { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if len(m.Ddls) > 0 { + for iNdEx := len(m.Ddls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ddls[iNdEx]) + copy(dAtA[i:], m.Ddls[iNdEx]) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls[iNdEx]))) + i-- + dAtA[i] = 0x2a } } if len(m.RawRanges) > 0 { - for _, msg := range m.RawRanges { + for iNdEx := len(m.RawRanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RawRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + } + if len(m.Schemas) > 0 { + for iNdEx := len(m.Schemas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Schemas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if len(m.Ddls) > 0 { - for _, b := range m.Ddls { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if len(m.DataFiles) > 0 { + for iNdEx := len(m.DataFiles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DataFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } } - if len(m.BackupRanges) > 0 { - for _, msg := range m.BackupRanges { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.MetaFiles) > 0 { + for iNdEx := len(m.MetaFiles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetaFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3493,23 +4777,33 @@ func (m *PlacementPolicy) Marshal() (dAtA []byte, err error) { } func (m *PlacementPolicy) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PlacementPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Info) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Info) + copy(dAtA[i:], m.Info) i = encodeVarintBrpb(dAtA, i, uint64(len(m.Info))) - i += copy(dAtA[i:], m.Info) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Schema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3517,55 +4811,67 @@ func (m *Schema) Marshal() (dAtA []byte, err error) { } func (m *Schema) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Schema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Db) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Db))) - i += copy(dAtA[i:], m.Db) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Table) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Table))) - i += copy(dAtA[i:], m.Table) + if len(m.Stats) > 0 { + i -= len(m.Stats) + copy(dAtA[i:], m.Stats) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Stats))) + i-- + dAtA[i] = 0x3a } - if m.Crc64Xor != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) + if m.TiflashReplicas != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.TiflashReplicas)) + i-- + dAtA[i] = 0x30 + } + if m.TotalBytes != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) + i-- + dAtA[i] = 0x28 } if m.TotalKvs != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) + i-- + dAtA[i] = 0x20 } - if m.TotalBytes != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) + if m.Crc64Xor != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) + i-- + dAtA[i] = 0x18 } - if m.TiflashReplicas != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.TiflashReplicas)) + if len(m.Table) > 0 { + i -= len(m.Table) + copy(dAtA[i:], m.Table) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Table))) + i-- + dAtA[i] = 0x12 } - if len(m.Stats) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Stats))) - i += copy(dAtA[i:], m.Stats) + if len(m.Db) > 0 { + i -= len(m.Db) + copy(dAtA[i:], m.Db) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Db))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *IDMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3573,27 +4879,36 @@ func (m *IDMap) Marshal() (dAtA []byte, err error) { } func (m *IDMap) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IDMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.UpstreamId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.UpstreamId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.DownstreamId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.DownstreamId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.UpstreamId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.UpstreamId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *PitrTableMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3601,45 +4916,59 @@ func (m *PitrTableMap) Marshal() (dAtA []byte, err error) { } func (m *PitrTableMap) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PitrTableMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.IdMap != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) - n5, err := m.IdMap.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Partitions) > 0 { - for _, msg := range m.Partitions { + for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Partitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.IdMap != nil { + { + size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PitrDBMap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3647,45 +4976,59 @@ func (m *PitrDBMap) Marshal() (dAtA []byte, err error) { } func (m *PitrDBMap) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PitrDBMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.IdMap != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) - n6, err := m.IdMap.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Tables) > 0 { - for _, msg := range m.Tables { + for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.IdMap != nil { + { + size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3693,35 +5036,47 @@ func (m *RawRange) Marshal() (dAtA []byte, err error) { } func (m *RawRange) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a } if len(m.EndKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x12 } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ClusterIDError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3729,27 +5084,36 @@ func (m *ClusterIDError) Marshal() (dAtA []byte, err error) { } func (m *ClusterIDError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterIDError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Current != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Current)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Request != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.Request)) + i-- + dAtA[i] = 0x10 + } + if m.Current != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Current)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3757,72 +5121,105 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Detail != nil { - nn7, err := m.Detail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Detail.Size() + i -= size + if _, err := m.Detail.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn7 } - return i, nil + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *Error_ClusterIdError) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error_ClusterIdError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ClusterIdError != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterIdError.Size())) - n8, err := m.ClusterIdError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ClusterIdError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *Error_KvError) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error_KvError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.KvError != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.KvError.Size())) - n9, err := m.KvError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.KvError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *Error_RegionError) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error_RegionError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RegionError != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionError.Size())) - n10, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *CipherInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3830,28 +5227,38 @@ func (m *CipherInfo) Marshal() (dAtA []byte, err error) { } func (m *CipherInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CipherInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CipherType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CipherType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.CipherKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.CipherKey) + copy(dAtA[i:], m.CipherKey) i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherKey))) - i += copy(dAtA[i:], m.CipherKey) + i-- + dAtA[i] = 0x12 + } + if m.CipherType != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CipherType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *BackupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3859,158 +5266,179 @@ func (m *BackupRequest) Marshal() (dAtA []byte, err error) { } func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) - } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) - } - if m.StartVersion != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - } - if m.EndVersion != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RateLimit != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - if m.Concurrency != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) + if len(m.UniqueId) > 0 { + i -= len(m.UniqueId) + copy(dAtA[i:], m.UniqueId) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - if m.StorageBackend != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) - n11, err := m.StorageBackend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.Mode != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 } - if m.IsRawKv { - dAtA[i] = 0x50 - i++ - if m.IsRawKv { + if m.ReplicaRead { + i-- + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Cf) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if m.CompressionType != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - } - if m.CompressionLevel != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 } - if m.CipherInfo != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CipherInfo.Size())) - n12, err := m.CipherInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.SubRanges) > 0 { + for iNdEx := len(m.SubRanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - i += n12 } if m.DstApiVersion != 0 { - dAtA[i] = 0x78 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) + i-- + dAtA[i] = 0x78 } - if len(m.SubRanges) > 0 { - for _, msg := range m.SubRanges { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.CipherInfo != nil { + { + size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x72 } - if m.ReplicaRead { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - if m.ReplicaRead { + if m.CompressionLevel != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) + i-- + dAtA[i] = 0x68 + } + if m.CompressionType != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + i-- + dAtA[i] = 0x60 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x5a + } + if m.IsRawKv { + i-- + if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x50 } - if m.Mode != 0 { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) + if m.StorageBackend != nil { + { + size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a } - if len(m.UniqueId) > 0 { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i += copy(dAtA[i:], m.UniqueId) + if m.Concurrency != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) + i-- + dAtA[i] = 0x40 } - if m.Context != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Context.Size())) - n13, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 + if m.RateLimit != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) + i-- + dAtA[i] = 0x38 + } + if m.EndVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + i-- + dAtA[i] = 0x28 + } + if m.StartVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x20 + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *StreamBackupTaskInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4018,63 +5446,69 @@ func (m *StreamBackupTaskInfo) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupTaskInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StreamBackupTaskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int - _ = l - if m.Storage != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Storage.Size())) - n14, err := m.Storage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CompressionType != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + i-- + dAtA[i] = 0x30 + } + if len(m.TableFilter) > 0 { + for iNdEx := len(m.TableFilter) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TableFilter[iNdEx]) + copy(dAtA[i:], m.TableFilter[iNdEx]) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.TableFilter[iNdEx]))) + i-- + dAtA[i] = 0x2a } - i += n14 } - if m.StartTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x22 } if m.EndTs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) + i-- + dAtA[i] = 0x18 } - if len(m.Name) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.StartTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x10 } - if len(m.TableFilter) > 0 { - for _, s := range m.TableFilter { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ + if m.Storage != nil { + { + size, err := m.Storage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.CompressionType != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4082,122 +5516,182 @@ func (m *StorageBackend) Marshal() (dAtA []byte, err error) { } func (m *StorageBackend) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Backend != nil { - nn15, err := m.Backend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Backend.Size() + i -= size + if _, err := m.Backend.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn15 } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_Noop) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_Noop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Noop != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Noop.Size())) - n16, err := m.Noop.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Noop.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_Local) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Local != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Local.Size())) - n17, err := m.Local.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Local.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_S3) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_S3) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.S3 != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.S3.Size())) - n18, err := m.S3.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.S3.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_Gcs) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_Gcs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Gcs != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Gcs.Size())) - n19, err := m.Gcs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Gcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_CloudDynamic) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_CloudDynamic) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CloudDynamic != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CloudDynamic.Size())) - n20, err := m.CloudDynamic.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CloudDynamic.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_Hdfs) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_Hdfs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Hdfs != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Hdfs.Size())) - n21, err := m.Hdfs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Hdfs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0x32 } - return i, nil + return len(dAtA) - i, nil } func (m *StorageBackend_AzureBlobStorage) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StorageBackend_AzureBlobStorage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.AzureBlobStorage != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.AzureBlobStorage.Size())) - n22, err := m.AzureBlobStorage.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.AzureBlobStorage.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0x3a } - return i, nil + return len(dAtA) - i, nil } func (m *Noop) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4205,17 +5699,26 @@ func (m *Noop) Marshal() (dAtA []byte, err error) { } func (m *Noop) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Noop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Local) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4223,23 +5726,33 @@ func (m *Local) Marshal() (dAtA []byte, err error) { } func (m *Local) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Path) + copy(dAtA[i:], m.Path) i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *S3) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4247,131 +5760,155 @@ func (m *S3) Marshal() (dAtA []byte, err error) { } func (m *S3) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Endpoint) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) - } - if len(m.Region) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) - i += copy(dAtA[i:], m.Region) - } - if len(m.Bucket) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i += copy(dAtA[i:], m.Bucket) - } - if len(m.Prefix) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i += copy(dAtA[i:], m.Prefix) - } - if len(m.StorageClass) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i += copy(dAtA[i:], m.StorageClass) - } - if len(m.Sse) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sse))) - i += copy(dAtA[i:], m.Sse) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Acl) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Acl))) - i += copy(dAtA[i:], m.Acl) + if len(m.Profile) > 0 { + i -= len(m.Profile) + copy(dAtA[i:], m.Profile) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Profile))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - if len(m.AccessKey) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessKey))) - i += copy(dAtA[i:], m.AccessKey) + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - if len(m.SecretAccessKey) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SecretAccessKey))) - i += copy(dAtA[i:], m.SecretAccessKey) + if len(m.SessionToken) > 0 { + i -= len(m.SessionToken) + copy(dAtA[i:], m.SessionToken) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) + i-- + dAtA[i] = 0x7a } - if m.ForcePathStyle { - dAtA[i] = 0x50 - i++ - if m.ForcePathStyle { + if m.ObjectLockEnabled { + i-- + if m.ObjectLockEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x70 } - if len(m.SseKmsKeyId) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SseKmsKeyId))) - i += copy(dAtA[i:], m.SseKmsKeyId) + if len(m.ExternalId) > 0 { + i -= len(m.ExternalId) + copy(dAtA[i:], m.ExternalId) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) + i-- + dAtA[i] = 0x6a } if len(m.RoleArn) > 0 { - dAtA[i] = 0x62 - i++ + i -= len(m.RoleArn) + copy(dAtA[i:], m.RoleArn) i = encodeVarintBrpb(dAtA, i, uint64(len(m.RoleArn))) - i += copy(dAtA[i:], m.RoleArn) + i-- + dAtA[i] = 0x62 } - if len(m.ExternalId) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) - i += copy(dAtA[i:], m.ExternalId) + if len(m.SseKmsKeyId) > 0 { + i -= len(m.SseKmsKeyId) + copy(dAtA[i:], m.SseKmsKeyId) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SseKmsKeyId))) + i-- + dAtA[i] = 0x5a } - if m.ObjectLockEnabled { - dAtA[i] = 0x70 - i++ - if m.ObjectLockEnabled { + if m.ForcePathStyle { + i-- + if m.ForcePathStyle { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x50 } - if len(m.SessionToken) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) - i += copy(dAtA[i:], m.SessionToken) + if len(m.SecretAccessKey) > 0 { + i -= len(m.SecretAccessKey) + copy(dAtA[i:], m.SecretAccessKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SecretAccessKey))) + i-- + dAtA[i] = 0x4a } - if len(m.Provider) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Provider))) - i += copy(dAtA[i:], m.Provider) + if len(m.AccessKey) > 0 { + i -= len(m.AccessKey) + copy(dAtA[i:], m.AccessKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessKey))) + i-- + dAtA[i] = 0x42 } - if len(m.Profile) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Profile))) - i += copy(dAtA[i:], m.Profile) + if len(m.Acl) > 0 { + i -= len(m.Acl) + copy(dAtA[i:], m.Acl) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Acl))) + i-- + dAtA[i] = 0x3a + } + if len(m.Sse) > 0 { + i -= len(m.Sse) + copy(dAtA[i:], m.Sse) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sse))) + i-- + dAtA[i] = 0x32 + } + if len(m.StorageClass) > 0 { + i -= len(m.StorageClass) + copy(dAtA[i:], m.StorageClass) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i-- + dAtA[i] = 0x2a + } + if len(m.Prefix) > 0 { + i -= len(m.Prefix) + copy(dAtA[i:], m.Prefix) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i-- + dAtA[i] = 0x22 + } + if len(m.Bucket) > 0 { + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i-- + dAtA[i] = 0x1a + } + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x12 + } + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GCS) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4379,53 +5916,68 @@ func (m *GCS) Marshal() (dAtA []byte, err error) { } func (m *GCS) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCS) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Endpoint) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Bucket) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i += copy(dAtA[i:], m.Bucket) + if len(m.CredentialsBlob) > 0 { + i -= len(m.CredentialsBlob) + copy(dAtA[i:], m.CredentialsBlob) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CredentialsBlob))) + i-- + dAtA[i] = 0x32 } - if len(m.Prefix) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i += copy(dAtA[i:], m.Prefix) + if len(m.PredefinedAcl) > 0 { + i -= len(m.PredefinedAcl) + copy(dAtA[i:], m.PredefinedAcl) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.PredefinedAcl))) + i-- + dAtA[i] = 0x2a } if len(m.StorageClass) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.StorageClass) + copy(dAtA[i:], m.StorageClass) i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i += copy(dAtA[i:], m.StorageClass) + i-- + dAtA[i] = 0x22 } - if len(m.PredefinedAcl) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.PredefinedAcl))) - i += copy(dAtA[i:], m.PredefinedAcl) + if len(m.Prefix) > 0 { + i -= len(m.Prefix) + copy(dAtA[i:], m.Prefix) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i-- + dAtA[i] = 0x1a } - if len(m.CredentialsBlob) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.CredentialsBlob))) - i += copy(dAtA[i:], m.CredentialsBlob) + if len(m.Bucket) > 0 { + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i-- + dAtA[i] = 0x12 + } + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AzureCustomerKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4433,29 +5985,40 @@ func (m *AzureCustomerKey) Marshal() (dAtA []byte, err error) { } func (m *AzureCustomerKey) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AzureCustomerKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.EncryptionKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKey))) - i += copy(dAtA[i:], m.EncryptionKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.EncryptionKeySha256) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.EncryptionKeySha256) + copy(dAtA[i:], m.EncryptionKeySha256) i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKeySha256))) - i += copy(dAtA[i:], m.EncryptionKeySha256) + i-- + dAtA[i] = 0x12 + } + if len(m.EncryptionKey) > 0 { + i -= len(m.EncryptionKey) + copy(dAtA[i:], m.EncryptionKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AzureBlobStorage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4463,75 +6026,94 @@ func (m *AzureBlobStorage) Marshal() (dAtA []byte, err error) { } func (m *AzureBlobStorage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AzureBlobStorage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Endpoint) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Bucket) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i += copy(dAtA[i:], m.Bucket) + if m.EncryptionKey != nil { + { + size, err := m.EncryptionKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 } - if len(m.Prefix) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i += copy(dAtA[i:], m.Prefix) + if len(m.EncryptionScope) > 0 { + i -= len(m.EncryptionScope) + copy(dAtA[i:], m.EncryptionScope) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionScope))) + i-- + dAtA[i] = 0x4a } - if len(m.StorageClass) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i += copy(dAtA[i:], m.StorageClass) + if len(m.AccessSig) > 0 { + i -= len(m.AccessSig) + copy(dAtA[i:], m.AccessSig) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessSig))) + i-- + dAtA[i] = 0x42 + } + if len(m.SharedKey) > 0 { + i -= len(m.SharedKey) + copy(dAtA[i:], m.SharedKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SharedKey))) + i-- + dAtA[i] = 0x32 } if len(m.AccountName) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.AccountName) + copy(dAtA[i:], m.AccountName) i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccountName))) - i += copy(dAtA[i:], m.AccountName) + i-- + dAtA[i] = 0x2a } - if len(m.SharedKey) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.SharedKey))) - i += copy(dAtA[i:], m.SharedKey) + if len(m.StorageClass) > 0 { + i -= len(m.StorageClass) + copy(dAtA[i:], m.StorageClass) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i-- + dAtA[i] = 0x22 } - if len(m.AccessSig) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.AccessSig))) - i += copy(dAtA[i:], m.AccessSig) + if len(m.Prefix) > 0 { + i -= len(m.Prefix) + copy(dAtA[i:], m.Prefix) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i-- + dAtA[i] = 0x1a } - if len(m.EncryptionScope) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EncryptionScope))) - i += copy(dAtA[i:], m.EncryptionScope) + if len(m.Bucket) > 0 { + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i-- + dAtA[i] = 0x12 } - if m.EncryptionKey != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.EncryptionKey.Size())) - n23, err := m.EncryptionKey.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Bucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4539,47 +6121,61 @@ func (m *Bucket) Marshal() (dAtA []byte, err error) { } func (m *Bucket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Endpoint) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Region) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) - i += copy(dAtA[i:], m.Region) + if len(m.StorageClass) > 0 { + i -= len(m.StorageClass) + copy(dAtA[i:], m.StorageClass) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) + i-- + dAtA[i] = 0x32 + } + if len(m.Prefix) > 0 { + i -= len(m.Prefix) + copy(dAtA[i:], m.Prefix) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i-- + dAtA[i] = 0x2a } if len(m.Bucket) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) - i += copy(dAtA[i:], m.Bucket) + i-- + dAtA[i] = 0x22 } - if len(m.Prefix) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i += copy(dAtA[i:], m.Prefix) + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x1a } - if len(m.StorageClass) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StorageClass))) - i += copy(dAtA[i:], m.StorageClass) + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CloudDynamic) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4587,50 +6183,64 @@ func (m *CloudDynamic) Marshal() (dAtA []byte, err error) { } func (m *CloudDynamic) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CloudDynamic) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Bucket != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Bucket.Size())) - n24, err := m.Bucket.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Attrs) > 0 { + for k := range m.Attrs { + v := m.Attrs[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintBrpb(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintBrpb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintBrpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a } - i += n24 } if len(m.ProviderName) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ProviderName) + copy(dAtA[i:], m.ProviderName) i = encodeVarintBrpb(dAtA, i, uint64(len(m.ProviderName))) - i += copy(dAtA[i:], m.ProviderName) + i-- + dAtA[i] = 0x12 } - if len(m.Attrs) > 0 { - for k, _ := range m.Attrs { - dAtA[i] = 0x1a - i++ - v := m.Attrs[k] - mapSize := 1 + len(k) + sovBrpb(uint64(len(k))) + 1 + len(v) + sovBrpb(uint64(len(v))) - i = encodeVarintBrpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) + if m.Bucket != nil { + { + size, err := m.Bucket.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *HDFS) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4638,23 +6248,33 @@ func (m *HDFS) Marshal() (dAtA []byte, err error) { } func (m *HDFS) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HDFS) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Remote) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Remote) + copy(dAtA[i:], m.Remote) i = encodeVarintBrpb(dAtA, i, uint64(len(m.Remote))) - i += copy(dAtA[i:], m.Remote) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BackupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4662,56 +6282,71 @@ func (m *BackupResponse) Marshal() (dAtA []byte, err error) { } func (m *BackupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BackupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) - n25, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.ApiVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x28 + } + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x1a } - if len(m.Files) > 0 { - for _, msg := range m.Files { - dAtA[i] = 0x22 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.ApiVersion != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) - } - return i, nil + return len(dAtA) - i, nil } func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4719,23 +6354,33 @@ func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.UniqueId) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.UniqueId) + copy(dAtA[i:], m.UniqueId) i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i += copy(dAtA[i:], m.UniqueId) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4743,37 +6388,48 @@ func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) - n26, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Success { - dAtA[i] = 0x10 - i++ + i-- if m.Success { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrepareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4781,27 +6437,36 @@ func (m *PrepareRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.SaveToStorage { - dAtA[i] = 0x8 - i++ + i-- if m.SaveToStorage { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PrepareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4809,43 +6474,55 @@ func (m *PrepareResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) - n27, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.UniqueId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i += copy(dAtA[i:], m.UniqueId) + if m.CollectFileSize != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) + i-- + dAtA[i] = 0x20 } if m.CollectFileCount != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileCount)) + i-- + dAtA[i] = 0x18 } - if m.CollectFileSize != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) + if len(m.UniqueId) > 0 { + i -= len(m.UniqueId) + copy(dAtA[i:], m.UniqueId) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckAdminRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4853,65 +6530,87 @@ func (m *CheckAdminRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckAdminRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CheckAdminResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *CheckAdminResponse) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *CheckAdminResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) - n28, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Region.Size())) - n29, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.HasPendingAdmin { - dAtA[i] = 0x18 - i++ + i-- if m.HasPendingAdmin { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExternalStorageRestoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4919,44 +6618,57 @@ func (m *ExternalStorageRestoreRequest) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageRestoreRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExternalStorageRestoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StorageBackend != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) - n30, err := m.StorageBackend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.ObjectName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) - i += copy(dAtA[i:], m.ObjectName) + if m.ContentLength != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) + i-- + dAtA[i] = 0x20 } if len(m.RestoreName) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.RestoreName) + copy(dAtA[i:], m.RestoreName) i = encodeVarintBrpb(dAtA, i, uint64(len(m.RestoreName))) - i += copy(dAtA[i:], m.RestoreName) + i-- + dAtA[i] = 0x1a } - if m.ContentLength != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) + if len(m.ObjectName) > 0 { + i -= len(m.ObjectName) + copy(dAtA[i:], m.ObjectName) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) + i-- + dAtA[i] = 0x12 + } + if m.StorageBackend != nil { + { + size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExternalStorageRestoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4964,17 +6676,26 @@ func (m *ExternalStorageRestoreResponse) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageRestoreResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExternalStorageRestoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ExternalStorageSaveRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4982,38 +6703,50 @@ func (m *ExternalStorageSaveRequest) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageSaveRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExternalStorageSaveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StorageBackend != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) - n31, err := m.StorageBackend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ContentLength != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) + i-- + dAtA[i] = 0x18 } if len(m.ObjectName) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ObjectName) + copy(dAtA[i:], m.ObjectName) i = encodeVarintBrpb(dAtA, i, uint64(len(m.ObjectName))) - i += copy(dAtA[i:], m.ObjectName) + i-- + dAtA[i] = 0x12 } - if m.ContentLength != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) + if m.StorageBackend != nil { + { + size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExternalStorageSaveResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5021,17 +6754,26 @@ func (m *ExternalStorageSaveResponse) Marshal() (dAtA []byte, err error) { } func (m *ExternalStorageSaveResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExternalStorageSaveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Metadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5039,66 +6781,79 @@ func (m *Metadata) Marshal() (dAtA []byte, err error) { } func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Files) > 0 { - for _, msg := range m.Files { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MetaVersion != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MetaVersion)) + i-- + dAtA[i] = 0x38 + } + if len(m.FileGroups) > 0 { + for iNdEx := len(m.FileGroups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FileGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) - } - if m.ResolvedTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) + if m.MinTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + i-- + dAtA[i] = 0x28 } if m.MaxTs != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x20 } - if m.MinTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + if m.ResolvedTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x18 } - if len(m.FileGroups) > 0 { - for _, msg := range m.FileGroups { - dAtA[i] = 0x32 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.StoreId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - if m.MetaVersion != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MetaVersion)) - } - return i, nil + return len(dAtA) - i, nil } func (m *DataFileGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5106,55 +6861,67 @@ func (m *DataFileGroup) Marshal() (dAtA []byte, err error) { } func (m *DataFileGroup) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataFileGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.DataFilesInfo) > 0 { - for _, msg := range m.DataFilesInfo { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.Length != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x30 } - if m.MinTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + if m.MinResolvedTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MinResolvedTs)) + i-- + dAtA[i] = 0x28 } if m.MaxTs != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x20 } - if m.MinResolvedTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MinResolvedTs)) + if m.MinTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + i-- + dAtA[i] = 0x18 } - if m.Length != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) + if len(m.DataFilesInfo) > 0 { + for iNdEx := len(m.DataFilesInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DataFilesInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBrpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DataFileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5162,123 +6929,137 @@ func (m *DataFileInfo) Marshal() (dAtA []byte, err error) { } func (m *DataFileInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataFileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Sha256) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) - i += copy(dAtA[i:], m.Sha256) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Path) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + if m.CompressionType != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 } - if m.NumberOfEntries != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) + if m.RangeLength != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 } - if m.MinTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + if m.RangeOffset != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } - if m.MaxTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) + if m.MinBeginTsInDefaultCf != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) + i-- + dAtA[i] = 0x78 } - if m.ResolvedTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) + if m.Length != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x70 } - if m.RegionId != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) + if m.TableId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x68 } - if len(m.StartKey) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.IsMeta { + i-- + if m.IsMeta { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.Type != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x58 } if len(m.Cf) > 0 { - dAtA[i] = 0x52 - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0x52 } - if m.Type != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x4a + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x42 } - if m.IsMeta { - dAtA[i] = 0x60 - i++ - if m.IsMeta { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.RegionId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x38 } - if m.TableId != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) + if m.ResolvedTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x30 } - if m.Length != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) + if m.MaxTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x28 } - if m.MinBeginTsInDefaultCf != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) + if m.MinTs != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) + i-- + dAtA[i] = 0x20 } - if m.RangeOffset != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) + if m.NumberOfEntries != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) + i-- + dAtA[i] = 0x18 } - if m.RangeLength != 0 { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 } - if m.CompressionType != 0 { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + if len(m.Sha256) > 0 { + i -= len(m.Sha256) + copy(dAtA[i:], m.Sha256) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StreamBackupError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5286,45 +7067,61 @@ func (m *StreamBackupError) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StreamBackupError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.HappenAt != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.HappenAt)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.ErrorCode) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorCode))) - i += copy(dAtA[i:], m.ErrorCode) + if m.StoreId != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x20 } if len(m.ErrorMessage) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.ErrorMessage) + copy(dAtA[i:], m.ErrorMessage) i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorMessage))) - i += copy(dAtA[i:], m.ErrorMessage) + i-- + dAtA[i] = 0x1a } - if m.StoreId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) + if len(m.ErrorCode) > 0 { + i -= len(m.ErrorCode) + copy(dAtA[i:], m.ErrorCode) + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ErrorCode))) + i-- + dAtA[i] = 0x12 + } + if m.HappenAt != 0 { + i = encodeVarintBrpb(dAtA, i, uint64(m.HappenAt)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintBrpb(dAtA []byte, offset int, v uint64) int { + offset -= sovBrpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *BackupMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -5423,10 +7220,16 @@ func (m *BackupMeta) Size() (n int) { n += 2 + l + sovBrpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BackupRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -5443,10 +7246,16 @@ func (m *BackupRange) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *File) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5491,10 +7300,16 @@ func (m *File) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MetaFile) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.MetaFiles) > 0 { @@ -5533,20 +7348,32 @@ func (m *MetaFile) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PlacementPolicy) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Info) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Schema) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Db) @@ -5573,10 +7400,16 @@ func (m *Schema) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IDMap) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.UpstreamId != 0 { @@ -5585,10 +7418,16 @@ func (m *IDMap) Size() (n int) { if m.DownstreamId != 0 { n += 1 + sovBrpb(uint64(m.DownstreamId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PitrTableMap) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5605,10 +7444,16 @@ func (m *PitrTableMap) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PitrDBMap) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -5625,10 +7470,16 @@ func (m *PitrDBMap) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -5643,10 +7494,16 @@ func (m *RawRange) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ClusterIDError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Current != 0 { @@ -5655,10 +7512,16 @@ func (m *ClusterIDError) Size() (n int) { if m.Request != 0 { n += 1 + sovBrpb(uint64(m.Request)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Msg) @@ -5668,10 +7531,16 @@ func (m *Error) Size() (n int) { if m.Detail != nil { n += m.Detail.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error_ClusterIdError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterIdError != nil { @@ -5681,6 +7550,9 @@ func (m *Error_ClusterIdError) Size() (n int) { return n } func (m *Error_KvError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.KvError != nil { @@ -5690,6 +7562,9 @@ func (m *Error_KvError) Size() (n int) { return n } func (m *Error_RegionError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -5699,6 +7574,9 @@ func (m *Error_RegionError) Size() (n int) { return n } func (m *CipherInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CipherType != 0 { @@ -5708,10 +7586,16 @@ func (m *CipherInfo) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BackupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -5781,10 +7665,16 @@ func (m *BackupRequest) Size() (n int) { l = m.Context.Size() n += 2 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StreamBackupTaskInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Storage != nil { @@ -5810,19 +7700,31 @@ func (m *StreamBackupTaskInfo) Size() (n int) { if m.CompressionType != 0 { n += 1 + sovBrpb(uint64(m.CompressionType)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StorageBackend) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Backend != nil { n += m.Backend.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StorageBackend_Noop) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Noop != nil { @@ -5832,6 +7734,9 @@ func (m *StorageBackend_Noop) Size() (n int) { return n } func (m *StorageBackend_Local) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Local != nil { @@ -5841,6 +7746,9 @@ func (m *StorageBackend_Local) Size() (n int) { return n } func (m *StorageBackend_S3) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.S3 != nil { @@ -5850,6 +7758,9 @@ func (m *StorageBackend_S3) Size() (n int) { return n } func (m *StorageBackend_Gcs) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Gcs != nil { @@ -5859,6 +7770,9 @@ func (m *StorageBackend_Gcs) Size() (n int) { return n } func (m *StorageBackend_CloudDynamic) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CloudDynamic != nil { @@ -5868,6 +7782,9 @@ func (m *StorageBackend_CloudDynamic) Size() (n int) { return n } func (m *StorageBackend_Hdfs) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Hdfs != nil { @@ -5877,6 +7794,9 @@ func (m *StorageBackend_Hdfs) Size() (n int) { return n } func (m *StorageBackend_AzureBlobStorage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AzureBlobStorage != nil { @@ -5886,22 +7806,37 @@ func (m *StorageBackend_AzureBlobStorage) Size() (n int) { return n } func (m *Noop) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Local) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *S3) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Endpoint) @@ -5970,10 +7905,16 @@ func (m *S3) Size() (n int) { if l > 0 { n += 2 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GCS) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Endpoint) @@ -6000,10 +7941,16 @@ func (m *GCS) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AzureCustomerKey) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.EncryptionKey) @@ -6014,10 +7961,16 @@ func (m *AzureCustomerKey) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AzureBlobStorage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Endpoint) @@ -6056,10 +8009,16 @@ func (m *AzureBlobStorage) Size() (n int) { l = m.EncryptionKey.Size() n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Bucket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Endpoint) @@ -6082,10 +8041,16 @@ func (m *Bucket) Size() (n int) { if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CloudDynamic) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Bucket != nil { @@ -6104,20 +8069,32 @@ func (m *CloudDynamic) Size() (n int) { n += mapEntrySize + 1 + sovBrpb(uint64(mapEntrySize)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *HDFS) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Remote) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BackupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -6141,20 +8118,32 @@ func (m *BackupResponse) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovBrpb(uint64(m.ApiVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.UniqueId) if l > 0 { n += 1 + l + sovBrpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -6164,19 +8153,31 @@ func (m *CleanupResponse) Size() (n int) { if m.Success { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SaveToStorage { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -6193,16 +8194,28 @@ func (m *PrepareResponse) Size() (n int) { if m.CollectFileSize != 0 { n += 1 + sovBrpb(uint64(m.CollectFileSize)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckAdminRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckAdminResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -6216,10 +8229,16 @@ func (m *CheckAdminResponse) Size() (n int) { if m.HasPendingAdmin { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExternalStorageRestoreRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StorageBackend != nil { @@ -6237,16 +8256,28 @@ func (m *ExternalStorageRestoreRequest) Size() (n int) { if m.ContentLength != 0 { n += 1 + sovBrpb(uint64(m.ContentLength)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExternalStorageRestoreResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExternalStorageSaveRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StorageBackend != nil { @@ -6260,16 +8291,28 @@ func (m *ExternalStorageSaveRequest) Size() (n int) { if m.ContentLength != 0 { n += 1 + sovBrpb(uint64(m.ContentLength)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExternalStorageSaveResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Metadata) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Files) > 0 { @@ -6299,10 +8342,16 @@ func (m *Metadata) Size() (n int) { if m.MetaVersion != 0 { n += 1 + sovBrpb(uint64(m.MetaVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DataFileGroup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) @@ -6327,10 +8376,16 @@ func (m *DataFileGroup) Size() (n int) { if m.Length != 0 { n += 1 + sovBrpb(uint64(m.Length)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DataFileInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Sha256) @@ -6392,10 +8447,16 @@ func (m *DataFileInfo) Size() (n int) { if m.CompressionType != 0 { n += 2 + sovBrpb(uint64(m.CompressionType)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StreamBackupError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.HappenAt != 0 { @@ -6412,18 +8473,14 @@ func (m *StreamBackupError) Size() (n int) { if m.StoreId != 0 { n += 1 + sovBrpb(uint64(m.StoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovBrpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozBrpb(x uint64) (n int) { return sovBrpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -6443,7 +8500,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6471,7 +8528,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6490,7 +8547,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6500,6 +8557,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6519,7 +8579,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6528,6 +8588,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6550,7 +8613,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6569,7 +8632,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= (uint64(b) & 0x7F) << shift + m.EndVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6588,7 +8651,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6597,6 +8660,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6619,7 +8685,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6639,7 +8705,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6648,6 +8714,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6670,7 +8739,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6679,6 +8748,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6701,7 +8773,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6711,6 +8783,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6730,7 +8805,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (int32(b) & 0x7F) << shift + m.Version |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -6749,7 +8824,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6758,6 +8833,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6782,7 +8860,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6791,6 +8869,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6815,7 +8896,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6824,6 +8905,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6848,7 +8932,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6857,6 +8941,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6881,7 +8968,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6891,6 +8978,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6910,7 +9000,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -6929,7 +9019,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6938,6 +9028,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6960,7 +9053,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6970,6 +9063,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6989,7 +9085,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7009,7 +9105,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7018,6 +9114,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7040,7 +9139,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (BackupMode(b) & 0x7F) << shift + m.Mode |= BackupMode(b&0x7F) << shift if b < 0x80 { break } @@ -7059,7 +9158,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7068,6 +9167,9 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7082,12 +9184,13 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7112,7 +9215,7 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7140,7 +9243,7 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7149,6 +9252,9 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7171,7 +9277,7 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7180,6 +9286,9 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7202,7 +9311,7 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7211,6 +9320,9 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7225,12 +9337,13 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7255,7 +9368,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7283,7 +9396,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7293,6 +9406,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7312,7 +9428,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7321,6 +9437,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7343,7 +9462,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7352,6 +9471,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7374,7 +9496,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7383,6 +9505,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7405,7 +9530,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7424,7 +9549,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= (uint64(b) & 0x7F) << shift + m.EndVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7443,7 +9568,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc64Xor |= (uint64(b) & 0x7F) << shift + m.Crc64Xor |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7462,7 +9587,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= (uint64(b) & 0x7F) << shift + m.TotalKvs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7481,7 +9606,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (uint64(b) & 0x7F) << shift + m.TotalBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7500,7 +9625,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7510,6 +9635,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7529,7 +9657,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= (uint64(b) & 0x7F) << shift + m.Size_ |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7548,7 +9676,7 @@ func (m *File) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7557,6 +9685,9 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7571,12 +9702,13 @@ func (m *File) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7601,7 +9733,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7629,7 +9761,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7638,6 +9770,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7660,7 +9795,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7669,6 +9804,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7691,7 +9829,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7700,6 +9838,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7722,7 +9863,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7731,6 +9872,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7753,7 +9897,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7762,6 +9906,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7782,7 +9929,7 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7791,6 +9938,9 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7805,12 +9955,13 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7835,7 +9986,7 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7863,7 +10014,7 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7872,6 +10023,9 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7886,12 +10040,13 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7916,7 +10071,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7944,7 +10099,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7953,6 +10108,9 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7975,7 +10133,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7984,6 +10142,9 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8006,7 +10167,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc64Xor |= (uint64(b) & 0x7F) << shift + m.Crc64Xor |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8025,7 +10186,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= (uint64(b) & 0x7F) << shift + m.TotalKvs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8044,7 +10205,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (uint64(b) & 0x7F) << shift + m.TotalBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8063,7 +10224,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TiflashReplicas |= (uint32(b) & 0x7F) << shift + m.TiflashReplicas |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -8082,7 +10243,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8091,6 +10252,9 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8105,12 +10269,13 @@ func (m *Schema) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8135,7 +10300,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8163,7 +10328,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UpstreamId |= (int64(b) & 0x7F) << shift + m.UpstreamId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8182,7 +10347,7 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DownstreamId |= (int64(b) & 0x7F) << shift + m.DownstreamId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8193,12 +10358,13 @@ func (m *IDMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8223,7 +10389,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8251,7 +10417,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8261,6 +10427,9 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8280,7 +10449,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8289,6 +10458,9 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8313,7 +10485,7 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8322,6 +10494,9 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8336,12 +10511,13 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8366,7 +10542,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8394,7 +10570,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8404,6 +10580,9 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8423,7 +10602,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8432,6 +10611,9 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8456,7 +10638,7 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8465,6 +10647,9 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8479,12 +10664,13 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8509,7 +10695,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8537,7 +10723,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8546,6 +10732,9 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8568,7 +10757,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8577,6 +10766,9 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8599,7 +10791,7 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8609,6 +10801,9 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8620,12 +10815,13 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8650,7 +10846,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8678,7 +10874,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Current |= (uint64(b) & 0x7F) << shift + m.Current |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8697,7 +10893,7 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Request |= (uint64(b) & 0x7F) << shift + m.Request |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8708,12 +10904,13 @@ func (m *ClusterIDError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8738,7 +10935,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8766,7 +10963,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8776,6 +10973,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8795,7 +10995,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8804,6 +11004,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8827,7 +11030,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8836,6 +11039,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8859,7 +11065,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8868,6 +11074,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8883,12 +11092,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8913,7 +11123,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8941,7 +11151,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CipherType |= (encryptionpb.EncryptionMethod(b) & 0x7F) << shift + m.CipherType |= encryptionpb.EncryptionMethod(b&0x7F) << shift if b < 0x80 { break } @@ -8960,7 +11170,7 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8969,6 +11179,9 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8983,12 +11196,13 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9013,7 +11227,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9041,7 +11255,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9060,7 +11274,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9069,6 +11283,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9091,7 +11308,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9100,6 +11317,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9122,7 +11342,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9141,7 +11361,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndVersion |= (uint64(b) & 0x7F) << shift + m.EndVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9160,7 +11380,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RateLimit |= (uint64(b) & 0x7F) << shift + m.RateLimit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9179,7 +11399,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Concurrency |= (uint32(b) & 0x7F) << shift + m.Concurrency |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -9198,7 +11418,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9207,6 +11427,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9231,7 +11454,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9251,7 +11474,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9261,6 +11484,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9280,7 +11506,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= (CompressionType(b) & 0x7F) << shift + m.CompressionType |= CompressionType(b&0x7F) << shift if b < 0x80 { break } @@ -9299,7 +11525,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionLevel |= (int32(b) & 0x7F) << shift + m.CompressionLevel |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -9318,7 +11544,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9327,6 +11553,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9351,7 +11580,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DstApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.DstApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -9370,7 +11599,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9379,6 +11608,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9401,7 +11633,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9421,7 +11653,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (BackupMode(b) & 0x7F) << shift + m.Mode |= BackupMode(b&0x7F) << shift if b < 0x80 { break } @@ -9440,7 +11672,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9450,6 +11682,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9469,7 +11704,7 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9478,6 +11713,9 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9494,12 +11732,13 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9524,7 +11763,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9552,7 +11791,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9561,6 +11800,9 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9585,7 +11827,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9604,7 +11846,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTs |= (uint64(b) & 0x7F) << shift + m.EndTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9623,7 +11865,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9633,6 +11875,9 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9652,7 +11897,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9662,6 +11907,9 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9681,7 +11929,7 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= (CompressionType(b) & 0x7F) << shift + m.CompressionType |= CompressionType(b&0x7F) << shift if b < 0x80 { break } @@ -9692,12 +11940,13 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9722,7 +11971,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9750,7 +11999,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9759,6 +12008,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9782,7 +12034,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9791,6 +12043,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9814,7 +12069,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9823,6 +12078,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9846,7 +12104,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9855,6 +12113,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9878,7 +12139,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9887,6 +12148,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9910,7 +12174,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9919,6 +12183,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9942,7 +12209,7 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9951,6 +12218,9 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9966,12 +12236,13 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9996,7 +12267,7 @@ func (m *Noop) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10016,12 +12287,13 @@ func (m *Noop) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10046,7 +12318,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10074,7 +12346,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10084,6 +12356,9 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10095,12 +12370,13 @@ func (m *Local) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10125,7 +12401,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10153,7 +12429,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10163,6 +12439,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10182,7 +12461,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10192,6 +12471,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10211,7 +12493,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10221,6 +12503,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10240,7 +12525,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10250,6 +12535,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10269,7 +12557,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10279,6 +12567,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10298,7 +12589,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10308,6 +12599,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10327,7 +12621,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10337,6 +12631,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10356,7 +12653,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10366,6 +12663,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10385,7 +12685,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10395,6 +12695,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10414,7 +12717,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10434,7 +12737,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10444,6 +12747,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10463,7 +12769,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10473,6 +12779,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10492,7 +12801,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10502,6 +12811,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10521,7 +12833,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10541,7 +12853,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10551,6 +12863,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10570,7 +12885,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10580,6 +12895,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10599,7 +12917,7 @@ func (m *S3) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10609,6 +12927,9 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10620,12 +12941,13 @@ func (m *S3) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10650,7 +12972,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10678,7 +13000,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10688,6 +13010,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10707,7 +13032,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10717,6 +13042,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10736,7 +13064,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10746,6 +13074,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10765,7 +13096,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10775,6 +13106,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10794,7 +13128,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10804,6 +13138,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10823,7 +13160,7 @@ func (m *GCS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10833,6 +13170,9 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10844,12 +13184,13 @@ func (m *GCS) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10874,7 +13215,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10902,7 +13243,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10912,6 +13253,9 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10931,7 +13275,7 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10941,6 +13285,9 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10952,12 +13299,13 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10982,7 +13330,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11010,7 +13358,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11020,6 +13368,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11039,7 +13390,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11049,6 +13400,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11068,7 +13422,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11078,6 +13432,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11097,7 +13454,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11107,6 +13464,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11126,7 +13486,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11136,6 +13496,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11155,7 +13518,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11165,6 +13528,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11184,7 +13550,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11194,6 +13560,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11213,7 +13582,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11223,6 +13592,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11242,7 +13614,7 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11251,6 +13623,9 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11267,12 +13642,13 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11297,7 +13673,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11325,7 +13701,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11335,6 +13711,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11354,7 +13733,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11364,6 +13743,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11383,7 +13765,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11393,6 +13775,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11412,7 +13797,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11422,6 +13807,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11441,7 +13829,7 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11451,6 +13839,9 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11462,12 +13853,13 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11492,7 +13884,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11520,7 +13912,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11529,6 +13921,9 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11553,7 +13948,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11563,6 +13958,9 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11582,7 +13980,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11591,6 +13989,9 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11611,7 +14012,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11628,7 +14029,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11638,6 +14039,9 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthBrpb + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -11654,7 +14058,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11664,6 +14068,9 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthBrpb + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -11675,7 +14082,7 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > postIndex { @@ -11692,12 +14099,13 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11722,7 +14130,7 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11750,7 +14158,7 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11760,6 +14168,9 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11771,12 +14182,13 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11801,7 +14213,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11829,7 +14241,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11838,6 +14250,9 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11862,7 +14277,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11871,6 +14286,9 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11893,7 +14311,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11902,6 +14320,9 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11924,7 +14345,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11933,6 +14354,9 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11955,7 +14379,7 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -11966,12 +14390,13 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11996,7 +14421,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12024,7 +14449,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12034,6 +14459,9 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12045,12 +14473,13 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12075,7 +14504,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12103,7 +14532,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12112,6 +14541,9 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12136,7 +14568,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12148,12 +14580,13 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12178,7 +14611,7 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12206,7 +14639,7 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12218,12 +14651,13 @@ func (m *PrepareRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12248,7 +14682,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12276,7 +14710,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12285,6 +14719,9 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12309,7 +14746,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12319,6 +14756,9 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12338,7 +14778,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CollectFileCount |= (uint64(b) & 0x7F) << shift + m.CollectFileCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12357,7 +14797,7 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CollectFileSize |= (uint64(b) & 0x7F) << shift + m.CollectFileSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12368,12 +14808,13 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12398,7 +14839,7 @@ func (m *CheckAdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12418,12 +14859,13 @@ func (m *CheckAdminRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12448,7 +14890,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12476,7 +14918,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12485,6 +14927,9 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12509,7 +14954,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12518,6 +14963,9 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12542,7 +14990,7 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12554,12 +15002,13 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12584,7 +15033,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12612,7 +15061,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12621,6 +15070,9 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12645,7 +15097,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12655,6 +15107,9 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12674,7 +15129,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12684,6 +15139,9 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12703,7 +15161,7 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContentLength |= (uint64(b) & 0x7F) << shift + m.ContentLength |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12714,12 +15172,13 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12744,7 +15203,7 @@ func (m *ExternalStorageRestoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12764,12 +15223,13 @@ func (m *ExternalStorageRestoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12794,7 +15254,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12822,7 +15282,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12831,6 +15291,9 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12855,7 +15318,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12865,6 +15328,9 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12884,7 +15350,7 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContentLength |= (uint64(b) & 0x7F) << shift + m.ContentLength |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12895,12 +15361,13 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12925,7 +15392,7 @@ func (m *ExternalStorageSaveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12945,12 +15412,13 @@ func (m *ExternalStorageSaveResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12975,7 +15443,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13003,7 +15471,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13012,6 +15480,9 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13034,7 +15505,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (int64(b) & 0x7F) << shift + m.StoreId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13053,7 +15524,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= (uint64(b) & 0x7F) << shift + m.ResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13072,7 +15543,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13091,7 +15562,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= (uint64(b) & 0x7F) << shift + m.MinTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13110,7 +15581,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13119,6 +15590,9 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13141,7 +15615,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MetaVersion |= (MetaVersion(b) & 0x7F) << shift + m.MetaVersion |= MetaVersion(b&0x7F) << shift if b < 0x80 { break } @@ -13152,12 +15626,13 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13182,7 +15657,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13210,7 +15685,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13220,6 +15695,9 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13239,7 +15717,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13248,6 +15726,9 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13270,7 +15751,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= (uint64(b) & 0x7F) << shift + m.MinTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13289,7 +15770,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13308,7 +15789,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinResolvedTs |= (uint64(b) & 0x7F) << shift + m.MinResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13327,7 +15808,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (uint64(b) & 0x7F) << shift + m.Length |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13338,12 +15819,13 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13368,7 +15850,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13396,7 +15878,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13405,6 +15887,9 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13427,7 +15912,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13437,6 +15922,9 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13456,7 +15944,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfEntries |= (int64(b) & 0x7F) << shift + m.NumberOfEntries |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13475,7 +15963,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinTs |= (uint64(b) & 0x7F) << shift + m.MinTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13494,7 +15982,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13513,7 +16001,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= (uint64(b) & 0x7F) << shift + m.ResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13532,7 +16020,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (int64(b) & 0x7F) << shift + m.RegionId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13551,7 +16039,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13560,6 +16048,9 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13582,7 +16073,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13591,6 +16082,9 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13613,7 +16107,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13623,6 +16117,9 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13642,7 +16139,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (FileType(b) & 0x7F) << shift + m.Type |= FileType(b&0x7F) << shift if b < 0x80 { break } @@ -13661,7 +16158,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13681,7 +16178,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13700,7 +16197,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (uint64(b) & 0x7F) << shift + m.Length |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13719,7 +16216,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinBeginTsInDefaultCf |= (uint64(b) & 0x7F) << shift + m.MinBeginTsInDefaultCf |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13738,7 +16235,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeOffset |= (uint64(b) & 0x7F) << shift + m.RangeOffset |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13757,7 +16254,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeLength |= (uint64(b) & 0x7F) << shift + m.RangeLength |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13776,7 +16273,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= (CompressionType(b) & 0x7F) << shift + m.CompressionType |= CompressionType(b&0x7F) << shift if b < 0x80 { break } @@ -13787,12 +16284,13 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13817,7 +16315,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13845,7 +16343,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HappenAt |= (uint64(b) & 0x7F) << shift + m.HappenAt |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13864,7 +16362,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13874,6 +16372,9 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13893,7 +16394,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13903,6 +16404,9 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBrpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13922,7 +16426,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13933,12 +16437,13 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBrpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -13951,6 +16456,7 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { func skipBrpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -13982,10 +16488,8 @@ func skipBrpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -14002,269 +16506,34 @@ func skipBrpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthBrpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBrpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipBrpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBrpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthBrpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthBrpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBrpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthBrpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBrpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBrpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("brpb.proto", fileDescriptorBrpb) } - -var fileDescriptorBrpb = []byte{ - // 3355 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0x5b, 0x6f, 0xe4, 0x46, - 0x76, 0x16, 0xbb, 0xd9, 0xb7, 0xd3, 0x57, 0xd5, 0x5c, 0xdc, 0xd6, 0x64, 0x66, 0x64, 0x7a, 0x67, - 0x32, 0x91, 0x77, 0xb5, 0x5e, 0xc9, 0x6b, 0x4c, 0xe2, 0x0d, 0x0c, 0x5d, 0xc6, 0x96, 0x76, 0x2e, - 0x56, 0x4a, 0xca, 0x06, 0xf1, 0x0b, 0xc1, 0x26, 0xab, 0x25, 0x46, 0x6c, 0x92, 0xcb, 0x62, 0xf7, - 0x48, 0xfe, 0x0f, 0x46, 0x6e, 0x08, 0x90, 0x3f, 0x10, 0x20, 0x2f, 0xf9, 0x0f, 0x79, 0x48, 0x80, - 0x5d, 0x24, 0x40, 0x16, 0xc8, 0x4b, 0x1e, 0x03, 0xe7, 0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0x30, 0x72, 0x22, 0x80, 0x3d, 0x15, 0xb2, 0xe2, 0x71, 0xc2, 0x3e, 0x87, 0xb6, 0x8e, - 0x68, 0xf9, 0x65, 0xaa, 0x74, 0xdc, 0xdb, 0x7a, 0xb0, 0xb9, 0x50, 0x81, 0x3e, 0x2b, 0x06, 0x2f, - 0x45, 0x7e, 0x96, 0x04, 0x1c, 0xd4, 0x94, 0x93, 0xcb, 0x54, 0x50, 0x89, 0xa9, 0x16, 0x98, 0xeb, - 0x43, 0x07, 0xc9, 0xe7, 0xe2, 0xd2, 0xf9, 0xb6, 0x0e, 0x5d, 0x1d, 0x22, 0x94, 0x38, 0xdf, 0x56, - 0x93, 0x2e, 0x68, 0xbe, 0x72, 0xbd, 0xe6, 0xab, 0x37, 0x27, 0x17, 0xfb, 0xed, 0xc9, 0xa5, 0xf6, - 0x46, 0x72, 0xb9, 0x8f, 0x01, 0x33, 0x17, 0x6e, 0x14, 0x4e, 0xc2, 0x5c, 0xa7, 0x97, 0x16, 0x22, - 0x2f, 0x10, 0x60, 0xeb, 0xd0, 0xf6, 0x93, 0x58, 0x19, 0x8c, 0x7f, 0x49, 0x19, 0xa6, 0xcb, 0xcb, - 0x10, 0xfb, 0x1c, 0xfa, 0x32, 0x4f, 0x32, 0xef, 0x54, 0xb8, 0xa8, 0x7d, 0x11, 0x07, 0x94, 0x68, - 0x4a, 0xd6, 0x70, 0xac, 0xc8, 0xbb, 0x8a, 0xca, 0x7b, 0x72, 0x61, 0xbc, 0x58, 0xd4, 0xc2, 0x62, - 0x51, 0xab, 0xac, 0xbb, 0x5d, 0x24, 0x28, 0xb4, 0xbd, 0x64, 0x92, 0x66, 0x42, 0xe2, 0xe1, 0x95, - 0xfe, 0x3a, 0xa4, 0xbf, 0xa2, 0x80, 0xda, 0x9b, 0xd3, 0x51, 0x59, 0xbc, 0xef, 0x2f, 0x02, 0xec, - 0x23, 0x58, 0x2d, 0xaf, 0x11, 0x89, 0x99, 0x88, 0xa8, 0x62, 0xad, 0xf1, 0xf2, 0xe2, 0x2f, 0x10, - 0x67, 0xdb, 0x85, 0xad, 0x50, 0x10, 0x57, 0x55, 0x6a, 0x51, 0xfd, 0xcc, 0x8d, 0xca, 0xd8, 0x07, - 0x19, 0xd8, 0x67, 0xd0, 0x0f, 0x64, 0xee, 0x96, 0x0b, 0xc3, 0xfe, 0xf5, 0x85, 0x61, 0x37, 0x90, - 0xf9, 0xce, 0xbc, 0x36, 0xfc, 0x18, 0x40, 0x4e, 0x47, 0x26, 0xf3, 0x0c, 0x74, 0x5d, 0x56, 0x72, - 0x0e, 0x9d, 0xc2, 0xe4, 0x74, 0xa4, 0x53, 0xd8, 0x07, 0xe8, 0x1c, 0x14, 0xa3, 0xdd, 0x4c, 0x78, - 0x01, 0xd5, 0xa9, 0x4d, 0x74, 0x05, 0xc2, 0xb8, 0xf0, 0x82, 0xa2, 0x7a, 0x63, 0x6f, 0xa9, 0xde, - 0xee, 0x41, 0x6b, 0x1a, 0x87, 0xbf, 0x9c, 0x0a, 0xb4, 0xd3, 0x5b, 0x24, 0xf6, 0xa6, 0x02, 0x0e, - 0x03, 0x2c, 0x17, 0xfd, 0x24, 0xce, 0xc5, 0x45, 0x4e, 0x15, 0x27, 0x26, 0x56, 0x73, 0xac, 0x3d, - 0x85, 0x73, 0xc3, 0xf0, 0x73, 0xbb, 0x59, 0x1f, 0x34, 0x74, 0x65, 0xf7, 0x77, 0x15, 0xb8, 0x7d, - 0x4c, 0xf1, 0x5d, 0xed, 0x77, 0xe2, 0xc9, 0x73, 0x92, 0xd3, 0xc7, 0xd0, 0xd0, 0xb6, 0x40, 0x3e, - 0x71, 0xbd, 0xc9, 0x18, 0x36, 0xf6, 0x3e, 0x28, 0xc7, 0x70, 0x73, 0x69, 0x42, 0x16, 0x8d, 0x4f, - 0x24, 0xbb, 0x03, 0xe8, 0x18, 0x48, 0x50, 0x09, 0xb2, 0x26, 0xe2, 0xe0, 0x44, 0x16, 0x91, 0xdc, - 0x2e, 0x45, 0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8a59 100644 --- a/pkg/cdcpb/cdcpb.pb.go +++ b/pkg/cdcpb/cdcpb.pb.go @@ -1,48 +1,24 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cdcpb.proto -/* -Package cdcpb is a generated protocol buffer package. - -It is generated from these files: - - cdcpb.proto - -It has these top-level messages: - - Header - DuplicateRequest - Compatibility - ClusterIDMismatch - Error - TxnInfo - TxnStatus - Event - ChangeDataEvent - ResolvedTs - ChangeDataRequest -*/ package cdcpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" - - metapb "github.com/pingcap/kvproto/pkg/metapb" - errorpb "github.com/pingcap/kvproto/pkg/errorpb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - + metapb "github.com/pingcap/kvproto/pkg/metapb" + raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -54,7 +30,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Event_LogType int32 @@ -75,6 +51,7 @@ var Event_LogType_name = map[int32]string{ 4: "COMMITTED", 5: "INITIALIZED", } + var Event_LogType_value = map[string]int32{ "UNKNOWN": 0, "PREWRITE": 1, @@ -87,7 +64,10 @@ var Event_LogType_value = map[string]int32{ func (x Event_LogType) String() string { return proto.EnumName(Event_LogType_name, int32(x)) } -func (Event_LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0} } + +func (Event_LogType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 0} +} type Event_Row_OpType int32 @@ -102,6 +82,7 @@ var Event_Row_OpType_name = map[int32]string{ 1: "PUT", 2: "DELETE", } + var Event_Row_OpType_value = map[string]int32{ "UNKNOWN": 0, "PUT": 1, @@ -111,7 +92,10 @@ var Event_Row_OpType_value = map[string]int32{ func (x Event_Row_OpType) String() string { return proto.EnumName(Event_Row_OpType_name, int32(x)) } -func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0, 0} } + +func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 0, 0} +} // KvAPI specifies to capture data written by different KV API. // See more details in https://github.com/tikv/rfcs/blob/master/text/0069-api-v2.md. @@ -128,6 +112,7 @@ var ChangeDataRequest_KvAPI_name = map[int32]string{ 1: "RawKV", 2: "TxnKV", } + var ChangeDataRequest_KvAPI_value = map[string]int32{ "TiDB": 0, "RawKV": 1, @@ -137,19 +122,51 @@ var ChangeDataRequest_KvAPI_value = map[string]int32{ func (x ChangeDataRequest_KvAPI) String() string { return proto.EnumName(ChangeDataRequest_KvAPI_name, int32(x)) } + func (ChangeDataRequest_KvAPI) EnumDescriptor() ([]byte, []int) { - return fileDescriptorCdcpb, []int{10, 0} + return fileDescriptor_911209a1d38ef245, []int{10, 0} } type Header struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - TicdcVersion string `protobuf:"bytes,2,opt,name=ticdc_version,json=ticdcVersion,proto3" json:"ticdc_version,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + TicdcVersion string `protobuf:"bytes,2,opt,name=ticdc_version,json=ticdcVersion,proto3" json:"ticdc_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Header) Reset() { *m = Header{} } +func (m *Header) String() string { return proto.CompactTextString(m) } +func (*Header) ProtoMessage() {} +func (*Header) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{0} +} +func (m *Header) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Header.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 *Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Header.Merge(m, src) +} +func (m *Header) XXX_Size() int { + return m.Size() +} +func (m *Header) XXX_DiscardUnknown() { + xxx_messageInfo_Header.DiscardUnknown(m) } -func (m *Header) Reset() { *m = Header{} } -func (m *Header) String() string { return proto.CompactTextString(m) } -func (*Header) ProtoMessage() {} -func (*Header) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{0} } +var xxx_messageInfo_Header proto.InternalMessageInfo func (m *Header) GetClusterId() uint64 { if m != nil { @@ -166,13 +183,44 @@ func (m *Header) GetTicdcVersion() string { } type DuplicateRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DuplicateRequest) Reset() { *m = DuplicateRequest{} } +func (m *DuplicateRequest) String() string { return proto.CompactTextString(m) } +func (*DuplicateRequest) ProtoMessage() {} +func (*DuplicateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{1} +} +func (m *DuplicateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DuplicateRequest.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 *DuplicateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateRequest.Merge(m, src) +} +func (m *DuplicateRequest) XXX_Size() int { + return m.Size() +} +func (m *DuplicateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DuplicateRequest.DiscardUnknown(m) } -func (m *DuplicateRequest) Reset() { *m = DuplicateRequest{} } -func (m *DuplicateRequest) String() string { return proto.CompactTextString(m) } -func (*DuplicateRequest) ProtoMessage() {} -func (*DuplicateRequest) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{1} } +var xxx_messageInfo_DuplicateRequest proto.InternalMessageInfo func (m *DuplicateRequest) GetRegionId() uint64 { if m != nil { @@ -182,13 +230,44 @@ func (m *DuplicateRequest) GetRegionId() uint64 { } type Compatibility struct { - RequiredVersion string `protobuf:"bytes,1,opt,name=required_version,json=requiredVersion,proto3" json:"required_version,omitempty"` + RequiredVersion string `protobuf:"bytes,1,opt,name=required_version,json=requiredVersion,proto3" json:"required_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Compatibility) Reset() { *m = Compatibility{} } +func (m *Compatibility) String() string { return proto.CompactTextString(m) } +func (*Compatibility) ProtoMessage() {} +func (*Compatibility) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{2} +} +func (m *Compatibility) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Compatibility) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Compatibility.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 *Compatibility) XXX_Merge(src proto.Message) { + xxx_messageInfo_Compatibility.Merge(m, src) +} +func (m *Compatibility) XXX_Size() int { + return m.Size() +} +func (m *Compatibility) XXX_DiscardUnknown() { + xxx_messageInfo_Compatibility.DiscardUnknown(m) } -func (m *Compatibility) Reset() { *m = Compatibility{} } -func (m *Compatibility) String() string { return proto.CompactTextString(m) } -func (*Compatibility) ProtoMessage() {} -func (*Compatibility) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{2} } +var xxx_messageInfo_Compatibility proto.InternalMessageInfo func (m *Compatibility) GetRequiredVersion() string { if m != nil { @@ -203,13 +282,44 @@ type ClusterIDMismatch struct { // The current tikv cluster ID. Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` // The cluster ID of the TiCDC request. - Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` + Request uint64 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterIDMismatch) Reset() { *m = ClusterIDMismatch{} } +func (m *ClusterIDMismatch) String() string { return proto.CompactTextString(m) } +func (*ClusterIDMismatch) ProtoMessage() {} +func (*ClusterIDMismatch) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{3} +} +func (m *ClusterIDMismatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClusterIDMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClusterIDMismatch.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 *ClusterIDMismatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterIDMismatch.Merge(m, src) +} +func (m *ClusterIDMismatch) XXX_Size() int { + return m.Size() +} +func (m *ClusterIDMismatch) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterIDMismatch.DiscardUnknown(m) } -func (m *ClusterIDMismatch) Reset() { *m = ClusterIDMismatch{} } -func (m *ClusterIDMismatch) String() string { return proto.CompactTextString(m) } -func (*ClusterIDMismatch) ProtoMessage() {} -func (*ClusterIDMismatch) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{3} } +var xxx_messageInfo_ClusterIDMismatch proto.InternalMessageInfo func (m *ClusterIDMismatch) GetCurrent() uint64 { if m != nil { @@ -226,18 +336,49 @@ func (m *ClusterIDMismatch) GetRequest() uint64 { } type Error struct { - NotLeader *errorpb.NotLeader `protobuf:"bytes,1,opt,name=not_leader,json=notLeader" json:"not_leader,omitempty"` - RegionNotFound *errorpb.RegionNotFound `protobuf:"bytes,2,opt,name=region_not_found,json=regionNotFound" json:"region_not_found,omitempty"` - EpochNotMatch *errorpb.EpochNotMatch `protobuf:"bytes,3,opt,name=epoch_not_match,json=epochNotMatch" json:"epoch_not_match,omitempty"` - DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest" json:"duplicate_request,omitempty"` - Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility" json:"compatibility,omitempty"` - ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch" json:"cluster_id_mismatch,omitempty"` + NotLeader *errorpb.NotLeader `protobuf:"bytes,1,opt,name=not_leader,json=notLeader,proto3" json:"not_leader,omitempty"` + RegionNotFound *errorpb.RegionNotFound `protobuf:"bytes,2,opt,name=region_not_found,json=regionNotFound,proto3" json:"region_not_found,omitempty"` + EpochNotMatch *errorpb.EpochNotMatch `protobuf:"bytes,3,opt,name=epoch_not_match,json=epochNotMatch,proto3" json:"epoch_not_match,omitempty"` + DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest,proto3" json:"duplicate_request,omitempty"` + Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility,proto3" json:"compatibility,omitempty"` + ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch,proto3" json:"cluster_id_mismatch,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{4} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{4} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetNotLeader() *errorpb.NotLeader { if m != nil { @@ -282,14 +423,45 @@ func (m *Error) GetClusterIdMismatch() *ClusterIDMismatch { } type TxnInfo struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Primary []byte `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Primary []byte `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnInfo) Reset() { *m = TxnInfo{} } +func (m *TxnInfo) String() string { return proto.CompactTextString(m) } +func (*TxnInfo) ProtoMessage() {} +func (*TxnInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{5} +} +func (m *TxnInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnInfo.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 *TxnInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnInfo.Merge(m, src) +} +func (m *TxnInfo) XXX_Size() int { + return m.Size() +} +func (m *TxnInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TxnInfo.DiscardUnknown(m) } -func (m *TxnInfo) Reset() { *m = TxnInfo{} } -func (m *TxnInfo) String() string { return proto.CompactTextString(m) } -func (*TxnInfo) ProtoMessage() {} -func (*TxnInfo) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{5} } +var xxx_messageInfo_TxnInfo proto.InternalMessageInfo func (m *TxnInfo) GetStartTs() uint64 { if m != nil { @@ -306,16 +478,47 @@ func (m *TxnInfo) GetPrimary() []byte { } type TxnStatus struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - MinCommitTs uint64 `protobuf:"varint,2,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - IsRolledBack bool `protobuf:"varint,4,opt,name=is_rolled_back,json=isRolledBack,proto3" json:"is_rolled_back,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + MinCommitTs uint64 `protobuf:"varint,2,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + IsRolledBack bool `protobuf:"varint,4,opt,name=is_rolled_back,json=isRolledBack,proto3" json:"is_rolled_back,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnStatus) Reset() { *m = TxnStatus{} } +func (m *TxnStatus) String() string { return proto.CompactTextString(m) } +func (*TxnStatus) ProtoMessage() {} +func (*TxnStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{6} +} +func (m *TxnStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnStatus.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 *TxnStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnStatus.Merge(m, src) +} +func (m *TxnStatus) XXX_Size() int { + return m.Size() +} +func (m *TxnStatus) XXX_DiscardUnknown() { + xxx_messageInfo_TxnStatus.DiscardUnknown(m) } -func (m *TxnStatus) Reset() { *m = TxnStatus{} } -func (m *TxnStatus) String() string { return proto.CompactTextString(m) } -func (*TxnStatus) ProtoMessage() {} -func (*TxnStatus) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{6} } +var xxx_messageInfo_TxnStatus proto.InternalMessageInfo func (m *TxnStatus) GetStartTs() uint64 { if m != nil { @@ -355,13 +558,44 @@ type Event struct { // *Event_Error // *Event_ResolvedTs // *Event_LongTxn_ - Event isEvent_Event `protobuf_oneof:"event"` + Event isEvent_Event `protobuf_oneof:"event"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7} +} +func (m *Event) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event.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 *Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event.Merge(m, src) +} +func (m *Event) XXX_Size() int { + return m.Size() +} +func (m *Event) XXX_DiscardUnknown() { + xxx_messageInfo_Event.DiscardUnknown(m) } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7} } +var xxx_messageInfo_Event proto.InternalMessageInfo type isEvent_Event interface { isEvent_Event() @@ -370,19 +604,19 @@ type isEvent_Event interface { } type Event_Entries_ struct { - Entries *Event_Entries `protobuf:"bytes,3,opt,name=entries,oneof"` + Entries *Event_Entries `protobuf:"bytes,3,opt,name=entries,proto3,oneof" json:"entries,omitempty"` } type Event_Admin_ struct { - Admin *Event_Admin `protobuf:"bytes,4,opt,name=admin,oneof"` + Admin *Event_Admin `protobuf:"bytes,4,opt,name=admin,proto3,oneof" json:"admin,omitempty"` } type Event_Error struct { - Error *Error `protobuf:"bytes,5,opt,name=error,oneof"` + Error *Error `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"` } type Event_ResolvedTs struct { - ResolvedTs uint64 `protobuf:"varint,6,opt,name=resolved_ts,json=resolvedTs,proto3,oneof"` + ResolvedTs uint64 `protobuf:"varint,6,opt,name=resolved_ts,json=resolvedTs,proto3,oneof" json:"resolved_ts,omitempty"` } type Event_LongTxn_ struct { - LongTxn *Event_LongTxn `protobuf:"bytes,8,opt,name=long_txn,json=longTxn,oneof"` + LongTxn *Event_LongTxn `protobuf:"bytes,8,opt,name=long_txn,json=longTxn,proto3,oneof" json:"long_txn,omitempty"` } func (*Event_Entries_) isEvent_Event() {} @@ -440,6 +674,7 @@ func (m *Event) GetError() *Error { return nil } +// Deprecated: Do not use. func (m *Event) GetResolvedTs() uint64 { if x, ok := m.GetEvent().(*Event_ResolvedTs); ok { return x.ResolvedTs @@ -454,9 +689,9 @@ func (m *Event) GetLongTxn() *Event_LongTxn { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Event_OneofMarshaler, _Event_OneofUnmarshaler, _Event_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Event) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*Event_Entries_)(nil), (*Event_Admin_)(nil), (*Event_Error)(nil), @@ -465,121 +700,6 @@ func (*Event) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, } } -func _Event_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Event) - // event - switch x := m.Event.(type) { - case *Event_Entries_: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Entries); err != nil { - return err - } - case *Event_Admin_: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Admin); err != nil { - return err - } - case *Event_Error: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Error); err != nil { - return err - } - case *Event_ResolvedTs: - _ = b.EncodeVarint(6<<3 | proto.WireVarint) - _ = b.EncodeVarint(uint64(x.ResolvedTs)) - case *Event_LongTxn_: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LongTxn); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("Event.Event has unexpected type %T", x) - } - return nil -} - -func _Event_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Event) - switch tag { - case 3: // event.entries - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Event_Entries) - err := b.DecodeMessage(msg) - m.Event = &Event_Entries_{msg} - return true, err - case 4: // event.admin - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Event_Admin) - err := b.DecodeMessage(msg) - m.Event = &Event_Admin_{msg} - return true, err - case 5: // event.error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Error) - err := b.DecodeMessage(msg) - m.Event = &Event_Error{msg} - return true, err - case 6: // event.resolved_ts - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.Event = &Event_ResolvedTs{x} - return true, err - case 8: // event.long_txn - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Event_LongTxn) - err := b.DecodeMessage(msg) - m.Event = &Event_LongTxn_{msg} - return true, err - default: - return false, nil - } -} - -func _Event_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Event) - // event - switch x := m.Event.(type) { - case *Event_Entries_: - s := proto.Size(x.Entries) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Event_Admin_: - s := proto.Size(x.Admin) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Event_Error: - s := proto.Size(x.Error) - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *Event_ResolvedTs: - n += proto.SizeVarint(6<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.ResolvedTs)) - case *Event_LongTxn_: - s := proto.Size(x.LongTxn) - n += proto.SizeVarint(8<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type Event_Row struct { StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` @@ -593,13 +713,44 @@ type Event_Row struct { // Absolute time, seconds since Unix epoch. ExpireTsUnixSecs uint64 `protobuf:"varint,8,opt,name=expire_ts_unix_secs,json=expireTsUnixSecs,proto3" json:"expire_ts_unix_secs,omitempty"` // The source of this row. - TxnSource uint64 `protobuf:"varint,9,opt,name=txn_source,json=txnSource,proto3" json:"txn_source,omitempty"` + TxnSource uint64 `protobuf:"varint,9,opt,name=txn_source,json=txnSource,proto3" json:"txn_source,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event_Row) Reset() { *m = Event_Row{} } +func (m *Event_Row) String() string { return proto.CompactTextString(m) } +func (*Event_Row) ProtoMessage() {} +func (*Event_Row) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 0} +} +func (m *Event_Row) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Row.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 *Event_Row) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Row.Merge(m, src) +} +func (m *Event_Row) XXX_Size() int { + return m.Size() +} +func (m *Event_Row) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Row.DiscardUnknown(m) } -func (m *Event_Row) Reset() { *m = Event_Row{} } -func (m *Event_Row) String() string { return proto.CompactTextString(m) } -func (*Event_Row) ProtoMessage() {} -func (*Event_Row) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 0} } +var xxx_messageInfo_Event_Row proto.InternalMessageInfo func (m *Event_Row) GetStartTs() uint64 { if m != nil { @@ -665,13 +816,44 @@ func (m *Event_Row) GetTxnSource() uint64 { } type Event_Entries struct { - Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` + Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event_Entries) Reset() { *m = Event_Entries{} } +func (m *Event_Entries) String() string { return proto.CompactTextString(m) } +func (*Event_Entries) ProtoMessage() {} +func (*Event_Entries) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 1} +} +func (m *Event_Entries) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Entries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Entries.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 *Event_Entries) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Entries.Merge(m, src) +} +func (m *Event_Entries) XXX_Size() int { + return m.Size() +} +func (m *Event_Entries) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Entries.DiscardUnknown(m) } -func (m *Event_Entries) Reset() { *m = Event_Entries{} } -func (m *Event_Entries) String() string { return proto.CompactTextString(m) } -func (*Event_Entries) ProtoMessage() {} -func (*Event_Entries) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 1} } +var xxx_messageInfo_Event_Entries proto.InternalMessageInfo func (m *Event_Entries) GetEntries() []*Event_Row { if m != nil { @@ -681,14 +863,45 @@ func (m *Event_Entries) GetEntries() []*Event_Row { } type Event_Admin struct { - AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,1,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` - AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,2,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` + AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,1,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` + AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,2,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event_Admin) Reset() { *m = Event_Admin{} } +func (m *Event_Admin) String() string { return proto.CompactTextString(m) } +func (*Event_Admin) ProtoMessage() {} +func (*Event_Admin) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 2} +} +func (m *Event_Admin) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_Admin.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 *Event_Admin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Admin.Merge(m, src) +} +func (m *Event_Admin) XXX_Size() int { + return m.Size() +} +func (m *Event_Admin) XXX_DiscardUnknown() { + xxx_messageInfo_Event_Admin.DiscardUnknown(m) } -func (m *Event_Admin) Reset() { *m = Event_Admin{} } -func (m *Event_Admin) String() string { return proto.CompactTextString(m) } -func (*Event_Admin) ProtoMessage() {} -func (*Event_Admin) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 2} } +var xxx_messageInfo_Event_Admin proto.InternalMessageInfo func (m *Event_Admin) GetAdminRequest() *raft_cmdpb.AdminRequest { if m != nil { @@ -705,13 +918,44 @@ func (m *Event_Admin) GetAdminResponse() *raft_cmdpb.AdminResponse { } type Event_LongTxn struct { - TxnInfo []*TxnInfo `protobuf:"bytes,1,rep,name=txn_info,json=txnInfo" json:"txn_info,omitempty"` + TxnInfo []*TxnInfo `protobuf:"bytes,1,rep,name=txn_info,json=txnInfo,proto3" json:"txn_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event_LongTxn) Reset() { *m = Event_LongTxn{} } +func (m *Event_LongTxn) String() string { return proto.CompactTextString(m) } +func (*Event_LongTxn) ProtoMessage() {} +func (*Event_LongTxn) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{7, 3} +} +func (m *Event_LongTxn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event_LongTxn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event_LongTxn.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 *Event_LongTxn) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_LongTxn.Merge(m, src) +} +func (m *Event_LongTxn) XXX_Size() int { + return m.Size() +} +func (m *Event_LongTxn) XXX_DiscardUnknown() { + xxx_messageInfo_Event_LongTxn.DiscardUnknown(m) } -func (m *Event_LongTxn) Reset() { *m = Event_LongTxn{} } -func (m *Event_LongTxn) String() string { return proto.CompactTextString(m) } -func (*Event_LongTxn) ProtoMessage() {} -func (*Event_LongTxn) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{7, 3} } +var xxx_messageInfo_Event_LongTxn proto.InternalMessageInfo func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { if m != nil { @@ -722,14 +966,45 @@ func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { // NOTE: events and resolved_ts won't appear simultaneously in one ChangeDataEvent. type ChangeDataEvent struct { - Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` - ResolvedTs *ResolvedTs `protobuf:"bytes,2,opt,name=resolved_ts,json=resolvedTs" json:"resolved_ts,omitempty"` + Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + ResolvedTs *ResolvedTs `protobuf:"bytes,2,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeDataEvent) Reset() { *m = ChangeDataEvent{} } +func (m *ChangeDataEvent) String() string { return proto.CompactTextString(m) } +func (*ChangeDataEvent) ProtoMessage() {} +func (*ChangeDataEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{8} +} +func (m *ChangeDataEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangeDataEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangeDataEvent.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 *ChangeDataEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataEvent.Merge(m, src) +} +func (m *ChangeDataEvent) XXX_Size() int { + return m.Size() +} +func (m *ChangeDataEvent) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeDataEvent.DiscardUnknown(m) } -func (m *ChangeDataEvent) Reset() { *m = ChangeDataEvent{} } -func (m *ChangeDataEvent) String() string { return proto.CompactTextString(m) } -func (*ChangeDataEvent) ProtoMessage() {} -func (*ChangeDataEvent) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{8} } +var xxx_messageInfo_ChangeDataEvent proto.InternalMessageInfo func (m *ChangeDataEvent) GetEvents() []*Event { if m != nil { @@ -746,15 +1021,46 @@ func (m *ChangeDataEvent) GetResolvedTs() *ResolvedTs { } type ResolvedTs struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` - RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResolvedTs) Reset() { *m = ResolvedTs{} } +func (m *ResolvedTs) String() string { return proto.CompactTextString(m) } +func (*ResolvedTs) ProtoMessage() {} +func (*ResolvedTs) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{9} +} +func (m *ResolvedTs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResolvedTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResolvedTs.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 *ResolvedTs) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolvedTs.Merge(m, src) +} +func (m *ResolvedTs) XXX_Size() int { + return m.Size() +} +func (m *ResolvedTs) XXX_DiscardUnknown() { + xxx_messageInfo_ResolvedTs.DiscardUnknown(m) } -func (m *ResolvedTs) Reset() { *m = ResolvedTs{} } -func (m *ResolvedTs) String() string { return proto.CompactTextString(m) } -func (*ResolvedTs) ProtoMessage() {} -func (*ResolvedTs) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{9} } +var xxx_messageInfo_ResolvedTs proto.InternalMessageInfo func (m *ResolvedTs) GetRegions() []uint64 { if m != nil { @@ -778,9 +1084,9 @@ func (m *ResolvedTs) GetRequestId() uint64 { } type ChangeDataRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *Header `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"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` CheckpointTs uint64 `protobuf:"varint,4,opt,name=checkpoint_ts,json=checkpointTs,proto3" json:"checkpoint_ts,omitempty"` StartKey []byte `protobuf:"bytes,5,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,6,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` @@ -796,13 +1102,44 @@ type ChangeDataRequest struct { Request isChangeDataRequest_Request `protobuf_oneof:"request"` KvApi ChangeDataRequest_KvAPI `protobuf:"varint,11,opt,name=kv_api,json=kvApi,proto3,enum=cdcpb.ChangeDataRequest_KvAPI" json:"kv_api,omitempty"` // Whether to filter out the value write by cdc itself. - FilterLoop bool `protobuf:"varint,12,opt,name=filter_loop,json=filterLoop,proto3" json:"filter_loop,omitempty"` + FilterLoop bool `protobuf:"varint,12,opt,name=filter_loop,json=filterLoop,proto3" json:"filter_loop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeDataRequest) Reset() { *m = ChangeDataRequest{} } +func (m *ChangeDataRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeDataRequest) ProtoMessage() {} +func (*ChangeDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_911209a1d38ef245, []int{10} +} +func (m *ChangeDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangeDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangeDataRequest.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 *ChangeDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest.Merge(m, src) +} +func (m *ChangeDataRequest) XXX_Size() int { + return m.Size() +} +func (m *ChangeDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeDataRequest.DiscardUnknown(m) } -func (m *ChangeDataRequest) Reset() { *m = ChangeDataRequest{} } -func (m *ChangeDataRequest) String() string { return proto.CompactTextString(m) } -func (*ChangeDataRequest) ProtoMessage() {} -func (*ChangeDataRequest) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{10} } +var xxx_messageInfo_ChangeDataRequest proto.InternalMessageInfo type isChangeDataRequest_Request interface { isChangeDataRequest_Request() @@ -811,13 +1148,13 @@ type isChangeDataRequest_Request interface { } type ChangeDataRequest_Register_ struct { - Register *ChangeDataRequest_Register `protobuf:"bytes,9,opt,name=register,oneof"` + Register *ChangeDataRequest_Register `protobuf:"bytes,9,opt,name=register,proto3,oneof" json:"register,omitempty"` } type ChangeDataRequest_NotifyTxnStatus_ struct { - NotifyTxnStatus *ChangeDataRequest_NotifyTxnStatus `protobuf:"bytes,10,opt,name=notify_txn_status,json=notifyTxnStatus,oneof"` + NotifyTxnStatus *ChangeDataRequest_NotifyTxnStatus `protobuf:"bytes,10,opt,name=notify_txn_status,json=notifyTxnStatus,proto3,oneof" json:"notify_txn_status,omitempty"` } type ChangeDataRequest_Deregister_ struct { - Deregister *ChangeDataRequest_Deregister `protobuf:"bytes,13,opt,name=deregister,oneof"` + Deregister *ChangeDataRequest_Deregister `protobuf:"bytes,13,opt,name=deregister,proto3,oneof" json:"deregister,omitempty"` } func (*ChangeDataRequest_Register_) isChangeDataRequest_Request() {} @@ -922,129 +1259,132 @@ func (m *ChangeDataRequest) GetFilterLoop() bool { return false } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ChangeDataRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ChangeDataRequest_OneofMarshaler, _ChangeDataRequest_OneofUnmarshaler, _ChangeDataRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ChangeDataRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*ChangeDataRequest_Register_)(nil), (*ChangeDataRequest_NotifyTxnStatus_)(nil), (*ChangeDataRequest_Deregister_)(nil), } } -func _ChangeDataRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ChangeDataRequest) - // request - switch x := m.Request.(type) { - case *ChangeDataRequest_Register_: - _ = b.EncodeVarint(9<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Register); err != nil { - return err - } - case *ChangeDataRequest_NotifyTxnStatus_: - _ = b.EncodeVarint(10<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.NotifyTxnStatus); err != nil { - return err - } - case *ChangeDataRequest_Deregister_: - _ = b.EncodeVarint(13<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Deregister); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("ChangeDataRequest.Request has unexpected type %T", x) - } - return nil -} - -func _ChangeDataRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ChangeDataRequest) - switch tag { - case 9: // request.register - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ChangeDataRequest_Register) - err := b.DecodeMessage(msg) - m.Request = &ChangeDataRequest_Register_{msg} - return true, err - case 10: // request.notify_txn_status - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ChangeDataRequest_NotifyTxnStatus) - err := b.DecodeMessage(msg) - m.Request = &ChangeDataRequest_NotifyTxnStatus_{msg} - return true, err - case 13: // request.deregister - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ChangeDataRequest_Deregister) - err := b.DecodeMessage(msg) - m.Request = &ChangeDataRequest_Deregister_{msg} - return true, err - default: - return false, nil - } -} - -func _ChangeDataRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ChangeDataRequest) - // request - switch x := m.Request.(type) { - case *ChangeDataRequest_Register_: - s := proto.Size(x.Register) - n += proto.SizeVarint(9<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ChangeDataRequest_NotifyTxnStatus_: - s := proto.Size(x.NotifyTxnStatus) - n += proto.SizeVarint(10<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ChangeDataRequest_Deregister_: - s := proto.Size(x.Deregister) - n += proto.SizeVarint(13<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type ChangeDataRequest_Register struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeDataRequest_Register) Reset() { *m = ChangeDataRequest_Register{} } func (m *ChangeDataRequest_Register) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Register) ProtoMessage() {} func (*ChangeDataRequest_Register) Descriptor() ([]byte, []int) { - return fileDescriptorCdcpb, []int{10, 0} + return fileDescriptor_911209a1d38ef245, []int{10, 0} +} +func (m *ChangeDataRequest_Register) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangeDataRequest_Register) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangeDataRequest_Register.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 *ChangeDataRequest_Register) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_Register.Merge(m, src) +} +func (m *ChangeDataRequest_Register) XXX_Size() int { + return m.Size() } +func (m *ChangeDataRequest_Register) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeDataRequest_Register.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeDataRequest_Register proto.InternalMessageInfo type ChangeDataRequest_Deregister struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeDataRequest_Deregister) Reset() { *m = ChangeDataRequest_Deregister{} } func (m *ChangeDataRequest_Deregister) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Deregister) ProtoMessage() {} func (*ChangeDataRequest_Deregister) Descriptor() ([]byte, []int) { - return fileDescriptorCdcpb, []int{10, 1} + return fileDescriptor_911209a1d38ef245, []int{10, 1} +} +func (m *ChangeDataRequest_Deregister) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangeDataRequest_Deregister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangeDataRequest_Deregister.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 *ChangeDataRequest_Deregister) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_Deregister.Merge(m, src) +} +func (m *ChangeDataRequest_Deregister) XXX_Size() int { + return m.Size() +} +func (m *ChangeDataRequest_Deregister) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeDataRequest_Deregister.DiscardUnknown(m) } +var xxx_messageInfo_ChangeDataRequest_Deregister proto.InternalMessageInfo + type ChangeDataRequest_NotifyTxnStatus struct { - TxnStatus []*TxnStatus `protobuf:"bytes,1,rep,name=txn_status,json=txnStatus" json:"txn_status,omitempty"` + TxnStatus []*TxnStatus `protobuf:"bytes,1,rep,name=txn_status,json=txnStatus,proto3" json:"txn_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeDataRequest_NotifyTxnStatus) Reset() { *m = ChangeDataRequest_NotifyTxnStatus{} } func (m *ChangeDataRequest_NotifyTxnStatus) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_NotifyTxnStatus) ProtoMessage() {} func (*ChangeDataRequest_NotifyTxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptorCdcpb, []int{10, 2} + return fileDescriptor_911209a1d38ef245, []int{10, 2} +} +func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.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 *ChangeDataRequest_NotifyTxnStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.Merge(m, src) +} +func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Size() int { + return m.Size() +} +func (m *ChangeDataRequest_NotifyTxnStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus proto.InternalMessageInfo func (m *ChangeDataRequest_NotifyTxnStatus) GetTxnStatus() []*TxnStatus { if m != nil { @@ -1054,6 +1394,9 @@ func (m *ChangeDataRequest_NotifyTxnStatus) GetTxnStatus() []*TxnStatus { } func init() { + proto.RegisterEnum("cdcpb.Event_LogType", Event_LogType_name, Event_LogType_value) + proto.RegisterEnum("cdcpb.Event_Row_OpType", Event_Row_OpType_name, Event_Row_OpType_value) + proto.RegisterEnum("cdcpb.ChangeDataRequest_KvAPI", ChangeDataRequest_KvAPI_name, ChangeDataRequest_KvAPI_value) proto.RegisterType((*Header)(nil), "cdcpb.Header") proto.RegisterType((*DuplicateRequest)(nil), "cdcpb.DuplicateRequest") proto.RegisterType((*Compatibility)(nil), "cdcpb.Compatibility") @@ -1072,9 +1415,104 @@ func init() { proto.RegisterType((*ChangeDataRequest_Register)(nil), "cdcpb.ChangeDataRequest.Register") proto.RegisterType((*ChangeDataRequest_Deregister)(nil), "cdcpb.ChangeDataRequest.Deregister") proto.RegisterType((*ChangeDataRequest_NotifyTxnStatus)(nil), "cdcpb.ChangeDataRequest.NotifyTxnStatus") - proto.RegisterEnum("cdcpb.Event_LogType", Event_LogType_name, Event_LogType_value) - proto.RegisterEnum("cdcpb.Event_Row_OpType", Event_Row_OpType_name, Event_Row_OpType_value) - proto.RegisterEnum("cdcpb.ChangeDataRequest_KvAPI", ChangeDataRequest_KvAPI_name, ChangeDataRequest_KvAPI_value) +} + +func init() { proto.RegisterFile("cdcpb.proto", fileDescriptor_911209a1d38ef245) } + +var fileDescriptor_911209a1d38ef245 = []byte{ + // 1466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0x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xae, 0xef, 0x92, 0x8f, 0xa0, 0x7c, 0xe6, + 0x8e, 0xe5, 0x2f, 0xc2, 0x98, 0x73, 0xbf, 0x56, 0xc1, 0x65, 0x09, 0x8a, 0xd5, 0xe7, 0xdc, 0xaf, + 0x03, 0x14, 0xe3, 0x70, 0xd4, 0x2b, 0x00, 0x8b, 0xf7, 0xeb, 0x6d, 0xd8, 0x5c, 0x73, 0x8f, 0xdc, + 0x8f, 0xa6, 0xa1, 0x0a, 0xce, 0xea, 0xe8, 0x4a, 0xa4, 0xd4, 0x7c, 0xc4, 0x63, 0xe3, 0x53, 0xc8, + 0xa1, 0x39, 0xa4, 0x08, 0x59, 0xc3, 0xed, 0xb4, 0xf5, 0x14, 0x29, 0x41, 0x8e, 0x5a, 0xaf, 0x0e, + 0x4e, 0x74, 0x4d, 0x1e, 0x8d, 0xb9, 0x77, 0x70, 0xa2, 0xa7, 0xdb, 0xa5, 0xe4, 0x3f, 0xb1, 0xf5, + 0xab, 0x06, 0xb0, 0xf0, 0x8a, 0xec, 0x42, 0x09, 0xbb, 0xf5, 0x29, 0x63, 0x0e, 0xa9, 0x5d, 0xe6, + 0x75, 0xfd, 0xda, 0x5b, 0x08, 0xde, 0xda, 0xd1, 0x1e, 0x68, 0x64, 0x0f, 0xca, 0x89, 0x8a, 0x93, + 0xd6, 0xff, 0x53, 0xd2, 0xfe, 0xe4, 0xf5, 0xef, 0x45, 0xed, 0x8f, 0x37, 0xdb, 0xda, 0x9f, 0x6f, + 0xb6, 0xb5, 0xbf, 0xde, 0x6c, 0x6b, 0xbf, 0xfd, 0xbd, 0x9d, 0x02, 0x9d, 0x07, 0xc3, 0xa6, 0x70, + 0x47, 0xb3, 0xe6, 0x68, 0x86, 0xff, 0xf6, 0xa7, 0x79, 0xfc, 0x7c, 0xf1, 0x6f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xae, 0xbe, 0x39, 0x6e, 0x5d, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1085,8 +1523,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for ChangeData service - +// ChangeDataClient is the client API for ChangeData service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ChangeDataClient interface { EventFeed(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedClient, error) // EventFeedV2 is like EventFeed, with some new changes: @@ -1105,7 +1544,7 @@ func NewChangeDataClient(cc *grpc.ClientConn) ChangeDataClient { } func (c *changeDataClient) EventFeed(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ChangeData_serviceDesc.Streams[0], c.cc, "/cdcpb.ChangeData/EventFeed", opts...) + stream, err := c.cc.NewStream(ctx, &_ChangeData_serviceDesc.Streams[0], "/cdcpb.ChangeData/EventFeed", opts...) if err != nil { return nil, err } @@ -1136,7 +1575,7 @@ func (x *changeDataEventFeedClient) Recv() (*ChangeDataEvent, error) { } func (c *changeDataClient) EventFeedV2(ctx context.Context, opts ...grpc.CallOption) (ChangeData_EventFeedV2Client, error) { - stream, err := grpc.NewClientStream(ctx, &_ChangeData_serviceDesc.Streams[1], c.cc, "/cdcpb.ChangeData/EventFeedV2", opts...) + stream, err := c.cc.NewStream(ctx, &_ChangeData_serviceDesc.Streams[1], "/cdcpb.ChangeData/EventFeedV2", opts...) if err != nil { return nil, err } @@ -1166,8 +1605,7 @@ func (x *changeDataEventFeedV2Client) Recv() (*ChangeDataEvent, error) { return m, nil } -// Server API for ChangeData service - +// ChangeDataServer is the server API for ChangeData service. type ChangeDataServer interface { EventFeed(ChangeData_EventFeedServer) error // EventFeedV2 is like EventFeed, with some new changes: @@ -1177,6 +1615,17 @@ type ChangeDataServer interface { EventFeedV2(ChangeData_EventFeedV2Server) error } +// UnimplementedChangeDataServer can be embedded to have forward compatible implementations. +type UnimplementedChangeDataServer struct { +} + +func (*UnimplementedChangeDataServer) EventFeed(srv ChangeData_EventFeedServer) error { + return status.Errorf(codes.Unimplemented, "method EventFeed not implemented") +} +func (*UnimplementedChangeDataServer) EventFeedV2(srv ChangeData_EventFeedV2Server) error { + return status.Errorf(codes.Unimplemented, "method EventFeedV2 not implemented") +} + func RegisterChangeDataServer(s *grpc.Server, srv ChangeDataServer) { s.RegisterService(&_ChangeData_serviceDesc, srv) } @@ -1257,7 +1706,7 @@ var _ChangeData_serviceDesc = grpc.ServiceDesc{ func (m *Header) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1265,28 +1714,38 @@ func (m *Header) Marshal() (dAtA []byte, err error) { } func (m *Header) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.TicdcVersion) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.TicdcVersion) + copy(dAtA[i:], m.TicdcVersion) i = encodeVarintCdcpb(dAtA, i, uint64(len(m.TicdcVersion))) - i += copy(dAtA[i:], m.TicdcVersion) + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DuplicateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1294,22 +1753,31 @@ func (m *DuplicateRequest) Marshal() (dAtA []byte, err error) { } func (m *DuplicateRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Compatibility) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1317,23 +1785,33 @@ func (m *Compatibility) Marshal() (dAtA []byte, err error) { } func (m *Compatibility) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Compatibility) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.RequiredVersion) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.RequiredVersion) + copy(dAtA[i:], m.RequiredVersion) i = encodeVarintCdcpb(dAtA, i, uint64(len(m.RequiredVersion))) - i += copy(dAtA[i:], m.RequiredVersion) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ClusterIDMismatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1341,27 +1819,36 @@ func (m *ClusterIDMismatch) Marshal() (dAtA []byte, err error) { } func (m *ClusterIDMismatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClusterIDMismatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Current != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Current)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Request != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintCdcpb(dAtA, i, uint64(m.Request)) + i-- + dAtA[i] = 0x10 + } + if m.Current != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.Current)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1369,77 +1856,98 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.NotLeader != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.NotLeader.Size())) - n1, err := m.NotLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClusterIdMismatch != nil { + { + size, err := m.ClusterIdMismatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x32 } - if m.RegionNotFound != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionNotFound.Size())) - n2, err := m.RegionNotFound.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Compatibility != nil { + { + size, err := m.Compatibility.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n2 - } - if m.EpochNotMatch != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.EpochNotMatch.Size())) - n3, err := m.EpochNotMatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + i-- + dAtA[i] = 0x2a } if m.DuplicateRequest != nil { + { + size, err := m.DuplicateRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.DuplicateRequest.Size())) - n4, err := m.DuplicateRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.EpochNotMatch != nil { + { + size, err := m.EpochNotMatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x1a } - if m.Compatibility != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Compatibility.Size())) - n5, err := m.Compatibility.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionNotFound != nil { + { + size, err := m.RegionNotFound.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - if m.ClusterIdMismatch != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.ClusterIdMismatch.Size())) - n6, err := m.ClusterIdMismatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.NotLeader != nil { + { + size, err := m.NotLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TxnInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1447,28 +1955,38 @@ func (m *TxnInfo) Marshal() (dAtA []byte, err error) { } func (m *TxnInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Primary) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Primary) + copy(dAtA[i:], m.Primary) i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Primary))) - i += copy(dAtA[i:], m.Primary) + i-- + dAtA[i] = 0x12 + } + if m.StartTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TxnStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1476,42 +1994,51 @@ func (m *TxnStatus) Marshal() (dAtA []byte, err error) { } func (m *TxnStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) - } - if m.MinCommitTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.MinCommitTs)) - } - if m.CommitTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.IsRolledBack { - dAtA[i] = 0x20 - i++ + i-- if m.IsRolledBack { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if m.CommitTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x18 + } + if m.MinCommitTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x10 + } + if m.StartTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Event) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1519,102 +2046,146 @@ func (m *Event) Marshal() (dAtA []byte, err error) { } func (m *Event) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) - } - if m.Index != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Index)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Event != nil { - nn7, err := m.Event.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Event.Size() + i -= size + if _, err := m.Event.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn7 } if m.RequestId != 0 { - dAtA[i] = 0x38 - i++ i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) + i-- + dAtA[i] = 0x38 } - return i, nil + if m.Index != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x10 + } + if m.RegionId != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Event_Entries_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Entries_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Entries != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Entries.Size())) - n8, err := m.Entries.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Entries.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *Event_Admin_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Admin_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Admin != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Admin.Size())) - n9, err := m.Admin.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Admin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *Event_Error) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Error != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Error.Size())) - n10, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *Event_ResolvedTs) MarshalTo(dAtA []byte) (int, error) { - i := 0 - dAtA[i] = 0x30 - i++ + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs)) - return i, nil + i-- + dAtA[i] = 0x30 + return len(dAtA) - i, nil } func (m *Event_LongTxn_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_LongTxn_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.LongTxn != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.LongTxn.Size())) - n11, err := m.LongTxn.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.LongTxn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x42 } - return i, nil + return len(dAtA) - i, nil } func (m *Event_Row) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1622,65 +2193,77 @@ func (m *Event_Row) Marshal() (dAtA []byte, err error) { } func (m *Event_Row) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Row) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.CommitTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) + if m.TxnSource != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) + i-- + dAtA[i] = 0x48 } - if m.Type != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) + if m.ExpireTsUnixSecs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) + i-- + dAtA[i] = 0x40 } - if m.OpType != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) + if len(m.OldValue) > 0 { + i -= len(m.OldValue) + copy(dAtA[i:], m.OldValue) + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) + i-- + dAtA[i] = 0x3a + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x32 } if len(m.Key) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x2a } - if len(m.Value) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.OpType != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) + i-- + dAtA[i] = 0x20 } - if len(m.OldValue) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) - i += copy(dAtA[i:], m.OldValue) + if m.Type != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 } - if m.ExpireTsUnixSecs != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) + if m.CommitTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x10 } - if m.TxnSource != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) + if m.StartTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Event_Entries) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1688,29 +2271,40 @@ func (m *Event_Entries) Marshal() (dAtA []byte, err error) { } func (m *Event_Entries) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Entries) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *Event_Admin) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1718,37 +2312,50 @@ func (m *Event_Admin) Marshal() (dAtA []byte, err error) { } func (m *Event_Admin) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_Admin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.AdminRequest != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.AdminRequest.Size())) - n12, err := m.AdminRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.AdminResponse != nil { + { + size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.AdminResponse.Size())) - n13, err := m.AdminResponse.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.AdminRequest != nil { + { + size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Event_LongTxn) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1756,29 +2363,40 @@ func (m *Event_LongTxn) Marshal() (dAtA []byte, err error) { } func (m *Event_LongTxn) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event_LongTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.TxnInfo) > 0 { - for _, msg := range m.TxnInfo { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.TxnInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TxnInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1786,39 +2404,52 @@ func (m *ChangeDataEvent) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataEvent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResolvedTs != nil { + { + size, err := m.ResolvedTs.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - } - if m.ResolvedTs != nil { + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs.Size())) - n14, err := m.ResolvedTs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + 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 = encodeVarintCdcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i += n14 } - return i, nil + return len(dAtA) - i, nil } func (m *ResolvedTs) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1826,44 +2457,54 @@ func (m *ResolvedTs) Marshal() (dAtA []byte, err error) { } func (m *ResolvedTs) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RequestId != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) + i-- + dAtA[i] = 0x18 + } + if m.Ts != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x10 + } if len(m.Regions) > 0 { - dAtA16 := make([]byte, len(m.Regions)*10) - var j15 int + dAtA15 := make([]byte, len(m.Regions)*10) + var j14 int for _, num := range m.Regions { for num >= 1<<7 { - dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) + dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j15++ + j14++ } - dAtA16[j15] = uint8(num) - j15++ + dAtA15[j14] = uint8(num) + j14++ } + i -= j14 + copy(dAtA[i:], dAtA15[:j14]) + i = encodeVarintCdcpb(dAtA, i, uint64(j14)) + i-- dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(j15)) - i += copy(dAtA[i:], dAtA16[:j15]) - } - if m.Ts != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Ts)) - } - if m.RequestId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1871,133 +2512,171 @@ func (m *ChangeDataRequest) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Header.Size())) - n17, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RegionEpoch != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n18, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Request != nil { + { + size := m.Request.Size() + i -= size + if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += n18 } - if m.CheckpointTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.CheckpointTs)) + if m.FilterLoop { + i-- + if m.FilterLoop { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 } - if len(m.StartKey) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.KvApi != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.KvApi)) + i-- + dAtA[i] = 0x58 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.ExtraOp != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExtraOp)) + i-- + dAtA[i] = 0x40 } if m.RequestId != 0 { - dAtA[i] = 0x38 - i++ i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) + i-- + dAtA[i] = 0x38 } - if m.ExtraOp != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.ExtraOp)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x32 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x2a } - if m.Request != nil { - nn19, err := m.Request.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CheckpointTs != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.CheckpointTs)) + i-- + dAtA[i] = 0x20 + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += nn19 + i-- + dAtA[i] = 0x1a } - if m.KvApi != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.KvApi)) + if m.RegionId != 0 { + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 } - if m.FilterLoop { - dAtA[i] = 0x60 - i++ - if m.FilterLoop { - 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 = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataRequest_Register_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_Register_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Register != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Register.Size())) - n20, err := m.Register.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Register.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x4a } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataRequest_NotifyTxnStatus_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_NotifyTxnStatus_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.NotifyTxnStatus != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.NotifyTxnStatus.Size())) - n21, err := m.NotifyTxnStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.NotifyTxnStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0x52 } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataRequest_Deregister_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_Deregister_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Deregister != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(m.Deregister.Size())) - n22, err := m.Deregister.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Deregister.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0x6a } - return i, nil + return len(dAtA) - i, nil } func (m *ChangeDataRequest_Register) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2005,17 +2684,26 @@ func (m *ChangeDataRequest_Register) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_Register) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_Register) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ChangeDataRequest_Deregister) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2023,17 +2711,26 @@ func (m *ChangeDataRequest_Deregister) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_Deregister) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_Deregister) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ChangeDataRequest_NotifyTxnStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2041,35 +2738,51 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Marshal() (dAtA []byte, err error) { } func (m *ChangeDataRequest_NotifyTxnStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangeDataRequest_NotifyTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.TxnStatus) > 0 { - for _, msg := range m.TxnStatus { - dAtA[i] = 0xa - i++ - i = encodeVarintCdcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.TxnStatus) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TxnStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func encodeVarintCdcpb(dAtA []byte, offset int, v uint64) int { + offset -= sovCdcpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Header) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -2079,29 +2792,47 @@ func (m *Header) Size() (n int) { if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DuplicateRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovCdcpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Compatibility) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.RequiredVersion) if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ClusterIDMismatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Current != 0 { @@ -2110,10 +2841,16 @@ func (m *ClusterIDMismatch) Size() (n int) { if m.Request != 0 { n += 1 + sovCdcpb(uint64(m.Request)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.NotLeader != nil { @@ -2140,10 +2877,16 @@ func (m *Error) Size() (n int) { l = m.ClusterIdMismatch.Size() n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -2153,10 +2896,16 @@ func (m *TxnInfo) Size() (n int) { if l > 0 { n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -2171,10 +2920,16 @@ func (m *TxnStatus) Size() (n int) { if m.IsRolledBack { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -2189,10 +2944,16 @@ func (m *Event) Size() (n int) { if m.RequestId != 0 { n += 1 + sovCdcpb(uint64(m.RequestId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event_Entries_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Entries != nil { @@ -2202,6 +2963,9 @@ func (m *Event_Entries_) Size() (n int) { return n } func (m *Event_Admin_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Admin != nil { @@ -2211,6 +2975,9 @@ func (m *Event_Admin_) Size() (n int) { return n } func (m *Event_Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2220,12 +2987,18 @@ func (m *Event_Error) Size() (n int) { return n } func (m *Event_ResolvedTs) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovCdcpb(uint64(m.ResolvedTs)) return n } func (m *Event_LongTxn_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.LongTxn != nil { @@ -2235,6 +3008,9 @@ func (m *Event_LongTxn_) Size() (n int) { return n } func (m *Event_Row) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -2267,10 +3043,16 @@ func (m *Event_Row) Size() (n int) { if m.TxnSource != 0 { n += 1 + sovCdcpb(uint64(m.TxnSource)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event_Entries) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Entries) > 0 { @@ -2279,10 +3061,16 @@ func (m *Event_Entries) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event_Admin) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AdminRequest != nil { @@ -2293,10 +3081,16 @@ func (m *Event_Admin) Size() (n int) { l = m.AdminResponse.Size() n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event_LongTxn) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.TxnInfo) > 0 { @@ -2305,10 +3099,16 @@ func (m *Event_LongTxn) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangeDataEvent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Events) > 0 { @@ -2321,10 +3121,16 @@ func (m *ChangeDataEvent) Size() (n int) { l = m.ResolvedTs.Size() n += 1 + l + sovCdcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResolvedTs) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -2340,10 +3146,16 @@ func (m *ResolvedTs) Size() (n int) { if m.RequestId != 0 { n += 1 + sovCdcpb(uint64(m.RequestId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangeDataRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -2383,10 +3195,16 @@ func (m *ChangeDataRequest) Size() (n int) { if m.FilterLoop { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangeDataRequest_Register_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Register != nil { @@ -2396,6 +3214,9 @@ func (m *ChangeDataRequest_Register_) Size() (n int) { return n } func (m *ChangeDataRequest_NotifyTxnStatus_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.NotifyTxnStatus != nil { @@ -2405,6 +3226,9 @@ func (m *ChangeDataRequest_NotifyTxnStatus_) Size() (n int) { return n } func (m *ChangeDataRequest_Deregister_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Deregister != nil { @@ -2414,18 +3238,33 @@ func (m *ChangeDataRequest_Deregister_) Size() (n int) { return n } func (m *ChangeDataRequest_Register) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangeDataRequest_Deregister) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.TxnStatus) > 0 { @@ -2434,18 +3273,14 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovCdcpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozCdcpb(x uint64) (n int) { return sovCdcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2465,7 +3300,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2493,7 +3328,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2512,7 +3347,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2522,6 +3357,9 @@ func (m *Header) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2533,12 +3371,13 @@ func (m *Header) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2563,7 +3402,7 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2591,7 +3430,7 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2602,12 +3441,13 @@ func (m *DuplicateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2632,7 +3472,7 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2660,7 +3500,7 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2670,6 +3510,9 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2681,12 +3524,13 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2711,7 +3555,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2739,7 +3583,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Current |= (uint64(b) & 0x7F) << shift + m.Current |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2758,7 +3602,7 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Request |= (uint64(b) & 0x7F) << shift + m.Request |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2769,12 +3613,13 @@ func (m *ClusterIDMismatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2799,7 +3644,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2827,7 +3672,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2836,6 +3681,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2860,7 +3708,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2869,6 +3717,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2893,7 +3744,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2902,6 +3753,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2926,7 +3780,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2935,6 +3789,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2959,7 +3816,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2968,6 +3825,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2992,7 +3852,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3001,6 +3861,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3017,12 +3880,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3047,7 +3911,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3075,7 +3939,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3094,7 +3958,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3103,6 +3967,9 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3117,12 +3984,13 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3147,7 +4015,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3175,7 +4043,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3194,7 +4062,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3213,7 +4081,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3232,7 +4100,7 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3244,12 +4112,13 @@ func (m *TxnStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3274,7 +4143,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3302,7 +4171,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3321,7 +4190,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3340,7 +4209,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3349,6 +4218,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3372,7 +4244,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3381,6 +4253,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3404,7 +4279,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3413,6 +4288,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3436,7 +4314,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3456,7 +4334,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= (uint64(b) & 0x7F) << shift + m.RequestId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3475,7 +4353,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3484,6 +4362,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3499,12 +4380,13 @@ func (m *Event) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3529,7 +4411,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3557,7 +4439,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3576,7 +4458,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3595,7 +4477,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (Event_LogType(b) & 0x7F) << shift + m.Type |= Event_LogType(b&0x7F) << shift if b < 0x80 { break } @@ -3614,7 +4496,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OpType |= (Event_Row_OpType(b) & 0x7F) << shift + m.OpType |= Event_Row_OpType(b&0x7F) << shift if b < 0x80 { break } @@ -3633,7 +4515,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3642,6 +4524,9 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3664,7 +4549,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3673,6 +4558,9 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3695,7 +4583,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3704,6 +4592,9 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3726,7 +4617,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExpireTsUnixSecs |= (uint64(b) & 0x7F) << shift + m.ExpireTsUnixSecs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3745,7 +4636,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSource |= (uint64(b) & 0x7F) << shift + m.TxnSource |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3756,12 +4647,13 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3786,7 +4678,7 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3814,7 +4706,7 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3823,6 +4715,9 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3837,12 +4732,13 @@ func (m *Event_Entries) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3867,7 +4763,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3895,7 +4791,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3904,6 +4800,9 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3928,7 +4827,7 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3937,6 +4836,9 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3953,12 +4855,13 @@ func (m *Event_Admin) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3983,7 +4886,7 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4011,7 +4914,7 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4020,6 +4923,9 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4034,12 +4940,13 @@ func (m *Event_LongTxn) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4064,7 +4971,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4092,7 +4999,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4101,6 +5008,9 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4123,7 +5033,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4132,6 +5042,9 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4148,12 +5061,13 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4178,7 +5092,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4204,7 +5118,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4221,7 +5135,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4230,9 +5144,23 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } 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.Regions) == 0 { + m.Regions = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -4244,7 +5172,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4268,7 +5196,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (uint64(b) & 0x7F) << shift + m.Ts |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4287,7 +5215,7 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= (uint64(b) & 0x7F) << shift + m.RequestId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4298,12 +5226,13 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4328,7 +5257,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4356,7 +5285,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4365,6 +5294,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4389,7 +5321,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4408,7 +5340,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4417,6 +5349,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4441,7 +5376,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CheckpointTs |= (uint64(b) & 0x7F) << shift + m.CheckpointTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4460,7 +5395,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4469,6 +5404,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4491,7 +5429,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4500,6 +5438,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4522,7 +5463,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestId |= (uint64(b) & 0x7F) << shift + m.RequestId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4541,7 +5482,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExtraOp |= (kvrpcpb.ExtraOp(b) & 0x7F) << shift + m.ExtraOp |= kvrpcpb.ExtraOp(b&0x7F) << shift if b < 0x80 { break } @@ -4560,7 +5501,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4569,6 +5510,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4592,7 +5536,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4601,6 +5545,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4624,7 +5571,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvApi |= (ChangeDataRequest_KvAPI(b) & 0x7F) << shift + m.KvApi |= ChangeDataRequest_KvAPI(b&0x7F) << shift if b < 0x80 { break } @@ -4643,7 +5590,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4663,7 +5610,7 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4672,6 +5619,9 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4687,12 +5637,13 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4717,7 +5668,7 @@ func (m *ChangeDataRequest_Register) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4737,12 +5688,13 @@ func (m *ChangeDataRequest_Register) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4767,7 +5719,7 @@ func (m *ChangeDataRequest_Deregister) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4787,12 +5739,13 @@ func (m *ChangeDataRequest_Deregister) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4817,7 +5770,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4845,7 +5798,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4854,6 +5807,9 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4868,12 +5824,13 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCdcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4886,6 +5843,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Unmarshal(dAtA []byte) error { func skipCdcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4917,10 +5875,8 @@ func skipCdcpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -4937,151 +5893,34 @@ func skipCdcpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCdcpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCdcpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipCdcpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCdcpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthCdcpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthCdcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCdcpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthCdcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCdcpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCdcpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("cdcpb.proto", fileDescriptorCdcpb) } - -var fileDescriptorCdcpb = []byte{ - // 1463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0xb7, 0xfc, 0xdf, 0xcf, 0x76, 0xa2, 0x6c, 0x3b, 0xad, 0x6b, 0x86, 0x50, 0xdc, 0x16, 0xd2, - 0x32, 0xb8, 0xad, 0xa1, 0x1c, 0x3a, 0x43, 0x21, 0x8e, 0x5d, 0xe2, 0x89, 0xe3, 0x74, 0xb6, 0x4a, - 0x3a, 0xc3, 0x01, 0x8d, 0x22, 0x6d, 0x1c, 0x8d, 0x6d, 0xad, 0x2a, 0xad, 0x5d, 0xe7, 0xc6, 0x11, - 0x0e, 0xdc, 0x38, 0xf0, 0x11, 0xf8, 0x28, 0x1c, 0x39, 0xf6, 0xc8, 0x94, 0x8f, 0xc0, 0x17, 0x60, - 0xf6, 0xad, 0x24, 0xff, 0x69, 0x53, 0x66, 0x38, 0x69, 0xdf, 0xfb, 0xbd, 0x7d, 0x7a, 0xff, 0xdf, - 0x42, 0xd9, 0x76, 0x6c, 0xff, 0xb4, 0xe9, 0x07, 0x5c, 0x70, 0x92, 0x43, 0xa2, 0xae, 0x07, 0xd6, - 0x99, 0x30, 0xed, 0x89, 0x13, 0x03, 0xf5, 0xca, 0x84, 0x09, 0x2b, 0xa1, 0xaa, 0x2c, 0x08, 0x78, - 0xb0, 0x20, 0x47, 0xb3, 0xc0, 0x4f, 0x94, 0xd4, 0xaf, 0x0e, 0xf9, 0x90, 0xe3, 0xf1, 0xbe, 0x3c, - 0x45, 0xdc, 0xcd, 0x60, 0x1a, 0x0a, 0x3c, 0x2a, 0x46, 0xa3, 0x0f, 0xf9, 0x7d, 0x66, 0x39, 0x2c, - 0x20, 0x1f, 0x02, 0xd8, 0xe3, 0x69, 0x28,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28, 0x30, 0xe0, 0xe2, - 0xa9, 0x84, 0xe9, 0x46, 0xb0, 0x42, 0x93, 0x27, 0xb0, 0xc9, 0x7c, 0x6e, 0x9f, 0xa3, 0x06, 0x74, - 0xa3, 0x96, 0x41, 0x0d, 0xd7, 0x12, 0x0d, 0x5d, 0x89, 0x0f, 0xb8, 0x38, 0x94, 0x28, 0xad, 0xb2, - 0x65, 0x92, 0x74, 0x60, 0xcb, 0x89, 0xa3, 0x6e, 0xc6, 0x3e, 0x66, 0x23, 0x1b, 0x54, 0x61, 0xad, - 0x67, 0x85, 0xea, 0xce, 0x7a, 0x9e, 0x1e, 0x43, 0xd5, 0x5e, 0x4e, 0x45, 0x2d, 0x87, 0x1a, 0xae, - 0x46, 0x1a, 0x56, 0xd2, 0x44, 0x57, 0x45, 0xc9, 0x3e, 0x5c, 0x59, 0xd4, 0x8e, 0x39, 0x89, 0x92, - 0x51, 0xcb, 0xa3, 0x86, 0x5a, 0xac, 0x61, 0x3d, 0x59, 0x74, 0x2b, 0x29, 0xaf, 0x98, 0xd5, 0x78, - 0x02, 0x05, 0x63, 0xee, 0xf5, 0xbc, 0x33, 0x4e, 0x6e, 0x40, 0x31, 0x14, 0x56, 0x20, 0x4c, 0x11, - 0xc6, 0xb9, 0x44, 0xda, 0x08, 0x65, 0x2e, 0xfd, 0xc0, 0x9d, 0x58, 0xc1, 0x05, 0xc6, 0xba, 0x42, - 0x63, 0xb2, 0xf1, 0x8b, 0x06, 0x25, 0x63, 0xee, 0x3d, 0x17, 0x96, 0x98, 0x86, 0xef, 0x53, 0xd1, - 0x80, 0xea, 0xc4, 0xf5, 0x4c, 0x9b, 0x4f, 0x26, 0x2e, 0xe2, 0xaa, 0x28, 0xca, 0x13, 0xd7, 0xdb, - 0x43, 0x9e, 0x11, 0xca, 0xd2, 0x5d, 0xe0, 0x19, 0x55, 0xba, 0x76, 0x0c, 0xde, 0x86, 0x0d, 0x37, - 0x34, 0x03, 0x3e, 0x1e, 0x33, 0xc7, 0x3c, 0xb5, 0xec, 0x11, 0x86, 0xbc, 0x48, 0x2b, 0x6e, 0x48, - 0x91, 0xd9, 0xb6, 0xec, 0x51, 0xe3, 0x9f, 0x02, 0xe4, 0xba, 0x33, 0x59, 0x7f, 0xef, 0xeb, 0x03, - 0x72, 0x15, 0x72, 0xae, 0xe7, 0xb0, 0x79, 0x64, 0x85, 0x22, 0xc8, 0x03, 0x28, 0x30, 0x4f, 0x04, - 0x2e, 0x0b, 0xa3, 0x82, 0x88, 0x93, 0x81, 0x1a, 0x9b, 0x5d, 0x85, 0xed, 0xa7, 0x68, 0x2c, 0x46, - 0xee, 0x41, 0xce, 0x72, 0x26, 0xae, 0x17, 0xa5, 0x9f, 0xac, 0xc8, 0xef, 0x4a, 0x64, 0x3f, 0x45, - 0x95, 0x08, 0xb9, 0x0d, 0x39, 0x2c, 0xaf, 0x28, 0xd1, 0x95, 0x58, 0x56, 0xf2, 0xa4, 0x14, 0x82, - 0xe4, 0x0e, 0x94, 0x03, 0x16, 0xf2, 0xf1, 0x8c, 0x39, 0x32, 0x0a, 0x32, 0xa5, 0xd9, 0x76, 0xba, - 0xa6, 0xed, 0xa7, 0x28, 0xc4, 0x80, 0x11, 0xca, 0xe9, 0x11, 0x55, 0x9e, 0x74, 0xaf, 0xa0, 0xa6, - 0x47, 0xc4, 0xe9, 0x39, 0xe4, 0x21, 0x14, 0xc7, 0xdc, 0x1b, 0x9a, 0x62, 0xee, 0xd5, 0x8a, 0xef, - 0x70, 0xa5, 0xcf, 0xbd, 0xa1, 0x31, 0x97, 0xc6, 0x15, 0xc6, 0xea, 0x58, 0x7f, 0x9d, 0x86, 0x0c, - 0xe5, 0xaf, 0xde, 0x97, 0xc3, 0x95, 0xfc, 0xa4, 0xd7, 0xf2, 0xb3, 0x03, 0x59, 0x71, 0xe1, 0x33, - 0x8c, 0xdc, 0xc6, 0x5b, 0xbf, 0x1b, 0x1a, 0x17, 0x3e, 0xa3, 0x28, 0x21, 0xc3, 0xcc, 0x7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0xe7, 0x8b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe3, - 0x25, 0xec, 0xc2, 0x5d, 0x0c, 0x00, 0x00, -} diff --git a/pkg/configpb/configpb.pb.go b/pkg/configpb/configpb.pb.go index f1a6045ee..99caf3426 100644 --- a/pkg/configpb/configpb.pb.go +++ b/pkg/configpb/configpb.pb.go @@ -1,49 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: configpb.proto -/* -Package configpb is a generated protocol buffer package. - -It is generated from these files: - - configpb.proto - -It has these top-level messages: - - Status - Version - Local - Global - ConfigKind - ConfigEntry - LocalConfig - Header - CreateRequest - CreateResponse - GetAllRequest - GetAllResponse - GetRequest - GetResponse - UpdateRequest - UpdateResponse - DeleteRequest - DeleteResponse -*/ package configpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -55,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type StatusCode int32 @@ -76,6 +48,7 @@ var StatusCode_name = map[int32]string{ 4: "COMPONENT_NOT_FOUND", 5: "COMPONENT_ID_NOT_FOUND", } + var StatusCode_value = map[string]int32{ "UNKNOWN": 0, "OK": 1, @@ -88,17 +61,51 @@ var StatusCode_value = map[string]int32{ func (x StatusCode) String() string { return proto.EnumName(StatusCode_name, int32(x)) } -func (StatusCode) EnumDescriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{0} } + +func (StatusCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{0} +} type Status struct { - Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=configpb.StatusCode" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=configpb.StatusCode" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{0} +} +func (m *Status) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Status.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 *Status) XXX_Merge(src proto.Message) { + xxx_messageInfo_Status.Merge(m, src) +} +func (m *Status) XXX_Size() int { + return m.Size() +} +func (m *Status) XXX_DiscardUnknown() { + xxx_messageInfo_Status.DiscardUnknown(m) } -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{0} } +var xxx_messageInfo_Status proto.InternalMessageInfo func (m *Status) GetCode() StatusCode { if m != nil { @@ -121,14 +128,45 @@ func (m *Status) GetMessage() string { // For local version, every component will have one to represent // the version of these configuration which cannot be shared. type Version struct { - Local uint64 `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"` - Global uint64 `protobuf:"varint,2,opt,name=global,proto3" json:"global,omitempty"` + Local uint64 `protobuf:"varint,1,opt,name=local,proto3" json:"local,omitempty"` + Global uint64 `protobuf:"varint,2,opt,name=global,proto3" json:"global,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Version) Reset() { *m = Version{} } +func (m *Version) String() string { return proto.CompactTextString(m) } +func (*Version) ProtoMessage() {} +func (*Version) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{1} +} +func (m *Version) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Version.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 *Version) XXX_Merge(src proto.Message) { + xxx_messageInfo_Version.Merge(m, src) +} +func (m *Version) XXX_Size() int { + return m.Size() +} +func (m *Version) XXX_DiscardUnknown() { + xxx_messageInfo_Version.DiscardUnknown(m) } -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{1} } +var xxx_messageInfo_Version proto.InternalMessageInfo func (m *Version) GetLocal() uint64 { if m != nil { @@ -145,13 +183,44 @@ func (m *Version) GetGlobal() uint64 { } type Local struct { - ComponentId string `protobuf:"bytes,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + ComponentId string `protobuf:"bytes,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Local) Reset() { *m = Local{} } +func (m *Local) String() string { return proto.CompactTextString(m) } +func (*Local) ProtoMessage() {} +func (*Local) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{2} +} +func (m *Local) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Local.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 *Local) XXX_Merge(src proto.Message) { + xxx_messageInfo_Local.Merge(m, src) +} +func (m *Local) XXX_Size() int { + return m.Size() +} +func (m *Local) XXX_DiscardUnknown() { + xxx_messageInfo_Local.DiscardUnknown(m) } -func (m *Local) Reset() { *m = Local{} } -func (m *Local) String() string { return proto.CompactTextString(m) } -func (*Local) ProtoMessage() {} -func (*Local) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{2} } +var xxx_messageInfo_Local proto.InternalMessageInfo func (m *Local) GetComponentId() string { if m != nil { @@ -161,13 +230,44 @@ func (m *Local) GetComponentId() string { } type Global struct { - Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Global) Reset() { *m = Global{} } +func (m *Global) String() string { return proto.CompactTextString(m) } +func (*Global) ProtoMessage() {} +func (*Global) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{3} +} +func (m *Global) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Global.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 *Global) XXX_Merge(src proto.Message) { + xxx_messageInfo_Global.Merge(m, src) +} +func (m *Global) XXX_Size() int { + return m.Size() +} +func (m *Global) XXX_DiscardUnknown() { + xxx_messageInfo_Global.DiscardUnknown(m) } -func (m *Global) Reset() { *m = Global{} } -func (m *Global) String() string { return proto.CompactTextString(m) } -func (*Global) ProtoMessage() {} -func (*Global) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{3} } +var xxx_messageInfo_Global proto.InternalMessageInfo func (m *Global) GetComponent() string { if m != nil { @@ -180,13 +280,44 @@ type ConfigKind struct { // Types that are valid to be assigned to Kind: // *ConfigKind_Local // *ConfigKind_Global - Kind isConfigKind_Kind `protobuf_oneof:"kind"` + Kind isConfigKind_Kind `protobuf_oneof:"kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfigKind) Reset() { *m = ConfigKind{} } +func (m *ConfigKind) String() string { return proto.CompactTextString(m) } +func (*ConfigKind) ProtoMessage() {} +func (*ConfigKind) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{4} +} +func (m *ConfigKind) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfigKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfigKind.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 *ConfigKind) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigKind.Merge(m, src) +} +func (m *ConfigKind) XXX_Size() int { + return m.Size() +} +func (m *ConfigKind) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigKind.DiscardUnknown(m) } -func (m *ConfigKind) Reset() { *m = ConfigKind{} } -func (m *ConfigKind) String() string { return proto.CompactTextString(m) } -func (*ConfigKind) ProtoMessage() {} -func (*ConfigKind) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{4} } +var xxx_messageInfo_ConfigKind proto.InternalMessageInfo type isConfigKind_Kind interface { isConfigKind_Kind() @@ -195,10 +326,10 @@ type isConfigKind_Kind interface { } type ConfigKind_Local struct { - Local *Local `protobuf:"bytes,1,opt,name=local,oneof"` + Local *Local `protobuf:"bytes,1,opt,name=local,proto3,oneof" json:"local,omitempty"` } type ConfigKind_Global struct { - Global *Global `protobuf:"bytes,2,opt,name=global,oneof"` + Global *Global `protobuf:"bytes,2,opt,name=global,proto3,oneof" json:"global,omitempty"` } func (*ConfigKind_Local) isConfigKind_Kind() {} @@ -225,89 +356,54 @@ func (m *ConfigKind) GetGlobal() *Global { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ConfigKind) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ConfigKind_OneofMarshaler, _ConfigKind_OneofUnmarshaler, _ConfigKind_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ConfigKind) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*ConfigKind_Local)(nil), (*ConfigKind_Global)(nil), } } -func _ConfigKind_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ConfigKind) - // kind - switch x := m.Kind.(type) { - case *ConfigKind_Local: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Local); err != nil { - return err - } - case *ConfigKind_Global: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Global); err != nil { - return err +type ConfigEntry struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfigEntry) Reset() { *m = ConfigEntry{} } +func (m *ConfigEntry) String() string { return proto.CompactTextString(m) } +func (*ConfigEntry) ProtoMessage() {} +func (*ConfigEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{5} +} +func (m *ConfigEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfigEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfigEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("ConfigKind.Kind has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _ConfigKind_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ConfigKind) - switch tag { - case 1: // kind.local - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Local) - err := b.DecodeMessage(msg) - m.Kind = &ConfigKind_Local{msg} - return true, err - case 2: // kind.global - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Global) - err := b.DecodeMessage(msg) - m.Kind = &ConfigKind_Global{msg} - return true, err - default: - return false, nil - } -} - -func _ConfigKind_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ConfigKind) - // kind - switch x := m.Kind.(type) { - case *ConfigKind_Local: - s := proto.Size(x.Local) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ConfigKind_Global: - s := proto.Size(x.Global) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *ConfigEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigEntry.Merge(m, src) } - -type ConfigEntry struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +func (m *ConfigEntry) XXX_Size() int { + return m.Size() +} +func (m *ConfigEntry) XXX_DiscardUnknown() { + xxx_messageInfo_ConfigEntry.DiscardUnknown(m) } -func (m *ConfigEntry) Reset() { *m = ConfigEntry{} } -func (m *ConfigEntry) String() string { return proto.CompactTextString(m) } -func (*ConfigEntry) ProtoMessage() {} -func (*ConfigEntry) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{5} } +var xxx_messageInfo_ConfigEntry proto.InternalMessageInfo func (m *ConfigEntry) GetName() string { if m != nil { @@ -324,16 +420,47 @@ func (m *ConfigEntry) GetValue() string { } type LocalConfig struct { - Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` - Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalConfig) Reset() { *m = LocalConfig{} } +func (m *LocalConfig) String() string { return proto.CompactTextString(m) } +func (*LocalConfig) ProtoMessage() {} +func (*LocalConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{6} +} +func (m *LocalConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalConfig.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 *LocalConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalConfig.Merge(m, src) +} +func (m *LocalConfig) XXX_Size() int { + return m.Size() +} +func (m *LocalConfig) XXX_DiscardUnknown() { + xxx_messageInfo_LocalConfig.DiscardUnknown(m) } -func (m *LocalConfig) Reset() { *m = LocalConfig{} } -func (m *LocalConfig) String() string { return proto.CompactTextString(m) } -func (*LocalConfig) ProtoMessage() {} -func (*LocalConfig) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{6} } +var xxx_messageInfo_LocalConfig proto.InternalMessageInfo func (m *LocalConfig) GetVersion() *Version { if m != nil { @@ -364,13 +491,44 @@ func (m *LocalConfig) GetConfig() string { } type Header struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Header) Reset() { *m = Header{} } +func (m *Header) String() string { return proto.CompactTextString(m) } +func (*Header) ProtoMessage() {} +func (*Header) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{7} +} +func (m *Header) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Header.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 *Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Header.Merge(m, src) +} +func (m *Header) XXX_Size() int { + return m.Size() +} +func (m *Header) XXX_DiscardUnknown() { + xxx_messageInfo_Header.DiscardUnknown(m) } -func (m *Header) Reset() { *m = Header{} } -func (m *Header) String() string { return proto.CompactTextString(m) } -func (*Header) ProtoMessage() {} -func (*Header) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{7} } +var xxx_messageInfo_Header proto.InternalMessageInfo func (m *Header) GetClusterId() uint64 { if m != nil { @@ -380,17 +538,48 @@ func (m *Header) GetClusterId() uint64 { } type CreateRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` - Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateRequest) Reset() { *m = CreateRequest{} } +func (m *CreateRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRequest) ProtoMessage() {} +func (*CreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{8} +} +func (m *CreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateRequest.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 *CreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRequest.Merge(m, src) +} +func (m *CreateRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRequest.DiscardUnknown(m) } -func (m *CreateRequest) Reset() { *m = CreateRequest{} } -func (m *CreateRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRequest) ProtoMessage() {} -func (*CreateRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{8} } +var xxx_messageInfo_CreateRequest proto.InternalMessageInfo func (m *CreateRequest) GetHeader() *Header { if m != nil { @@ -428,16 +617,47 @@ func (m *CreateRequest) GetConfig() string { } type CreateResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateResponse) Reset() { *m = CreateResponse{} } +func (m *CreateResponse) String() string { return proto.CompactTextString(m) } +func (*CreateResponse) ProtoMessage() {} +func (*CreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{9} +} +func (m *CreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateResponse.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 *CreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateResponse.Merge(m, src) +} +func (m *CreateResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateResponse.DiscardUnknown(m) } -func (m *CreateResponse) Reset() { *m = CreateResponse{} } -func (m *CreateResponse) String() string { return proto.CompactTextString(m) } -func (*CreateResponse) ProtoMessage() {} -func (*CreateResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{9} } +var xxx_messageInfo_CreateResponse proto.InternalMessageInfo func (m *CreateResponse) GetHeader() *Header { if m != nil { @@ -468,13 +688,44 @@ func (m *CreateResponse) GetConfig() string { } type GetAllRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetAllRequest) Reset() { *m = GetAllRequest{} } +func (m *GetAllRequest) String() string { return proto.CompactTextString(m) } +func (*GetAllRequest) ProtoMessage() {} +func (*GetAllRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{10} +} +func (m *GetAllRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllRequest.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 *GetAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRequest.Merge(m, src) +} +func (m *GetAllRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllRequest.DiscardUnknown(m) } -func (m *GetAllRequest) Reset() { *m = GetAllRequest{} } -func (m *GetAllRequest) String() string { return proto.CompactTextString(m) } -func (*GetAllRequest) ProtoMessage() {} -func (*GetAllRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{10} } +var xxx_messageInfo_GetAllRequest proto.InternalMessageInfo func (m *GetAllRequest) GetHeader() *Header { if m != nil { @@ -484,15 +735,46 @@ func (m *GetAllRequest) GetHeader() *Header { } type GetAllResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` - LocalConfigs []*LocalConfig `protobuf:"bytes,3,rep,name=local_configs,json=localConfigs" json:"local_configs,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LocalConfigs []*LocalConfig `protobuf:"bytes,3,rep,name=local_configs,json=localConfigs,proto3" json:"local_configs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetAllResponse) Reset() { *m = GetAllResponse{} } +func (m *GetAllResponse) String() string { return proto.CompactTextString(m) } +func (*GetAllResponse) ProtoMessage() {} +func (*GetAllResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{11} +} +func (m *GetAllResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllResponse.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 *GetAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllResponse.Merge(m, src) +} +func (m *GetAllResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllResponse.DiscardUnknown(m) } -func (m *GetAllResponse) Reset() { *m = GetAllResponse{} } -func (m *GetAllResponse) String() string { return proto.CompactTextString(m) } -func (*GetAllResponse) ProtoMessage() {} -func (*GetAllResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{11} } +var xxx_messageInfo_GetAllResponse proto.InternalMessageInfo func (m *GetAllResponse) GetHeader() *Header { if m != nil { @@ -516,16 +798,47 @@ func (m *GetAllResponse) GetLocalConfigs() []*LocalConfig { } type GetRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` - ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` + ComponentId string `protobuf:"bytes,4,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{12} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{12} } +var xxx_messageInfo_GetRequest proto.InternalMessageInfo func (m *GetRequest) GetHeader() *Header { if m != nil { @@ -556,16 +869,47 @@ func (m *GetRequest) GetComponentId() string { } type GetResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{13} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{13} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo func (m *GetResponse) GetHeader() *Header { if m != nil { @@ -596,16 +940,47 @@ func (m *GetResponse) GetConfig() string { } type UpdateRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` - Entries []*ConfigEntry `protobuf:"bytes,4,rep,name=entries" json:"entries,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` + Entries []*ConfigEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } +func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateRequest) ProtoMessage() {} +func (*UpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{14} +} +func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateRequest.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 *UpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRequest.Merge(m, src) +} +func (m *UpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateRequest.DiscardUnknown(m) } -func (m *UpdateRequest) Reset() { *m = UpdateRequest{} } -func (m *UpdateRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateRequest) ProtoMessage() {} -func (*UpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{14} } +var xxx_messageInfo_UpdateRequest proto.InternalMessageInfo func (m *UpdateRequest) GetHeader() *Header { if m != nil { @@ -636,16 +1011,47 @@ func (m *UpdateRequest) GetEntries() []*ConfigEntry { } type UpdateResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` - Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } +func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateResponse) ProtoMessage() {} +func (*UpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{15} +} +func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateResponse.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 *UpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateResponse.Merge(m, src) +} +func (m *UpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateResponse.DiscardUnknown(m) } -func (m *UpdateResponse) Reset() { *m = UpdateResponse{} } -func (m *UpdateResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateResponse) ProtoMessage() {} -func (*UpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{15} } +var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo func (m *UpdateResponse) GetHeader() *Header { if m != nil { @@ -676,15 +1082,46 @@ func (m *UpdateResponse) GetConfig() string { } type DeleteRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Kind *ConfigKind `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } +func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRequest) ProtoMessage() {} +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{16} +} +func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRequest.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 *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(m, src) +} +func (m *DeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRequest.DiscardUnknown(m) } -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{16} } +var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo func (m *DeleteRequest) GetHeader() *Header { if m != nil { @@ -708,15 +1145,46 @@ func (m *DeleteRequest) GetKind() *ConfigKind { } type DeleteResponse struct { - Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` - Version *Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } +func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteResponse) ProtoMessage() {} +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a04502e9e0ee6409, []int{17} +} +func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteResponse.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 *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(m, src) +} +func (m *DeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResponse.DiscardUnknown(m) } -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} -func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorConfigpb, []int{17} } +var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo func (m *DeleteResponse) GetHeader() *Header { if m != nil { @@ -740,6 +1208,7 @@ func (m *DeleteResponse) GetVersion() *Version { } func init() { + proto.RegisterEnum("configpb.StatusCode", StatusCode_name, StatusCode_value) proto.RegisterType((*Status)(nil), "configpb.Status") proto.RegisterType((*Version)(nil), "configpb.Version") proto.RegisterType((*Local)(nil), "configpb.Local") @@ -758,7 +1227,64 @@ func init() { proto.RegisterType((*UpdateResponse)(nil), "configpb.UpdateResponse") proto.RegisterType((*DeleteRequest)(nil), "configpb.DeleteRequest") proto.RegisterType((*DeleteResponse)(nil), "configpb.DeleteResponse") - proto.RegisterEnum("configpb.StatusCode", StatusCode_name, StatusCode_value) +} + +func init() { proto.RegisterFile("configpb.proto", fileDescriptor_a04502e9e0ee6409) } + +var fileDescriptor_a04502e9e0ee6409 = []byte{ + // 830 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0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a, 0x26, 0x24, 0x49, 0xdc, 0x59, 0x39, 0x8d, + 0xb3, 0xf0, 0x57, 0xbf, 0xff, 0x7d, 0x93, 0xdf, 0xc2, 0xd0, 0x4d, 0xd7, 0x15, 0x05, 0x5d, 0x4e, + 0x87, 0x0a, 0x23, 0x33, 0xf3, 0x2a, 0x8c, 0xec, 0x20, 0x91, 0x1d, 0x51, 0x70, 0x9b, 0x28, 0x05, + 0xdf, 0xa0, 0x0e, 0xb6, 0x40, 0x97, 0x2d, 0xa3, 0xd6, 0xcc, 0xf4, 0xb5, 0x5a, 0x33, 0xdb, 0x5d, + 0x09, 0xc8, 0x8e, 0x52, 0x73, 0xaf, 0xfe, 0xc7, 0x8f, 0x4f, 0xd0, 0xaf, 0xb7, 0x2d, 0xf4, 0xdb, + 0x6d, 0x0b, 0xfd, 0x79, 0xdb, 0x42, 0xdf, 0xfe, 0xd5, 0xca, 0x5d, 0xe8, 0xe2, 0xf7, 0xf3, 0xc3, + 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x62, 0x2c, 0x39, 0xdf, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -769,8 +1295,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Config service - +// ConfigClient is the client API for Config service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ConfigClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) @@ -789,7 +1316,7 @@ func NewConfigClient(cc *grpc.ClientConn) ConfigClient { func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { out := new(CreateResponse) - err := grpc.Invoke(ctx, "/configpb.Config/Create", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/configpb.Config/Create", in, out, opts...) if err != nil { return nil, err } @@ -798,7 +1325,7 @@ func (c *configClient) Create(ctx context.Context, in *CreateRequest, opts ...gr func (c *configClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) { out := new(GetAllResponse) - err := grpc.Invoke(ctx, "/configpb.Config/GetAll", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/configpb.Config/GetAll", in, out, opts...) if err != nil { return nil, err } @@ -807,7 +1334,7 @@ func (c *configClient) GetAll(ctx context.Context, in *GetAllRequest, opts ...gr func (c *configClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := grpc.Invoke(ctx, "/configpb.Config/Get", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/configpb.Config/Get", in, out, opts...) if err != nil { return nil, err } @@ -816,7 +1343,7 @@ func (c *configClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Cal func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) { out := new(UpdateResponse) - err := grpc.Invoke(ctx, "/configpb.Config/Update", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/configpb.Config/Update", in, out, opts...) if err != nil { return nil, err } @@ -825,15 +1352,14 @@ func (c *configClient) Update(ctx context.Context, in *UpdateRequest, opts ...gr func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := grpc.Invoke(ctx, "/configpb.Config/Delete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/configpb.Config/Delete", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Config service - +// ConfigServer is the server API for Config service. type ConfigServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) @@ -842,6 +1368,26 @@ type ConfigServer interface { Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) } +// UnimplementedConfigServer can be embedded to have forward compatible implementations. +type UnimplementedConfigServer struct { +} + +func (*UnimplementedConfigServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedConfigServer) GetAll(ctx context.Context, req *GetAllRequest) (*GetAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAll not implemented") +} +func (*UnimplementedConfigServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedConfigServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (*UnimplementedConfigServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} + func RegisterConfigServer(s *grpc.Server, srv ConfigServer) { s.RegisterService(&_Config_serviceDesc, srv) } @@ -968,7 +1514,7 @@ var _Config_serviceDesc = grpc.ServiceDesc{ func (m *Status) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -976,28 +1522,38 @@ func (m *Status) Marshal() (dAtA []byte, err error) { } func (m *Status) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Code != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Code)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintConfigpb(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Version) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1005,27 +1561,36 @@ func (m *Version) Marshal() (dAtA []byte, err error) { } func (m *Version) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Local != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Local)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Global != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintConfigpb(dAtA, i, uint64(m.Global)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Local != 0 { + i = encodeVarintConfigpb(dAtA, i, uint64(m.Local)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Local) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1033,23 +1598,33 @@ func (m *Local) Marshal() (dAtA []byte, err error) { } func (m *Local) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.ComponentId) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.ComponentId) + copy(dAtA[i:], m.ComponentId) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i += copy(dAtA[i:], m.ComponentId) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Global) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1057,23 +1632,33 @@ func (m *Global) Marshal() (dAtA []byte, err error) { } func (m *Global) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Global) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Component) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Component) + copy(dAtA[i:], m.Component) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i += copy(dAtA[i:], m.Component) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ConfigKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1081,52 +1666,77 @@ func (m *ConfigKind) Marshal() (dAtA []byte, err error) { } func (m *ConfigKind) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Kind != nil { - nn1, err := m.Kind.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Kind.Size() + i -= size + if _, err := m.Kind.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn1 } - return i, nil + return len(dAtA) - i, nil } func (m *ConfigKind_Local) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigKind_Local) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Local != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Local.Size())) - n2, err := m.Local.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Local.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ConfigKind_Global) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigKind_Global) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Global != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Global.Size())) - n3, err := m.Global.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Global.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *ConfigEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1134,29 +1744,40 @@ func (m *ConfigEntry) Marshal() (dAtA []byte, err error) { } func (m *ConfigEntry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *LocalConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1164,45 +1785,59 @@ func (m *LocalConfig) Marshal() (dAtA []byte, err error) { } func (m *LocalConfig) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Version != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n4, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Component) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i += copy(dAtA[i:], m.Component) + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x22 } if len(m.ComponentId) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.ComponentId) + copy(dAtA[i:], m.ComponentId) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i += copy(dAtA[i:], m.ComponentId) + i-- + dAtA[i] = 0x1a } - if len(m.Config) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + if len(m.Component) > 0 { + i -= len(m.Component) + copy(dAtA[i:], m.Component) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) + i-- + dAtA[i] = 0x12 + } + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Header) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1210,22 +1845,31 @@ func (m *Header) Marshal() (dAtA []byte, err error) { } func (m *Header) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintConfigpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1233,55 +1877,71 @@ func (m *CreateRequest) Marshal() (dAtA []byte, err error) { } func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n6, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x2a + } + if len(m.ComponentId) > 0 { + i -= len(m.ComponentId) + copy(dAtA[i:], m.ComponentId) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i-- + dAtA[i] = 0x22 } if len(m.Component) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Component) + copy(dAtA[i:], m.Component) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i += copy(dAtA[i:], m.Component) + i-- + dAtA[i] = 0x1a } - if len(m.ComponentId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i += copy(dAtA[i:], m.ComponentId) + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if len(m.Config) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1289,53 +1949,69 @@ func (m *CreateResponse) Marshal() (dAtA []byte, err error) { } func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n7, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Status != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) - n8, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x22 } if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n9, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x12 } - if len(m.Config) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1343,27 +2019,38 @@ func (m *GetAllRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n10, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1371,49 +2058,64 @@ func (m *GetAllResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n11, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LocalConfigs) > 0 { + for iNdEx := len(m.LocalConfigs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LocalConfigs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n11 } if m.Status != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) - n12, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x12 } - if len(m.LocalConfigs) > 0 { - for _, msg := range m.LocalConfigs { - dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1421,49 +2123,64 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n13, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n14, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 + if len(m.ComponentId) > 0 { + i -= len(m.ComponentId) + copy(dAtA[i:], m.ComponentId) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) + i-- + dAtA[i] = 0x22 } if len(m.Component) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Component) + copy(dAtA[i:], m.Component) i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Component))) - i += copy(dAtA[i:], m.Component) + i-- + dAtA[i] = 0x1a } - if len(m.ComponentId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.ComponentId))) - i += copy(dAtA[i:], m.ComponentId) + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1471,53 +2188,69 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n15, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Status != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) - n16, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x22 } if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n17, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x12 } - if len(m.Config) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1525,59 +2258,76 @@ func (m *UpdateRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n18, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n19, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Entries) > 0 { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i += n19 } if m.Kind != nil { + { + size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Kind.Size())) - n20, err := m.Kind.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x12 } - if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1585,53 +2335,69 @@ func (m *UpdateResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n21, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Status != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) - n22, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x22 } if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n23, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n23 + i-- + dAtA[i] = 0x12 } - if len(m.Config) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1639,47 +2405,62 @@ func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n24, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Kind != nil { + { + size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n24 + i-- + dAtA[i] = 0x1a } if m.Version != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n25, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n25 + i-- + dAtA[i] = 0x12 } - if m.Kind != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Kind.Size())) - n26, err := m.Kind.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n26 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1687,53 +2468,73 @@ func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Header.Size())) - n27, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n27 + i-- + dAtA[i] = 0x1a } if m.Status != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Status.Size())) - n28, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n28 + i-- + dAtA[i] = 0x12 } - if m.Version != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) - n29, err := m.Version.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintConfigpb(dAtA, i, uint64(size)) } - i += n29 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintConfigpb(dAtA []byte, offset int, v uint64) int { + offset -= sovConfigpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Status) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Code != 0 { @@ -1743,10 +2544,16 @@ func (m *Status) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Version) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Local != 0 { @@ -1755,39 +2562,63 @@ func (m *Version) Size() (n int) { if m.Global != 0 { n += 1 + sovConfigpb(uint64(m.Global)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Local) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ComponentId) if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Global) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Component) if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfigKind) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Kind != nil { n += m.Kind.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfigKind_Local) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Local != nil { @@ -1797,6 +2628,9 @@ func (m *ConfigKind_Local) Size() (n int) { return n } func (m *ConfigKind_Global) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Global != nil { @@ -1806,6 +2640,9 @@ func (m *ConfigKind_Global) Size() (n int) { return n } func (m *ConfigEntry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -1816,10 +2653,16 @@ func (m *ConfigEntry) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LocalConfig) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Version != nil { @@ -1838,19 +2681,31 @@ func (m *LocalConfig) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Header) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { n += 1 + sovConfigpb(uint64(m.ClusterId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CreateRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1873,10 +2728,16 @@ func (m *CreateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CreateResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1895,20 +2756,32 @@ func (m *CreateResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { l = m.Header.Size() n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1925,10 +2798,16 @@ func (m *GetAllResponse) Size() (n int) { n += 1 + l + sovConfigpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1947,10 +2826,16 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1969,10 +2854,16 @@ func (m *GetResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1993,10 +2884,16 @@ func (m *UpdateRequest) Size() (n int) { n += 1 + l + sovConfigpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -2015,10 +2912,16 @@ func (m *UpdateResponse) Size() (n int) { if l > 0 { n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -2033,10 +2936,16 @@ func (m *DeleteRequest) Size() (n int) { l = m.Kind.Size() n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -2051,18 +2960,14 @@ func (m *DeleteResponse) Size() (n int) { l = m.Version.Size() n += 1 + l + sovConfigpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovConfigpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozConfigpb(x uint64) (n int) { return sovConfigpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2082,7 +2987,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2110,7 +3015,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= (StatusCode(b) & 0x7F) << shift + m.Code |= StatusCode(b&0x7F) << shift if b < 0x80 { break } @@ -2129,7 +3034,7 @@ func (m *Status) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2139,6 +3044,9 @@ func (m *Status) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2150,12 +3058,13 @@ func (m *Status) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2180,7 +3089,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2208,7 +3117,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Local |= (uint64(b) & 0x7F) << shift + m.Local |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2227,7 +3136,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Global |= (uint64(b) & 0x7F) << shift + m.Global |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2238,12 +3147,13 @@ func (m *Version) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2268,7 +3178,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2296,7 +3206,7 @@ func (m *Local) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2306,6 +3216,9 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2317,12 +3230,13 @@ func (m *Local) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2347,7 +3261,7 @@ func (m *Global) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2375,7 +3289,7 @@ func (m *Global) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2385,6 +3299,9 @@ func (m *Global) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2396,12 +3313,13 @@ func (m *Global) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2426,7 +3344,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2454,7 +3372,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2463,6 +3381,9 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2486,7 +3407,7 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2495,6 +3416,9 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2510,12 +3434,13 @@ func (m *ConfigKind) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2540,7 +3465,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2568,7 +3493,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2578,6 +3503,9 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2597,7 +3525,7 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2607,6 +3535,9 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2618,12 +3549,13 @@ func (m *ConfigEntry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2648,7 +3580,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2676,7 +3608,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2685,6 +3617,9 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2709,7 +3644,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2719,6 +3654,9 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2738,7 +3676,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2748,6 +3686,9 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2767,7 +3708,7 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2777,6 +3718,9 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2788,12 +3732,13 @@ func (m *LocalConfig) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2818,7 +3763,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2846,7 +3791,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2857,12 +3802,13 @@ func (m *Header) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2887,7 +3833,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2915,7 +3861,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2924,6 +3870,9 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2948,7 +3897,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2957,6 +3906,9 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2981,7 +3933,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2991,6 +3943,9 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3010,7 +3965,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3020,6 +3975,9 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3039,7 +3997,7 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3049,6 +4007,9 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3060,12 +4021,13 @@ func (m *CreateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3090,7 +4052,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3118,7 +4080,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3127,6 +4089,9 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3151,7 +4116,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3160,6 +4125,9 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3184,7 +4152,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3193,6 +4161,9 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3217,7 +4188,7 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3227,6 +4198,9 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3238,12 +4212,13 @@ func (m *CreateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3268,7 +4243,7 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3296,7 +4271,7 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3305,6 +4280,9 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3321,12 +4299,13 @@ func (m *GetAllRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3351,7 +4330,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3379,7 +4358,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3388,6 +4367,9 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3412,7 +4394,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3421,6 +4403,9 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3445,7 +4430,7 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3454,6 +4439,9 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3468,12 +4456,13 @@ func (m *GetAllResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3498,7 +4487,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3526,7 +4515,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3535,6 +4524,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3559,7 +4551,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3568,6 +4560,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3592,7 +4587,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3602,6 +4597,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3621,7 +4619,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3631,6 +4629,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3642,12 +4643,13 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3672,7 +4674,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3700,7 +4702,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3709,6 +4711,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3733,7 +4738,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3742,6 +4747,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3766,7 +4774,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3775,6 +4783,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3799,7 +4810,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3809,6 +4820,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3820,12 +4834,13 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3850,7 +4865,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3878,7 +4893,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3887,6 +4902,9 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3911,7 +4929,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3920,6 +4938,9 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3944,7 +4965,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3953,6 +4974,9 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3977,7 +5001,7 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3986,6 +5010,9 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4000,12 +5027,13 @@ func (m *UpdateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4030,7 +5058,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4058,7 +5086,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4067,6 +5095,9 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4091,7 +5122,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4100,6 +5131,9 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4124,7 +5158,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4133,6 +5167,9 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4157,7 +5194,7 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4167,6 +5204,9 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4178,12 +5218,13 @@ func (m *UpdateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4208,7 +5249,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4236,7 +5277,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4245,6 +5286,9 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4269,7 +5313,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4278,6 +5322,9 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4302,7 +5349,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4311,6 +5358,9 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4327,12 +5377,13 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4357,7 +5408,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4385,7 +5436,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4394,6 +5445,9 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4418,7 +5472,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4427,6 +5481,9 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4451,7 +5508,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4460,6 +5517,9 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthConfigpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthConfigpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4476,12 +5536,13 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthConfigpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4494,6 +5555,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { func skipConfigpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4525,10 +5587,8 @@ func skipConfigpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -4545,111 +5605,34 @@ func skipConfigpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthConfigpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowConfigpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipConfigpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupConfigpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthConfigpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthConfigpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowConfigpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupConfigpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("configpb.proto", fileDescriptorConfigpb) } - -var fileDescriptorConfigpb = []byte{ - // 830 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xcf, 0x24, 0x8e, 0xb3, 0x79, 0x6e, 0xd2, 0xec, 0x90, 0xee, 0x46, 0xd1, 0x12, 0x95, 0x39, - 0xb0, 0x51, 0x90, 0x36, 0x52, 0x38, 0xac, 0x58, 0x89, 0xc3, 0x36, 0x4d, 0x93, 0xa8, 0xc5, 0x46, - 0xd3, 0x7f, 0xc7, 0xc8, 0x8d, 0x87, 0x60, 0xe1, 0x7a, 0x82, 0xed, 0x54, 0xea, 0x95, 0x4f, 0x00, - 0xea, 0x85, 0x23, 0x07, 0x84, 0xe0, 0x53, 0x20, 0x6e, 0x1c, 0x91, 0xb8, 0x70, 0x44, 0x85, 0x6f, - 0xc0, 0x17, 0x40, 0x99, 0xb1, 0xeb, 0x71, 0x22, 0xa8, 0x7a, 0xa8, 0x94, 0x9b, 0xdf, 0xbc, 0x3f, - 0xf3, 0xfb, 0xfd, 0xfc, 0xde, 0xb3, 0xa1, 0x3a, 0xe5, 0xfe, 0x67, 0xee, 0x6c, 0x7e, 0xf1, 0x6a, - 0x1e, 0xf0, 0x88, 0xe3, 0x27, 0x89, 0xdd, 0xac, 0xcf, 0xf8, 0x8c, 0x8b, 0xc3, 0xee, 0xf2, 0x49, - 0xfa, 0x9b, 0xdb, 0xc1, 0x22, 0x8c, 0xc4, 0x63, 0x7c, 0xf0, 0x62, 0xc6, 0xf9, 0xcc, 0x63, 0x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, 0xd0, 0xe3, - 0xef, 0xec, 0xc7, 0xa0, 0xcb, 0xad, 0x8f, 0x9f, 0x2b, 0xfa, 0xa9, 0x5f, 0xb2, 0x66, 0x63, 0xdd, - 0x21, 0x35, 0x24, 0xb9, 0x65, 0xba, 0xdc, 0xa6, 0x6a, 0x7a, 0x66, 0x37, 0xab, 0xe9, 0xd9, 0xc5, - 0x4b, 0x72, 0xf8, 0x00, 0x0a, 0x43, 0x16, 0xe1, 0x7a, 0x26, 0x24, 0x49, 0xdc, 0x59, 0x39, 0x8d, - 0xb3, 0xf0, 0x57, 0xbf, 0xff, 0x7d, 0x93, 0xdf, 0xc2, 0xd0, 0x4d, 0xd7, 0x15, 0x05, 0x5d, 0x4e, - 0x87, 0x0a, 0x23, 0x33, 0xf3, 0x2a, 0x8c, 0xec, 0x20, 0x91, 0x1d, 0x51, 0x70, 0x9b, 0x28, 0x05, - 0xdf, 0xa0, 0x0e, 0xb6, 0x40, 0x97, 0x2d, 0xa3, 0xd6, 0xcc, 0xf4, 0xb5, 0x5a, 0x33, 0xdb, 0x5d, - 0x09, 0xc8, 0x8e, 0x52, 0x73, 0xaf, 0xfe, 0xc7, 0x8f, 0x4f, 0xd0, 0xaf, 0xb7, 0x2d, 0xf4, 0xdb, - 0x6d, 0x0b, 0xfd, 0x79, 0xdb, 0x42, 0xdf, 0xfe, 0xd5, 0xca, 0x5d, 0xe8, 0xe2, 0xf7, 0xf3, 0xc3, - 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x62, 0x2c, 0x39, 0xdf, 0x0a, 0x00, 0x00, -} diff --git a/pkg/coprocessor/coprocessor.pb.go b/pkg/coprocessor/coprocessor.pb.go index a5a9164fb..ad63f5941 100644 --- a/pkg/coprocessor/coprocessor.pb.go +++ b/pkg/coprocessor/coprocessor.pb.go @@ -1,41 +1,19 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: coprocessor.proto -/* -Package coprocessor is a generated protocol buffer package. - -It is generated from these files: - - coprocessor.proto - -It has these top-level messages: - - KeyRange - Request - Response - RegionInfo - TableRegions - BatchRequest - BatchResponse - StoreBatchTask - StoreBatchTaskResponse -*/ package coprocessor import ( "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" errorpb "github.com/pingcap/kvproto/pkg/errorpb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - - _ "github.com/gogo/protobuf/gogoproto" - metapb "github.com/pingcap/kvproto/pkg/metapb" - github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" ) @@ -48,18 +26,49 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // [start, end) type KeyRange struct { - Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyRange) Reset() { *m = KeyRange{} } +func (m *KeyRange) String() string { return proto.CompactTextString(m) } +func (*KeyRange) ProtoMessage() {} +func (*KeyRange) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{0} +} +func (m *KeyRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyRange.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 *KeyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyRange.Merge(m, src) +} +func (m *KeyRange) XXX_Size() int { + return m.Size() +} +func (m *KeyRange) XXX_DiscardUnknown() { + xxx_messageInfo_KeyRange.DiscardUnknown(m) } -func (m *KeyRange) Reset() { *m = KeyRange{} } -func (m *KeyRange) String() string { return proto.CompactTextString(m) } -func (*KeyRange) ProtoMessage() {} -func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{0} } +var xxx_messageInfo_KeyRange proto.InternalMessageInfo func (m *KeyRange) GetStart() []byte { if m != nil { @@ -76,11 +85,11 @@ func (m *KeyRange) GetEnd() []byte { } type Request struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Tp int64 `protobuf:"varint,2,opt,name=tp,proto3" json:"tp,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` StartTs uint64 `protobuf:"varint,7,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` // If cache is enabled, TiKV returns cache hit instead of data if // its last version matches this `cache_if_match_version`. IsCacheEnabled bool `protobuf:"varint,5,opt,name=is_cache_enabled,json=isCacheEnabled,proto3" json:"is_cache_enabled,omitempty"` @@ -91,13 +100,44 @@ type Request struct { // paging_size is 0 when it's disabled, otherwise, it should be a positive number. PagingSize uint64 `protobuf:"varint,10,opt,name=paging_size,json=pagingSize,proto3" json:"paging_size,omitempty"` // tasks stores the batched coprocessor tasks sent to the same tikv store. - Tasks []*StoreBatchTask `protobuf:"bytes,11,rep,name=tasks" json:"tasks,omitempty"` + Tasks []*StoreBatchTask `protobuf:"bytes,11,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Request) Reset() { *m = Request{} } +func (m *Request) String() string { return proto.CompactTextString(m) } +func (*Request) ProtoMessage() {} +func (*Request) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{1} +} +func (m *Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Request.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 *Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Request.Merge(m, src) +} +func (m *Request) XXX_Size() int { + return m.Size() +} +func (m *Request) XXX_DiscardUnknown() { + xxx_messageInfo_Request.DiscardUnknown(m) } -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} -func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{1} } +var xxx_messageInfo_Request proto.InternalMessageInfo func (m *Request) GetContext() *kvrpcpb.Context { if m != nil { @@ -178,16 +218,16 @@ func (m *Request) GetTasks() []*StoreBatchTask { type Response struct { Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - Range *KeyRange `protobuf:"bytes,5,opt,name=range" json:"range,omitempty"` + Range *KeyRange `protobuf:"bytes,5,opt,name=range,proto3" json:"range,omitempty"` // This field is always filled for compatibility consideration. However // newer TiDB should respect `exec_details_v2` field instead. - ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,6,opt,name=exec_details,json=execDetails" json:"exec_details,omitempty"` + ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,6,opt,name=exec_details,json=execDetails,proto3" json:"exec_details,omitempty"` // This field is provided in later versions, containing more detailed // information. - ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,11,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,11,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` IsCacheHit bool `protobuf:"varint,7,opt,name=is_cache_hit,json=isCacheHit,proto3" json:"is_cache_hit,omitempty"` CacheLastVersion uint64 `protobuf:"varint,8,opt,name=cache_last_version,json=cacheLastVersion,proto3" json:"cache_last_version,omitempty"` CanBeCached bool `protobuf:"varint,9,opt,name=can_be_cached,json=canBeCached,proto3" json:"can_be_cached,omitempty"` @@ -195,13 +235,44 @@ type Response struct { // Clients should query PD to update buckets in cache if its is stale. LatestBucketsVersion uint64 `protobuf:"varint,12,opt,name=latest_buckets_version,json=latestBucketsVersion,proto3" json:"latest_buckets_version,omitempty"` // StoreBatchTaskResponse is the collection of batch task responses. - BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses" json:"batch_responses,omitempty"` + BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses,proto3" json:"batch_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{2} +} +func (m *Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Response.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 *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(m, src) +} +func (m *Response) XXX_Size() int { + return m.Size() +} +func (m *Response) XXX_DiscardUnknown() { + xxx_messageInfo_Response.DiscardUnknown(m) } -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{2} } +var xxx_messageInfo_Response proto.InternalMessageInfo func (m *Response) GetRegionError() *errorpb.Error { if m != nil { @@ -281,15 +352,46 @@ func (m *Response) GetBatchResponses() []*StoreBatchTaskResponse { } type RegionInfo struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionInfo) Reset() { *m = RegionInfo{} } +func (m *RegionInfo) String() string { return proto.CompactTextString(m) } +func (*RegionInfo) ProtoMessage() {} +func (*RegionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{3} +} +func (m *RegionInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionInfo.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 *RegionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfo.Merge(m, src) +} +func (m *RegionInfo) XXX_Size() int { + return m.Size() +} +func (m *RegionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_RegionInfo.DiscardUnknown(m) } -func (m *RegionInfo) Reset() { *m = RegionInfo{} } -func (m *RegionInfo) String() string { return proto.CompactTextString(m) } -func (*RegionInfo) ProtoMessage() {} -func (*RegionInfo) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{3} } +var xxx_messageInfo_RegionInfo proto.InternalMessageInfo func (m *RegionInfo) GetRegionId() uint64 { if m != nil { @@ -313,14 +415,45 @@ func (m *RegionInfo) GetRanges() []*KeyRange { } type TableRegions struct { - PhysicalTableId int64 `protobuf:"varint,1,opt,name=physical_table_id,json=physicalTableId,proto3" json:"physical_table_id,omitempty"` - Regions []*RegionInfo `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` + PhysicalTableId int64 `protobuf:"varint,1,opt,name=physical_table_id,json=physicalTableId,proto3" json:"physical_table_id,omitempty"` + Regions []*RegionInfo `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TableRegions) Reset() { *m = TableRegions{} } +func (m *TableRegions) String() string { return proto.CompactTextString(m) } +func (*TableRegions) ProtoMessage() {} +func (*TableRegions) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{4} +} +func (m *TableRegions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TableRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TableRegions.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 *TableRegions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TableRegions.Merge(m, src) +} +func (m *TableRegions) XXX_Size() int { + return m.Size() +} +func (m *TableRegions) XXX_DiscardUnknown() { + xxx_messageInfo_TableRegions.DiscardUnknown(m) } -func (m *TableRegions) Reset() { *m = TableRegions{} } -func (m *TableRegions) String() string { return proto.CompactTextString(m) } -func (*TableRegions) ProtoMessage() {} -func (*TableRegions) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{4} } +var xxx_messageInfo_TableRegions proto.InternalMessageInfo func (m *TableRegions) GetPhysicalTableId() int64 { if m != nil { @@ -337,22 +470,53 @@ func (m *TableRegions) GetRegions() []*RegionInfo { } type BatchRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Tp int64 `protobuf:"varint,2,opt,name=tp,proto3" json:"tp,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - Regions []*RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` + Regions []*RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // Any schema-ful storage to validate schema correctness if necessary. SchemaVer int64 `protobuf:"varint,6,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for partition table scan - TableRegions []*TableRegions `protobuf:"bytes,7,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` - LogId string `protobuf:"bytes,8,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` + TableRegions []*TableRegions `protobuf:"bytes,7,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` + LogId string `protobuf:"bytes,8,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchRequest) Reset() { *m = BatchRequest{} } +func (m *BatchRequest) String() string { return proto.CompactTextString(m) } +func (*BatchRequest) ProtoMessage() {} +func (*BatchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{5} +} +func (m *BatchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchRequest.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 *BatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRequest.Merge(m, src) +} +func (m *BatchRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchRequest.DiscardUnknown(m) } -func (m *BatchRequest) Reset() { *m = BatchRequest{} } -func (m *BatchRequest) String() string { return proto.CompactTextString(m) } -func (*BatchRequest) ProtoMessage() {} -func (*BatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{5} } +var xxx_messageInfo_BatchRequest proto.InternalMessageInfo func (m *BatchRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -411,16 +575,47 @@ func (m *BatchRequest) GetLogId() string { } type BatchResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - OtherError string `protobuf:"bytes,2,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,3,opt,name=exec_details,json=execDetails" json:"exec_details,omitempty"` - RetryRegions []*metapb.Region `protobuf:"bytes,4,rep,name=retry_regions,json=retryRegions" json:"retry_regions,omitempty"` + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + OtherError string `protobuf:"bytes,2,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` + ExecDetails *kvrpcpb.ExecDetails `protobuf:"bytes,3,opt,name=exec_details,json=execDetails,proto3" json:"exec_details,omitempty"` + RetryRegions []*metapb.Region `protobuf:"bytes,4,rep,name=retry_regions,json=retryRegions,proto3" json:"retry_regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchResponse) Reset() { *m = BatchResponse{} } +func (m *BatchResponse) String() string { return proto.CompactTextString(m) } +func (*BatchResponse) ProtoMessage() {} +func (*BatchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{6} +} +func (m *BatchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchResponse.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 *BatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchResponse.Merge(m, src) +} +func (m *BatchResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchResponse.DiscardUnknown(m) } -func (m *BatchResponse) Reset() { *m = BatchResponse{} } -func (m *BatchResponse) String() string { return proto.CompactTextString(m) } -func (*BatchResponse) ProtoMessage() {} -func (*BatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{6} } +var xxx_messageInfo_BatchResponse proto.InternalMessageInfo func (m *BatchResponse) GetOtherError() string { if m != nil { @@ -444,17 +639,48 @@ func (m *BatchResponse) GetRetryRegions() []*metapb.Region { } type StoreBatchTask struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer" json:"peer,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` - TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` + TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreBatchTask) Reset() { *m = StoreBatchTask{} } +func (m *StoreBatchTask) String() string { return proto.CompactTextString(m) } +func (*StoreBatchTask) ProtoMessage() {} +func (*StoreBatchTask) Descriptor() ([]byte, []int) { + return fileDescriptor_29878c170c3dd019, []int{7} +} +func (m *StoreBatchTask) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreBatchTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreBatchTask.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 *StoreBatchTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreBatchTask.Merge(m, src) +} +func (m *StoreBatchTask) XXX_Size() int { + return m.Size() +} +func (m *StoreBatchTask) XXX_DiscardUnknown() { + xxx_messageInfo_StoreBatchTask.DiscardUnknown(m) } -func (m *StoreBatchTask) Reset() { *m = StoreBatchTask{} } -func (m *StoreBatchTask) String() string { return proto.CompactTextString(m) } -func (*StoreBatchTask) ProtoMessage() {} -func (*StoreBatchTask) Descriptor() ([]byte, []int) { return fileDescriptorCoprocessor, []int{7} } +var xxx_messageInfo_StoreBatchTask proto.InternalMessageInfo func (m *StoreBatchTask) GetRegionId() uint64 { if m != nil { @@ -492,20 +718,49 @@ func (m *StoreBatchTask) GetTaskId() uint64 { } type StoreBatchTaskResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` - RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` - OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` - TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + RegionError *errorpb.Error `protobuf:"bytes,2,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` + OtherError string `protobuf:"bytes,4,opt,name=other_error,json=otherError,proto3" json:"other_error,omitempty"` + TaskId uint64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StoreBatchTaskResponse) Reset() { *m = StoreBatchTaskResponse{} } func (m *StoreBatchTaskResponse) String() string { return proto.CompactTextString(m) } func (*StoreBatchTaskResponse) ProtoMessage() {} func (*StoreBatchTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptorCoprocessor, []int{8} + return fileDescriptor_29878c170c3dd019, []int{8} +} +func (m *StoreBatchTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *StoreBatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreBatchTaskResponse.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 *StoreBatchTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreBatchTaskResponse.Merge(m, src) +} +func (m *StoreBatchTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *StoreBatchTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StoreBatchTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StoreBatchTaskResponse proto.InternalMessageInfo func (m *StoreBatchTaskResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -553,10 +808,80 @@ func init() { proto.RegisterType((*StoreBatchTask)(nil), "coprocessor.StoreBatchTask") proto.RegisterType((*StoreBatchTaskResponse)(nil), "coprocessor.StoreBatchTaskResponse") } + +func init() { proto.RegisterFile("coprocessor.proto", fileDescriptor_29878c170c3dd019) } + +var fileDescriptor_29878c170c3dd019 = []byte{ + // 1003 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xef, 0xfa, 0x7f, 0xde, 0xae, 0x1d, 0x67, 0x9a, 0xa6, 0xdb, 0x56, 0x24, 0x96, 0x91, 0x90, + 0x29, 0xe0, 0x28, 0x0e, 0x2a, 0xb7, 0x1c, 0x5c, 0x22, 0x61, 0x08, 0x12, 0x9a, 0x44, 0xb9, 0xae, + 0xc6, 0xbb, 0x93, 0xf5, 0xca, 0xce, 0xce, 0x32, 0x33, 0x89, 0x92, 0xde, 0xf8, 0x06, 0x1c, 0xb9, + 0x21, 0x71, 0xe2, 0x83, 0x70, 0xe8, 0x0d, 0x8e, 0x88, 0x43, 0x85, 0xc2, 0x37, 0xe0, 0x13, 0xa0, + 0x79, 0xb3, 0xeb, 0xd8, 0x21, 0x45, 0xe9, 0x21, 0x17, 0x4e, 0x3b, 0xef, 0xff, 0x9b, 0xf7, 0x7e, + 0xfb, 0x1b, 0x58, 0x0b, 0x45, 0x26, 0x45, 0xc8, 0x95, 0x12, 0xb2, 0x9f, 0x49, 0xa1, 0x05, 0x71, +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d, 0x5a, 0x87, 0xd6, 0x58, 0x64, 0x3e, 0x80, 0xd5, 0x31, 0x02, 0x5f, 0xe6, 0xa0, 0x51, + 0x7e, 0x13, 0xc1, 0xf6, 0xfe, 0x7f, 0x81, 0x2d, 0xf7, 0xa5, 0x2d, 0x8c, 0x2d, 0x44, 0xf5, 0x65, + 0xa5, 0x01, 0x6d, 0xb7, 0xfb, 0xbd, 0x03, 0x40, 0x71, 0xff, 0x66, 0xb7, 0xe4, 0x19, 0xac, 0xe4, + 0x88, 0x49, 0x22, 0x84, 0x62, 0x85, 0x36, 0xac, 0x62, 0x14, 0x91, 0x17, 0xd7, 0x70, 0xca, 0x44, + 0x38, 0xc9, 0xe1, 0xf4, 0xb0, 0x9f, 0x53, 0x95, 0x4d, 0xb3, 0x6f, 0x4c, 0x73, 0x4c, 0x19, 0x61, + 0x81, 0x12, 0xca, 0x77, 0xa0, 0x84, 0xee, 0x29, 0x78, 0x47, 0xe6, 0xa7, 0xb3, 0xf9, 0x14, 0x79, + 0x0e, 0x6b, 0xd9, 0xe4, 0x52, 0x25, 0x21, 0x9b, 0x05, 0xda, 0x18, 0x8a, 0xde, 0xca, 0x74, 0xb5, + 0x30, 0x60, 0xc0, 0x28, 0x22, 0x3b, 0x50, 0xb7, 0x95, 0x95, 0x5f, 0xc2, 0x5a, 0x8f, 0x97, 0x6a, + 0x5d, 0xdf, 0x94, 0x16, 0x7e, 0xdd, 0x9f, 0x4a, 0xe0, 0x0d, 0xed, 0x68, 0xee, 0x87, 0x2c, 0x17, + 0x7a, 0xaa, 0xdc, 0xad, 0xa7, 0x25, 0x7e, 0xad, 0x2e, 0xf3, 0xeb, 0x32, 0xa3, 0xd5, 0x6e, 0x32, + 0xda, 0x1e, 0x34, 0xed, 0x8c, 0x8a, 0x92, 0x75, 0x2c, 0xf9, 0x64, 0xa9, 0xe4, 0xe2, 0x78, 0xa9, + 0xa7, 0x17, 0x87, 0xfd, 0xc8, 0xfc, 0xff, 0xb1, 0x99, 0x70, 0x03, 0xff, 0xe7, 0xea, 0x4c, 0xc4, + 0xa3, 0xa8, 0xfb, 0xb7, 0x03, 0xcd, 0xe1, 0x22, 0x7e, 0xee, 0x85, 0xaf, 0x6e, 0x30, 0x4a, 0xe9, + 0x5f, 0x8c, 0x72, 0x93, 0x24, 0xca, 0x77, 0x25, 0x89, 0x5d, 0x68, 0x4a, 0xae, 0xe5, 0x65, 0xb0, + 0xbc, 0x89, 0xd6, 0x32, 0x76, 0xa9, 0x87, 0x4e, 0xf9, 0x2c, 0xba, 0xbf, 0x3a, 0xd0, 0x5a, 0xfe, + 0x99, 0xee, 0xe7, 0xff, 0xe8, 0x40, 0x25, 0xe3, 0x5c, 0xe6, 0xb7, 0xf1, 0x0a, 0xff, 0x6f, 0x38, + 0x97, 0x14, 0x2d, 0xef, 0xfa, 0xa8, 0x3e, 0x86, 0xba, 0x79, 0x61, 0x4c, 0x8f, 0x16, 0x3d, 0x35, + 0x23, 0x8e, 0xa2, 0xee, 0x2f, 0x25, 0xd8, 0xb8, 0x9d, 0x1e, 0xfe, 0x8f, 0xef, 0xcf, 0xdb, 0xc6, + 0x70, 0xdb, 0x93, 0x51, 0x7b, 0x87, 0x27, 0x63, 0xf8, 0xc1, 0xef, 0x3f, 0x37, 0x9c, 0xd7, 0x57, + 0x9b, 0xce, 0x6f, 0x57, 0x9b, 0xce, 0x9f, 0x57, 0x9b, 0xce, 0x0f, 0x7f, 0x6d, 0x3e, 0x80, 0xb6, + 0x90, 0x71, 0x5f, 0x27, 0xd3, 0xf3, 0x7e, 0x3e, 0xa1, 0x71, 0x0d, 0x3f, 0xbb, 0xff, 0x04, 0x00, + 0x00, 0xff, 0xff, 0xc1, 0xb1, 0xfb, 0x7d, 0x32, 0x0a, 0x00, 0x00, +} + func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -564,29 +889,40 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { } func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Start) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Start))) - i += copy(dAtA[i:], m.Start) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.End) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.End) + copy(dAtA[i:], m.End) i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.End))) - i += copy(dAtA[i:], m.End) + i-- + dAtA[i] = 0x12 + } + if len(m.Start) > 0 { + i -= len(m.Start) + copy(dAtA[i:], m.Start) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Start))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -594,102 +930,118 @@ func (m *Request) Marshal() (dAtA []byte, err error) { } func (m *Request) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Context.Size())) - n1, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Tp != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) - } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x22 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Tasks) > 0 { + for iNdEx := len(m.Tasks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x5a } } - if m.IsCacheEnabled { - dAtA[i] = 0x28 - i++ - if m.IsCacheEnabled { + if m.PagingSize != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.PagingSize)) + i-- + dAtA[i] = 0x50 + } + if m.IsTraceEnabled { + i-- + if m.IsTraceEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x48 } - if m.CacheIfMatchVersion != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheIfMatchVersion)) + if m.SchemaVer != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) + i-- + dAtA[i] = 0x40 } if m.StartTs != 0 { - dAtA[i] = 0x38 - i++ i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x38 } - if m.SchemaVer != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) + if m.CacheIfMatchVersion != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheIfMatchVersion)) + i-- + dAtA[i] = 0x30 } - if m.IsTraceEnabled { - dAtA[i] = 0x48 - i++ - if m.IsTraceEnabled { + if m.IsCacheEnabled { + i-- + if m.IsCacheEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if m.PagingSize != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.PagingSize)) + 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - if len(m.Tasks) > 0 { - for _, msg := range m.Tasks { - dAtA[i] = 0x5a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x1a + } + if m.Tp != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -697,123 +1049,147 @@ func (m *Response) Marshal() (dAtA []byte, err error) { } func (m *Response) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) - n2, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - i += n2 - if m.RegionError != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionError.Size())) - n3, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.Locked != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Locked.Size())) - n4, err := m.Locked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.BatchResponses) > 0 { + for iNdEx := len(m.BatchResponses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BatchResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a } - i += n4 } - if len(m.OtherError) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i += copy(dAtA[i:], m.OtherError) - } - if m.Range != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Range.Size())) - n5, err := m.Range.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.LatestBucketsVersion != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) + i-- + dAtA[i] = 0x60 } - if m.ExecDetails != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) - n6, err := m.ExecDetails.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x5a } - if m.IsCacheHit { - dAtA[i] = 0x38 - i++ - if m.IsCacheHit { + if m.CanBeCached { + i-- + if m.CanBeCached { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x48 } if m.CacheLastVersion != 0 { - dAtA[i] = 0x40 - i++ i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheLastVersion)) + i-- + dAtA[i] = 0x40 } - if m.CanBeCached { - dAtA[i] = 0x48 - i++ - if m.CanBeCached { + if m.IsCacheHit { + i-- + if m.IsCacheHit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n7, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetails != nil { + { + size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x32 } - if m.LatestBucketsVersion != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - if len(m.BatchResponses) > 0 { - for _, msg := range m.BatchResponses { - dAtA[i] = 0x6a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.OtherError) > 0 { + i -= len(m.OtherError) + copy(dAtA[i:], m.OtherError) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i-- + dAtA[i] = 0x22 + } + if m.Locked != nil { + { + size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size := m.Data.Size() + i -= size + if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + return 0, err } + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *RegionInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -821,44 +1197,57 @@ func (m *RegionInfo) Marshal() (dAtA []byte, err error) { } func (m *RegionInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) - } - if m.RegionEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionEpoch.Size())) - n8, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { + 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *TableRegions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -866,34 +1255,45 @@ func (m *TableRegions) Marshal() (dAtA []byte, err error) { } func (m *TableRegions) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TableRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.PhysicalTableId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.PhysicalTableId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.PhysicalTableId != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.PhysicalTableId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *BatchRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -901,78 +1301,95 @@ func (m *BatchRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Context.Size())) - n9, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Tp != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) + if len(m.LogId) > 0 { + i -= len(m.LogId) + copy(dAtA[i:], m.LogId) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.LogId))) + i-- + dAtA[i] = 0x42 } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if len(m.TableRegions) > 0 { + for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x22 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SchemaVer != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) + i-- + dAtA[i] = 0x30 + } + if m.StartTs != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) + 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - if m.StartTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x1a } - if m.SchemaVer != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) + if m.Tp != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x10 } - if len(m.TableRegions) > 0 { - for _, msg := range m.TableRegions { - dAtA[i] = 0x3a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if len(m.LogId) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.LogId))) - i += copy(dAtA[i:], m.LogId) - } - return i, nil + return len(dAtA) - i, nil } func (m *BatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -980,53 +1397,69 @@ func (m *BatchResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) - n10, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - if len(m.OtherError) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i += copy(dAtA[i:], m.OtherError) - } - if m.ExecDetails != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) - n11, err := m.ExecDetails.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.RetryRegions) > 0 { - for _, msg := range m.RetryRegions { + for iNdEx := len(m.RetryRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RetryRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.ExecDetails != nil { + { + size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a + } + if len(m.OtherError) > 0 { + i -= len(m.OtherError) + copy(dAtA[i:], m.OtherError) + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i-- + dAtA[i] = 0x12 + } + { + size := m.Data.Size() + i -= size + if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *StoreBatchTask) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1034,59 +1467,74 @@ func (m *StoreBatchTask) Marshal() (dAtA []byte, err error) { } func (m *StoreBatchTask) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreBatchTask) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RegionEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionEpoch.Size())) - n12, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TaskId != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x28 + } + 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 = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i += n12 } if m.Peer != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Peer.Size())) - n13, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x1a } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x22 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.TaskId != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) + if m.RegionId != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *StoreBatchTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1094,72 +1542,95 @@ func (m *StoreBatchTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreBatchTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreBatchTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) - n14, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - i += n14 - if m.RegionError != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionError.Size())) - n15, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x32 } - if m.Locked != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Locked.Size())) - n16, err := m.Locked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 + if m.TaskId != 0 { + i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x28 } if len(m.OtherError) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.OtherError) + copy(dAtA[i:], m.OtherError) i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i += copy(dAtA[i:], m.OtherError) + i-- + dAtA[i] = 0x22 } - if m.TaskId != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.TaskId)) + if m.Locked != nil { + { + size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n17, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size := m.Data.Size() + i -= size + if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i += n17 + i = encodeVarintCoprocessor(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func encodeVarintCoprocessor(dAtA []byte, offset int, v uint64) int { + offset -= sovCoprocessor(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *KeyRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Start) @@ -1170,10 +1641,16 @@ func (m *KeyRange) Size() (n int) { if l > 0 { n += 1 + l + sovCoprocessor(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Request) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -1217,10 +1694,16 @@ func (m *Request) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Response) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Data.Size() @@ -1267,10 +1750,16 @@ func (m *Response) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1286,10 +1775,16 @@ func (m *RegionInfo) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TableRegions) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PhysicalTableId != 0 { @@ -1301,10 +1796,16 @@ func (m *TableRegions) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -1340,10 +1841,16 @@ func (m *BatchRequest) Size() (n int) { if l > 0 { n += 1 + l + sovCoprocessor(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Data.Size() @@ -1362,10 +1869,16 @@ func (m *BatchResponse) Size() (n int) { n += 1 + l + sovCoprocessor(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreBatchTask) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1388,10 +1901,16 @@ func (m *StoreBatchTask) Size() (n int) { if m.TaskId != 0 { n += 1 + sovCoprocessor(uint64(m.TaskId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreBatchTaskResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Data.Size() @@ -1415,18 +1934,14 @@ func (m *StoreBatchTaskResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovCoprocessor(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovCoprocessor(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozCoprocessor(x uint64) (n int) { return sovCoprocessor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1446,7 +1961,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1474,7 +1989,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1483,6 +1998,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1505,7 +2023,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1514,6 +2032,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1528,12 +2049,13 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1558,7 +2080,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1586,7 +2108,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1595,6 +2117,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1619,7 +2144,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (int64(b) & 0x7F) << shift + m.Tp |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1638,7 +2163,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1647,6 +2172,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1669,7 +2197,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1678,6 +2206,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1700,7 +2231,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1720,7 +2251,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CacheIfMatchVersion |= (uint64(b) & 0x7F) << shift + m.CacheIfMatchVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1739,7 +2270,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1758,7 +2289,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= (int64(b) & 0x7F) << shift + m.SchemaVer |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1777,7 +2308,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1797,7 +2328,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PagingSize |= (uint64(b) & 0x7F) << shift + m.PagingSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1816,7 +2347,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1825,6 +2356,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1839,12 +2373,13 @@ func (m *Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1869,7 +2404,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1897,7 +2432,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1906,6 +2441,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1927,7 +2465,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1936,6 +2474,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1960,7 +2501,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1969,6 +2510,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1993,7 +2537,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2003,6 +2547,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2022,7 +2569,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2031,6 +2578,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2055,7 +2605,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2064,6 +2614,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2088,7 +2641,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2108,7 +2661,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CacheLastVersion |= (uint64(b) & 0x7F) << shift + m.CacheLastVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2127,7 +2680,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2147,7 +2700,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2156,6 +2709,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2180,7 +2736,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatestBucketsVersion |= (uint64(b) & 0x7F) << shift + m.LatestBucketsVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2199,7 +2755,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2208,6 +2764,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2222,12 +2781,13 @@ func (m *Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2252,7 +2812,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2280,7 +2840,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2299,7 +2859,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2308,6 +2868,9 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2332,7 +2895,7 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2341,6 +2904,9 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2355,12 +2921,13 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2385,7 +2952,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2413,7 +2980,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PhysicalTableId |= (int64(b) & 0x7F) << shift + m.PhysicalTableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2432,7 +2999,7 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2441,6 +3008,9 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2455,12 +3025,13 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2485,7 +3056,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2513,7 +3084,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2522,6 +3093,9 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2546,7 +3120,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (int64(b) & 0x7F) << shift + m.Tp |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2565,7 +3139,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2574,6 +3148,9 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2596,7 +3173,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2605,6 +3182,9 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2627,7 +3207,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2646,7 +3226,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= (int64(b) & 0x7F) << shift + m.SchemaVer |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2665,7 +3245,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2674,6 +3254,9 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2696,7 +3279,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2706,6 +3289,9 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2717,12 +3303,13 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2747,7 +3334,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2775,7 +3362,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2784,6 +3371,9 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2805,7 +3395,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2815,6 +3405,9 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2834,7 +3427,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2843,6 +3436,9 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2867,7 +3463,7 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2876,6 +3472,9 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2890,12 +3489,13 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2920,7 +3520,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2948,7 +3548,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2967,7 +3567,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2976,6 +3576,9 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3000,7 +3603,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3009,6 +3612,9 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3033,7 +3639,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3042,6 +3648,9 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3064,7 +3673,7 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= (uint64(b) & 0x7F) << shift + m.TaskId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3075,12 +3684,13 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3105,7 +3715,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3133,7 +3743,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3142,6 +3752,9 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3163,7 +3776,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3172,6 +3785,9 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3196,7 +3812,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3205,6 +3821,9 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3229,7 +3848,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3239,6 +3858,9 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3258,7 +3880,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= (uint64(b) & 0x7F) << shift + m.TaskId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3277,7 +3899,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3286,6 +3908,9 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCoprocessor + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3302,12 +3927,13 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthCoprocessor } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3320,6 +3946,7 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { func skipCoprocessor(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3351,10 +3978,8 @@ func skipCoprocessor(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3371,122 +3996,34 @@ func skipCoprocessor(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthCoprocessor } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowCoprocessor - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipCoprocessor(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCoprocessor + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthCoprocessor + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthCoprocessor = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCoprocessor = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthCoprocessor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCoprocessor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCoprocessor = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("coprocessor.proto", fileDescriptorCoprocessor) } - -var fileDescriptorCoprocessor = []byte{ - // 1005 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0xcf, 0x6e, 0xdb, 0xc6, - 0x13, 0x0e, 0xf5, 0xdf, 0x43, 0x4a, 0x96, 0x37, 0x8e, 0xc3, 0x24, 0xf8, 0xd9, 0x82, 0x7e, 0x40, - 0xa1, 0xa6, 0xad, 0x0c, 0xcb, 0x45, 0x7a, 0xf3, 0x41, 0xa9, 0x81, 0xaa, 0x75, 0x81, 0x62, 0x6d, - 0xf8, 0x4a, 0xac, 0xc8, 0x35, 0x45, 0x48, 0xe6, 0xb2, 0xbb, 0x6b, 0xc3, 0xce, 0xad, 0x6f, 0xd0, - 0x63, 0x6f, 0x05, 0x7a, 0xea, 0x83, 0xf4, 0x90, 0x5b, 0x7b, 0x2c, 0x7a, 0x08, 0x0a, 0xf7, 0x0d, - 0xfa, 0x04, 0xc5, 0xce, 0x92, 0xb2, 0xe4, 0x3a, 0x81, 0x73, 0xf0, 0xa5, 0x27, 0xee, 0xfc, 0xe1, - 0xcc, 0xc7, 0x99, 0x6f, 0x3f, 0xc2, 0x5a, 0x28, 0x32, 0x29, 0x42, 0xae, 0x94, 0x90, 0xfd, 0x4c, - 0x0a, 0x2d, 0x88, 0xb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, - 0x1d, 0xb4, 0xfa, 0x05, 0x41, 0xf7, 0xcd, 0x93, 0xba, 0x36, 0x07, 0x0d, 0xf2, 0x21, 0xd4, 0x66, - 0x22, 0x9c, 0xf2, 0x08, 0xf7, 0xed, 0x0e, 0xd6, 0xe6, 0x44, 0x39, 0x10, 0xe1, 0x74, 0x94, 0x9e, - 0x08, 0x9a, 0x27, 0x98, 0x91, 0x08, 0x3d, 0xe1, 0x32, 0x2f, 0x5e, 0xe9, 0x38, 0xbd, 0x15, 0x0a, - 0xe8, 0xb2, 0xb5, 0x3e, 0x82, 0x2a, 0x12, 0x00, 0x77, 0xfd, 0x56, 0x92, 0xd8, 0x1c, 0xf2, 0x19, - 0x78, 0xfc, 0x82, 0x87, 0x41, 0xc4, 0x35, 0x4b, 0x66, 0x0a, 0xf7, 0xed, 0x0e, 0xd6, 0xe7, 0xed, - 0xf7, 0x2f, 0x78, 0xf8, 0xb9, 0x8d, 0x51, 0x97, 0x5f, 0x1b, 0xa4, 0x03, 0xde, 0x9c, 0x5c, 0x93, - 0x44, 0x23, 0x03, 0x1a, 0x14, 0x72, 0x62, 0x7d, 0x91, 0x68, 0xf2, 0x31, 0x10, 0x1b, 0x9e, 0x31, - 0xa5, 0xe7, 0x84, 0x6a, 0xe0, 0x0a, 0xdb, 0x18, 0x39, 0x60, 0x4a, 0x17, 0x6c, 0xea, 0x42, 0x33, - 0x64, 0x69, 0x30, 0xe6, 0xb6, 0x66, 0x41, 0x08, 0x37, 0x64, 0xe9, 0x90, 0x63, 0xcd, 0x88, 0xec, - 0xc1, 0xea, 0x22, 0xd8, 0xe0, 0x7c, 0xe0, 0xbb, 0x88, 0x77, 0xe3, 0x36, 0xbc, 0xc7, 0x03, 0xda, - 0xe4, 0x8b, 0x26, 0xf9, 0x14, 0x36, 0x66, 0x4c, 0x73, 0xa5, 0x83, 0xf1, 0x59, 0x38, 0xe5, 0x5a, - 0xcd, 0x51, 0x79, 0x88, 0x6a, 0xdd, 0x46, 0x87, 0x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 0xea, - 0x4c, 0xc4, 0xa3, 0xa8, 0xfb, 0xb7, 0x03, 0xcd, 0xe1, 0x22, 0x7f, 0xee, 0x45, 0xaf, 0x6e, 0x28, - 0x4a, 0xe9, 0x5f, 0x8a, 0x72, 0x53, 0x24, 0xca, 0x77, 0x15, 0x89, 0x5d, 0x68, 0x4a, 0xae, 0xe5, - 0x65, 0xb0, 0xbc, 0x89, 0xd6, 0x32, 0x77, 0xa9, 0x87, 0x49, 0xf9, 0x2c, 0xba, 0xbf, 0x3a, 0xd0, - 0x5a, 0xbe, 0x4c, 0xf7, 0x73, 0x3f, 0x3a, 0x50, 0xc9, 0x38, 0x97, 0xf9, 0xd7, 0x78, 0x45, 0xfe, - 0x37, 0x9c, 0x4b, 0x8a, 0x91, 0xf7, 0xfd, 0xdf, 0x3e, 0x86, 0xba, 0xf9, 0xc3, 0x18, 0x8c, 0x96, - 0x3d, 0x35, 0x63, 0x8e, 0xa2, 0xee, 0x2f, 0x25, 0xd8, 0xb8, 0x5d, 0x1e, 0xfe, 0x8b, 0xff, 0x9f, - 0xb7, 0x8d, 0xe1, 0x36, 0xf9, 0xae, 0xbd, 0x87, 0x7c, 0x0f, 0x3f, 0xf8, 0xfd, 0xe7, 0x86, 0xf3, - 0xfa, 0x6a, 0xd3, 0xf9, 0xed, 0x6a, 0xd3, 0xf9, 0xf3, 0x6a, 0xd3, 0xf9, 0xe1, 0xaf, 0xcd, 0x07, - 0xd0, 0x16, 0x32, 0xee, 0xeb, 0x64, 0x7a, 0xde, 0xcf, 0x27, 0x34, 0xae, 0xe1, 0x63, 0xf7, 0x9f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x1c, 0x14, 0xd5, 0x32, 0x0a, 0x00, 0x00, -} diff --git a/pkg/deadlock/deadlock.pb.go b/pkg/deadlock/deadlock.pb.go index 4be3f69fa..c19b5a3ce 100644 --- a/pkg/deadlock/deadlock.pb.go +++ b/pkg/deadlock/deadlock.pb.go @@ -1,34 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: deadlock.proto -/* -Package deadlock is a generated protocol buffer package. - -It is generated from these files: - - deadlock.proto - -It has these top-level messages: - - WaitForEntriesRequest - WaitForEntriesResponse - WaitForEntry - DeadlockRequest - DeadlockResponse -*/ package deadlock import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -40,7 +26,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DeadlockRequestType int32 @@ -57,6 +43,7 @@ var DeadlockRequestType_name = map[int32]string{ 1: "CleanUpWaitFor", 2: "CleanUp", } + var DeadlockRequestType_value = map[string]int32{ "Detect": 0, "CleanUpWaitFor": 1, @@ -66,24 +53,89 @@ var DeadlockRequestType_value = map[string]int32{ func (x DeadlockRequestType) String() string { return proto.EnumName(DeadlockRequestType_name, int32(x)) } -func (DeadlockRequestType) EnumDescriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{0} } + +func (DeadlockRequestType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{0} +} type WaitForEntriesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WaitForEntriesRequest) Reset() { *m = WaitForEntriesRequest{} } +func (m *WaitForEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*WaitForEntriesRequest) ProtoMessage() {} +func (*WaitForEntriesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{0} +} +func (m *WaitForEntriesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitForEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitForEntriesRequest.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 *WaitForEntriesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntriesRequest.Merge(m, src) +} +func (m *WaitForEntriesRequest) XXX_Size() int { + return m.Size() +} +func (m *WaitForEntriesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WaitForEntriesRequest.DiscardUnknown(m) } -func (m *WaitForEntriesRequest) Reset() { *m = WaitForEntriesRequest{} } -func (m *WaitForEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*WaitForEntriesRequest) ProtoMessage() {} -func (*WaitForEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{0} } +var xxx_messageInfo_WaitForEntriesRequest proto.InternalMessageInfo type WaitForEntriesResponse struct { - Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries" json:"entries"` + Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WaitForEntriesResponse) Reset() { *m = WaitForEntriesResponse{} } +func (m *WaitForEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*WaitForEntriesResponse) ProtoMessage() {} +func (*WaitForEntriesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{1} +} +func (m *WaitForEntriesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitForEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitForEntriesResponse.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 *WaitForEntriesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntriesResponse.Merge(m, src) +} +func (m *WaitForEntriesResponse) XXX_Size() int { + return m.Size() +} +func (m *WaitForEntriesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WaitForEntriesResponse.DiscardUnknown(m) } -func (m *WaitForEntriesResponse) Reset() { *m = WaitForEntriesResponse{} } -func (m *WaitForEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*WaitForEntriesResponse) ProtoMessage() {} -func (*WaitForEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{1} } +var xxx_messageInfo_WaitForEntriesResponse proto.InternalMessageInfo func (m *WaitForEntriesResponse) GetEntries() []WaitForEntry { if m != nil { @@ -104,13 +156,44 @@ type WaitForEntry struct { // The tag came from the lock request's context. ResourceGroupTag []byte `protobuf:"bytes,5,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` // Milliseconds it has been waits. - WaitTime uint64 `protobuf:"varint,6,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` + WaitTime uint64 `protobuf:"varint,6,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WaitForEntry) Reset() { *m = WaitForEntry{} } +func (m *WaitForEntry) String() string { return proto.CompactTextString(m) } +func (*WaitForEntry) ProtoMessage() {} +func (*WaitForEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{2} +} +func (m *WaitForEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitForEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitForEntry.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 *WaitForEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntry.Merge(m, src) +} +func (m *WaitForEntry) XXX_Size() int { + return m.Size() +} +func (m *WaitForEntry) XXX_DiscardUnknown() { + xxx_messageInfo_WaitForEntry.DiscardUnknown(m) } -func (m *WaitForEntry) Reset() { *m = WaitForEntry{} } -func (m *WaitForEntry) String() string { return proto.CompactTextString(m) } -func (*WaitForEntry) ProtoMessage() {} -func (*WaitForEntry) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{2} } +var xxx_messageInfo_WaitForEntry proto.InternalMessageInfo func (m *WaitForEntry) GetTxn() uint64 { if m != nil { @@ -155,14 +238,45 @@ func (m *WaitForEntry) GetWaitTime() uint64 { } type DeadlockRequest struct { - Tp DeadlockRequestType `protobuf:"varint,1,opt,name=tp,proto3,enum=deadlock.DeadlockRequestType" json:"tp,omitempty"` - Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry" json:"entry"` + Tp DeadlockRequestType `protobuf:"varint,1,opt,name=tp,proto3,enum=deadlock.DeadlockRequestType" json:"tp,omitempty"` + Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeadlockRequest) Reset() { *m = DeadlockRequest{} } +func (m *DeadlockRequest) String() string { return proto.CompactTextString(m) } +func (*DeadlockRequest) ProtoMessage() {} +func (*DeadlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{3} +} +func (m *DeadlockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeadlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeadlockRequest.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 *DeadlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeadlockRequest.Merge(m, src) +} +func (m *DeadlockRequest) XXX_Size() int { + return m.Size() +} +func (m *DeadlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeadlockRequest.DiscardUnknown(m) } -func (m *DeadlockRequest) Reset() { *m = DeadlockRequest{} } -func (m *DeadlockRequest) String() string { return proto.CompactTextString(m) } -func (*DeadlockRequest) ProtoMessage() {} -func (*DeadlockRequest) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{3} } +var xxx_messageInfo_DeadlockRequest proto.InternalMessageInfo func (m *DeadlockRequest) GetTp() DeadlockRequestType { if m != nil { @@ -180,18 +294,49 @@ func (m *DeadlockRequest) GetEntry() WaitForEntry { type DeadlockResponse struct { // The same entry sent by DeadlockRequest, identifies the sender. - Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry" json:"entry"` + Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry"` // The key hash of the lock that is hold by the waiting transaction. DeadlockKeyHash uint64 `protobuf:"varint,2,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` // The other entries of the dead lock circle. The current entry is in `entry` field and not // included in this field. - WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` + WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeadlockResponse) Reset() { *m = DeadlockResponse{} } +func (m *DeadlockResponse) String() string { return proto.CompactTextString(m) } +func (*DeadlockResponse) ProtoMessage() {} +func (*DeadlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1995e4345c820a37, []int{4} +} +func (m *DeadlockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeadlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeadlockResponse.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 *DeadlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeadlockResponse.Merge(m, src) +} +func (m *DeadlockResponse) XXX_Size() int { + return m.Size() +} +func (m *DeadlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeadlockResponse.DiscardUnknown(m) } -func (m *DeadlockResponse) Reset() { *m = DeadlockResponse{} } -func (m *DeadlockResponse) String() string { return proto.CompactTextString(m) } -func (*DeadlockResponse) ProtoMessage() {} -func (*DeadlockResponse) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{4} } +var xxx_messageInfo_DeadlockResponse proto.InternalMessageInfo func (m *DeadlockResponse) GetEntry() WaitForEntry { if m != nil { @@ -215,12 +360,48 @@ func (m *DeadlockResponse) GetWaitChain() []*WaitForEntry { } func init() { + proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) proto.RegisterType((*WaitForEntriesRequest)(nil), "deadlock.WaitForEntriesRequest") proto.RegisterType((*WaitForEntriesResponse)(nil), "deadlock.WaitForEntriesResponse") proto.RegisterType((*WaitForEntry)(nil), "deadlock.WaitForEntry") proto.RegisterType((*DeadlockRequest)(nil), "deadlock.DeadlockRequest") proto.RegisterType((*DeadlockResponse)(nil), "deadlock.DeadlockResponse") - proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) +} + +func init() { proto.RegisterFile("deadlock.proto", fileDescriptor_1995e4345c820a37) } + +var fileDescriptor_1995e4345c820a37 = []byte{ + // 465 bytes of a gzipped FileDescriptorProto +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24, 0x69, 0x2a, 0xad, + 0x1a, 0x22, 0xf4, 0x0e, 0xcf, 0x88, 0x27, 0xef, 0xd2, 0x2a, 0xc4, 0x62, 0xb8, 0x09, 0xed, 0xaa, + 0x66, 0xd5, 0x47, 0xdf, 0x18, 0x74, 0x4c, 0x08, 0x7e, 0x80, 0xed, 0x13, 0x92, 0x7f, 0x3f, 0x42, + 0xdc, 0x5b, 0xd9, 0xc8, 0xf2, 0xdd, 0xf6, 0x9d, 0xf5, 0x86, 0x92, 0x9f, 0x5b, 0xc3, 0x63, 0xd3, + 0x13, 0xee, 0xae, 0xbd, 0xb7, 0x7e, 0x7f, 0x95, 0x64, 0x22, 0x86, 0xec, 0x19, 0x1b, 0x5b, 0x57, + 0xf3, 0x01, 0xfb, 0x31, 0x1f, 0xb0, 0x5f, 0xf3, 0x01, 0xfb, 0xf2, 0x7b, 0x50, 0xfb, 0xd8, 0xd2, + 0x3f, 0xd5, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -231,8 +412,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Deadlock service - +// DeadlockClient is the client API for Deadlock service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DeadlockClient interface { // Get local wait for entries, should be handle by every node. // The owner should sent this request to all members to build the complete wait for graph. @@ -253,7 +435,7 @@ func NewDeadlockClient(cc *grpc.ClientConn) DeadlockClient { func (c *deadlockClient) GetWaitForEntries(ctx context.Context, in *WaitForEntriesRequest, opts ...grpc.CallOption) (*WaitForEntriesResponse, error) { out := new(WaitForEntriesResponse) - err := grpc.Invoke(ctx, "/deadlock.Deadlock/GetWaitForEntries", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/deadlock.Deadlock/GetWaitForEntries", in, out, opts...) if err != nil { return nil, err } @@ -261,7 +443,7 @@ func (c *deadlockClient) GetWaitForEntries(ctx context.Context, in *WaitForEntri } func (c *deadlockClient) Detect(ctx context.Context, opts ...grpc.CallOption) (Deadlock_DetectClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Deadlock_serviceDesc.Streams[0], c.cc, "/deadlock.Deadlock/Detect", opts...) + stream, err := c.cc.NewStream(ctx, &_Deadlock_serviceDesc.Streams[0], "/deadlock.Deadlock/Detect", opts...) if err != nil { return nil, err } @@ -291,8 +473,7 @@ func (x *deadlockDetectClient) Recv() (*DeadlockResponse, error) { return m, nil } -// Server API for Deadlock service - +// DeadlockServer is the server API for Deadlock service. type DeadlockServer interface { // Get local wait for entries, should be handle by every node. // The owner should sent this request to all members to build the complete wait for graph. @@ -303,6 +484,17 @@ type DeadlockServer interface { Detect(Deadlock_DetectServer) error } +// UnimplementedDeadlockServer can be embedded to have forward compatible implementations. +type UnimplementedDeadlockServer struct { +} + +func (*UnimplementedDeadlockServer) GetWaitForEntries(ctx context.Context, req *WaitForEntriesRequest) (*WaitForEntriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWaitForEntries not implemented") +} +func (*UnimplementedDeadlockServer) Detect(srv Deadlock_DetectServer) error { + return status.Errorf(codes.Unimplemented, "method Detect not implemented") +} + func RegisterDeadlockServer(s *grpc.Server, srv DeadlockServer) { s.RegisterService(&_Deadlock_serviceDesc, srv) } @@ -374,7 +566,7 @@ var _Deadlock_serviceDesc = grpc.ServiceDesc{ func (m *WaitForEntriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -382,17 +574,26 @@ func (m *WaitForEntriesRequest) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntriesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitForEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *WaitForEntriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -400,29 +601,40 @@ func (m *WaitForEntriesResponse) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntriesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitForEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0xa - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDeadlock(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *WaitForEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -430,49 +642,60 @@ func (m *WaitForEntry) Marshal() (dAtA []byte, err error) { } func (m *WaitForEntry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitForEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Txn != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.Txn)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.WaitForTxn != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitForTxn)) + if m.WaitTime != 0 { + i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitTime)) + i-- + dAtA[i] = 0x30 } - if m.KeyHash != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) + if len(m.ResourceGroupTag) > 0 { + i -= len(m.ResourceGroupTag) + copy(dAtA[i:], m.ResourceGroupTag) + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.ResourceGroupTag))) + i-- + dAtA[i] = 0x2a } if len(m.Key) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintDeadlock(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x22 } - if len(m.ResourceGroupTag) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(len(m.ResourceGroupTag))) - i += copy(dAtA[i:], m.ResourceGroupTag) + if m.KeyHash != 0 { + i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) + i-- + dAtA[i] = 0x18 } - if m.WaitTime != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitTime)) + if m.WaitForTxn != 0 { + i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitForTxn)) + i-- + dAtA[i] = 0x10 + } + if m.Txn != 0 { + i = encodeVarintDeadlock(dAtA, i, uint64(m.Txn)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -480,30 +703,41 @@ func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { } func (m *DeadlockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeadlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Tp != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } + { + size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDeadlock(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) - n1, err := m.Entry.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Tp != 0 { + i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 } - i += n1 - return i, nil + return len(dAtA) - i, nil } func (m *DeadlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -511,54 +745,78 @@ func (m *DeadlockResponse) Marshal() (dAtA []byte, err error) { } func (m *DeadlockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeadlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) - n2, err := m.Entry.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.WaitChain) > 0 { + for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDeadlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - i += n2 if m.DeadlockKeyHash != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) + i-- + dAtA[i] = 0x10 } - if len(m.WaitChain) > 0 { - for _, msg := range m.WaitChain { - dAtA[i] = 0x1a - i++ - i = encodeVarintDeadlock(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + { + size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintDeadlock(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func encodeVarintDeadlock(dAtA []byte, offset int, v uint64) int { + offset -= sovDeadlock(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *WaitForEntriesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitForEntriesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Entries) > 0 { @@ -567,10 +825,16 @@ func (m *WaitForEntriesResponse) Size() (n int) { n += 1 + l + sovDeadlock(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitForEntry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Txn != 0 { @@ -593,10 +857,16 @@ func (m *WaitForEntry) Size() (n int) { if m.WaitTime != 0 { n += 1 + sovDeadlock(uint64(m.WaitTime)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeadlockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Tp != 0 { @@ -604,10 +874,16 @@ func (m *DeadlockRequest) Size() (n int) { } l = m.Entry.Size() n += 1 + l + sovDeadlock(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeadlockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Entry.Size() @@ -621,18 +897,14 @@ func (m *DeadlockResponse) Size() (n int) { n += 1 + l + sovDeadlock(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovDeadlock(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDeadlock(x uint64) (n int) { return sovDeadlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -652,7 +924,7 @@ func (m *WaitForEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -672,12 +944,13 @@ func (m *WaitForEntriesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -702,7 +975,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -730,7 +1003,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -739,6 +1012,9 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -753,12 +1029,13 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -783,7 +1060,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -811,7 +1088,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Txn |= (uint64(b) & 0x7F) << shift + m.Txn |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -830,7 +1107,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitForTxn |= (uint64(b) & 0x7F) << shift + m.WaitForTxn |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -849,7 +1126,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyHash |= (uint64(b) & 0x7F) << shift + m.KeyHash |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -868,7 +1145,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -877,6 +1154,9 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -899,7 +1179,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -908,6 +1188,9 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -930,7 +1213,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitTime |= (uint64(b) & 0x7F) << shift + m.WaitTime |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -941,12 +1224,13 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -971,7 +1255,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -999,7 +1283,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (DeadlockRequestType(b) & 0x7F) << shift + m.Tp |= DeadlockRequestType(b&0x7F) << shift if b < 0x80 { break } @@ -1018,7 +1302,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1027,6 +1311,9 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1040,12 +1327,13 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1070,7 +1358,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1098,7 +1386,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1107,6 +1395,9 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1128,7 +1419,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeadlockKeyHash |= (uint64(b) & 0x7F) << shift + m.DeadlockKeyHash |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1147,7 +1438,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1156,6 +1447,9 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDeadlock + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1170,12 +1464,13 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDeadlock } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1188,6 +1483,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { func skipDeadlock(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1219,10 +1515,8 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1239,89 +1533,34 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDeadlock } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDeadlock - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipDeadlock(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDeadlock + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDeadlock + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDeadlock = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("deadlock.proto", fileDescriptorDeadlock) } - -var fileDescriptorDeadlock = []byte{ - // 465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x84, 0x69, 0x94, 0xba, 0x03, 0x14, 0x37, 0x88, 0xd4, 0xf2, 0x53, - 0x54, 0x41, 0x41, 0x41, 0x70, 0x80, 0xb4, 0xa5, 0x48, 0xbc, 0x20, 0x2b, 0x08, 0xde, 0xac, 0x25, - 0x1d, 0x6c, 0xcb, 0xad, 0xd7, 0xd8, 0x1b, 0xb5, 0xbe, 0x09, 0x57, 0x40, 0xdc, 0x80, 0x13, 0xf4, - 0x91, 0x13, 0x20, 0x14, 0x2e, 0x82, 0x76, 0xed, 0x4d, 0x4a, 0x95, 0x40, 0xdf, 0xd6, 0xf3, 0xff, - 0xfb, 0xef, 0xcc, 0xb7, 0x6b, 0xe8, 0x9d, 0x12, 0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 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, - 0x00, -} diff --git a/pkg/debugpb/debugpb.pb.go b/pkg/debugpb/debugpb.pb.go index b0d07b278..51d6da569 100644 --- a/pkg/debugpb/debugpb.pb.go +++ b/pkg/debugpb/debugpb.pb.go @@ -1,76 +1,23 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: debugpb.proto -/* -Package debugpb is a generated protocol buffer package. - -It is generated from these files: - - debugpb.proto - -It has these top-level messages: - - GetRequest - GetResponse - RaftLogRequest - RaftLogResponse - RegionInfoRequest - RegionInfoResponse - RegionSizeRequest - RegionSizeResponse - ScanMvccRequest - ScanMvccResponse - CompactRequest - CompactResponse - InjectFailPointRequest - InjectFailPointResponse - RecoverFailPointRequest - RecoverFailPointResponse - ListFailPointsRequest - ListFailPointsResponse - GetMetricsRequest - GetMetricsResponse - RegionConsistencyCheckRequest - RegionConsistencyCheckResponse - ModifyTikvConfigRequest - ModifyTikvConfigResponse - Property - GetRegionPropertiesRequest - GetRegionPropertiesResponse - GetStoreInfoRequest - GetStoreInfoResponse - GetClusterInfoRequest - GetClusterInfoResponse - GetAllRegionsInStoreRequest - GetAllRegionsInStoreResponse - ResetToVersionRequest - ResetToVersionResponse - GetRangePropertiesRequest - GetRangePropertiesResponse - FlashbackToVersionRequest - FlashbackToVersionResponse - GetRegionReadProgressRequest - GetRegionReadProgressResponse -*/ package debugpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -82,7 +29,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DB int32 @@ -97,6 +44,7 @@ var DB_name = map[int32]string{ 1: "KV", 2: "RAFT", } + var DB_value = map[string]int32{ "INVALID": 0, "KV": 1, @@ -106,7 +54,10 @@ var DB_value = map[string]int32{ func (x DB) String() string { return proto.EnumName(DB_name, int32(x)) } -func (DB) EnumDescriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{0} } + +func (DB) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{0} +} type MODULE int32 @@ -137,6 +88,7 @@ var MODULE_name = map[int32]string{ 9: "SECURITY", 10: "IMPORT", } + var MODULE_value = map[string]int32{ "UNUSED": 0, "KVDB": 1, @@ -154,7 +106,10 @@ var MODULE_value = map[string]int32{ func (x MODULE) String() string { return proto.EnumName(MODULE_name, int32(x)) } -func (MODULE) EnumDescriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{1} } + +func (MODULE) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{1} +} type BottommostLevelCompaction int32 @@ -172,6 +127,7 @@ var BottommostLevelCompaction_name = map[int32]string{ 1: "Force", 2: "IfHaveCompactionFilter", } + var BottommostLevelCompaction_value = map[string]int32{ "Skip": 0, "Force": 1, @@ -181,20 +137,52 @@ var BottommostLevelCompaction_value = map[string]int32{ func (x BottommostLevelCompaction) String() string { return proto.EnumName(BottommostLevelCompaction_name, int32(x)) } + func (BottommostLevelCompaction) EnumDescriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{2} + return fileDescriptor_823ddaea3037c5c3, []int{2} } type GetRequest struct { - Db DB `protobuf:"varint,1,opt,name=db,proto3,enum=debugpb.DB" json:"db,omitempty"` - Cf string `protobuf:"bytes,2,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Db DB `protobuf:"varint,1,opt,name=db,proto3,enum=debugpb.DB" json:"db,omitempty"` + Cf string `protobuf:"bytes,2,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{0} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{0} } +var xxx_messageInfo_GetRequest proto.InternalMessageInfo func (m *GetRequest) GetDb() DB { if m != nil { @@ -218,13 +206,44 @@ func (m *GetRequest) GetKey() []byte { } type GetResponse struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{1} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{1} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo func (m *GetResponse) GetValue() []byte { if m != nil { @@ -234,14 +253,45 @@ func (m *GetResponse) GetValue() []byte { } type RaftLogRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftLogRequest) Reset() { *m = RaftLogRequest{} } +func (m *RaftLogRequest) String() string { return proto.CompactTextString(m) } +func (*RaftLogRequest) ProtoMessage() {} +func (*RaftLogRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{2} +} +func (m *RaftLogRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftLogRequest.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 *RaftLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLogRequest.Merge(m, src) +} +func (m *RaftLogRequest) XXX_Size() int { + return m.Size() +} +func (m *RaftLogRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RaftLogRequest.DiscardUnknown(m) } -func (m *RaftLogRequest) Reset() { *m = RaftLogRequest{} } -func (m *RaftLogRequest) String() string { return proto.CompactTextString(m) } -func (*RaftLogRequest) ProtoMessage() {} -func (*RaftLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{2} } +var xxx_messageInfo_RaftLogRequest proto.InternalMessageInfo func (m *RaftLogRequest) GetRegionId() uint64 { if m != nil { @@ -258,13 +308,44 @@ func (m *RaftLogRequest) GetLogIndex() uint64 { } type RaftLogResponse struct { - Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"` + Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftLogResponse) Reset() { *m = RaftLogResponse{} } +func (m *RaftLogResponse) String() string { return proto.CompactTextString(m) } +func (*RaftLogResponse) ProtoMessage() {} +func (*RaftLogResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{3} +} +func (m *RaftLogResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftLogResponse.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 *RaftLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLogResponse.Merge(m, src) +} +func (m *RaftLogResponse) XXX_Size() int { + return m.Size() +} +func (m *RaftLogResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RaftLogResponse.DiscardUnknown(m) } -func (m *RaftLogResponse) Reset() { *m = RaftLogResponse{} } -func (m *RaftLogResponse) String() string { return proto.CompactTextString(m) } -func (*RaftLogResponse) ProtoMessage() {} -func (*RaftLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{3} } +var xxx_messageInfo_RaftLogResponse proto.InternalMessageInfo func (m *RaftLogResponse) GetEntry() *eraftpb.Entry { if m != nil { @@ -274,13 +355,44 @@ func (m *RaftLogResponse) GetEntry() *eraftpb.Entry { } type RegionInfoRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionInfoRequest) Reset() { *m = RegionInfoRequest{} } +func (m *RegionInfoRequest) String() string { return proto.CompactTextString(m) } +func (*RegionInfoRequest) ProtoMessage() {} +func (*RegionInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{4} +} +func (m *RegionInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionInfoRequest.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 *RegionInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfoRequest.Merge(m, src) +} +func (m *RegionInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionInfoRequest.DiscardUnknown(m) } -func (m *RegionInfoRequest) Reset() { *m = RegionInfoRequest{} } -func (m *RegionInfoRequest) String() string { return proto.CompactTextString(m) } -func (*RegionInfoRequest) ProtoMessage() {} -func (*RegionInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{4} } +var xxx_messageInfo_RegionInfoRequest proto.InternalMessageInfo func (m *RegionInfoRequest) GetRegionId() uint64 { if m != nil { @@ -290,15 +402,46 @@ func (m *RegionInfoRequest) GetRegionId() uint64 { } type RegionInfoResponse struct { - RaftLocalState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_local_state,json=raftLocalState" json:"raft_local_state,omitempty"` - RaftApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=raft_apply_state,json=raftApplyState" json:"raft_apply_state,omitempty"` - RegionLocalState *raft_serverpb.RegionLocalState `protobuf:"bytes,3,opt,name=region_local_state,json=regionLocalState" json:"region_local_state,omitempty"` + RaftLocalState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_local_state,json=raftLocalState,proto3" json:"raft_local_state,omitempty"` + RaftApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=raft_apply_state,json=raftApplyState,proto3" json:"raft_apply_state,omitempty"` + RegionLocalState *raft_serverpb.RegionLocalState `protobuf:"bytes,3,opt,name=region_local_state,json=regionLocalState,proto3" json:"region_local_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionInfoResponse) Reset() { *m = RegionInfoResponse{} } +func (m *RegionInfoResponse) String() string { return proto.CompactTextString(m) } +func (*RegionInfoResponse) ProtoMessage() {} +func (*RegionInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{5} +} +func (m *RegionInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionInfoResponse.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 *RegionInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfoResponse.Merge(m, src) +} +func (m *RegionInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionInfoResponse.DiscardUnknown(m) } -func (m *RegionInfoResponse) Reset() { *m = RegionInfoResponse{} } -func (m *RegionInfoResponse) String() string { return proto.CompactTextString(m) } -func (*RegionInfoResponse) ProtoMessage() {} -func (*RegionInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{5} } +var xxx_messageInfo_RegionInfoResponse proto.InternalMessageInfo func (m *RegionInfoResponse) GetRaftLocalState() *raft_serverpb.RaftLocalState { if m != nil { @@ -322,14 +465,45 @@ func (m *RegionInfoResponse) GetRegionLocalState() *raft_serverpb.RegionLocalSta } type RegionSizeRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Cfs []string `protobuf:"bytes,2,rep,name=cfs" json:"cfs,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + Cfs []string `protobuf:"bytes,2,rep,name=cfs,proto3" json:"cfs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionSizeRequest) Reset() { *m = RegionSizeRequest{} } +func (m *RegionSizeRequest) String() string { return proto.CompactTextString(m) } +func (*RegionSizeRequest) ProtoMessage() {} +func (*RegionSizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{6} +} +func (m *RegionSizeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionSizeRequest.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 *RegionSizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeRequest.Merge(m, src) +} +func (m *RegionSizeRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionSizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionSizeRequest.DiscardUnknown(m) } -func (m *RegionSizeRequest) Reset() { *m = RegionSizeRequest{} } -func (m *RegionSizeRequest) String() string { return proto.CompactTextString(m) } -func (*RegionSizeRequest) ProtoMessage() {} -func (*RegionSizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{6} } +var xxx_messageInfo_RegionSizeRequest proto.InternalMessageInfo func (m *RegionSizeRequest) GetRegionId() uint64 { if m != nil { @@ -346,13 +520,44 @@ func (m *RegionSizeRequest) GetCfs() []string { } type RegionSizeResponse struct { - Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` + Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionSizeResponse) Reset() { *m = RegionSizeResponse{} } +func (m *RegionSizeResponse) String() string { return proto.CompactTextString(m) } +func (*RegionSizeResponse) ProtoMessage() {} +func (*RegionSizeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{7} +} +func (m *RegionSizeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionSizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionSizeResponse.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 *RegionSizeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeResponse.Merge(m, src) +} +func (m *RegionSizeResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionSizeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionSizeResponse.DiscardUnknown(m) } -func (m *RegionSizeResponse) Reset() { *m = RegionSizeResponse{} } -func (m *RegionSizeResponse) String() string { return proto.CompactTextString(m) } -func (*RegionSizeResponse) ProtoMessage() {} -func (*RegionSizeResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{7} } +var xxx_messageInfo_RegionSizeResponse proto.InternalMessageInfo func (m *RegionSizeResponse) GetEntries() []*RegionSizeResponse_Entry { if m != nil { @@ -362,16 +567,45 @@ func (m *RegionSizeResponse) GetEntries() []*RegionSizeResponse_Entry { } type RegionSizeResponse_Entry struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionSizeResponse_Entry) Reset() { *m = RegionSizeResponse_Entry{} } func (m *RegionSizeResponse_Entry) String() string { return proto.CompactTextString(m) } func (*RegionSizeResponse_Entry) ProtoMessage() {} func (*RegionSizeResponse_Entry) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{7, 0} + return fileDescriptor_823ddaea3037c5c3, []int{7, 0} +} +func (m *RegionSizeResponse_Entry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *RegionSizeResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionSizeResponse_Entry.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 *RegionSizeResponse_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeResponse_Entry.Merge(m, src) +} +func (m *RegionSizeResponse_Entry) XXX_Size() int { + return m.Size() +} +func (m *RegionSizeResponse_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_RegionSizeResponse_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionSizeResponse_Entry proto.InternalMessageInfo func (m *RegionSizeResponse_Entry) GetCf() string { if m != nil { @@ -388,15 +622,46 @@ func (m *RegionSizeResponse_Entry) GetSize_() uint64 { } type ScanMvccRequest struct { - FromKey []byte `protobuf:"bytes,1,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` - ToKey []byte `protobuf:"bytes,2,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + FromKey []byte `protobuf:"bytes,1,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` + ToKey []byte `protobuf:"bytes,2,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` + Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanMvccRequest) Reset() { *m = ScanMvccRequest{} } +func (m *ScanMvccRequest) String() string { return proto.CompactTextString(m) } +func (*ScanMvccRequest) ProtoMessage() {} +func (*ScanMvccRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{8} +} +func (m *ScanMvccRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanMvccRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanMvccRequest.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 *ScanMvccRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanMvccRequest.Merge(m, src) +} +func (m *ScanMvccRequest) XXX_Size() int { + return m.Size() +} +func (m *ScanMvccRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanMvccRequest.DiscardUnknown(m) } -func (m *ScanMvccRequest) Reset() { *m = ScanMvccRequest{} } -func (m *ScanMvccRequest) String() string { return proto.CompactTextString(m) } -func (*ScanMvccRequest) ProtoMessage() {} -func (*ScanMvccRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{8} } +var xxx_messageInfo_ScanMvccRequest proto.InternalMessageInfo func (m *ScanMvccRequest) GetFromKey() []byte { if m != nil { @@ -420,14 +685,45 @@ func (m *ScanMvccRequest) GetLimit() uint64 { } type ScanMvccResponse struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Info *kvrpcpb.MvccInfo `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Info *kvrpcpb.MvccInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanMvccResponse) Reset() { *m = ScanMvccResponse{} } +func (m *ScanMvccResponse) String() string { return proto.CompactTextString(m) } +func (*ScanMvccResponse) ProtoMessage() {} +func (*ScanMvccResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{9} +} +func (m *ScanMvccResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanMvccResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanMvccResponse.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 *ScanMvccResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanMvccResponse.Merge(m, src) +} +func (m *ScanMvccResponse) XXX_Size() int { + return m.Size() +} +func (m *ScanMvccResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanMvccResponse.DiscardUnknown(m) } -func (m *ScanMvccResponse) Reset() { *m = ScanMvccResponse{} } -func (m *ScanMvccResponse) String() string { return proto.CompactTextString(m) } -func (*ScanMvccResponse) ProtoMessage() {} -func (*ScanMvccResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{9} } +var xxx_messageInfo_ScanMvccResponse proto.InternalMessageInfo func (m *ScanMvccResponse) GetKey() []byte { if m != nil { @@ -450,12 +746,43 @@ type CompactRequest struct { ToKey []byte `protobuf:"bytes,4,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` Threads uint32 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"` BottommostLevelCompaction BottommostLevelCompaction `protobuf:"varint,6,opt,name=bottommost_level_compaction,json=bottommostLevelCompaction,proto3,enum=debugpb.BottommostLevelCompaction" json:"bottommost_level_compaction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{10} +} +func (m *CompactRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(m, src) +} +func (m *CompactRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactRequest.DiscardUnknown(m) } -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{10} } +var xxx_messageInfo_CompactRequest proto.InternalMessageInfo func (m *CompactRequest) GetDb() DB { if m != nil { @@ -500,22 +827,84 @@ func (m *CompactRequest) GetBottommostLevelCompaction() BottommostLevelCompactio } type CompactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{11} +} +func (m *CompactResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(m, src) +} +func (m *CompactResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactResponse.DiscardUnknown(m) } -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{11} } +var xxx_messageInfo_CompactResponse proto.InternalMessageInfo type InjectFailPointRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InjectFailPointRequest) Reset() { *m = InjectFailPointRequest{} } +func (m *InjectFailPointRequest) String() string { return proto.CompactTextString(m) } +func (*InjectFailPointRequest) ProtoMessage() {} +func (*InjectFailPointRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{12} +} +func (m *InjectFailPointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InjectFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InjectFailPointRequest.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 *InjectFailPointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InjectFailPointRequest.Merge(m, src) +} +func (m *InjectFailPointRequest) XXX_Size() int { + return m.Size() +} +func (m *InjectFailPointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InjectFailPointRequest.DiscardUnknown(m) } -func (m *InjectFailPointRequest) Reset() { *m = InjectFailPointRequest{} } -func (m *InjectFailPointRequest) String() string { return proto.CompactTextString(m) } -func (*InjectFailPointRequest) ProtoMessage() {} -func (*InjectFailPointRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{12} } +var xxx_messageInfo_InjectFailPointRequest proto.InternalMessageInfo func (m *InjectFailPointRequest) GetName() string { if m != nil { @@ -532,21 +921,83 @@ func (m *InjectFailPointRequest) GetActions() string { } type InjectFailPointResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InjectFailPointResponse) Reset() { *m = InjectFailPointResponse{} } +func (m *InjectFailPointResponse) String() string { return proto.CompactTextString(m) } +func (*InjectFailPointResponse) ProtoMessage() {} +func (*InjectFailPointResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{13} +} +func (m *InjectFailPointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InjectFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InjectFailPointResponse.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 *InjectFailPointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InjectFailPointResponse.Merge(m, src) +} +func (m *InjectFailPointResponse) XXX_Size() int { + return m.Size() +} +func (m *InjectFailPointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InjectFailPointResponse.DiscardUnknown(m) } -func (m *InjectFailPointResponse) Reset() { *m = InjectFailPointResponse{} } -func (m *InjectFailPointResponse) String() string { return proto.CompactTextString(m) } -func (*InjectFailPointResponse) ProtoMessage() {} -func (*InjectFailPointResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{13} } +var xxx_messageInfo_InjectFailPointResponse proto.InternalMessageInfo type RecoverFailPointRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecoverFailPointRequest) Reset() { *m = RecoverFailPointRequest{} } +func (m *RecoverFailPointRequest) String() string { return proto.CompactTextString(m) } +func (*RecoverFailPointRequest) ProtoMessage() {} +func (*RecoverFailPointRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{14} +} +func (m *RecoverFailPointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoverFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoverFailPointRequest.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 *RecoverFailPointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverFailPointRequest.Merge(m, src) +} +func (m *RecoverFailPointRequest) XXX_Size() int { + return m.Size() +} +func (m *RecoverFailPointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RecoverFailPointRequest.DiscardUnknown(m) } -func (m *RecoverFailPointRequest) Reset() { *m = RecoverFailPointRequest{} } -func (m *RecoverFailPointRequest) String() string { return proto.CompactTextString(m) } -func (*RecoverFailPointRequest) ProtoMessage() {} -func (*RecoverFailPointRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{14} } +var xxx_messageInfo_RecoverFailPointRequest proto.InternalMessageInfo func (m *RecoverFailPointRequest) GetName() string { if m != nil { @@ -556,31 +1007,122 @@ func (m *RecoverFailPointRequest) GetName() string { } type RecoverFailPointResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RecoverFailPointResponse) Reset() { *m = RecoverFailPointResponse{} } func (m *RecoverFailPointResponse) String() string { return proto.CompactTextString(m) } func (*RecoverFailPointResponse) ProtoMessage() {} func (*RecoverFailPointResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{15} + return fileDescriptor_823ddaea3037c5c3, []int{15} +} +func (m *RecoverFailPointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoverFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoverFailPointResponse.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 *RecoverFailPointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverFailPointResponse.Merge(m, src) +} +func (m *RecoverFailPointResponse) XXX_Size() int { + return m.Size() +} +func (m *RecoverFailPointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RecoverFailPointResponse.DiscardUnknown(m) } +var xxx_messageInfo_RecoverFailPointResponse proto.InternalMessageInfo + type ListFailPointsRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFailPointsRequest) Reset() { *m = ListFailPointsRequest{} } +func (m *ListFailPointsRequest) String() string { return proto.CompactTextString(m) } +func (*ListFailPointsRequest) ProtoMessage() {} +func (*ListFailPointsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{16} +} +func (m *ListFailPointsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListFailPointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListFailPointsRequest.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 *ListFailPointsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsRequest.Merge(m, src) +} +func (m *ListFailPointsRequest) XXX_Size() int { + return m.Size() +} +func (m *ListFailPointsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListFailPointsRequest.DiscardUnknown(m) } -func (m *ListFailPointsRequest) Reset() { *m = ListFailPointsRequest{} } -func (m *ListFailPointsRequest) String() string { return proto.CompactTextString(m) } -func (*ListFailPointsRequest) ProtoMessage() {} -func (*ListFailPointsRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{16} } +var xxx_messageInfo_ListFailPointsRequest proto.InternalMessageInfo type ListFailPointsResponse struct { - Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` + Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListFailPointsResponse) Reset() { *m = ListFailPointsResponse{} } +func (m *ListFailPointsResponse) String() string { return proto.CompactTextString(m) } +func (*ListFailPointsResponse) ProtoMessage() {} +func (*ListFailPointsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{17} +} +func (m *ListFailPointsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListFailPointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListFailPointsResponse.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 *ListFailPointsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsResponse.Merge(m, src) +} +func (m *ListFailPointsResponse) XXX_Size() int { + return m.Size() +} +func (m *ListFailPointsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListFailPointsResponse.DiscardUnknown(m) } -func (m *ListFailPointsResponse) Reset() { *m = ListFailPointsResponse{} } -func (m *ListFailPointsResponse) String() string { return proto.CompactTextString(m) } -func (*ListFailPointsResponse) ProtoMessage() {} -func (*ListFailPointsResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{17} } +var xxx_messageInfo_ListFailPointsResponse proto.InternalMessageInfo func (m *ListFailPointsResponse) GetEntries() []*ListFailPointsResponse_Entry { if m != nil { @@ -590,16 +1132,45 @@ func (m *ListFailPointsResponse) GetEntries() []*ListFailPointsResponse_Entry { } type ListFailPointsResponse_Entry struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Actions string `protobuf:"bytes,2,opt,name=actions,proto3" json:"actions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListFailPointsResponse_Entry) Reset() { *m = ListFailPointsResponse_Entry{} } func (m *ListFailPointsResponse_Entry) String() string { return proto.CompactTextString(m) } func (*ListFailPointsResponse_Entry) ProtoMessage() {} func (*ListFailPointsResponse_Entry) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{17, 0} + return fileDescriptor_823ddaea3037c5c3, []int{17, 0} +} +func (m *ListFailPointsResponse_Entry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *ListFailPointsResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListFailPointsResponse_Entry.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 *ListFailPointsResponse_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsResponse_Entry.Merge(m, src) +} +func (m *ListFailPointsResponse_Entry) XXX_Size() int { + return m.Size() +} +func (m *ListFailPointsResponse_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_ListFailPointsResponse_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_ListFailPointsResponse_Entry proto.InternalMessageInfo func (m *ListFailPointsResponse_Entry) GetName() string { if m != nil { @@ -616,13 +1187,44 @@ func (m *ListFailPointsResponse_Entry) GetActions() string { } type GetMetricsRequest struct { - All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` + All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } +func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*GetMetricsRequest) ProtoMessage() {} +func (*GetMetricsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{18} +} +func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMetricsRequest.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 *GetMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsRequest.Merge(m, src) +} +func (m *GetMetricsRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMetricsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMetricsRequest.DiscardUnknown(m) } -func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } -func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*GetMetricsRequest) ProtoMessage() {} -func (*GetMetricsRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{18} } +var xxx_messageInfo_GetMetricsRequest proto.InternalMessageInfo func (m *GetMetricsRequest) GetAll() bool { if m != nil { @@ -632,17 +1234,48 @@ func (m *GetMetricsRequest) GetAll() bool { } type GetMetricsResponse struct { - Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` - RocksdbKv string `protobuf:"bytes,2,opt,name=rocksdb_kv,json=rocksdbKv,proto3" json:"rocksdb_kv,omitempty"` - RocksdbRaft string `protobuf:"bytes,3,opt,name=rocksdb_raft,json=rocksdbRaft,proto3" json:"rocksdb_raft,omitempty"` - Jemalloc string `protobuf:"bytes,4,opt,name=jemalloc,proto3" json:"jemalloc,omitempty"` - StoreId uint64 `protobuf:"varint,5,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` + RocksdbKv string `protobuf:"bytes,2,opt,name=rocksdb_kv,json=rocksdbKv,proto3" json:"rocksdb_kv,omitempty"` + RocksdbRaft string `protobuf:"bytes,3,opt,name=rocksdb_raft,json=rocksdbRaft,proto3" json:"rocksdb_raft,omitempty"` + Jemalloc string `protobuf:"bytes,4,opt,name=jemalloc,proto3" json:"jemalloc,omitempty"` + StoreId uint64 `protobuf:"varint,5,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } +func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*GetMetricsResponse) ProtoMessage() {} +func (*GetMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{19} +} +func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMetricsResponse.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 *GetMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsResponse.Merge(m, src) +} +func (m *GetMetricsResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMetricsResponse.DiscardUnknown(m) } -func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } -func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*GetMetricsResponse) ProtoMessage() {} -func (*GetMetricsResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{19} } +var xxx_messageInfo_GetMetricsResponse proto.InternalMessageInfo func (m *GetMetricsResponse) GetPrometheus() string { if m != nil { @@ -680,16 +1313,45 @@ func (m *GetMetricsResponse) GetStoreId() uint64 { } type RegionConsistencyCheckRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionConsistencyCheckRequest) Reset() { *m = RegionConsistencyCheckRequest{} } func (m *RegionConsistencyCheckRequest) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckRequest) ProtoMessage() {} func (*RegionConsistencyCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{20} + return fileDescriptor_823ddaea3037c5c3, []int{20} +} +func (m *RegionConsistencyCheckRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionConsistencyCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionConsistencyCheckRequest.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 *RegionConsistencyCheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionConsistencyCheckRequest.Merge(m, src) +} +func (m *RegionConsistencyCheckRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionConsistencyCheckRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionConsistencyCheckRequest.DiscardUnknown(m) } +var xxx_messageInfo_RegionConsistencyCheckRequest proto.InternalMessageInfo + func (m *RegionConsistencyCheckRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -698,25 +1360,85 @@ func (m *RegionConsistencyCheckRequest) GetRegionId() uint64 { } type RegionConsistencyCheckResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionConsistencyCheckResponse) Reset() { *m = RegionConsistencyCheckResponse{} } func (m *RegionConsistencyCheckResponse) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckResponse) ProtoMessage() {} func (*RegionConsistencyCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{21} + return fileDescriptor_823ddaea3037c5c3, []int{21} +} +func (m *RegionConsistencyCheckResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionConsistencyCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionConsistencyCheckResponse.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 *RegionConsistencyCheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionConsistencyCheckResponse.Merge(m, src) +} +func (m *RegionConsistencyCheckResponse) XXX_Size() int { + return m.Size() } +func (m *RegionConsistencyCheckResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionConsistencyCheckResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionConsistencyCheckResponse proto.InternalMessageInfo type ModifyTikvConfigRequest struct { - Module MODULE `protobuf:"varint,1,opt,name=module,proto3,enum=debugpb.MODULE" json:"module,omitempty"` - ConfigName string `protobuf:"bytes,2,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"` - ConfigValue string `protobuf:"bytes,3,opt,name=config_value,json=configValue,proto3" json:"config_value,omitempty"` + Module MODULE `protobuf:"varint,1,opt,name=module,proto3,enum=debugpb.MODULE" json:"module,omitempty"` + ConfigName string `protobuf:"bytes,2,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"` + ConfigValue string `protobuf:"bytes,3,opt,name=config_value,json=configValue,proto3" json:"config_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ModifyTikvConfigRequest) Reset() { *m = ModifyTikvConfigRequest{} } +func (m *ModifyTikvConfigRequest) String() string { return proto.CompactTextString(m) } +func (*ModifyTikvConfigRequest) ProtoMessage() {} +func (*ModifyTikvConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{22} +} +func (m *ModifyTikvConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ModifyTikvConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ModifyTikvConfigRequest.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 *ModifyTikvConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModifyTikvConfigRequest.Merge(m, src) +} +func (m *ModifyTikvConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *ModifyTikvConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ModifyTikvConfigRequest.DiscardUnknown(m) } -func (m *ModifyTikvConfigRequest) Reset() { *m = ModifyTikvConfigRequest{} } -func (m *ModifyTikvConfigRequest) String() string { return proto.CompactTextString(m) } -func (*ModifyTikvConfigRequest) ProtoMessage() {} -func (*ModifyTikvConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{22} } +var xxx_messageInfo_ModifyTikvConfigRequest proto.InternalMessageInfo func (m *ModifyTikvConfigRequest) GetModule() MODULE { if m != nil { @@ -740,24 +1462,84 @@ func (m *ModifyTikvConfigRequest) GetConfigValue() string { } type ModifyTikvConfigResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ModifyTikvConfigResponse) Reset() { *m = ModifyTikvConfigResponse{} } func (m *ModifyTikvConfigResponse) String() string { return proto.CompactTextString(m) } func (*ModifyTikvConfigResponse) ProtoMessage() {} func (*ModifyTikvConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{23} + return fileDescriptor_823ddaea3037c5c3, []int{23} +} +func (m *ModifyTikvConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ModifyTikvConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ModifyTikvConfigResponse.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 *ModifyTikvConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModifyTikvConfigResponse.Merge(m, src) +} +func (m *ModifyTikvConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *ModifyTikvConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ModifyTikvConfigResponse.DiscardUnknown(m) } +var xxx_messageInfo_ModifyTikvConfigResponse proto.InternalMessageInfo + type Property struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Property) Reset() { *m = Property{} } +func (m *Property) String() string { return proto.CompactTextString(m) } +func (*Property) ProtoMessage() {} +func (*Property) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{24} +} +func (m *Property) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Property.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 *Property) XXX_Merge(src proto.Message) { + xxx_messageInfo_Property.Merge(m, src) +} +func (m *Property) XXX_Size() int { + return m.Size() +} +func (m *Property) XXX_DiscardUnknown() { + xxx_messageInfo_Property.DiscardUnknown(m) } -func (m *Property) Reset() { *m = Property{} } -func (m *Property) String() string { return proto.CompactTextString(m) } -func (*Property) ProtoMessage() {} -func (*Property) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{24} } +var xxx_messageInfo_Property proto.InternalMessageInfo func (m *Property) GetName() string { if m != nil { @@ -774,15 +1556,44 @@ func (m *Property) GetValue() string { } type GetRegionPropertiesRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRegionPropertiesRequest) Reset() { *m = GetRegionPropertiesRequest{} } func (m *GetRegionPropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesRequest) ProtoMessage() {} func (*GetRegionPropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{25} + return fileDescriptor_823ddaea3037c5c3, []int{25} +} +func (m *GetRegionPropertiesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionPropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionPropertiesRequest.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 *GetRegionPropertiesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionPropertiesRequest.Merge(m, src) +} +func (m *GetRegionPropertiesRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRegionPropertiesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionPropertiesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRegionPropertiesRequest proto.InternalMessageInfo func (m *GetRegionPropertiesRequest) GetRegionId() uint64 { if m != nil { @@ -792,16 +1603,45 @@ func (m *GetRegionPropertiesRequest) GetRegionId() uint64 { } type GetRegionPropertiesResponse struct { - Props []*Property `protobuf:"bytes,1,rep,name=props" json:"props,omitempty"` + Props []*Property `protobuf:"bytes,1,rep,name=props,proto3" json:"props,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRegionPropertiesResponse) Reset() { *m = GetRegionPropertiesResponse{} } func (m *GetRegionPropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesResponse) ProtoMessage() {} func (*GetRegionPropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{26} + return fileDescriptor_823ddaea3037c5c3, []int{26} +} +func (m *GetRegionPropertiesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionPropertiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionPropertiesResponse.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 *GetRegionPropertiesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionPropertiesResponse.Merge(m, src) +} +func (m *GetRegionPropertiesResponse) XXX_Size() int { + return m.Size() +} +func (m *GetRegionPropertiesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionPropertiesResponse.DiscardUnknown(m) } +var xxx_messageInfo_GetRegionPropertiesResponse proto.InternalMessageInfo + func (m *GetRegionPropertiesResponse) GetProps() []*Property { if m != nil { return m.Props @@ -810,22 +1650,84 @@ func (m *GetRegionPropertiesResponse) GetProps() []*Property { } type GetStoreInfoRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStoreInfoRequest) Reset() { *m = GetStoreInfoRequest{} } +func (m *GetStoreInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetStoreInfoRequest) ProtoMessage() {} +func (*GetStoreInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{27} +} +func (m *GetStoreInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStoreInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStoreInfoRequest.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 *GetStoreInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreInfoRequest.Merge(m, src) +} +func (m *GetStoreInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStoreInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStoreInfoRequest.DiscardUnknown(m) } -func (m *GetStoreInfoRequest) Reset() { *m = GetStoreInfoRequest{} } -func (m *GetStoreInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetStoreInfoRequest) ProtoMessage() {} -func (*GetStoreInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{27} } +var xxx_messageInfo_GetStoreInfoRequest proto.InternalMessageInfo type GetStoreInfoResponse struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,2,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStoreInfoResponse) Reset() { *m = GetStoreInfoResponse{} } +func (m *GetStoreInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetStoreInfoResponse) ProtoMessage() {} +func (*GetStoreInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{28} +} +func (m *GetStoreInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStoreInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStoreInfoResponse.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 *GetStoreInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreInfoResponse.Merge(m, src) +} +func (m *GetStoreInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStoreInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStoreInfoResponse.DiscardUnknown(m) } -func (m *GetStoreInfoResponse) Reset() { *m = GetStoreInfoResponse{} } -func (m *GetStoreInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetStoreInfoResponse) ProtoMessage() {} -func (*GetStoreInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{28} } +var xxx_messageInfo_GetStoreInfoResponse proto.InternalMessageInfo func (m *GetStoreInfoResponse) GetStoreId() uint64 { if m != nil { @@ -842,21 +1744,83 @@ func (m *GetStoreInfoResponse) GetApiVersion() kvrpcpb.APIVersion { } type GetClusterInfoRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } +func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoRequest) ProtoMessage() {} +func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{29} +} +func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterInfoRequest.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 *GetClusterInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoRequest.Merge(m, src) +} +func (m *GetClusterInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *GetClusterInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterInfoRequest.DiscardUnknown(m) } -func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } -func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoRequest) ProtoMessage() {} -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{29} } +var xxx_messageInfo_GetClusterInfoRequest proto.InternalMessageInfo type GetClusterInfoResponse struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } +func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoResponse) ProtoMessage() {} +func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{30} +} +func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterInfoResponse.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 *GetClusterInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoResponse.Merge(m, src) +} +func (m *GetClusterInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *GetClusterInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterInfoResponse.DiscardUnknown(m) } -func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } -func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoResponse) ProtoMessage() {} -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{30} } +var xxx_messageInfo_GetClusterInfoResponse proto.InternalMessageInfo func (m *GetClusterInfoResponse) GetClusterId() uint64 { if m != nil { @@ -866,26 +1830,84 @@ func (m *GetClusterInfoResponse) GetClusterId() uint64 { } type GetAllRegionsInStoreRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetAllRegionsInStoreRequest) Reset() { *m = GetAllRegionsInStoreRequest{} } func (m *GetAllRegionsInStoreRequest) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreRequest) ProtoMessage() {} func (*GetAllRegionsInStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{31} + return fileDescriptor_823ddaea3037c5c3, []int{31} +} +func (m *GetAllRegionsInStoreRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllRegionsInStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllRegionsInStoreRequest.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 *GetAllRegionsInStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRegionsInStoreRequest.Merge(m, src) +} +func (m *GetAllRegionsInStoreRequest) XXX_Size() int { + return m.Size() } +func (m *GetAllRegionsInStoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllRegionsInStoreRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAllRegionsInStoreRequest proto.InternalMessageInfo type GetAllRegionsInStoreResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetAllRegionsInStoreResponse) Reset() { *m = GetAllRegionsInStoreResponse{} } func (m *GetAllRegionsInStoreResponse) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreResponse) ProtoMessage() {} func (*GetAllRegionsInStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{32} + return fileDescriptor_823ddaea3037c5c3, []int{32} +} +func (m *GetAllRegionsInStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllRegionsInStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllRegionsInStoreResponse.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 *GetAllRegionsInStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRegionsInStoreResponse.Merge(m, src) +} +func (m *GetAllRegionsInStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAllRegionsInStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllRegionsInStoreResponse.DiscardUnknown(m) } +var xxx_messageInfo_GetAllRegionsInStoreResponse proto.InternalMessageInfo + func (m *GetAllRegionsInStoreResponse) GetRegions() []uint64 { if m != nil { return m.Regions @@ -894,13 +1916,44 @@ func (m *GetAllRegionsInStoreResponse) GetRegions() []uint64 { } type ResetToVersionRequest struct { - Ts uint64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` -} + Ts uint64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetToVersionRequest) Reset() { *m = ResetToVersionRequest{} } +func (m *ResetToVersionRequest) String() string { return proto.CompactTextString(m) } +func (*ResetToVersionRequest) ProtoMessage() {} +func (*ResetToVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{33} +} +func (m *ResetToVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResetToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResetToVersionRequest.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 *ResetToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetToVersionRequest.Merge(m, src) +} +func (m *ResetToVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *ResetToVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResetToVersionRequest.DiscardUnknown(m) +} -func (m *ResetToVersionRequest) Reset() { *m = ResetToVersionRequest{} } -func (m *ResetToVersionRequest) String() string { return proto.CompactTextString(m) } -func (*ResetToVersionRequest) ProtoMessage() {} -func (*ResetToVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{33} } +var xxx_messageInfo_ResetToVersionRequest proto.InternalMessageInfo func (m *ResetToVersionRequest) GetTs() uint64 { if m != nil { @@ -910,24 +1963,84 @@ func (m *ResetToVersionRequest) GetTs() uint64 { } type ResetToVersionResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetToVersionResponse) Reset() { *m = ResetToVersionResponse{} } +func (m *ResetToVersionResponse) String() string { return proto.CompactTextString(m) } +func (*ResetToVersionResponse) ProtoMessage() {} +func (*ResetToVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_823ddaea3037c5c3, []int{34} +} +func (m *ResetToVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResetToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResetToVersionResponse.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 *ResetToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetToVersionResponse.Merge(m, src) +} +func (m *ResetToVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *ResetToVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ResetToVersionResponse.DiscardUnknown(m) } -func (m *ResetToVersionResponse) Reset() { *m = ResetToVersionResponse{} } -func (m *ResetToVersionResponse) String() string { return proto.CompactTextString(m) } -func (*ResetToVersionResponse) ProtoMessage() {} -func (*ResetToVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptorDebugpb, []int{34} } +var xxx_messageInfo_ResetToVersionResponse proto.InternalMessageInfo type GetRangePropertiesRequest struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangePropertiesRequest) Reset() { *m = GetRangePropertiesRequest{} } func (m *GetRangePropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesRequest) ProtoMessage() {} func (*GetRangePropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{35} + return fileDescriptor_823ddaea3037c5c3, []int{35} +} +func (m *GetRangePropertiesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRangePropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRangePropertiesRequest.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 *GetRangePropertiesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesRequest.Merge(m, src) +} +func (m *GetRangePropertiesRequest) XXX_Size() int { + return m.Size() } +func (m *GetRangePropertiesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRangePropertiesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRangePropertiesRequest proto.InternalMessageInfo func (m *GetRangePropertiesRequest) GetStartKey() []byte { if m != nil { @@ -944,16 +2057,45 @@ func (m *GetRangePropertiesRequest) GetEndKey() []byte { } type GetRangePropertiesResponse struct { - Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties" json:"properties,omitempty"` + Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangePropertiesResponse) Reset() { *m = GetRangePropertiesResponse{} } func (m *GetRangePropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesResponse) ProtoMessage() {} func (*GetRangePropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{36} + return fileDescriptor_823ddaea3037c5c3, []int{36} +} +func (m *GetRangePropertiesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRangePropertiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRangePropertiesResponse.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 *GetRangePropertiesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesResponse.Merge(m, src) +} +func (m *GetRangePropertiesResponse) XXX_Size() int { + return m.Size() +} +func (m *GetRangePropertiesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetRangePropertiesResponse.DiscardUnknown(m) } +var xxx_messageInfo_GetRangePropertiesResponse proto.InternalMessageInfo + func (m *GetRangePropertiesResponse) GetProperties() []*GetRangePropertiesResponse_RangeProperty { if m != nil { return m.Properties @@ -962,8 +2104,11 @@ func (m *GetRangePropertiesResponse) GetProperties() []*GetRangePropertiesRespon } type GetRangePropertiesResponse_RangeProperty struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRangePropertiesResponse_RangeProperty) Reset() { @@ -972,8 +2117,34 @@ func (m *GetRangePropertiesResponse_RangeProperty) Reset() { func (m *GetRangePropertiesResponse_RangeProperty) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesResponse_RangeProperty) ProtoMessage() {} func (*GetRangePropertiesResponse_RangeProperty) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{36, 0} + return fileDescriptor_823ddaea3037c5c3, []int{36, 0} +} +func (m *GetRangePropertiesResponse_RangeProperty) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *GetRangePropertiesResponse_RangeProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.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 *GetRangePropertiesResponse_RangeProperty) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.Merge(m, src) +} +func (m *GetRangePropertiesResponse_RangeProperty) XXX_Size() int { + return m.Size() +} +func (m *GetRangePropertiesResponse_RangeProperty) XXX_DiscardUnknown() { + xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRangePropertiesResponse_RangeProperty proto.InternalMessageInfo func (m *GetRangePropertiesResponse_RangeProperty) GetKey() string { if m != nil { @@ -990,22 +2161,51 @@ func (m *GetRangePropertiesResponse_RangeProperty) GetValue() string { } type FlashbackToVersionRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` - RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - StartKey []byte `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,7,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + StartKey []byte `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,7,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionRequest{} } func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{37} + return fileDescriptor_823ddaea3037c5c3, []int{37} +} +func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackToVersionRequest.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 *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionRequest.Merge(m, src) +} +func (m *FlashbackToVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *FlashbackToVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackToVersionRequest.DiscardUnknown(m) } +var xxx_messageInfo_FlashbackToVersionRequest proto.InternalMessageInfo + func (m *FlashbackToVersionRequest) GetContext() *kvrpcpb.Context { if m != nil { return m.Context @@ -1056,15 +2256,44 @@ func (m *FlashbackToVersionRequest) GetCommitTs() uint64 { } type FlashbackToVersionResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionResponse{} } func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{38} + return fileDescriptor_823ddaea3037c5c3, []int{38} +} +func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackToVersionResponse.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 *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionResponse.Merge(m, src) +} +func (m *FlashbackToVersionResponse) XXX_Size() int { + return m.Size() } +func (m *FlashbackToVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackToVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FlashbackToVersionResponse proto.InternalMessageInfo func (m *FlashbackToVersionResponse) GetError() string { if m != nil { @@ -1074,18 +2303,47 @@ func (m *FlashbackToVersionResponse) GetError() string { } type GetRegionReadProgressRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - LogLocks bool `protobuf:"varint,2,opt,name=log_locks,json=logLocks,proto3" json:"log_locks,omitempty"` - MinStartTs uint64 `protobuf:"varint,3,opt,name=min_start_ts,json=minStartTs,proto3" json:"min_start_ts,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + LogLocks bool `protobuf:"varint,2,opt,name=log_locks,json=logLocks,proto3" json:"log_locks,omitempty"` + MinStartTs uint64 `protobuf:"varint,3,opt,name=min_start_ts,json=minStartTs,proto3" json:"min_start_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRegionReadProgressRequest) Reset() { *m = GetRegionReadProgressRequest{} } func (m *GetRegionReadProgressRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressRequest) ProtoMessage() {} func (*GetRegionReadProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{39} + return fileDescriptor_823ddaea3037c5c3, []int{39} +} +func (m *GetRegionReadProgressRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionReadProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionReadProgressRequest.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 *GetRegionReadProgressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionReadProgressRequest.Merge(m, src) +} +func (m *GetRegionReadProgressRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRegionReadProgressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionReadProgressRequest.DiscardUnknown(m) } +var xxx_messageInfo_GetRegionReadProgressRequest proto.InternalMessageInfo + func (m *GetRegionReadProgressRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -1123,21 +2381,50 @@ type GetRegionReadProgressResponse struct { ReadStateApplyIndex uint64 `protobuf:"varint,19,opt,name=read_state_apply_index,json=readStateApplyIndex,proto3" json:"read_state_apply_index,omitempty"` Discard bool `protobuf:"varint,20,opt,name=discard,proto3" json:"discard,omitempty"` // below are from resolved-ts module - ResolvedTs uint64 `protobuf:"varint,11,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` - ResolverTrackedIndex uint64 `protobuf:"varint,12,opt,name=resolver_tracked_index,json=resolverTrackedIndex,proto3" json:"resolver_tracked_index,omitempty"` - ResolverExist bool `protobuf:"varint,13,opt,name=resolver_exist,json=resolverExist,proto3" json:"resolver_exist,omitempty"` - ResolverStopped bool `protobuf:"varint,14,opt,name=resolver_stopped,json=resolverStopped,proto3" json:"resolver_stopped,omitempty"` - NumLocks uint64 `protobuf:"varint,16,opt,name=num_locks,json=numLocks,proto3" json:"num_locks,omitempty"` - NumTransactions uint64 `protobuf:"varint,17,opt,name=num_transactions,json=numTransactions,proto3" json:"num_transactions,omitempty"` - Error string `protobuf:"bytes,15,opt,name=error,proto3" json:"error,omitempty"` + ResolvedTs uint64 `protobuf:"varint,11,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + ResolverTrackedIndex uint64 `protobuf:"varint,12,opt,name=resolver_tracked_index,json=resolverTrackedIndex,proto3" json:"resolver_tracked_index,omitempty"` + ResolverExist bool `protobuf:"varint,13,opt,name=resolver_exist,json=resolverExist,proto3" json:"resolver_exist,omitempty"` + ResolverStopped bool `protobuf:"varint,14,opt,name=resolver_stopped,json=resolverStopped,proto3" json:"resolver_stopped,omitempty"` + NumLocks uint64 `protobuf:"varint,16,opt,name=num_locks,json=numLocks,proto3" json:"num_locks,omitempty"` + NumTransactions uint64 `protobuf:"varint,17,opt,name=num_transactions,json=numTransactions,proto3" json:"num_transactions,omitempty"` + Error string `protobuf:"bytes,15,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetRegionReadProgressResponse) Reset() { *m = GetRegionReadProgressResponse{} } func (m *GetRegionReadProgressResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressResponse) ProtoMessage() {} func (*GetRegionReadProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDebugpb, []int{40} + return fileDescriptor_823ddaea3037c5c3, []int{40} +} +func (m *GetRegionReadProgressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionReadProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionReadProgressResponse.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 *GetRegionReadProgressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionReadProgressResponse.Merge(m, src) +} +func (m *GetRegionReadProgressResponse) XXX_Size() int { + return m.Size() +} +func (m *GetRegionReadProgressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionReadProgressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRegionReadProgressResponse proto.InternalMessageInfo func (m *GetRegionReadProgressResponse) GetSafeTs() uint64 { if m != nil { @@ -1280,6 +2567,9 @@ func (m *GetRegionReadProgressResponse) GetError() string { } func init() { + proto.RegisterEnum("debugpb.DB", DB_name, DB_value) + proto.RegisterEnum("debugpb.MODULE", MODULE_name, MODULE_value) + proto.RegisterEnum("debugpb.BottommostLevelCompaction", BottommostLevelCompaction_name, BottommostLevelCompaction_value) proto.RegisterType((*GetRequest)(nil), "debugpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "debugpb.GetResponse") proto.RegisterType((*RaftLogRequest)(nil), "debugpb.RaftLogRequest") @@ -1324,9 +2614,156 @@ func init() { proto.RegisterType((*FlashbackToVersionResponse)(nil), "debugpb.FlashbackToVersionResponse") proto.RegisterType((*GetRegionReadProgressRequest)(nil), "debugpb.GetRegionReadProgressRequest") proto.RegisterType((*GetRegionReadProgressResponse)(nil), "debugpb.GetRegionReadProgressResponse") - proto.RegisterEnum("debugpb.DB", DB_name, DB_value) - proto.RegisterEnum("debugpb.MODULE", MODULE_name, MODULE_value) - proto.RegisterEnum("debugpb.BottommostLevelCompaction", BottommostLevelCompaction_name, BottommostLevelCompaction_value) +} + +func init() { proto.RegisterFile("debugpb.proto", fileDescriptor_823ddaea3037c5c3) } + +var fileDescriptor_823ddaea3037c5c3 = []byte{ + // 2294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0x4b, 0x73, 0xdb, 0xc8, + 0xf1, 0x17, 0x28, 0x4a, 0xa4, 0x5a, 0x2f, 0x68, 0x24, 0x4b, 0x14, 0xbc, 0x92, 0x65, 0x78, 0x65, + 0x6b, 0xfd, 0xaf, 0xbf, 0xb2, 0xd1, 0x3a, 0xe5, 0xa4, 0x36, 0x8f, 0x92, 0x28, 0x4a, 0xcb, 0x48, + 0xb2, 0xb4, 0x20, 0xad, 0x2a, 0x9f, 0x50, 0x20, 0x30, 0xa4, 0xb1, 0x04, 0x31, 0x0c, 0x66, 0xc8, + 0xb2, 0x7c, 0xc8, 0x31, 0xe7, 0x3d, 0xa6, 0x2a, 0x5f, 0x60, 0x2f, 0xb9, 0xe6, 0x33, 0xe4, 0x98, + 0x63, 0x8e, 0x29, 0xe7, 0x9a, 0x1c, 0x73, 0x4f, 0xcd, 0x03, 0xe0, 0xf0, 0x65, 0x6b, 0x73, 0x12, + 0xa6, 0xbb, 0xa7, 0xbb, 0xa7, 0xfb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e, 0x03, 0xab, 0x35, 0xdf, 0x8b, 0xaf, 0xfa, 0xbe, 0x9f, 0xae, 0x60, 0x1b, 0x8a, + 0xcd, 0x84, 0x74, 0x5c, 0x8e, 0x60, 0x09, 0xcf, 0x02, 0x1f, 0x5f, 0xe0, 0x3b, 0xf4, 0x00, 0xe6, + 0x19, 0x11, 0x8a, 0x9c, 0xc4, 0x2d, 0x23, 0x5c, 0xbc, 0x01, 0x73, 0x51, 0xd8, 0x09, 0x99, 0x28, + 0x65, 0xde, 0x91, 0x03, 0xfb, 0x02, 0xcc, 0x81, 0x6b, 0xb5, 0x30, 0xb5, 0x31, 0x8c, 0x6c, 0x63, + 0xa0, 0x7d, 0xc8, 0x87, 0x71, 0x93, 0xa8, 0x86, 0xae, 0x1d, 0xa6, 0xfb, 0x97, 0x4f, 0x13, 0x70, + 0x12, 0x6a, 0xfb, 0xdf, 0x06, 0xac, 0x94, 0x49, 0xa7, 0xeb, 0xf9, 0xff, 0xdb, 0x8e, 0xd4, 0x17, + 0x35, 0x3b, 0x6d, 0x51, 0x79, 0x7d, 0x51, 0x25, 0x28, 0xb0, 0xb7, 0x09, 0xf6, 0x02, 0x5a, 0x9a, + 0xdb, 0x33, 0x0e, 0x96, 0x9d, 0x74, 0x88, 0x1a, 0xf0, 0xb0, 0x41, 0x18, 0x23, 0x9d, 0x0e, 0xa1, + 0xcc, 0x8d, 0x70, 0x1f, 0x47, 0xae, 0x2f, 0x73, 0x0b, 0x49, 0x5c, 0x9a, 0x17, 0x19, 0xd9, 0x59, + 0x46, 0x27, 0x99, 0xed, 0x25, 0x37, 0x2d, 0x67, 0x96, 0xce, 0x76, 0x63, 0x9a, 0xca, 0x5e, 0x83, + 0xd5, 0x6c, 0xb9, 0xb2, 0x76, 0xf6, 0x19, 0x6c, 0x56, 0xe3, 0xef, 0xb0, 0xcf, 0xce, 0xbc, 0x30, + 0xba, 0x21, 0x61, 0x9c, 0x55, 0x02, 0x41, 0x3e, 0xf6, 0x3a, 0x58,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xd0, 0xcf, 0x24, 0x56, 0x69, 0x5c, 0x91, + 0xcd, 0x3f, 0x07, 0x18, 0xfc, 0x38, 0x81, 0xac, 0x11, 0x22, 0xad, 0x3d, 0x6c, 0xac, 0x87, 0x13, + 0x75, 0xe3, 0x8e, 0x38, 0xf9, 0x1e, 0x73, 0xa4, 0xfd, 0x06, 0x30, 0xe6, 0x48, 0x67, 0xeb, 0xf6, + 0x0c, 0x2a, 0x43, 0x31, 0x25, 0xc6, 0x68, 0x90, 0xf9, 0x08, 0x0d, 0xb7, 0xb6, 0x27, 0x68, 0x52, + 0x17, 0x5f, 0x1a, 0xbc, 0x2c, 0xaa, 0xd4, 0x5a, 0x59, 0x86, 0x19, 0xb2, 0x56, 0x96, 0x51, 0x2e, + 0x39, 0x83, 0x6e, 0x61, 0x75, 0x84, 0x05, 0xa2, 0x47, 0x99, 0xf9, 0x64, 0x9e, 0x69, 0xed, 0x4d, + 0x37, 0xc8, 0xfc, 0xbe, 0x01, 0x73, 0x94, 0x13, 0xa2, 0x3d, 0xad, 0x1e, 0x13, 0xd9, 0xa5, 0xf5, + 0xf8, 0x23, 0x16, 0x99, 0xeb, 0x1a, 0xac, 0x0c, 0xd3, 0x40, 0xb4, 0x3b, 0x95, 0x1f, 0x4a, 0xb7, + 0x8f, 0x3e, 0xc1, 0x1f, 0x65, 0x57, 0x07, 0x9c, 0x4e, 0xeb, 0xea, 0x18, 0x21, 0xd4, 0xba, 0x3a, + 0x4e, 0x02, 0xed, 0x19, 0xd4, 0x86, 0x4d, 0x45, 0x8f, 0x46, 0x48, 0x13, 0x7a, 0x3a, 0x02, 0x87, + 0x29, 0x74, 0xcc, 0x7a, 0xf6, 0x49, 0x3b, 0xbd, 0xca, 0xa3, 0x8c, 0x47, 0xab, 0xf2, 0x14, 0x52, + 0xa6, 0x55, 0x79, 0x2a, 0x5d, 0x9a, 0x41, 0x0d, 0xc1, 0x3b, 0x46, 0xf9, 0x0b, 0x7a, 0x32, 0xbc, + 0x3d, 0x27, 0x12, 0x23, 0xeb, 0xf3, 0x8f, 0x1b, 0x65, 0x31, 0xae, 0x60, 0x49, 0x27, 0x31, 0xe8, + 0x33, 0x7d, 0xde, 0x28, 0xe5, 0xb1, 0x76, 0xa6, 0x68, 0x75, 0x60, 0x0c, 0x33, 0x12, 0x0d, 0x18, + 0x13, 0x39, 0x8c, 0x06, 0x8c, 0xc9, 0x54, 0xc6, 0x9e, 0x41, 0x58, 0x10, 0xad, 0x31, 0x3a, 0x82, + 0x86, 0xd6, 0x38, 0x8d, 0xcc, 0x58, 0xfb, 0x9f, 0xb0, 0xd2, 0x73, 0x1f, 0xa6, 0x24, 0x5a, 0xee, + 0x13, 0x49, 0x8d, 0x96, 0xfb, 0x14, 0x2e, 0x33, 0x83, 0x5c, 0xf1, 0x43, 0xc5, 0x08, 0x81, 0x40, + 0xf6, 0x47, 0xd9, 0x85, 0x74, 0xfe, 0xe4, 0x1e, 0x0c, 0x44, 0x06, 0x18, 0x7f, 0x41, 0x6b, 0x01, + 0xa6, 0x92, 0x09, 0x2d, 0xc0, 0xf4, 0x27, 0xb8, 0x3d, 0x83, 0xde, 0x0a, 0xf6, 0x39, 0xfe, 0xe2, + 0x45, 0xfb, 0xe3, 0x10, 0x9b, 0xf0, 0x1c, 0xb7, 0x9e, 0x7e, 0xca, 0x2c, 0x8d, 0x74, 0xf2, 0xf4, + 0xef, 0x3f, 0x14, 0x8d, 0xbf, 0x7e, 0xd8, 0x35, 0xfe, 0xf6, 0x61, 0xd7, 0xf8, 0xc7, 0x87, 0x5d, + 0xe3, 0x8f, 0xff, 0xdc, 0x9d, 0x01, 0x93, 0x24, 0xad, 0x43, 0x16, 0xb6, 0xfb, 0x87, 0xed, 0xbe, + 0xf8, 0x77, 0x40, 0x63, 0x5e, 0xfc, 0xf9, 0xea, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0x59, + 0xd2, 0x20, 0x89, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1337,8 +2774,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Debug service - +// DebugClient is the client API for Debug service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DebugClient interface { // Read a value arbitrarily for a key. // Note: Server uses key directly w/o any encoding. @@ -1397,7 +2835,7 @@ func NewDebugClient(cc *grpc.ClientConn) DebugClient { func (c *debugClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/Get", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/Get", in, out, opts...) if err != nil { return nil, err } @@ -1406,7 +2844,7 @@ func (c *debugClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Call func (c *debugClient) RaftLog(ctx context.Context, in *RaftLogRequest, opts ...grpc.CallOption) (*RaftLogResponse, error) { out := new(RaftLogResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/RaftLog", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/RaftLog", in, out, opts...) if err != nil { return nil, err } @@ -1415,7 +2853,7 @@ func (c *debugClient) RaftLog(ctx context.Context, in *RaftLogRequest, opts ...g func (c *debugClient) RegionInfo(ctx context.Context, in *RegionInfoRequest, opts ...grpc.CallOption) (*RegionInfoResponse, error) { out := new(RegionInfoResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/RegionInfo", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/RegionInfo", in, out, opts...) if err != nil { return nil, err } @@ -1424,7 +2862,7 @@ func (c *debugClient) RegionInfo(ctx context.Context, in *RegionInfoRequest, opt func (c *debugClient) RegionSize(ctx context.Context, in *RegionSizeRequest, opts ...grpc.CallOption) (*RegionSizeResponse, error) { out := new(RegionSizeResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/RegionSize", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/RegionSize", in, out, opts...) if err != nil { return nil, err } @@ -1432,7 +2870,7 @@ func (c *debugClient) RegionSize(ctx context.Context, in *RegionSizeRequest, opt } func (c *debugClient) ScanMvcc(ctx context.Context, in *ScanMvccRequest, opts ...grpc.CallOption) (Debug_ScanMvccClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Debug_serviceDesc.Streams[0], c.cc, "/debugpb.Debug/ScanMvcc", opts...) + stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/debugpb.Debug/ScanMvcc", opts...) if err != nil { return nil, err } @@ -1465,7 +2903,7 @@ func (x *debugScanMvccClient) Recv() (*ScanMvccResponse, error) { func (c *debugClient) Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error) { out := new(CompactResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/Compact", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/Compact", in, out, opts...) if err != nil { return nil, err } @@ -1474,7 +2912,7 @@ func (c *debugClient) Compact(ctx context.Context, in *CompactRequest, opts ...g func (c *debugClient) InjectFailPoint(ctx context.Context, in *InjectFailPointRequest, opts ...grpc.CallOption) (*InjectFailPointResponse, error) { out := new(InjectFailPointResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/InjectFailPoint", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/InjectFailPoint", in, out, opts...) if err != nil { return nil, err } @@ -1483,7 +2921,7 @@ func (c *debugClient) InjectFailPoint(ctx context.Context, in *InjectFailPointRe func (c *debugClient) RecoverFailPoint(ctx context.Context, in *RecoverFailPointRequest, opts ...grpc.CallOption) (*RecoverFailPointResponse, error) { out := new(RecoverFailPointResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/RecoverFailPoint", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/RecoverFailPoint", in, out, opts...) if err != nil { return nil, err } @@ -1492,7 +2930,7 @@ func (c *debugClient) RecoverFailPoint(ctx context.Context, in *RecoverFailPoint func (c *debugClient) ListFailPoints(ctx context.Context, in *ListFailPointsRequest, opts ...grpc.CallOption) (*ListFailPointsResponse, error) { out := new(ListFailPointsResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/ListFailPoints", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/ListFailPoints", in, out, opts...) if err != nil { return nil, err } @@ -1501,7 +2939,7 @@ func (c *debugClient) ListFailPoints(ctx context.Context, in *ListFailPointsRequ func (c *debugClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { out := new(GetMetricsResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetMetrics", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetMetrics", in, out, opts...) if err != nil { return nil, err } @@ -1510,7 +2948,7 @@ func (c *debugClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opt func (c *debugClient) CheckRegionConsistency(ctx context.Context, in *RegionConsistencyCheckRequest, opts ...grpc.CallOption) (*RegionConsistencyCheckResponse, error) { out := new(RegionConsistencyCheckResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/CheckRegionConsistency", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/CheckRegionConsistency", in, out, opts...) if err != nil { return nil, err } @@ -1519,7 +2957,7 @@ func (c *debugClient) CheckRegionConsistency(ctx context.Context, in *RegionCons func (c *debugClient) ModifyTikvConfig(ctx context.Context, in *ModifyTikvConfigRequest, opts ...grpc.CallOption) (*ModifyTikvConfigResponse, error) { out := new(ModifyTikvConfigResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/ModifyTikvConfig", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/ModifyTikvConfig", in, out, opts...) if err != nil { return nil, err } @@ -1528,7 +2966,7 @@ func (c *debugClient) ModifyTikvConfig(ctx context.Context, in *ModifyTikvConfig func (c *debugClient) GetRegionProperties(ctx context.Context, in *GetRegionPropertiesRequest, opts ...grpc.CallOption) (*GetRegionPropertiesResponse, error) { out := new(GetRegionPropertiesResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetRegionProperties", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRegionProperties", in, out, opts...) if err != nil { return nil, err } @@ -1537,7 +2975,7 @@ func (c *debugClient) GetRegionProperties(ctx context.Context, in *GetRegionProp func (c *debugClient) GetStoreInfo(ctx context.Context, in *GetStoreInfoRequest, opts ...grpc.CallOption) (*GetStoreInfoResponse, error) { out := new(GetStoreInfoResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetStoreInfo", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetStoreInfo", in, out, opts...) if err != nil { return nil, err } @@ -1546,7 +2984,7 @@ func (c *debugClient) GetStoreInfo(ctx context.Context, in *GetStoreInfoRequest, func (c *debugClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { out := new(GetClusterInfoResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetClusterInfo", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetClusterInfo", in, out, opts...) if err != nil { return nil, err } @@ -1555,7 +2993,7 @@ func (c *debugClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequ func (c *debugClient) GetAllRegionsInStore(ctx context.Context, in *GetAllRegionsInStoreRequest, opts ...grpc.CallOption) (*GetAllRegionsInStoreResponse, error) { out := new(GetAllRegionsInStoreResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetAllRegionsInStore", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetAllRegionsInStore", in, out, opts...) if err != nil { return nil, err } @@ -1564,7 +3002,7 @@ func (c *debugClient) GetAllRegionsInStore(ctx context.Context, in *GetAllRegion func (c *debugClient) ResetToVersion(ctx context.Context, in *ResetToVersionRequest, opts ...grpc.CallOption) (*ResetToVersionResponse, error) { out := new(ResetToVersionResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/ResetToVersion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/ResetToVersion", in, out, opts...) if err != nil { return nil, err } @@ -1573,7 +3011,7 @@ func (c *debugClient) ResetToVersion(ctx context.Context, in *ResetToVersionRequ func (c *debugClient) GetRangeProperties(ctx context.Context, in *GetRangePropertiesRequest, opts ...grpc.CallOption) (*GetRangePropertiesResponse, error) { out := new(GetRangePropertiesResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetRangeProperties", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRangeProperties", in, out, opts...) if err != nil { return nil, err } @@ -1582,7 +3020,7 @@ func (c *debugClient) GetRangeProperties(ctx context.Context, in *GetRangeProper func (c *debugClient) FlashbackToVersion(ctx context.Context, in *FlashbackToVersionRequest, opts ...grpc.CallOption) (*FlashbackToVersionResponse, error) { out := new(FlashbackToVersionResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/FlashbackToVersion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/FlashbackToVersion", in, out, opts...) if err != nil { return nil, err } @@ -1591,15 +3029,14 @@ func (c *debugClient) FlashbackToVersion(ctx context.Context, in *FlashbackToVer func (c *debugClient) GetRegionReadProgress(ctx context.Context, in *GetRegionReadProgressRequest, opts ...grpc.CallOption) (*GetRegionReadProgressResponse, error) { out := new(GetRegionReadProgressResponse) - err := grpc.Invoke(ctx, "/debugpb.Debug/GetRegionReadProgress", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/debugpb.Debug/GetRegionReadProgress", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Debug service - +// DebugServer is the server API for Debug service. type DebugServer interface { // Read a value arbitrarily for a key. // Note: Server uses key directly w/o any encoding. @@ -1648,6 +3085,71 @@ type DebugServer interface { GetRegionReadProgress(context.Context, *GetRegionReadProgressRequest) (*GetRegionReadProgressResponse, error) } +// UnimplementedDebugServer can be embedded to have forward compatible implementations. +type UnimplementedDebugServer struct { +} + +func (*UnimplementedDebugServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedDebugServer) RaftLog(ctx context.Context, req *RaftLogRequest) (*RaftLogResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RaftLog not implemented") +} +func (*UnimplementedDebugServer) RegionInfo(ctx context.Context, req *RegionInfoRequest) (*RegionInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegionInfo not implemented") +} +func (*UnimplementedDebugServer) RegionSize(ctx context.Context, req *RegionSizeRequest) (*RegionSizeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegionSize not implemented") +} +func (*UnimplementedDebugServer) ScanMvcc(req *ScanMvccRequest, srv Debug_ScanMvccServer) error { + return status.Errorf(codes.Unimplemented, "method ScanMvcc not implemented") +} +func (*UnimplementedDebugServer) Compact(ctx context.Context, req *CompactRequest) (*CompactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") +} +func (*UnimplementedDebugServer) InjectFailPoint(ctx context.Context, req *InjectFailPointRequest) (*InjectFailPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InjectFailPoint not implemented") +} +func (*UnimplementedDebugServer) RecoverFailPoint(ctx context.Context, req *RecoverFailPointRequest) (*RecoverFailPointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecoverFailPoint not implemented") +} +func (*UnimplementedDebugServer) ListFailPoints(ctx context.Context, req *ListFailPointsRequest) (*ListFailPointsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListFailPoints not implemented") +} +func (*UnimplementedDebugServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") +} +func (*UnimplementedDebugServer) CheckRegionConsistency(ctx context.Context, req *RegionConsistencyCheckRequest) (*RegionConsistencyCheckResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckRegionConsistency not implemented") +} +func (*UnimplementedDebugServer) ModifyTikvConfig(ctx context.Context, req *ModifyTikvConfigRequest) (*ModifyTikvConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModifyTikvConfig not implemented") +} +func (*UnimplementedDebugServer) GetRegionProperties(ctx context.Context, req *GetRegionPropertiesRequest) (*GetRegionPropertiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRegionProperties not implemented") +} +func (*UnimplementedDebugServer) GetStoreInfo(ctx context.Context, req *GetStoreInfoRequest) (*GetStoreInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStoreInfo not implemented") +} +func (*UnimplementedDebugServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") +} +func (*UnimplementedDebugServer) GetAllRegionsInStore(ctx context.Context, req *GetAllRegionsInStoreRequest) (*GetAllRegionsInStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllRegionsInStore not implemented") +} +func (*UnimplementedDebugServer) ResetToVersion(ctx context.Context, req *ResetToVersionRequest) (*ResetToVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetToVersion not implemented") +} +func (*UnimplementedDebugServer) GetRangeProperties(ctx context.Context, req *GetRangePropertiesRequest) (*GetRangePropertiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRangeProperties not implemented") +} +func (*UnimplementedDebugServer) FlashbackToVersion(ctx context.Context, req *FlashbackToVersionRequest) (*FlashbackToVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FlashbackToVersion not implemented") +} +func (*UnimplementedDebugServer) GetRegionReadProgress(ctx context.Context, req *GetRegionReadProgressRequest) (*GetRegionReadProgressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRegionReadProgress not implemented") +} + func RegisterDebugServer(s *grpc.Server, srv DebugServer) { s.RegisterService(&_Debug_serviceDesc, srv) } @@ -2109,7 +3611,7 @@ var _Debug_serviceDesc = grpc.ServiceDesc{ func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2117,34 +3619,45 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Db != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a } if len(m.Cf) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0x12 } - if len(m.Key) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Db != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2152,23 +3665,33 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Value) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RaftLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2176,27 +3699,36 @@ func (m *RaftLogRequest) Marshal() (dAtA []byte, err error) { } func (m *RaftLogRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.LogIndex != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.LogIndex)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RaftLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2204,27 +3736,38 @@ func (m *RaftLogResponse) Marshal() (dAtA []byte, err error) { } func (m *RaftLogResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Entry != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Entry.Size())) - n1, err := m.Entry.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2232,22 +3775,31 @@ func (m *RegionInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2255,47 +3807,62 @@ func (m *RegionInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RaftLocalState != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RaftLocalState.Size())) - n2, err := m.RaftLocalState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RegionLocalState != nil { + { + size, err := m.RegionLocalState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x1a } if m.RaftApplyState != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RaftApplyState.Size())) - n3, err := m.RaftApplyState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RaftApplyState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - if m.RegionLocalState != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionLocalState.Size())) - n4, err := m.RegionLocalState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RaftLocalState != nil { + { + size, err := m.RaftLocalState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionSizeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2303,37 +3870,40 @@ func (m *RegionSizeRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionSizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Cfs) > 0 { - for _, s := range m.Cfs { + for iNdEx := len(m.Cfs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Cfs[iNdEx]) + copy(dAtA[i:], m.Cfs[iNdEx]) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cfs[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if m.RegionId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RegionSizeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2341,29 +3911,40 @@ func (m *RegionSizeResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionSizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *RegionSizeResponse_Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2371,28 +3952,38 @@ func (m *RegionSizeResponse_Entry) Marshal() (dAtA []byte, err error) { } func (m *RegionSizeResponse_Entry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionSizeResponse_Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Size_ != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanMvccRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2400,34 +3991,45 @@ func (m *ScanMvccRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanMvccRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanMvccRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.FromKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) - i += copy(dAtA[i:], m.FromKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Limit != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 } if len(m.ToKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ToKey) + copy(dAtA[i:], m.ToKey) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) - i += copy(dAtA[i:], m.ToKey) + i-- + dAtA[i] = 0x12 } - if m.Limit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Limit)) + if len(m.FromKey) > 0 { + i -= len(m.FromKey) + copy(dAtA[i:], m.FromKey) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanMvccResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2435,33 +4037,45 @@ func (m *ScanMvccResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanMvccResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanMvccResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Info != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Info.Size())) - n5, err := m.Info.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2469,50 +4083,62 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Db != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Cf) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.BottommostLevelCompaction != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.BottommostLevelCompaction)) + i-- + dAtA[i] = 0x30 } - if len(m.FromKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) - i += copy(dAtA[i:], m.FromKey) + if m.Threads != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Threads)) + i-- + dAtA[i] = 0x28 } if len(m.ToKey) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.ToKey) + copy(dAtA[i:], m.ToKey) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ToKey))) - i += copy(dAtA[i:], m.ToKey) + i-- + dAtA[i] = 0x22 } - if m.Threads != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Threads)) + if len(m.FromKey) > 0 { + i -= len(m.FromKey) + copy(dAtA[i:], m.FromKey) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.FromKey))) + i-- + dAtA[i] = 0x1a } - if m.BottommostLevelCompaction != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.BottommostLevelCompaction)) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x12 + } + if m.Db != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2520,17 +4146,26 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *InjectFailPointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2538,29 +4173,40 @@ func (m *InjectFailPointRequest) Marshal() (dAtA []byte, err error) { } func (m *InjectFailPointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InjectFailPointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Actions) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Actions) + copy(dAtA[i:], m.Actions) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) - i += copy(dAtA[i:], m.Actions) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *InjectFailPointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2568,17 +4214,26 @@ func (m *InjectFailPointResponse) Marshal() (dAtA []byte, err error) { } func (m *InjectFailPointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InjectFailPointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *RecoverFailPointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2586,23 +4241,33 @@ func (m *RecoverFailPointRequest) Marshal() (dAtA []byte, err error) { } func (m *RecoverFailPointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoverFailPointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RecoverFailPointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2610,17 +4275,26 @@ func (m *RecoverFailPointResponse) Marshal() (dAtA []byte, err error) { } func (m *RecoverFailPointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoverFailPointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ListFailPointsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2628,17 +4302,26 @@ func (m *ListFailPointsRequest) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListFailPointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ListFailPointsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2646,29 +4329,40 @@ func (m *ListFailPointsResponse) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListFailPointsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *ListFailPointsResponse_Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2676,29 +4370,40 @@ func (m *ListFailPointsResponse_Entry) Marshal() (dAtA []byte, err error) { } func (m *ListFailPointsResponse_Entry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListFailPointsResponse_Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Actions) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Actions) + copy(dAtA[i:], m.Actions) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Actions))) - i += copy(dAtA[i:], m.Actions) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2706,27 +4411,36 @@ func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.All { - dAtA[i] = 0x8 - i++ + i-- if m.All { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2734,46 +4448,59 @@ func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Prometheus) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Prometheus))) - i += copy(dAtA[i:], m.Prometheus) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.RocksdbKv) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbKv))) - i += copy(dAtA[i:], m.RocksdbKv) + if m.StoreId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x28 + } + if len(m.Jemalloc) > 0 { + i -= len(m.Jemalloc) + copy(dAtA[i:], m.Jemalloc) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Jemalloc))) + i-- + dAtA[i] = 0x22 } if len(m.RocksdbRaft) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.RocksdbRaft) + copy(dAtA[i:], m.RocksdbRaft) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbRaft))) - i += copy(dAtA[i:], m.RocksdbRaft) + i-- + dAtA[i] = 0x1a } - if len(m.Jemalloc) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Jemalloc))) - i += copy(dAtA[i:], m.Jemalloc) + if len(m.RocksdbKv) > 0 { + i -= len(m.RocksdbKv) + copy(dAtA[i:], m.RocksdbKv) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.RocksdbKv))) + i-- + dAtA[i] = 0x12 } - if m.StoreId != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) + if len(m.Prometheus) > 0 { + i -= len(m.Prometheus) + copy(dAtA[i:], m.Prometheus) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Prometheus))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionConsistencyCheckRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2781,22 +4508,31 @@ func (m *RegionConsistencyCheckRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionConsistencyCheckRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionConsistencyCheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionConsistencyCheckResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2804,17 +4540,26 @@ func (m *RegionConsistencyCheckResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionConsistencyCheckResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionConsistencyCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ModifyTikvConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2822,34 +4567,45 @@ func (m *ModifyTikvConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *ModifyTikvConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ModifyTikvConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Module != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Module)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ConfigValue) > 0 { + i -= len(m.ConfigValue) + copy(dAtA[i:], m.ConfigValue) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigValue))) + i-- + dAtA[i] = 0x1a } if len(m.ConfigName) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ConfigName) + copy(dAtA[i:], m.ConfigName) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigName))) - i += copy(dAtA[i:], m.ConfigName) + i-- + dAtA[i] = 0x12 } - if len(m.ConfigValue) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.ConfigValue))) - i += copy(dAtA[i:], m.ConfigValue) + if m.Module != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Module)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ModifyTikvConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2857,17 +4613,26 @@ func (m *ModifyTikvConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *ModifyTikvConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ModifyTikvConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Property) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2875,29 +4640,40 @@ func (m *Property) Marshal() (dAtA []byte, err error) { } func (m *Property) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Property) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GetRegionPropertiesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2905,22 +4681,31 @@ func (m *GetRegionPropertiesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRegionPropertiesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionPropertiesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GetRegionPropertiesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2928,29 +4713,40 @@ func (m *GetRegionPropertiesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRegionPropertiesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionPropertiesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Props) > 0 { - for _, msg := range m.Props { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Props) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Props[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *GetStoreInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2958,17 +4754,26 @@ func (m *GetStoreInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetStoreInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStoreInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetStoreInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2976,27 +4781,36 @@ func (m *GetStoreInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetStoreInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStoreInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StoreId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ApiVersion != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.StoreId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3004,17 +4818,26 @@ func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3022,22 +4845,31 @@ func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GetAllRegionsInStoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3045,17 +4877,26 @@ func (m *GetAllRegionsInStoreRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllRegionsInStoreRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllRegionsInStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetAllRegionsInStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3063,10 +4904,19 @@ func (m *GetAllRegionsInStoreResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllRegionsInStoreResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllRegionsInStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Regions) > 0 { dAtA7 := make([]byte, len(m.Regions)*10) var j6 int @@ -3079,18 +4929,19 @@ func (m *GetAllRegionsInStoreResponse) MarshalTo(dAtA []byte) (int, error) { dAtA7[j6] = uint8(num) j6++ } - dAtA[i] = 0xa - i++ + i -= j6 + copy(dAtA[i:], dAtA7[:j6]) i = encodeVarintDebugpb(dAtA, i, uint64(j6)) - i += copy(dAtA[i:], dAtA7[:j6]) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ResetToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3098,22 +4949,31 @@ func (m *ResetToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *ResetToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResetToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Ts != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ResetToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3121,17 +4981,26 @@ func (m *ResetToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *ResetToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResetToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetRangePropertiesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3139,29 +5008,40 @@ func (m *GetRangePropertiesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRangePropertiesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRangePropertiesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.EndKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x12 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetRangePropertiesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3169,29 +5049,40 @@ func (m *GetRangePropertiesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRangePropertiesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRangePropertiesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Properties) > 0 { - for _, msg := range m.Properties { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Properties) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Properties[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *GetRangePropertiesResponse_RangeProperty) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3199,29 +5090,40 @@ func (m *GetRangePropertiesResponse_RangeProperty) Marshal() (dAtA []byte, err e } func (m *GetRangePropertiesResponse_RangeProperty) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRangePropertiesResponse_RangeProperty) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3229,59 +5131,72 @@ func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Context.Size())) - n8, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.Version)) + if m.CommitTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x38 } - if m.RegionId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + if m.StartTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x30 + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x2a } if len(m.StartKey) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x22 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.RegionId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x18 } - if m.StartTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.StartTs)) + if m.Version != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x10 } - if m.CommitTs != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.CommitTs)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDebugpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3289,23 +5204,33 @@ func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Error) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetRegionReadProgressRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3313,37 +5238,46 @@ func (m *GetRegionReadProgressRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRegionReadProgressRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionReadProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MinStartTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.MinStartTs)) + i-- + dAtA[i] = 0x18 } if m.LogLocks { - dAtA[i] = 0x10 - i++ + i-- if m.LogLocks { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - if m.MinStartTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.MinStartTs)) + if m.RegionId != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GetRegionReadProgressResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3351,159 +5285,174 @@ func (m *GetRegionReadProgressResponse) Marshal() (dAtA []byte, err error) { } func (m *GetRegionReadProgressResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionReadProgressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SafeTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.SafeTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.AppliedIndex != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.AppliedIndex)) + if m.Discard { + i-- + if m.Discard { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 } - if m.PendingFrontAppliedIndex != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontAppliedIndex)) + if m.ReadStateApplyIndex != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateApplyIndex)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 } - if m.PendingFrontTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontTs)) + if m.ReadStateTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateTs)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 } - if m.PendingBackAppliedIndex != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackAppliedIndex)) + if m.NumTransactions != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumTransactions)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 } - if m.PendingBackTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackTs)) + if m.NumLocks != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumLocks)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } - if m.RegionReadProgressPaused { - dAtA[i] = 0x38 - i++ - if m.RegionReadProgressPaused { + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x7a + } + if m.ResolverStopped { + i-- + if m.ResolverStopped { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.DurationToLastUpdateSafeTsMs != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastUpdateSafeTsMs)) - } - if m.DurationToLastConsumeLeaderMs != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastConsumeLeaderMs)) + i-- + dAtA[i] = 0x70 } - if m.RegionReadProgressExist { - dAtA[i] = 0x50 - i++ - if m.RegionReadProgressExist { + if m.ResolverExist { + i-- + if m.ResolverExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.ResolvedTs != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x68 } if m.ResolverTrackedIndex != 0 { - dAtA[i] = 0x60 - i++ i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolverTrackedIndex)) + i-- + dAtA[i] = 0x60 } - if m.ResolverExist { - dAtA[i] = 0x68 - i++ - if m.ResolverExist { + if m.ResolvedTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x58 + } + if m.RegionReadProgressExist { + i-- + if m.RegionReadProgressExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x50 } - if m.ResolverStopped { - dAtA[i] = 0x70 - i++ - if m.ResolverStopped { + if m.DurationToLastConsumeLeaderMs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastConsumeLeaderMs)) + i-- + dAtA[i] = 0x48 + } + if m.DurationToLastUpdateSafeTsMs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastUpdateSafeTsMs)) + i-- + dAtA[i] = 0x40 + } + if m.RegionReadProgressPaused { + i-- + if m.RegionReadProgressPaused { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if len(m.Error) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if m.PendingBackTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackTs)) + i-- + dAtA[i] = 0x30 } - if m.NumLocks != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.NumLocks)) + if m.PendingBackAppliedIndex != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackAppliedIndex)) + i-- + dAtA[i] = 0x28 } - if m.NumTransactions != 0 { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.NumTransactions)) + if m.PendingFrontTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontTs)) + i-- + dAtA[i] = 0x20 } - if m.ReadStateTs != 0 { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateTs)) + if m.PendingFrontAppliedIndex != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontAppliedIndex)) + i-- + dAtA[i] = 0x18 } - if m.ReadStateApplyIndex != 0 { - dAtA[i] = 0x98 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateApplyIndex)) + if m.AppliedIndex != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x10 } - if m.Discard { - dAtA[i] = 0xa0 - i++ - dAtA[i] = 0x1 - i++ - if m.Discard { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.SafeTs != 0 { + i = encodeVarintDebugpb(dAtA, i, uint64(m.SafeTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintDebugpb(dAtA []byte, offset int, v uint64) int { + offset -= sovDebugpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Db != 0 { @@ -3517,20 +5466,32 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Value) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftLogRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -3539,29 +5500,47 @@ func (m *RaftLogRequest) Size() (n int) { if m.LogIndex != 0 { n += 1 + sovDebugpb(uint64(m.LogIndex)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftLogResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Entry != nil { l = m.Entry.Size() n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionInfoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionInfoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RaftLocalState != nil { @@ -3576,10 +5555,16 @@ func (m *RegionInfoResponse) Size() (n int) { l = m.RegionLocalState.Size() n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionSizeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -3591,10 +5576,16 @@ func (m *RegionSizeRequest) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionSizeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Entries) > 0 { @@ -3603,10 +5594,16 @@ func (m *RegionSizeResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionSizeResponse_Entry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -3616,10 +5613,16 @@ func (m *RegionSizeResponse_Entry) Size() (n int) { if m.Size_ != 0 { n += 1 + sovDebugpb(uint64(m.Size_)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanMvccRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.FromKey) @@ -3633,10 +5636,16 @@ func (m *ScanMvccRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovDebugpb(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanMvccResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -3647,10 +5656,16 @@ func (m *ScanMvccResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Db != 0 { @@ -3674,16 +5689,28 @@ func (m *CompactRequest) Size() (n int) { if m.BottommostLevelCompaction != 0 { n += 1 + sovDebugpb(uint64(m.BottommostLevelCompaction)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *InjectFailPointRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -3694,38 +5721,68 @@ func (m *InjectFailPointRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *InjectFailPointResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RecoverFailPointRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RecoverFailPointResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListFailPointsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListFailPointsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Entries) > 0 { @@ -3734,10 +5791,16 @@ func (m *ListFailPointsResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListFailPointsResponse_Entry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -3748,19 +5811,31 @@ func (m *ListFailPointsResponse_Entry) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMetricsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.All { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMetricsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Prometheus) @@ -3782,25 +5857,43 @@ func (m *GetMetricsResponse) Size() (n int) { if m.StoreId != 0 { n += 1 + sovDebugpb(uint64(m.StoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionConsistencyCheckRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionConsistencyCheckResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ModifyTikvConfigRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Module != 0 { @@ -3814,16 +5907,28 @@ func (m *ModifyTikvConfigRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ModifyTikvConfigResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Property) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -3834,19 +5939,31 @@ func (m *Property) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRegionPropertiesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovDebugpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRegionPropertiesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Props) > 0 { @@ -3855,16 +5972,28 @@ func (m *GetRegionPropertiesResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetStoreInfoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetStoreInfoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StoreId != 0 { @@ -3873,31 +6002,55 @@ func (m *GetStoreInfoResponse) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovDebugpb(uint64(m.ApiVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetClusterInfoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetClusterInfoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { n += 1 + sovDebugpb(uint64(m.ClusterId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllRegionsInStoreRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllRegionsInStoreResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -3907,25 +6060,43 @@ func (m *GetAllRegionsInStoreResponse) Size() (n int) { } n += 1 + sovDebugpb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResetToVersionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Ts != 0 { n += 1 + sovDebugpb(uint64(m.Ts)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResetToVersionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRangePropertiesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -3936,10 +6107,16 @@ func (m *GetRangePropertiesRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRangePropertiesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Properties) > 0 { @@ -3948,10 +6125,16 @@ func (m *GetRangePropertiesResponse) Size() (n int) { n += 1 + l + sovDebugpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -3962,10 +6145,16 @@ func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackToVersionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -3992,20 +6181,32 @@ func (m *FlashbackToVersionRequest) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovDebugpb(uint64(m.CommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackToVersionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovDebugpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRegionReadProgressRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -4017,10 +6218,16 @@ func (m *GetRegionReadProgressRequest) Size() (n int) { if m.MinStartTs != 0 { n += 1 + sovDebugpb(uint64(m.MinStartTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRegionReadProgressResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SafeTs != 0 { @@ -4084,18 +6291,14 @@ func (m *GetRegionReadProgressResponse) Size() (n int) { if m.Discard { n += 3 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovDebugpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDebugpb(x uint64) (n int) { return sovDebugpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -4115,7 +6318,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4143,7 +6346,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Db |= (DB(b) & 0x7F) << shift + m.Db |= DB(b&0x7F) << shift if b < 0x80 { break } @@ -4162,7 +6365,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4172,6 +6375,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4191,7 +6397,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4200,6 +6406,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4214,12 +6423,13 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4244,7 +6454,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4272,7 +6482,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4281,6 +6491,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4295,12 +6508,13 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4325,7 +6539,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4353,7 +6567,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4372,7 +6586,7 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogIndex |= (uint64(b) & 0x7F) << shift + m.LogIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4383,12 +6597,13 @@ func (m *RaftLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4413,7 +6628,7 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4441,7 +6656,7 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4450,6 +6665,9 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4466,12 +6684,13 @@ func (m *RaftLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4496,7 +6715,7 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4524,7 +6743,7 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4535,12 +6754,13 @@ func (m *RegionInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4565,7 +6785,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4593,7 +6813,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4602,6 +6822,9 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4626,7 +6849,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4635,6 +6858,9 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4659,7 +6885,7 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4668,6 +6894,9 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4684,12 +6913,13 @@ func (m *RegionInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4714,7 +6944,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4742,7 +6972,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4761,7 +6991,7 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4771,6 +7001,9 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4782,12 +7015,13 @@ func (m *RegionSizeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4812,7 +7046,7 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4840,7 +7074,7 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4849,6 +7083,9 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4863,12 +7100,13 @@ func (m *RegionSizeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4893,7 +7131,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4921,7 +7159,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4931,6 +7169,9 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4950,7 +7191,7 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= (uint64(b) & 0x7F) << shift + m.Size_ |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4961,12 +7202,13 @@ func (m *RegionSizeResponse_Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4991,7 +7233,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5019,7 +7261,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5028,6 +7270,9 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5050,7 +7295,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5059,6 +7304,9 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5081,7 +7329,7 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint64(b) & 0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5092,12 +7340,13 @@ func (m *ScanMvccRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5122,7 +7371,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5150,7 +7399,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5159,6 +7408,9 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5181,7 +7433,7 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5190,6 +7442,9 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5206,12 +7461,13 @@ func (m *ScanMvccResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5236,7 +7492,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5264,7 +7520,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Db |= (DB(b) & 0x7F) << shift + m.Db |= DB(b&0x7F) << shift if b < 0x80 { break } @@ -5283,7 +7539,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5293,6 +7549,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5312,7 +7571,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5321,6 +7580,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5343,7 +7605,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5352,6 +7614,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5374,7 +7639,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Threads |= (uint32(b) & 0x7F) << shift + m.Threads |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -5393,7 +7658,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BottommostLevelCompaction |= (BottommostLevelCompaction(b) & 0x7F) << shift + m.BottommostLevelCompaction |= BottommostLevelCompaction(b&0x7F) << shift if b < 0x80 { break } @@ -5404,12 +7669,13 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5434,7 +7700,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5454,12 +7720,13 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5484,7 +7751,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5512,7 +7779,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5522,6 +7789,9 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5541,7 +7811,7 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5551,6 +7821,9 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5562,12 +7835,13 @@ func (m *InjectFailPointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5592,7 +7866,7 @@ func (m *InjectFailPointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5612,12 +7886,13 @@ func (m *InjectFailPointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5642,7 +7917,7 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5670,7 +7945,7 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5680,6 +7955,9 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5691,12 +7969,13 @@ func (m *RecoverFailPointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5721,7 +8000,7 @@ func (m *RecoverFailPointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5741,12 +8020,13 @@ func (m *RecoverFailPointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5771,7 +8051,7 @@ func (m *ListFailPointsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5791,12 +8071,13 @@ func (m *ListFailPointsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5821,7 +8102,7 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5849,7 +8130,7 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5858,6 +8139,9 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5872,12 +8156,13 @@ func (m *ListFailPointsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5902,7 +8187,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5930,7 +8215,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5940,6 +8225,9 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5959,7 +8247,7 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5969,6 +8257,9 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5980,12 +8271,13 @@ func (m *ListFailPointsResponse_Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6010,7 +8302,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6038,7 +8330,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6050,12 +8342,13 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6080,7 +8373,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6108,7 +8401,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6118,6 +8411,9 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6137,7 +8433,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6147,6 +8443,9 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6166,7 +8465,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6176,6 +8475,9 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6195,7 +8497,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6205,6 +8507,9 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6224,7 +8529,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6235,12 +8540,13 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6265,7 +8571,7 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6293,7 +8599,7 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6304,12 +8610,13 @@ func (m *RegionConsistencyCheckRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6334,7 +8641,7 @@ func (m *RegionConsistencyCheckResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6354,12 +8661,13 @@ func (m *RegionConsistencyCheckResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6384,7 +8692,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6412,7 +8720,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Module |= (MODULE(b) & 0x7F) << shift + m.Module |= MODULE(b&0x7F) << shift if b < 0x80 { break } @@ -6431,7 +8739,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6441,6 +8749,9 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6460,7 +8771,7 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6470,6 +8781,9 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6481,12 +8795,13 @@ func (m *ModifyTikvConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6511,7 +8826,7 @@ func (m *ModifyTikvConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6531,12 +8846,13 @@ func (m *ModifyTikvConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6561,7 +8877,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6589,7 +8905,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6599,6 +8915,9 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6618,7 +8937,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6628,6 +8947,9 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6639,12 +8961,13 @@ func (m *Property) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6669,7 +8992,7 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6697,7 +9020,7 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6708,12 +9031,13 @@ func (m *GetRegionPropertiesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6738,7 +9062,7 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6766,7 +9090,7 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6775,6 +9099,9 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6789,12 +9116,13 @@ func (m *GetRegionPropertiesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6819,7 +9147,7 @@ func (m *GetStoreInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6839,12 +9167,13 @@ func (m *GetStoreInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6869,7 +9198,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6897,7 +9226,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6916,7 +9245,7 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -6927,12 +9256,13 @@ func (m *GetStoreInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6957,7 +9287,7 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6977,12 +9307,13 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7007,7 +9338,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7035,7 +9366,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7046,12 +9377,13 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7076,7 +9408,7 @@ func (m *GetAllRegionsInStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7096,12 +9428,13 @@ func (m *GetAllRegionsInStoreRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7126,7 +9459,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7152,7 +9485,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7169,7 +9502,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7178,9 +9511,23 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } 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.Regions) == 0 { + m.Regions = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -7192,7 +9539,7 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7208,12 +9555,13 @@ func (m *GetAllRegionsInStoreResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7238,7 +9586,7 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7266,7 +9614,7 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (uint64(b) & 0x7F) << shift + m.Ts |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7277,12 +9625,13 @@ func (m *ResetToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7307,7 +9656,7 @@ func (m *ResetToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7327,12 +9676,13 @@ func (m *ResetToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7357,7 +9707,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7385,7 +9735,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7394,6 +9744,9 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7416,7 +9769,7 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7425,6 +9778,9 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7439,12 +9795,13 @@ func (m *GetRangePropertiesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7469,7 +9826,7 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7497,7 +9854,7 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7506,6 +9863,9 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7520,12 +9880,13 @@ func (m *GetRangePropertiesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7550,7 +9911,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7578,7 +9939,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7588,6 +9949,9 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7607,7 +9971,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7617,6 +9981,9 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7628,12 +9995,13 @@ func (m *GetRangePropertiesResponse_RangeProperty) Unmarshal(dAtA []byte) error if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7658,7 +10026,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7686,7 +10054,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7695,6 +10063,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7719,7 +10090,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7738,7 +10109,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7757,7 +10128,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7766,6 +10137,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7788,7 +10162,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7797,6 +10171,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7819,7 +10196,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7838,7 +10215,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7849,12 +10226,13 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7879,7 +10257,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7907,7 +10285,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7917,6 +10295,9 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7928,12 +10309,13 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7958,7 +10340,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7986,7 +10368,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8005,7 +10387,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8025,7 +10407,7 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinStartTs |= (uint64(b) & 0x7F) << shift + m.MinStartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8036,12 +10418,13 @@ func (m *GetRegionReadProgressRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8066,7 +10449,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8094,7 +10477,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= (uint64(b) & 0x7F) << shift + m.SafeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8113,7 +10496,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8132,7 +10515,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingFrontAppliedIndex |= (uint64(b) & 0x7F) << shift + m.PendingFrontAppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8151,7 +10534,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingFrontTs |= (uint64(b) & 0x7F) << shift + m.PendingFrontTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8170,7 +10553,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingBackAppliedIndex |= (uint64(b) & 0x7F) << shift + m.PendingBackAppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8189,7 +10572,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PendingBackTs |= (uint64(b) & 0x7F) << shift + m.PendingBackTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8208,7 +10591,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8228,7 +10611,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastUpdateSafeTsMs |= (uint64(b) & 0x7F) << shift + m.DurationToLastUpdateSafeTsMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8247,7 +10630,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastConsumeLeaderMs |= (uint64(b) & 0x7F) << shift + m.DurationToLastConsumeLeaderMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8266,7 +10649,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8286,7 +10669,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= (uint64(b) & 0x7F) << shift + m.ResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8305,7 +10688,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolverTrackedIndex |= (uint64(b) & 0x7F) << shift + m.ResolverTrackedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8324,7 +10707,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8344,7 +10727,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8364,7 +10747,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8374,6 +10757,9 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDebugpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDebugpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8393,7 +10779,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumLocks |= (uint64(b) & 0x7F) << shift + m.NumLocks |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8412,7 +10798,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumTransactions |= (uint64(b) & 0x7F) << shift + m.NumTransactions |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8431,7 +10817,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadStateTs |= (uint64(b) & 0x7F) << shift + m.ReadStateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8450,7 +10836,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadStateApplyIndex |= (uint64(b) & 0x7F) << shift + m.ReadStateApplyIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8469,7 +10855,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8481,12 +10867,13 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDebugpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8499,6 +10886,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { func skipDebugpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -8530,10 +10918,8 @@ func skipDebugpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -8550,203 +10936,34 @@ func skipDebugpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDebugpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDebugpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipDebugpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDebugpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDebugpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDebugpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDebugpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDebugpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDebugpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDebugpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("debugpb.proto", fileDescriptorDebugpb) } - -var fileDescriptorDebugpb = []byte{ - // 2294 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0x4b, 0x73, 0xdb, 0xc8, - 0xf1, 0x17, 0x28, 0x4a, 0xa4, 0x9a, 0x22, 0x09, 0x8d, 0x64, 0x89, 0x82, 0x57, 0xb2, 0x0c, 0xaf, - 0x6c, 0xad, 0xff, 0xf5, 0x57, 0x36, 0x5a, 0xa7, 0x9c, 0xd4, 0xe6, 0x51, 0x12, 0x45, 0x69, 0x19, - 0x49, 0x96, 0x16, 0xa4, 0x55, 0xe5, 0x13, 0x0a, 0x04, 0x86, 0x34, 0x96, 0x20, 0x86, 0xc1, 0x0c, - 0x59, 0x96, 0x0f, 0x39, 0xe6, 0xbc, 0xc7, 0x54, 0xe5, 0x0b, 0xec, 0x25, 0xd7, 0x7c, 0x86, 0x1c, - 0x73, 0xcc, 0x31, 0xe5, 0x5c, 0x93, 0x63, 0xee, 0xa9, 0x79, 0x00, 0x04, 0x5f, 0xb6, 0x36, 0x27, - 0x61, 0xba, 0x7b, 0xba, 0x7b, 0x7e, 0xdd, 0xf3, 0xf8, 0x51, 0x50, 0xf4, 0x70, 0x6b, 0xd0, 0xe9, - 0xb7, 0x0e, 0xfb, 0x11, 0x61, 0x04, 0xe5, 0xd4, 0xd0, 0x28, 0xe2, 0xc8, 0x69, 0xb3, 0x58, 0x6e, - 0x14, 0xbb, 0xc3, 0xa8, 0xef, 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xd4, 0x4d, - 0x3b, 0xe2, 0xe4, 0x7b, 0xca, 0x51, 0xea, 0x37, 0x80, 0x29, 0x47, 0x69, 0xb6, 0x6e, 0x2e, 0xa0, - 0x2a, 0xe4, 0x63, 0x62, 0x8c, 0x46, 0x99, 0x4f, 0xd0, 0x70, 0x63, 0x7b, 0x86, 0x26, 0x76, 0xf1, - 0xa5, 0xc6, 0x61, 0x51, 0x50, 0xa7, 0x60, 0x19, 0x67, 0xc8, 0x29, 0x58, 0x26, 0xb9, 0xe4, 0x02, - 0xba, 0x85, 0xf2, 0x04, 0x0b, 0x44, 0x8f, 0x12, 0xf3, 0xd9, 0x3c, 0xd3, 0xd8, 0x9b, 0x6f, 0x90, - 0xf8, 0x7d, 0x03, 0xfa, 0x24, 0x27, 0x44, 0x7b, 0x29, 0x3c, 0x66, 0xb2, 0x4b, 0xe3, 0xf1, 0x47, - 0x2c, 0x12, 0xd7, 0x0d, 0x28, 0x8d, 0xd3, 0x40, 0xb4, 0x3b, 0x97, 0x1f, 0x4a, 0xb7, 0x8f, 0x3e, - 0xc1, 0x1f, 0x65, 0x55, 0x47, 0x9c, 0x2e, 0x55, 0xd5, 0x29, 0x42, 0x98, 0xaa, 0xea, 0x34, 0x09, - 0x34, 0x17, 0x50, 0x17, 0x36, 0x15, 0x3d, 0x9a, 0x20, 0x4d, 0xe8, 0xe9, 0x44, 0x3b, 0xcc, 0xa1, - 0x63, 0xc6, 0xb3, 0x4f, 0xda, 0xa5, 0x51, 0x9e, 0x64, 0x3c, 0x29, 0x94, 0xe7, 0x90, 0xb2, 0x14, - 0xca, 0x73, 0xe9, 0xd2, 0x02, 0x6a, 0x09, 0xde, 0x31, 0xc9, 0x5f, 0xd0, 0x93, 0xf1, 0xed, 0x39, - 0x93, 0x18, 0x19, 0x9f, 0x7f, 0xdc, 0x28, 0x89, 0x71, 0x05, 0xab, 0x69, 0x12, 0x83, 0x3e, 0x4b, - 0xcf, 0x9b, 0xa4, 0x3c, 0xc6, 0xce, 0x1c, 0x6d, 0xba, 0x31, 0xc6, 0x19, 0x49, 0xaa, 0x31, 0x66, - 0x72, 0x98, 0x54, 0x63, 0xcc, 0xa6, 0x32, 0xe6, 0x02, 0xc2, 0x82, 0x68, 0x4d, 0xd1, 0x11, 0x34, - 0xb6, 0xc6, 0x79, 0x64, 0xc6, 0xd8, 0xff, 0x84, 0x55, 0x3a, 0xf7, 0x71, 0x4a, 0x92, 0xca, 0x7d, - 0x26, 0xa9, 0x49, 0xe5, 0x3e, 0x87, 0xcb, 0x2c, 0x20, 0x5b, 0xfc, 0x50, 0x31, 0x41, 0x20, 0x90, - 0xf9, 0x51, 0x76, 0x21, 0x9d, 0x3f, 0xb9, 0x07, 0x03, 0x91, 0x01, 0xa6, 0x5f, 0xd0, 0xa9, 0x00, - 0x73, 0xc9, 0x44, 0x2a, 0xc0, 0xfc, 0x27, 0xb8, 0xb9, 0x80, 0xde, 0x0a, 0xf6, 0x39, 0xfd, 0xe2, - 0x45, 0xfb, 0xd3, 0x2d, 0x36, 0xe3, 0x39, 0x6e, 0x3c, 0xfd, 0x94, 0x59, 0x1c, 0xe9, 0xe4, 0xe9, - 0xdf, 0x7f, 0xc8, 0x6b, 0x7f, 0xfd, 0xb0, 0xab, 0xfd, 0xed, 0xc3, 0xae, 0xf6, 0x8f, 0x0f, 0xbb, - 0xda, 0x1f, 0xff, 0xb9, 0xbb, 0x00, 0x3a, 0x89, 0x3a, 0x87, 0xcc, 0xef, 0x0e, 0x0f, 0xbb, 0x43, - 0xf1, 0xef, 0x80, 0xd6, 0xb2, 0xf8, 0xf3, 0xd5, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x39, - 0xce, 0x9d, 0x89, 0x18, 0x00, 0x00, -} diff --git a/pkg/diagnosticspb/diagnosticspb.pb.go b/pkg/diagnosticspb/diagnosticspb.pb.go index 4e8b0a5a1..7154e397d 100644 --- a/pkg/diagnosticspb/diagnosticspb.pb.go +++ b/pkg/diagnosticspb/diagnosticspb.pb.go @@ -1,36 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: diagnosticspb.proto -/* -Package diagnosticspb is a generated protocol buffer package. - -It is generated from these files: - - diagnosticspb.proto - -It has these top-level messages: - - SearchLogRequest - SearchLogResponse - LogMessage - ServerInfoRequest - ServerInfoPair - ServerInfoItem - ServerInfoResponse -*/ package diagnosticspb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -42,7 +26,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type LogLevel int32 @@ -65,6 +49,7 @@ var LogLevel_name = map[int32]string{ 5: "Critical", 6: "Error", } + var LogLevel_value = map[string]int32{ "UNKNOWN": 0, "Debug": 1, @@ -78,7 +63,10 @@ var LogLevel_value = map[string]int32{ func (x LogLevel) String() string { return proto.EnumName(LogLevel_name, int32(x)) } -func (LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{0} } + +func (LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{0} +} type ServerInfoType int32 @@ -95,6 +83,7 @@ var ServerInfoType_name = map[int32]string{ 2: "SystemInfo", 3: "LoadInfo", } + var ServerInfoType_value = map[string]int32{ "All": 0, "HardwareInfo": 1, @@ -105,7 +94,10 @@ var ServerInfoType_value = map[string]int32{ func (x ServerInfoType) String() string { return proto.EnumName(ServerInfoType_name, int32(x)) } -func (ServerInfoType) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{1} } + +func (ServerInfoType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{1} +} type SearchLogRequest_Target int32 @@ -118,6 +110,7 @@ var SearchLogRequest_Target_name = map[int32]string{ 0: "Normal", 1: "Slow", } + var SearchLogRequest_Target_value = map[string]int32{ "Normal": 0, "Slow": 1, @@ -126,25 +119,57 @@ var SearchLogRequest_Target_value = map[string]int32{ func (x SearchLogRequest_Target) String() string { return proto.EnumName(SearchLogRequest_Target_name, int32(x)) } + func (SearchLogRequest_Target) EnumDescriptor() ([]byte, []int) { - return fileDescriptorDiagnosticspb, []int{0, 0} + return fileDescriptor_b3c45b810c39272a, []int{0, 0} } type SearchLogRequest struct { StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - Levels []LogLevel `protobuf:"varint,3,rep,packed,name=levels,enum=diagnosticspb.LogLevel" json:"levels,omitempty"` + Levels []LogLevel `protobuf:"varint,3,rep,packed,name=levels,proto3,enum=diagnosticspb.LogLevel" json:"levels,omitempty"` // We use a string array to represent multiple CNF pattern sceniaor like: // SELECT * FROM t WHERE c LIKE '%s%' and c REGEXP '.*a.*' because // Golang and Rust don't support perl-like (?=re1)(?=re2) - Patterns []string `protobuf:"bytes,4,rep,name=patterns" json:"patterns,omitempty"` - Target SearchLogRequest_Target `protobuf:"varint,5,opt,name=target,proto3,enum=diagnosticspb.SearchLogRequest_Target" json:"target,omitempty"` + Patterns []string `protobuf:"bytes,4,rep,name=patterns,proto3" json:"patterns,omitempty"` + Target SearchLogRequest_Target `protobuf:"varint,5,opt,name=target,proto3,enum=diagnosticspb.SearchLogRequest_Target" json:"target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchLogRequest) Reset() { *m = SearchLogRequest{} } +func (m *SearchLogRequest) String() string { return proto.CompactTextString(m) } +func (*SearchLogRequest) ProtoMessage() {} +func (*SearchLogRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{0} +} +func (m *SearchLogRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SearchLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SearchLogRequest.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 *SearchLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchLogRequest.Merge(m, src) +} +func (m *SearchLogRequest) XXX_Size() int { + return m.Size() +} +func (m *SearchLogRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SearchLogRequest.DiscardUnknown(m) } -func (m *SearchLogRequest) Reset() { *m = SearchLogRequest{} } -func (m *SearchLogRequest) String() string { return proto.CompactTextString(m) } -func (*SearchLogRequest) ProtoMessage() {} -func (*SearchLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{0} } +var xxx_messageInfo_SearchLogRequest proto.InternalMessageInfo func (m *SearchLogRequest) GetStartTime() int64 { if m != nil { @@ -182,13 +207,44 @@ func (m *SearchLogRequest) GetTarget() SearchLogRequest_Target { } type SearchLogResponse struct { - Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages" json:"messages,omitempty"` + Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchLogResponse) Reset() { *m = SearchLogResponse{} } +func (m *SearchLogResponse) String() string { return proto.CompactTextString(m) } +func (*SearchLogResponse) ProtoMessage() {} +func (*SearchLogResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{1} +} +func (m *SearchLogResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SearchLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SearchLogResponse.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 *SearchLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchLogResponse.Merge(m, src) +} +func (m *SearchLogResponse) XXX_Size() int { + return m.Size() +} +func (m *SearchLogResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SearchLogResponse.DiscardUnknown(m) } -func (m *SearchLogResponse) Reset() { *m = SearchLogResponse{} } -func (m *SearchLogResponse) String() string { return proto.CompactTextString(m) } -func (*SearchLogResponse) ProtoMessage() {} -func (*SearchLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{1} } +var xxx_messageInfo_SearchLogResponse proto.InternalMessageInfo func (m *SearchLogResponse) GetMessages() []*LogMessage { if m != nil { @@ -198,15 +254,46 @@ func (m *SearchLogResponse) GetMessages() []*LogMessage { } type LogMessage struct { - Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` - Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=diagnosticspb.LogLevel" json:"level,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=diagnosticspb.LogLevel" json:"level,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LogMessage) Reset() { *m = LogMessage{} } +func (m *LogMessage) String() string { return proto.CompactTextString(m) } +func (*LogMessage) ProtoMessage() {} +func (*LogMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{2} +} +func (m *LogMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LogMessage.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 *LogMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogMessage.Merge(m, src) +} +func (m *LogMessage) XXX_Size() int { + return m.Size() +} +func (m *LogMessage) XXX_DiscardUnknown() { + xxx_messageInfo_LogMessage.DiscardUnknown(m) } -func (m *LogMessage) Reset() { *m = LogMessage{} } -func (m *LogMessage) String() string { return proto.CompactTextString(m) } -func (*LogMessage) ProtoMessage() {} -func (*LogMessage) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{2} } +var xxx_messageInfo_LogMessage proto.InternalMessageInfo func (m *LogMessage) GetTime() int64 { if m != nil { @@ -230,13 +317,44 @@ func (m *LogMessage) GetMessage() string { } type ServerInfoRequest struct { - Tp ServerInfoType `protobuf:"varint,1,opt,name=tp,proto3,enum=diagnosticspb.ServerInfoType" json:"tp,omitempty"` + Tp ServerInfoType `protobuf:"varint,1,opt,name=tp,proto3,enum=diagnosticspb.ServerInfoType" json:"tp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } +func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } +func (*ServerInfoRequest) ProtoMessage() {} +func (*ServerInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{3} +} +func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServerInfoRequest.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 *ServerInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoRequest.Merge(m, src) +} +func (m *ServerInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *ServerInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfoRequest.DiscardUnknown(m) } -func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } -func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } -func (*ServerInfoRequest) ProtoMessage() {} -func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{3} } +var xxx_messageInfo_ServerInfoRequest proto.InternalMessageInfo func (m *ServerInfoRequest) GetTp() ServerInfoType { if m != nil { @@ -246,14 +364,45 @@ func (m *ServerInfoRequest) GetTp() ServerInfoType { } type ServerInfoPair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfoPair) Reset() { *m = ServerInfoPair{} } +func (m *ServerInfoPair) String() string { return proto.CompactTextString(m) } +func (*ServerInfoPair) ProtoMessage() {} +func (*ServerInfoPair) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{4} +} +func (m *ServerInfoPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServerInfoPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServerInfoPair.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 *ServerInfoPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoPair.Merge(m, src) +} +func (m *ServerInfoPair) XXX_Size() int { + return m.Size() +} +func (m *ServerInfoPair) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfoPair.DiscardUnknown(m) } -func (m *ServerInfoPair) Reset() { *m = ServerInfoPair{} } -func (m *ServerInfoPair) String() string { return proto.CompactTextString(m) } -func (*ServerInfoPair) ProtoMessage() {} -func (*ServerInfoPair) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{4} } +var xxx_messageInfo_ServerInfoPair proto.InternalMessageInfo func (m *ServerInfoPair) GetKey() string { if m != nil { @@ -283,13 +432,44 @@ type ServerInfoItem struct { // ServerInfoPair { key = "writebytes", value = "1k"}, // ] // } - Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` + Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfoItem) Reset() { *m = ServerInfoItem{} } +func (m *ServerInfoItem) String() string { return proto.CompactTextString(m) } +func (*ServerInfoItem) ProtoMessage() {} +func (*ServerInfoItem) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{5} +} +func (m *ServerInfoItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServerInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServerInfoItem.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 *ServerInfoItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoItem.Merge(m, src) +} +func (m *ServerInfoItem) XXX_Size() int { + return m.Size() +} +func (m *ServerInfoItem) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfoItem.DiscardUnknown(m) } -func (m *ServerInfoItem) Reset() { *m = ServerInfoItem{} } -func (m *ServerInfoItem) String() string { return proto.CompactTextString(m) } -func (*ServerInfoItem) ProtoMessage() {} -func (*ServerInfoItem) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{5} } +var xxx_messageInfo_ServerInfoItem proto.InternalMessageInfo func (m *ServerInfoItem) GetTp() string { if m != nil { @@ -313,13 +493,44 @@ func (m *ServerInfoItem) GetPairs() []*ServerInfoPair { } type ServerInfoResponse struct { - Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` + Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } +func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } +func (*ServerInfoResponse) ProtoMessage() {} +func (*ServerInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b3c45b810c39272a, []int{6} +} +func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServerInfoResponse.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 *ServerInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoResponse.Merge(m, src) +} +func (m *ServerInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *ServerInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ServerInfoResponse.DiscardUnknown(m) } -func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } -func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse) ProtoMessage() {} -func (*ServerInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorDiagnosticspb, []int{6} } +var xxx_messageInfo_ServerInfoResponse proto.InternalMessageInfo func (m *ServerInfoResponse) GetItems() []*ServerInfoItem { if m != nil { @@ -329,6 +540,9 @@ func (m *ServerInfoResponse) GetItems() []*ServerInfoItem { } func init() { + proto.RegisterEnum("diagnosticspb.LogLevel", LogLevel_name, LogLevel_value) + proto.RegisterEnum("diagnosticspb.ServerInfoType", ServerInfoType_name, ServerInfoType_value) + proto.RegisterEnum("diagnosticspb.SearchLogRequest_Target", SearchLogRequest_Target_name, SearchLogRequest_Target_value) proto.RegisterType((*SearchLogRequest)(nil), "diagnosticspb.SearchLogRequest") proto.RegisterType((*SearchLogResponse)(nil), "diagnosticspb.SearchLogResponse") proto.RegisterType((*LogMessage)(nil), "diagnosticspb.LogMessage") @@ -336,9 +550,52 @@ func init() { proto.RegisterType((*ServerInfoPair)(nil), "diagnosticspb.ServerInfoPair") proto.RegisterType((*ServerInfoItem)(nil), "diagnosticspb.ServerInfoItem") proto.RegisterType((*ServerInfoResponse)(nil), "diagnosticspb.ServerInfoResponse") - proto.RegisterEnum("diagnosticspb.LogLevel", LogLevel_name, LogLevel_value) - proto.RegisterEnum("diagnosticspb.ServerInfoType", ServerInfoType_name, ServerInfoType_value) - proto.RegisterEnum("diagnosticspb.SearchLogRequest_Target", SearchLogRequest_Target_name, SearchLogRequest_Target_value) +} + +func init() { proto.RegisterFile("diagnosticspb.proto", fileDescriptor_b3c45b810c39272a) } + +var fileDescriptor_b3c45b810c39272a = []byte{ + // 640 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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 0x1f, 0xfb, 0xdf, + 0x0e, 0x6e, 0x07, 0x14, 0xe6, 0x85, 0x95, 0xc7, 0x08, 0x8f, 0xa1, 0x29, 0x8d, 0xde, 0x43, 0x96, + 0x1d, 0x73, 0x1c, 0xdc, 0x6a, 0x60, 0x49, 0xfb, 0xe8, 0x0e, 0x44, 0xc9, 0xbb, 0xbb, 0xf1, 0xf3, + 0xab, 0x83, 0xbe, 0x9f, 0x77, 0xd0, 0x8f, 0xf3, 0x0e, 0xfa, 0x75, 0xde, 0x41, 0x5f, 0x7e, 0x77, + 0x2a, 0xe0, 0x71, 0x11, 0xf7, 0x14, 0x3b, 0x99, 0xf7, 0x4e, 0xe6, 0xe6, 0x87, 0x73, 0x54, 0x37, + 0x9f, 0x9d, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xba, 0x18, 0xc8, 0xc4, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -349,8 +606,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Diagnostics service - +// DiagnosticsClient is the client API for Diagnostics service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DiagnosticsClient interface { // Searchs log in the target node SearchLog(ctx context.Context, in *SearchLogRequest, opts ...grpc.CallOption) (Diagnostics_SearchLogClient, error) @@ -367,7 +625,7 @@ func NewDiagnosticsClient(cc *grpc.ClientConn) DiagnosticsClient { } func (c *diagnosticsClient) SearchLog(ctx context.Context, in *SearchLogRequest, opts ...grpc.CallOption) (Diagnostics_SearchLogClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Diagnostics_serviceDesc.Streams[0], c.cc, "/diagnosticspb.Diagnostics/search_log", opts...) + stream, err := c.cc.NewStream(ctx, &_Diagnostics_serviceDesc.Streams[0], "/diagnosticspb.Diagnostics/search_log", opts...) if err != nil { return nil, err } @@ -400,15 +658,14 @@ func (x *diagnosticsSearchLogClient) Recv() (*SearchLogResponse, error) { func (c *diagnosticsClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { out := new(ServerInfoResponse) - err := grpc.Invoke(ctx, "/diagnosticspb.Diagnostics/server_info", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/diagnosticspb.Diagnostics/server_info", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Diagnostics service - +// DiagnosticsServer is the server API for Diagnostics service. type DiagnosticsServer interface { // Searchs log in the target node SearchLog(*SearchLogRequest, Diagnostics_SearchLogServer) error @@ -416,6 +673,17 @@ type DiagnosticsServer interface { ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) } +// UnimplementedDiagnosticsServer can be embedded to have forward compatible implementations. +type UnimplementedDiagnosticsServer struct { +} + +func (*UnimplementedDiagnosticsServer) SearchLog(req *SearchLogRequest, srv Diagnostics_SearchLogServer) error { + return status.Errorf(codes.Unimplemented, "method SearchLog not implemented") +} +func (*UnimplementedDiagnosticsServer) ServerInfo(ctx context.Context, req *ServerInfoRequest) (*ServerInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") +} + func RegisterDiagnosticsServer(s *grpc.Server, srv DiagnosticsServer) { s.RegisterService(&_Diagnostics_serviceDesc, srv) } @@ -481,7 +749,7 @@ var _Diagnostics_serviceDesc = grpc.ServiceDesc{ func (m *SearchLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -489,19 +757,32 @@ func (m *SearchLogRequest) Marshal() (dAtA []byte, err error) { } func (m *SearchLogRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SearchLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTime != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.StartTime)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.EndTime != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.EndTime)) + if m.Target != 0 { + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Target)) + i-- + dAtA[i] = 0x28 + } + if len(m.Patterns) > 0 { + for iNdEx := len(m.Patterns) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Patterns[iNdEx]) + copy(dAtA[i:], m.Patterns[iNdEx]) + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Patterns[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } if len(m.Levels) > 0 { dAtA2 := make([]byte, len(m.Levels)*10) @@ -515,38 +796,29 @@ func (m *SearchLogRequest) MarshalTo(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - dAtA[i] = 0x1a - i++ + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) i = encodeVarintDiagnosticspb(dAtA, i, uint64(j1)) - i += copy(dAtA[i:], dAtA2[:j1]) + i-- + dAtA[i] = 0x1a } - if len(m.Patterns) > 0 { - for _, s := range m.Patterns { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if m.EndTime != 0 { + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.EndTime)) + i-- + dAtA[i] = 0x10 } - if m.Target != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Target)) + if m.StartTime != 0 { + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SearchLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -554,29 +826,40 @@ func (m *SearchLogResponse) Marshal() (dAtA []byte, err error) { } func (m *SearchLogResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SearchLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Messages) > 0 { - for _, msg := range m.Messages { - dAtA[i] = 0xa - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *LogMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -584,33 +867,43 @@ func (m *LogMessage) Marshal() (dAtA []byte, err error) { } func (m *LogMessage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LogMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Time != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Time)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x1a } if m.Level != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Level)) + i-- + dAtA[i] = 0x10 } - if len(m.Message) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + if m.Time != 0 { + i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Time)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -618,22 +911,31 @@ func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServerInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Tp != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDiagnosticspb(dAtA, i, uint64(m.Tp)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ServerInfoPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -641,29 +943,40 @@ func (m *ServerInfoPair) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoPair) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServerInfoPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ServerInfoItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -671,41 +984,54 @@ func (m *ServerInfoItem) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServerInfoItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Tp) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) - i += copy(dAtA[i:], m.Tp) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x1a - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Tp) > 0 { + i -= len(m.Tp) + copy(dAtA[i:], m.Tp) + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -713,35 +1039,51 @@ func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *ServerInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServerInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0xa - i++ - i = encodeVarintDiagnosticspb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintDiagnosticspb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func encodeVarintDiagnosticspb(dAtA []byte, offset int, v uint64) int { + offset -= sovDiagnosticspb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *SearchLogRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTime != 0 { @@ -766,10 +1108,16 @@ func (m *SearchLogRequest) Size() (n int) { if m.Target != 0 { n += 1 + sovDiagnosticspb(uint64(m.Target)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SearchLogResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Messages) > 0 { @@ -778,10 +1126,16 @@ func (m *SearchLogResponse) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LogMessage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Time != 0 { @@ -794,19 +1148,31 @@ func (m *LogMessage) Size() (n int) { if l > 0 { n += 1 + l + sovDiagnosticspb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ServerInfoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Tp != 0 { n += 1 + sovDiagnosticspb(uint64(m.Tp)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ServerInfoPair) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -817,10 +1183,16 @@ func (m *ServerInfoPair) Size() (n int) { if l > 0 { n += 1 + l + sovDiagnosticspb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ServerInfoItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Tp) @@ -837,10 +1209,16 @@ func (m *ServerInfoItem) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ServerInfoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Items) > 0 { @@ -849,18 +1227,14 @@ func (m *ServerInfoResponse) Size() (n int) { n += 1 + l + sovDiagnosticspb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovDiagnosticspb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDiagnosticspb(x uint64) (n int) { return sovDiagnosticspb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -880,7 +1254,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -908,7 +1282,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTime |= (int64(b) & 0x7F) << shift + m.StartTime |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -927,7 +1301,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTime |= (int64(b) & 0x7F) << shift + m.EndTime |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -944,7 +1318,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (LogLevel(b) & 0x7F) << shift + v |= LogLevel(b&0x7F) << shift if b < 0x80 { break } @@ -961,7 +1335,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -970,9 +1344,16 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + if elementCount != 0 && len(m.Levels) == 0 { + m.Levels = make([]LogLevel, 0, elementCount) + } for iNdEx < postIndex { var v LogLevel for shift := uint(0); ; shift += 7 { @@ -984,7 +1365,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (LogLevel(b) & 0x7F) << shift + v |= LogLevel(b&0x7F) << shift if b < 0x80 { break } @@ -1008,7 +1389,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1018,6 +1399,9 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1037,7 +1421,7 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Target |= (SearchLogRequest_Target(b) & 0x7F) << shift + m.Target |= SearchLogRequest_Target(b&0x7F) << shift if b < 0x80 { break } @@ -1048,12 +1432,13 @@ func (m *SearchLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1078,7 +1463,7 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1106,7 +1491,7 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1115,6 +1500,9 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1129,12 +1517,13 @@ func (m *SearchLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1159,7 +1548,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1187,7 +1576,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Time |= (int64(b) & 0x7F) << shift + m.Time |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1206,7 +1595,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Level |= (LogLevel(b) & 0x7F) << shift + m.Level |= LogLevel(b&0x7F) << shift if b < 0x80 { break } @@ -1225,7 +1614,7 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1235,6 +1624,9 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1246,12 +1638,13 @@ func (m *LogMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1276,7 +1669,7 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1304,7 +1697,7 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= (ServerInfoType(b) & 0x7F) << shift + m.Tp |= ServerInfoType(b&0x7F) << shift if b < 0x80 { break } @@ -1315,12 +1708,13 @@ func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1345,7 +1739,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1373,7 +1767,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1383,6 +1777,9 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1402,7 +1799,7 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1412,6 +1809,9 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1423,12 +1823,13 @@ func (m *ServerInfoPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1453,7 +1854,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1481,7 +1882,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1491,6 +1892,9 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1510,7 +1914,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1520,6 +1924,9 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1539,7 +1946,7 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1548,6 +1955,9 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1562,12 +1972,13 @@ func (m *ServerInfoItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1592,7 +2003,7 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1620,7 +2031,7 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1629,6 +2040,9 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDiagnosticspb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDiagnosticspb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1643,12 +2057,13 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDiagnosticspb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1661,6 +2076,7 @@ func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error { func skipDiagnosticspb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1692,10 +2108,8 @@ func skipDiagnosticspb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1712,99 +2126,34 @@ func skipDiagnosticspb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDiagnosticspb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDiagnosticspb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipDiagnosticspb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDiagnosticspb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDiagnosticspb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDiagnosticspb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDiagnosticspb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDiagnosticspb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDiagnosticspb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDiagnosticspb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("diagnosticspb.proto", fileDescriptorDiagnosticspb) } - -var fileDescriptorDiagnosticspb = []byte{ - // 640 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, - 0x10, 0xce, 0xc6, 0x71, 0x62, 0x4f, 0xfa, 0xe7, 0x37, 0x4b, 0x25, 0xdc, 0x48, 0x0d, 0xc6, 0x87, - 0x2a, 0xaa, 0xd4, 0x14, 0xa5, 0x42, 0xe2, 0x84, 0x44, 0x29, 0x12, 0x81, 0x12, 0x90, 0x13, 0x54, - 0x89, 0x4b, 0xb5, 0x4d, 0xb6, 0x66, 0x55, 0xdb, 0x6b, 0x76, 0x37, 0xa9, 0xfa, 0x26, 0x3c, 0x02, - 0x8f, 0xc0, 0x23, 0x70, 0xe4, 0xc8, 0x11, 0x95, 0xa7, 0xe0, 0x86, 0x76, 0x1d, 0xb7, 0x69, 0xab, - 0x96, 0x93, 0x67, 0x67, 0xbe, 0xfd, 0xf6, 0x9b, 0x6f, 0x46, 0x86,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0x04, 0x00, 0x00, -} diff --git a/pkg/disaggregated/disaggregated.pb.go b/pkg/disaggregated/disaggregated.pb.go index 749245d63..322243880 100644 --- a/pkg/disaggregated/disaggregated.pb.go +++ b/pkg/disaggregated/disaggregated.pb.go @@ -1,49 +1,16 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: disaggregated.proto -/* -Package disaggregated is a generated protocol buffer package. - -It is generated from these files: - - disaggregated.proto - -It has these top-level messages: - - S3LockResult - Success - NotOwner - Conflict - TryAddLockRequest - TryAddLockResponse - TryMarkDeleteRequest - TryMarkDeleteResponse - GetDisaggConfigRequest - DisaggS3Config - GetDisaggConfigResponse - DisaggTaskMeta - DisaggReadError - EstablishDisaggTaskError - ErrorRegion - ErrorLocked - ErrorOther - EstablishDisaggTaskRequest - EstablishDisaggTaskResponse - CancelDisaggTaskRequest - CancelDisaggTaskResponse - FetchDisaggPagesRequest - PagesPacket -*/ package disaggregated import ( "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" ) @@ -56,20 +23,51 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type S3LockResult struct { // Types that are valid to be assigned to Error: // *S3LockResult_Success // *S3LockResult_NotOwner // *S3LockResult_Conflict - Error isS3LockResult_Error `protobuf_oneof:"error"` + Error isS3LockResult_Error `protobuf_oneof:"error"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *S3LockResult) Reset() { *m = S3LockResult{} } +func (m *S3LockResult) String() string { return proto.CompactTextString(m) } +func (*S3LockResult) ProtoMessage() {} +func (*S3LockResult) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{0} +} +func (m *S3LockResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *S3LockResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_S3LockResult.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 *S3LockResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3LockResult.Merge(m, src) +} +func (m *S3LockResult) XXX_Size() int { + return m.Size() +} +func (m *S3LockResult) XXX_DiscardUnknown() { + xxx_messageInfo_S3LockResult.DiscardUnknown(m) } -func (m *S3LockResult) Reset() { *m = S3LockResult{} } -func (m *S3LockResult) String() string { return proto.CompactTextString(m) } -func (*S3LockResult) ProtoMessage() {} -func (*S3LockResult) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{0} } +var xxx_messageInfo_S3LockResult proto.InternalMessageInfo type isS3LockResult_Error interface { isS3LockResult_Error() @@ -78,13 +76,13 @@ type isS3LockResult_Error interface { } type S3LockResult_Success struct { - Success *Success `protobuf:"bytes,1,opt,name=success,oneof"` + Success *Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"` } type S3LockResult_NotOwner struct { - NotOwner *NotOwner `protobuf:"bytes,2,opt,name=not_owner,json=notOwner,oneof"` + NotOwner *NotOwner `protobuf:"bytes,2,opt,name=not_owner,json=notOwner,proto3,oneof" json:"not_owner,omitempty"` } type S3LockResult_Conflict struct { - Conflict *Conflict `protobuf:"bytes,3,opt,name=conflict,oneof"` + Conflict *Conflict `protobuf:"bytes,3,opt,name=conflict,proto3,oneof" json:"conflict,omitempty"` } func (*S3LockResult_Success) isS3LockResult_Error() {} @@ -119,127 +117,136 @@ func (m *S3LockResult) GetConflict() *Conflict { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*S3LockResult) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _S3LockResult_OneofMarshaler, _S3LockResult_OneofUnmarshaler, _S3LockResult_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*S3LockResult) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*S3LockResult_Success)(nil), (*S3LockResult_NotOwner)(nil), (*S3LockResult_Conflict)(nil), } } -func _S3LockResult_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*S3LockResult) - // error - switch x := m.Error.(type) { - case *S3LockResult_Success: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Success); err != nil { - return err - } - case *S3LockResult_NotOwner: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.NotOwner); err != nil { - return err - } - case *S3LockResult_Conflict: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Conflict); err != nil { - return err +type Success struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Success) Reset() { *m = Success{} } +func (m *Success) String() string { return proto.CompactTextString(m) } +func (*Success) ProtoMessage() {} +func (*Success) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{1} +} +func (m *Success) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Success.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("S3LockResult.Error has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _S3LockResult_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*S3LockResult) - switch tag { - case 1: // error.success - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Success) - err := b.DecodeMessage(msg) - m.Error = &S3LockResult_Success{msg} - return true, err - case 2: // error.not_owner - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(NotOwner) - err := b.DecodeMessage(msg) - m.Error = &S3LockResult_NotOwner{msg} - return true, err - case 3: // error.conflict - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Conflict) - err := b.DecodeMessage(msg) - m.Error = &S3LockResult_Conflict{msg} - return true, err - default: - return false, nil - } -} - -func _S3LockResult_OneofSizer(msg proto.Message) (n int) { - m := msg.(*S3LockResult) - // error - switch x := m.Error.(type) { - case *S3LockResult_Success: - s := proto.Size(x.Success) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *S3LockResult_NotOwner: - s := proto.Size(x.NotOwner) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *S3LockResult_Conflict: - s := proto.Size(x.Conflict) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *Success) XXX_Merge(src proto.Message) { + xxx_messageInfo_Success.Merge(m, src) } - -type Success struct { +func (m *Success) XXX_Size() int { + return m.Size() +} +func (m *Success) XXX_DiscardUnknown() { + xxx_messageInfo_Success.DiscardUnknown(m) } -func (m *Success) Reset() { *m = Success{} } -func (m *Success) String() string { return proto.CompactTextString(m) } -func (*Success) ProtoMessage() {} -func (*Success) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{1} } +var xxx_messageInfo_Success proto.InternalMessageInfo // Error caused by S3GC owner changed // client should retry type NotOwner struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotOwner) Reset() { *m = NotOwner{} } +func (m *NotOwner) String() string { return proto.CompactTextString(m) } +func (*NotOwner) ProtoMessage() {} +func (*NotOwner) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{2} +} +func (m *NotOwner) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NotOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NotOwner.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 *NotOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotOwner.Merge(m, src) +} +func (m *NotOwner) XXX_Size() int { + return m.Size() +} +func (m *NotOwner) XXX_DiscardUnknown() { + xxx_messageInfo_NotOwner.DiscardUnknown(m) } -func (m *NotOwner) Reset() { *m = NotOwner{} } -func (m *NotOwner) String() string { return proto.CompactTextString(m) } -func (*NotOwner) ProtoMessage() {} -func (*NotOwner) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{2} } +var xxx_messageInfo_NotOwner proto.InternalMessageInfo // Error caused by concurrency conflict, // request cancel type Conflict struct { - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Conflict) Reset() { *m = Conflict{} } +func (m *Conflict) String() string { return proto.CompactTextString(m) } +func (*Conflict) ProtoMessage() {} +func (*Conflict) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{3} +} +func (m *Conflict) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Conflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Conflict.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 *Conflict) XXX_Merge(src proto.Message) { + xxx_messageInfo_Conflict.Merge(m, src) +} +func (m *Conflict) XXX_Size() int { + return m.Size() +} +func (m *Conflict) XXX_DiscardUnknown() { + xxx_messageInfo_Conflict.DiscardUnknown(m) } -func (m *Conflict) Reset() { *m = Conflict{} } -func (m *Conflict) String() string { return proto.CompactTextString(m) } -func (*Conflict) ProtoMessage() {} -func (*Conflict) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{3} } +var xxx_messageInfo_Conflict proto.InternalMessageInfo func (m *Conflict) GetReason() string { if m != nil { @@ -254,13 +261,44 @@ type TryAddLockRequest struct { // The lock store id LockStoreId uint64 `protobuf:"varint,3,opt,name=lock_store_id,json=lockStoreId,proto3" json:"lock_store_id,omitempty"` // The upload sequence number of lock store - LockSeq uint64 `protobuf:"varint,4,opt,name=lock_seq,json=lockSeq,proto3" json:"lock_seq,omitempty"` + LockSeq uint64 `protobuf:"varint,4,opt,name=lock_seq,json=lockSeq,proto3" json:"lock_seq,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TryAddLockRequest) Reset() { *m = TryAddLockRequest{} } +func (m *TryAddLockRequest) String() string { return proto.CompactTextString(m) } +func (*TryAddLockRequest) ProtoMessage() {} +func (*TryAddLockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{4} +} +func (m *TryAddLockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TryAddLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TryAddLockRequest.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 *TryAddLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryAddLockRequest.Merge(m, src) +} +func (m *TryAddLockRequest) XXX_Size() int { + return m.Size() +} +func (m *TryAddLockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TryAddLockRequest.DiscardUnknown(m) } -func (m *TryAddLockRequest) Reset() { *m = TryAddLockRequest{} } -func (m *TryAddLockRequest) String() string { return proto.CompactTextString(m) } -func (*TryAddLockRequest) ProtoMessage() {} -func (*TryAddLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{4} } +var xxx_messageInfo_TryAddLockRequest proto.InternalMessageInfo func (m *TryAddLockRequest) GetDataFileKey() []byte { if m != nil { @@ -284,13 +322,44 @@ func (m *TryAddLockRequest) GetLockSeq() uint64 { } type TryAddLockResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` + Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TryAddLockResponse) Reset() { *m = TryAddLockResponse{} } +func (m *TryAddLockResponse) String() string { return proto.CompactTextString(m) } +func (*TryAddLockResponse) ProtoMessage() {} +func (*TryAddLockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{5} +} +func (m *TryAddLockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TryAddLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TryAddLockResponse.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 *TryAddLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryAddLockResponse.Merge(m, src) +} +func (m *TryAddLockResponse) XXX_Size() int { + return m.Size() +} +func (m *TryAddLockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TryAddLockResponse.DiscardUnknown(m) } -func (m *TryAddLockResponse) Reset() { *m = TryAddLockResponse{} } -func (m *TryAddLockResponse) String() string { return proto.CompactTextString(m) } -func (*TryAddLockResponse) ProtoMessage() {} -func (*TryAddLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{5} } +var xxx_messageInfo_TryAddLockResponse proto.InternalMessageInfo func (m *TryAddLockResponse) GetResult() *S3LockResult { if m != nil { @@ -301,15 +370,44 @@ func (m *TryAddLockResponse) GetResult() *S3LockResult { type TryMarkDeleteRequest struct { // The data file key to be marked as deleted - DataFileKey []byte `protobuf:"bytes,1,opt,name=data_file_key,json=dataFileKey,proto3" json:"data_file_key,omitempty"` + DataFileKey []byte `protobuf:"bytes,1,opt,name=data_file_key,json=dataFileKey,proto3" json:"data_file_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TryMarkDeleteRequest) Reset() { *m = TryMarkDeleteRequest{} } func (m *TryMarkDeleteRequest) String() string { return proto.CompactTextString(m) } func (*TryMarkDeleteRequest) ProtoMessage() {} func (*TryMarkDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{6} + return fileDescriptor_1026192e39a9f8dc, []int{6} +} +func (m *TryMarkDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TryMarkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TryMarkDeleteRequest.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 *TryMarkDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryMarkDeleteRequest.Merge(m, src) +} +func (m *TryMarkDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *TryMarkDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TryMarkDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TryMarkDeleteRequest proto.InternalMessageInfo func (m *TryMarkDeleteRequest) GetDataFileKey() []byte { if m != nil { @@ -319,16 +417,45 @@ func (m *TryMarkDeleteRequest) GetDataFileKey() []byte { } type TryMarkDeleteResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` + Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TryMarkDeleteResponse) Reset() { *m = TryMarkDeleteResponse{} } func (m *TryMarkDeleteResponse) String() string { return proto.CompactTextString(m) } func (*TryMarkDeleteResponse) ProtoMessage() {} func (*TryMarkDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{7} + return fileDescriptor_1026192e39a9f8dc, []int{7} +} +func (m *TryMarkDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TryMarkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TryMarkDeleteResponse.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 *TryMarkDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryMarkDeleteResponse.Merge(m, src) +} +func (m *TryMarkDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *TryMarkDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TryMarkDeleteResponse.DiscardUnknown(m) } +var xxx_messageInfo_TryMarkDeleteResponse proto.InternalMessageInfo + func (m *TryMarkDeleteResponse) GetResult() *S3LockResult { if m != nil { return m.Result @@ -337,25 +464,85 @@ func (m *TryMarkDeleteResponse) GetResult() *S3LockResult { } type GetDisaggConfigRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetDisaggConfigRequest) Reset() { *m = GetDisaggConfigRequest{} } func (m *GetDisaggConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetDisaggConfigRequest) ProtoMessage() {} func (*GetDisaggConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{8} + return fileDescriptor_1026192e39a9f8dc, []int{8} +} +func (m *GetDisaggConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetDisaggConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetDisaggConfigRequest.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 *GetDisaggConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDisaggConfigRequest.Merge(m, src) +} +func (m *GetDisaggConfigRequest) XXX_Size() int { + return m.Size() } +func (m *GetDisaggConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDisaggConfigRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDisaggConfigRequest proto.InternalMessageInfo type DisaggS3Config struct { - Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` - Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` - Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` + Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` + Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DisaggS3Config) Reset() { *m = DisaggS3Config{} } +func (m *DisaggS3Config) String() string { return proto.CompactTextString(m) } +func (*DisaggS3Config) ProtoMessage() {} +func (*DisaggS3Config) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{9} +} +func (m *DisaggS3Config) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisaggS3Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisaggS3Config.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 *DisaggS3Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggS3Config.Merge(m, src) +} +func (m *DisaggS3Config) XXX_Size() int { + return m.Size() +} +func (m *DisaggS3Config) XXX_DiscardUnknown() { + xxx_messageInfo_DisaggS3Config.DiscardUnknown(m) } -func (m *DisaggS3Config) Reset() { *m = DisaggS3Config{} } -func (m *DisaggS3Config) String() string { return proto.CompactTextString(m) } -func (*DisaggS3Config) ProtoMessage() {} -func (*DisaggS3Config) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{9} } +var xxx_messageInfo_DisaggS3Config proto.InternalMessageInfo func (m *DisaggS3Config) GetBucket() string { if m != nil { @@ -379,16 +566,45 @@ func (m *DisaggS3Config) GetEndpoint() string { } type GetDisaggConfigResponse struct { - S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config" json:"s3_config,omitempty"` + S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetDisaggConfigResponse) Reset() { *m = GetDisaggConfigResponse{} } func (m *GetDisaggConfigResponse) String() string { return proto.CompactTextString(m) } func (*GetDisaggConfigResponse) ProtoMessage() {} func (*GetDisaggConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{10} + return fileDescriptor_1026192e39a9f8dc, []int{10} +} +func (m *GetDisaggConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetDisaggConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetDisaggConfigResponse.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 *GetDisaggConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDisaggConfigResponse.Merge(m, src) +} +func (m *GetDisaggConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *GetDisaggConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDisaggConfigResponse.DiscardUnknown(m) } +var xxx_messageInfo_GetDisaggConfigResponse proto.InternalMessageInfo + func (m *GetDisaggConfigResponse) GetS3Config() *DisaggS3Config { if m != nil { return m.S3Config @@ -399,20 +615,51 @@ func (m *GetDisaggConfigResponse) GetS3Config() *DisaggS3Config { type DisaggTaskMeta struct { StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // gather_id + query_ts + server_id + local_query_id to represent a global unique query. - GatherId int64 `protobuf:"varint,9,opt,name=gather_id,json=gatherId,proto3" json:"gather_id,omitempty"` - QueryTs uint64 `protobuf:"varint,2,opt,name=query_ts,json=queryTs,proto3" json:"query_ts,omitempty"` - ServerId uint64 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` - LocalQueryId uint64 `protobuf:"varint,4,opt,name=local_query_id,json=localQueryId,proto3" json:"local_query_id,omitempty"` - TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - ExecutorId string `protobuf:"bytes,6,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` - KeyspaceId uint32 `protobuf:"varint,7,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,8,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + GatherId int64 `protobuf:"varint,9,opt,name=gather_id,json=gatherId,proto3" json:"gather_id,omitempty"` + QueryTs uint64 `protobuf:"varint,2,opt,name=query_ts,json=queryTs,proto3" json:"query_ts,omitempty"` + ServerId uint64 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + LocalQueryId uint64 `protobuf:"varint,4,opt,name=local_query_id,json=localQueryId,proto3" json:"local_query_id,omitempty"` + TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + ExecutorId string `protobuf:"bytes,6,opt,name=executor_id,json=executorId,proto3" json:"executor_id,omitempty"` + KeyspaceId uint32 `protobuf:"varint,7,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,8,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DisaggTaskMeta) Reset() { *m = DisaggTaskMeta{} } +func (m *DisaggTaskMeta) String() string { return proto.CompactTextString(m) } +func (*DisaggTaskMeta) ProtoMessage() {} +func (*DisaggTaskMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{11} +} +func (m *DisaggTaskMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisaggTaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisaggTaskMeta.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 *DisaggTaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggTaskMeta.Merge(m, src) +} +func (m *DisaggTaskMeta) XXX_Size() int { + return m.Size() +} +func (m *DisaggTaskMeta) XXX_DiscardUnknown() { + xxx_messageInfo_DisaggTaskMeta.DiscardUnknown(m) } -func (m *DisaggTaskMeta) Reset() { *m = DisaggTaskMeta{} } -func (m *DisaggTaskMeta) String() string { return proto.CompactTextString(m) } -func (*DisaggTaskMeta) ProtoMessage() {} -func (*DisaggTaskMeta) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{11} } +var xxx_messageInfo_DisaggTaskMeta proto.InternalMessageInfo func (m *DisaggTaskMeta) GetStartTs() uint64 { if m != nil { @@ -478,14 +725,45 @@ func (m *DisaggTaskMeta) GetApiVersion() kvrpcpb.APIVersion { } type DisaggReadError struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DisaggReadError) Reset() { *m = DisaggReadError{} } +func (m *DisaggReadError) String() string { return proto.CompactTextString(m) } +func (*DisaggReadError) ProtoMessage() {} +func (*DisaggReadError) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{12} +} +func (m *DisaggReadError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisaggReadError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisaggReadError.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 *DisaggReadError) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggReadError.Merge(m, src) +} +func (m *DisaggReadError) XXX_Size() int { + return m.Size() +} +func (m *DisaggReadError) XXX_DiscardUnknown() { + xxx_messageInfo_DisaggReadError.DiscardUnknown(m) } -func (m *DisaggReadError) Reset() { *m = DisaggReadError{} } -func (m *DisaggReadError) String() string { return proto.CompactTextString(m) } -func (*DisaggReadError) ProtoMessage() {} -func (*DisaggReadError) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{12} } +var xxx_messageInfo_DisaggReadError proto.InternalMessageInfo func (m *DisaggReadError) GetCode() int32 { if m != nil { @@ -506,15 +784,44 @@ type EstablishDisaggTaskError struct { // *EstablishDisaggTaskError_ErrorRegion // *EstablishDisaggTaskError_ErrorLocked // *EstablishDisaggTaskError_ErrorOther - Errors isEstablishDisaggTaskError_Errors `protobuf_oneof:"errors"` + Errors isEstablishDisaggTaskError_Errors `protobuf_oneof:"errors"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EstablishDisaggTaskError) Reset() { *m = EstablishDisaggTaskError{} } func (m *EstablishDisaggTaskError) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskError) ProtoMessage() {} func (*EstablishDisaggTaskError) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{13} + return fileDescriptor_1026192e39a9f8dc, []int{13} +} +func (m *EstablishDisaggTaskError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EstablishDisaggTaskError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EstablishDisaggTaskError.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 *EstablishDisaggTaskError) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskError.Merge(m, src) +} +func (m *EstablishDisaggTaskError) XXX_Size() int { + return m.Size() } +func (m *EstablishDisaggTaskError) XXX_DiscardUnknown() { + xxx_messageInfo_EstablishDisaggTaskError.DiscardUnknown(m) +} + +var xxx_messageInfo_EstablishDisaggTaskError proto.InternalMessageInfo type isEstablishDisaggTaskError_Errors interface { isEstablishDisaggTaskError_Errors() @@ -523,13 +830,13 @@ type isEstablishDisaggTaskError_Errors interface { } type EstablishDisaggTaskError_ErrorRegion struct { - ErrorRegion *ErrorRegion `protobuf:"bytes,1,opt,name=error_region,json=errorRegion,oneof"` + ErrorRegion *ErrorRegion `protobuf:"bytes,1,opt,name=error_region,json=errorRegion,proto3,oneof" json:"error_region,omitempty"` } type EstablishDisaggTaskError_ErrorLocked struct { - ErrorLocked *ErrorLocked `protobuf:"bytes,2,opt,name=error_locked,json=errorLocked,oneof"` + ErrorLocked *ErrorLocked `protobuf:"bytes,2,opt,name=error_locked,json=errorLocked,proto3,oneof" json:"error_locked,omitempty"` } type EstablishDisaggTaskError_ErrorOther struct { - ErrorOther *ErrorOther `protobuf:"bytes,99,opt,name=error_other,json=errorOther,oneof"` + ErrorOther *ErrorOther `protobuf:"bytes,99,opt,name=error_other,json=errorOther,proto3,oneof" json:"error_other,omitempty"` } func (*EstablishDisaggTaskError_ErrorRegion) isEstablishDisaggTaskError_Errors() {} @@ -564,109 +871,56 @@ func (m *EstablishDisaggTaskError) GetErrorOther() *ErrorOther { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*EstablishDisaggTaskError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _EstablishDisaggTaskError_OneofMarshaler, _EstablishDisaggTaskError_OneofUnmarshaler, _EstablishDisaggTaskError_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*EstablishDisaggTaskError) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*EstablishDisaggTaskError_ErrorRegion)(nil), (*EstablishDisaggTaskError_ErrorLocked)(nil), (*EstablishDisaggTaskError_ErrorOther)(nil), } } -func _EstablishDisaggTaskError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*EstablishDisaggTaskError) - // errors - switch x := m.Errors.(type) { - case *EstablishDisaggTaskError_ErrorRegion: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrorRegion); err != nil { - return err - } - case *EstablishDisaggTaskError_ErrorLocked: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrorLocked); err != nil { - return err - } - case *EstablishDisaggTaskError_ErrorOther: - _ = b.EncodeVarint(99<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrorOther); err != nil { - return err +type ErrorRegion struct { + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + // The read node needs to update its region cache about these regions. + RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds,proto3" json:"region_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorRegion) Reset() { *m = ErrorRegion{} } +func (m *ErrorRegion) String() string { return proto.CompactTextString(m) } +func (*ErrorRegion) ProtoMessage() {} +func (*ErrorRegion) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{14} +} +func (m *ErrorRegion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ErrorRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ErrorRegion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("EstablishDisaggTaskError.Errors has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _EstablishDisaggTaskError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*EstablishDisaggTaskError) - switch tag { - case 1: // errors.error_region - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ErrorRegion) - err := b.DecodeMessage(msg) - m.Errors = &EstablishDisaggTaskError_ErrorRegion{msg} - return true, err - case 2: // errors.error_locked - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ErrorLocked) - err := b.DecodeMessage(msg) - m.Errors = &EstablishDisaggTaskError_ErrorLocked{msg} - return true, err - case 99: // errors.error_other - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ErrorOther) - err := b.DecodeMessage(msg) - m.Errors = &EstablishDisaggTaskError_ErrorOther{msg} - return true, err - default: - return false, nil - } -} - -func _EstablishDisaggTaskError_OneofSizer(msg proto.Message) (n int) { - m := msg.(*EstablishDisaggTaskError) - // errors - switch x := m.Errors.(type) { - case *EstablishDisaggTaskError_ErrorRegion: - s := proto.Size(x.ErrorRegion) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *EstablishDisaggTaskError_ErrorLocked: - s := proto.Size(x.ErrorLocked) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *EstablishDisaggTaskError_ErrorOther: - s := proto.Size(x.ErrorOther) - n += proto.SizeVarint(99<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *ErrorRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorRegion.Merge(m, src) } - -type ErrorRegion struct { - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - // The read node needs to update its region cache about these regions. - RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds" json:"region_ids,omitempty"` +func (m *ErrorRegion) XXX_Size() int { + return m.Size() +} +func (m *ErrorRegion) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorRegion.DiscardUnknown(m) } -func (m *ErrorRegion) Reset() { *m = ErrorRegion{} } -func (m *ErrorRegion) String() string { return proto.CompactTextString(m) } -func (*ErrorRegion) ProtoMessage() {} -func (*ErrorRegion) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{14} } +var xxx_messageInfo_ErrorRegion proto.InternalMessageInfo func (m *ErrorRegion) GetMsg() string { if m != nil { @@ -685,13 +939,44 @@ func (m *ErrorRegion) GetRegionIds() []uint64 { type ErrorLocked struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // The read node needs to resolve these locks. - Locked []*kvrpcpb.LockInfo `protobuf:"bytes,2,rep,name=locked" json:"locked,omitempty"` + Locked []*kvrpcpb.LockInfo `protobuf:"bytes,2,rep,name=locked,proto3" json:"locked,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorLocked) Reset() { *m = ErrorLocked{} } +func (m *ErrorLocked) String() string { return proto.CompactTextString(m) } +func (*ErrorLocked) ProtoMessage() {} +func (*ErrorLocked) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{15} +} +func (m *ErrorLocked) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ErrorLocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ErrorLocked.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 *ErrorLocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorLocked.Merge(m, src) +} +func (m *ErrorLocked) XXX_Size() int { + return m.Size() +} +func (m *ErrorLocked) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorLocked.DiscardUnknown(m) } -func (m *ErrorLocked) Reset() { *m = ErrorLocked{} } -func (m *ErrorLocked) String() string { return proto.CompactTextString(m) } -func (*ErrorLocked) ProtoMessage() {} -func (*ErrorLocked) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{15} } +var xxx_messageInfo_ErrorLocked proto.InternalMessageInfo func (m *ErrorLocked) GetMsg() string { if m != nil { @@ -708,14 +993,45 @@ func (m *ErrorLocked) GetLocked() []*kvrpcpb.LockInfo { } type ErrorOther struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorOther) Reset() { *m = ErrorOther{} } +func (m *ErrorOther) String() string { return proto.CompactTextString(m) } +func (*ErrorOther) ProtoMessage() {} +func (*ErrorOther) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{16} +} +func (m *ErrorOther) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ErrorOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ErrorOther.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 *ErrorOther) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorOther.Merge(m, src) +} +func (m *ErrorOther) XXX_Size() int { + return m.Size() +} +func (m *ErrorOther) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorOther.DiscardUnknown(m) } -func (m *ErrorOther) Reset() { *m = ErrorOther{} } -func (m *ErrorOther) String() string { return proto.CompactTextString(m) } -func (*ErrorOther) ProtoMessage() {} -func (*ErrorOther) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{16} } +var xxx_messageInfo_ErrorOther proto.InternalMessageInfo func (m *ErrorOther) GetCode() int32 { if m != nil { @@ -732,27 +1048,56 @@ func (m *ErrorOther) GetMsg() string { } type EstablishDisaggTaskRequest struct { - Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // The write node needs to ensure that subsequent // FetchDisaggPagesRequest can be processed within timeout_s. // unit: seconds TimeoutS int64 `protobuf:"varint,3,opt,name=timeout_s,json=timeoutS,proto3" json:"timeout_s,omitempty"` // The key ranges, Region meta that read node need to execute TableScan - Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` + Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` SchemaVer int64 `protobuf:"varint,5,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for PartitionTableScan - TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` + TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` // The encoded TableScan/PartitionTableScan + Selection. - EncodedPlan []byte `protobuf:"bytes,7,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` + EncodedPlan []byte `protobuf:"bytes,7,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EstablishDisaggTaskRequest) Reset() { *m = EstablishDisaggTaskRequest{} } func (m *EstablishDisaggTaskRequest) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskRequest) ProtoMessage() {} func (*EstablishDisaggTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{17} + return fileDescriptor_1026192e39a9f8dc, []int{17} +} +func (m *EstablishDisaggTaskRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EstablishDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EstablishDisaggTaskRequest.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 *EstablishDisaggTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskRequest.Merge(m, src) +} +func (m *EstablishDisaggTaskRequest) XXX_Size() int { + return m.Size() } +func (m *EstablishDisaggTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EstablishDisaggTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_EstablishDisaggTaskRequest proto.InternalMessageInfo func (m *EstablishDisaggTaskRequest) GetMeta() *DisaggTaskMeta { if m != nil { @@ -804,24 +1149,53 @@ func (m *EstablishDisaggTaskRequest) GetEncodedPlan() []byte { } type EstablishDisaggTaskResponse struct { - Error *EstablishDisaggTaskError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *EstablishDisaggTaskError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Write node maintains a snapshot with a lease time. // Read node should read the delta pages // (ColumnFileInMemory and ColumnFileTiny) // along with this store_id and snapshot_id. StoreId uint64 `protobuf:"varint,3,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - SnapshotId *DisaggTaskMeta `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId" json:"snapshot_id,omitempty"` + SnapshotId *DisaggTaskMeta `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` // Serialized disaggregated tasks (per physical table) - Tables [][]byte `protobuf:"bytes,5,rep,name=tables" json:"tables,omitempty"` + Tables [][]byte `protobuf:"bytes,5,rep,name=tables,proto3" json:"tables,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EstablishDisaggTaskResponse) Reset() { *m = EstablishDisaggTaskResponse{} } func (m *EstablishDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskResponse) ProtoMessage() {} func (*EstablishDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{18} + return fileDescriptor_1026192e39a9f8dc, []int{18} +} +func (m *EstablishDisaggTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EstablishDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EstablishDisaggTaskResponse.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 *EstablishDisaggTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskResponse.Merge(m, src) +} +func (m *EstablishDisaggTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *EstablishDisaggTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EstablishDisaggTaskResponse.DiscardUnknown(m) } +var xxx_messageInfo_EstablishDisaggTaskResponse proto.InternalMessageInfo + func (m *EstablishDisaggTaskResponse) GetError() *EstablishDisaggTaskError { if m != nil { return m.Error @@ -851,15 +1225,44 @@ func (m *EstablishDisaggTaskResponse) GetTables() [][]byte { } type CancelDisaggTaskRequest struct { - Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CancelDisaggTaskRequest) Reset() { *m = CancelDisaggTaskRequest{} } func (m *CancelDisaggTaskRequest) String() string { return proto.CompactTextString(m) } func (*CancelDisaggTaskRequest) ProtoMessage() {} func (*CancelDisaggTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{19} + return fileDescriptor_1026192e39a9f8dc, []int{19} +} +func (m *CancelDisaggTaskRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *CancelDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelDisaggTaskRequest.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 *CancelDisaggTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelDisaggTaskRequest.Merge(m, src) +} +func (m *CancelDisaggTaskRequest) XXX_Size() int { + return m.Size() +} +func (m *CancelDisaggTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelDisaggTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelDisaggTaskRequest proto.InternalMessageInfo func (m *CancelDisaggTaskRequest) GetMeta() *DisaggTaskMeta { if m != nil { @@ -869,31 +1272,89 @@ func (m *CancelDisaggTaskRequest) GetMeta() *DisaggTaskMeta { } type CancelDisaggTaskResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CancelDisaggTaskResponse) Reset() { *m = CancelDisaggTaskResponse{} } func (m *CancelDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*CancelDisaggTaskResponse) ProtoMessage() {} func (*CancelDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{20} + return fileDescriptor_1026192e39a9f8dc, []int{20} +} +func (m *CancelDisaggTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelDisaggTaskResponse.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 *CancelDisaggTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelDisaggTaskResponse.Merge(m, src) +} +func (m *CancelDisaggTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *CancelDisaggTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelDisaggTaskResponse.DiscardUnknown(m) } +var xxx_messageInfo_CancelDisaggTaskResponse proto.InternalMessageInfo + type FetchDisaggPagesRequest struct { // The snapshot id to fetch pages - SnapshotId *DisaggTaskMeta `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId" json:"snapshot_id,omitempty"` + SnapshotId *DisaggTaskMeta `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` TableId int64 `protobuf:"varint,2,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` SegmentId uint64 `protobuf:"varint,3,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` // It must be a subset of the delta pages ids returned // in EstablishDisaggTaskResponse.segments - PageIds []uint64 `protobuf:"varint,4,rep,packed,name=page_ids,json=pageIds" json:"page_ids,omitempty"` + PageIds []uint64 `protobuf:"varint,4,rep,packed,name=page_ids,json=pageIds,proto3" json:"page_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FetchDisaggPagesRequest) Reset() { *m = FetchDisaggPagesRequest{} } func (m *FetchDisaggPagesRequest) String() string { return proto.CompactTextString(m) } func (*FetchDisaggPagesRequest) ProtoMessage() {} func (*FetchDisaggPagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptorDisaggregated, []int{21} + return fileDescriptor_1026192e39a9f8dc, []int{21} +} +func (m *FetchDisaggPagesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FetchDisaggPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FetchDisaggPagesRequest.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 *FetchDisaggPagesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FetchDisaggPagesRequest.Merge(m, src) +} +func (m *FetchDisaggPagesRequest) XXX_Size() int { + return m.Size() } +func (m *FetchDisaggPagesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FetchDisaggPagesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FetchDisaggPagesRequest proto.InternalMessageInfo func (m *FetchDisaggPagesRequest) GetSnapshotId() *DisaggTaskMeta { if m != nil { @@ -924,21 +1385,52 @@ func (m *FetchDisaggPagesRequest) GetPageIds() []uint64 { } type PagesPacket struct { - Error *DisaggReadError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *DisaggReadError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Serialized column file data // * ColumnFilePersisted alone with its schema, page data, field offsets - Pages [][]byte `protobuf:"bytes,2,rep,name=pages" json:"pages,omitempty"` + Pages [][]byte `protobuf:"bytes,2,rep,name=pages,proto3" json:"pages,omitempty"` // * ColumnFileInMemory alone with its serialized block - Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"` + Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"` // Return tipb.SelectResponse.execution_summaries in the // last packet - Summaries [][]byte `protobuf:"bytes,4,rep,name=summaries" json:"summaries,omitempty"` + Summaries [][]byte `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PagesPacket) Reset() { *m = PagesPacket{} } +func (m *PagesPacket) String() string { return proto.CompactTextString(m) } +func (*PagesPacket) ProtoMessage() {} +func (*PagesPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_1026192e39a9f8dc, []int{22} +} +func (m *PagesPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PagesPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PagesPacket.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 *PagesPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_PagesPacket.Merge(m, src) +} +func (m *PagesPacket) XXX_Size() int { + return m.Size() +} +func (m *PagesPacket) XXX_DiscardUnknown() { + xxx_messageInfo_PagesPacket.DiscardUnknown(m) } -func (m *PagesPacket) Reset() { *m = PagesPacket{} } -func (m *PagesPacket) String() string { return proto.CompactTextString(m) } -func (*PagesPacket) ProtoMessage() {} -func (*PagesPacket) Descriptor() ([]byte, []int) { return fileDescriptorDisaggregated, []int{22} } +var xxx_messageInfo_PagesPacket proto.InternalMessageInfo func (m *PagesPacket) GetError() *DisaggReadError { if m != nil { @@ -993,10 +1485,89 @@ func init() { proto.RegisterType((*FetchDisaggPagesRequest)(nil), "disaggregated.FetchDisaggPagesRequest") proto.RegisterType((*PagesPacket)(nil), "disaggregated.PagesPacket") } + +func init() { proto.RegisterFile("disaggregated.proto", fileDescriptor_1026192e39a9f8dc) } + +var fileDescriptor_1026192e39a9f8dc = []byte{ + // 1150 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xdc, 0x44, + 0x14, 0x8e, 0xb3, 0x9b, 0xb5, 0x7d, 0xbc, 0x29, 0xed, 0xb4, 0x34, 0x4e, 0x4a, 0x43, 0xb0, 0x90, + 0x58, 0x6e, 0x22, 0x35, 0x29, 0x20, 0x55, 0x50, 0xd4, 0x5f, 0xb2, 0x90, 0xd2, 0x30, 0x09, 0x15, + 0x77, 0xd6, 0xc4, 0x3e, 0xdd, 0x58, 0xf6, 0x7a, 0x9c, 0x99, 0xd9, 0x40, 0x9e, 0x82, 0x5b, 0x9e, + 0x82, 0x5b, 0x24, 0x78, 0x01, 0xee, 0xe0, 0x11, 0x50, 0xe1, 0x41, 0xd0, 0xfc, 0x78, 0x93, 0x6c, + 0x97, 0x9f, 0x0a, 0xae, 0xd6, 0xdf, 0x99, 0xf3, 0x9d, 0x39, 0xff, 0xb3, 0x70, 0x35, 0x2f, 0x24, + 0x1b, 0x8d, 0x04, 0x8e, 0x98, 0xc2, 0x7c, 0xb3, 0x11, 0x5c, 0x71, 0xb2, 0x7c, 0x41, 0xb8, 0x76, + 0x25, 0xe3, 0x8d, 0xe0, 0x19, 0x4a, 0xc9, 0x85, 0xd5, 0x58, 0x5b, 0x2e, 0x4f, 0x44, 0x93, 0x35, + 0x87, 0x16, 0x26, 0x3f, 0x7a, 0xd0, 0xdf, 0xdf, 0xde, 0xe5, 0x59, 0x49, 0x51, 0x4e, 0x2a, 0x45, + 0xb6, 0xc0, 0x97, 0x93, 0x4c, 0x53, 0x62, 0x6f, 0xc3, 0x1b, 0x44, 0x5b, 0xd7, 0x37, 0x2f, 0x5e, + 0xb4, 0x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 0x02, 0x5d, 0x8e, 0xec, 0x68, 0x52, 0x97, 0x7a, 0x2e, 0x4c, 0x39, 0x2c, 0x22, 0x6f, 0x40, + 0x28, 0x27, 0xe3, 0x31, 0x13, 0x05, 0x5a, 0x7f, 0xfa, 0xf4, 0x4c, 0x70, 0x3f, 0xf9, 0xf9, 0xc5, + 0xba, 0xf7, 0xeb, 0x8b, 0x75, 0xef, 0xb7, 0x17, 0xeb, 0xde, 0x77, 0xbf, 0xaf, 0x2f, 0xc0, 0x65, + 0x2e, 0x46, 0x9b, 0xaa, 0x28, 0x4f, 0x36, 0xcb, 0x13, 0xf3, 0x57, 0xf0, 0xb0, 0x67, 0x7e, 0xb6, + 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x93, 0x0b, 0x62, 0x47, 0x59, 0x0a, 0x00, 0x00, +} + func (m *S3LockResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1004,66 +1575,98 @@ func (m *S3LockResult) Marshal() (dAtA []byte, err error) { } func (m *S3LockResult) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3LockResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - nn1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Error.Size() + i -= size + if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn1 } - return i, nil + return len(dAtA) - i, nil } func (m *S3LockResult_Success) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3LockResult_Success) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Success != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Success.Size())) - n2, err := m.Success.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Success.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *S3LockResult_NotOwner) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3LockResult_NotOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.NotOwner != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.NotOwner.Size())) - n3, err := m.NotOwner.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.NotOwner.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *S3LockResult_Conflict) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3LockResult_Conflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Conflict != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Conflict.Size())) - n4, err := m.Conflict.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Conflict.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *Success) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1071,17 +1674,26 @@ func (m *Success) Marshal() (dAtA []byte, err error) { } func (m *Success) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Success) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *NotOwner) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1089,17 +1701,26 @@ func (m *NotOwner) Marshal() (dAtA []byte, err error) { } func (m *NotOwner) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NotOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Conflict) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1107,23 +1728,33 @@ func (m *Conflict) Marshal() (dAtA []byte, err error) { } func (m *Conflict) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Conflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Reason) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TryAddLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1131,33 +1762,43 @@ func (m *TryAddLockRequest) Marshal() (dAtA []byte, err error) { } func (m *TryAddLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TryAddLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.DataFileKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) - i += copy(dAtA[i:], m.DataFileKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LockSeq != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockSeq)) + i-- + dAtA[i] = 0x20 } if m.LockStoreId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockStoreId)) + i-- + dAtA[i] = 0x18 } - if m.LockSeq != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LockSeq)) + if len(m.DataFileKey) > 0 { + i -= len(m.DataFileKey) + copy(dAtA[i:], m.DataFileKey) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TryAddLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1165,27 +1806,38 @@ func (m *TryAddLockResponse) Marshal() (dAtA []byte, err error) { } func (m *TryAddLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TryAddLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Result != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Result.Size())) - n5, err := m.Result.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TryMarkDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1193,23 +1845,33 @@ func (m *TryMarkDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *TryMarkDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TryMarkDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.DataFileKey) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.DataFileKey) + copy(dAtA[i:], m.DataFileKey) i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.DataFileKey))) - i += copy(dAtA[i:], m.DataFileKey) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TryMarkDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1217,27 +1879,38 @@ func (m *TryMarkDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *TryMarkDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TryMarkDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Result != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Result.Size())) - n6, err := m.Result.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetDisaggConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1245,17 +1918,26 @@ func (m *GetDisaggConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *GetDisaggConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetDisaggConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *DisaggS3Config) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1263,35 +1945,47 @@ func (m *DisaggS3Config) Marshal() (dAtA []byte, err error) { } func (m *DisaggS3Config) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisaggS3Config) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Bucket) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Bucket))) - i += copy(dAtA[i:], m.Bucket) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0x1a } if len(m.Root) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Root) + copy(dAtA[i:], m.Root) i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Root))) - i += copy(dAtA[i:], m.Root) + i-- + dAtA[i] = 0x12 } - if len(m.Endpoint) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) + if len(m.Bucket) > 0 { + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Bucket))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetDisaggConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1299,27 +1993,38 @@ func (m *GetDisaggConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *GetDisaggConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetDisaggConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.S3Config != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.S3Config.Size())) - n7, err := m.S3Config.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.S3Config.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DisaggTaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1327,63 +2032,73 @@ func (m *DisaggTaskMeta) Marshal() (dAtA []byte, err error) { } func (m *DisaggTaskMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisaggTaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.QueryTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.QueryTs)) + if m.GatherId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.GatherId)) + i-- + dAtA[i] = 0x48 } - if m.ServerId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ServerId)) + if m.ApiVersion != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x40 } - if m.LocalQueryId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LocalQueryId)) + if m.KeyspaceId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x38 + } + if len(m.ExecutorId) > 0 { + i -= len(m.ExecutorId) + copy(dAtA[i:], m.ExecutorId) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ExecutorId))) + i-- + dAtA[i] = 0x32 } if m.TaskId != 0 { - dAtA[i] = 0x28 - i++ i = encodeVarintDisaggregated(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x28 } - if len(m.ExecutorId) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ExecutorId))) - i += copy(dAtA[i:], m.ExecutorId) + if m.LocalQueryId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.LocalQueryId)) + i-- + dAtA[i] = 0x20 } - if m.KeyspaceId != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.KeyspaceId)) + if m.ServerId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ServerId)) + i-- + dAtA[i] = 0x18 } - if m.ApiVersion != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ApiVersion)) + if m.QueryTs != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.QueryTs)) + i-- + dAtA[i] = 0x10 } - if m.GatherId != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.GatherId)) + if m.StartTs != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DisaggReadError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1391,28 +2106,38 @@ func (m *DisaggReadError) Marshal() (dAtA []byte, err error) { } func (m *DisaggReadError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisaggReadError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Code != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1420,68 +2145,100 @@ func (m *EstablishDisaggTaskError) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Errors != nil { - nn8, err := m.Errors.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Errors.Size() + i -= size + if _, err := m.Errors.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn8 } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskError_ErrorRegion) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskError_ErrorRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrorRegion != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorRegion.Size())) - n9, err := m.ErrorRegion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrorRegion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskError_ErrorLocked) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskError_ErrorLocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrorLocked != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorLocked.Size())) - n10, err := m.ErrorLocked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrorLocked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskError_ErrorOther) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskError_ErrorOther) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrorOther != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x6 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ErrorOther.Size())) - n11, err := m.ErrorOther.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrorOther.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x9a } - return i, nil + return len(dAtA) - i, nil } func (m *ErrorRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1489,40 +2246,51 @@ func (m *ErrorRegion) Marshal() (dAtA []byte, err error) { } func (m *ErrorRegion) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ErrorRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.RegionIds) > 0 { - dAtA13 := make([]byte, len(m.RegionIds)*10) - var j12 int + dAtA11 := make([]byte, len(m.RegionIds)*10) + var j10 int for _, num := range m.RegionIds { for num >= 1<<7 { - dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) + dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j12++ + j10++ } - dAtA13[j12] = uint8(num) - j12++ + dAtA11[j10] = uint8(num) + j10++ } + i -= j10 + copy(dAtA[i:], dAtA11[:j10]) + i = encodeVarintDisaggregated(dAtA, i, uint64(j10)) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(j12)) - i += copy(dAtA[i:], dAtA13[:j12]) } - return i, nil + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ErrorLocked) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1530,35 +2298,47 @@ func (m *ErrorLocked) Marshal() (dAtA []byte, err error) { } func (m *ErrorLocked) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ErrorLocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Locked) > 0 { - for _, msg := range m.Locked { - dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Locked) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locked[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ErrorOther) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1566,28 +2346,38 @@ func (m *ErrorOther) Marshal() (dAtA []byte, err error) { } func (m *ErrorOther) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ErrorOther) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Code != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1595,73 +2385,90 @@ func (m *EstablishDisaggTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Meta.Size())) - n14, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Address) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) - } - if m.TimeoutS != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TimeoutS)) + if len(m.EncodedPlan) > 0 { + i -= len(m.EncodedPlan) + copy(dAtA[i:], m.EncodedPlan) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.EncodedPlan))) + i-- + dAtA[i] = 0x3a } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x22 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.TableRegions) > 0 { + for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } if m.SchemaVer != 0 { - dAtA[i] = 0x28 - i++ i = encodeVarintDisaggregated(dAtA, i, uint64(m.SchemaVer)) + i-- + dAtA[i] = 0x28 } - if len(m.TableRegions) > 0 { - for _, msg := range m.TableRegions { - dAtA[i] = 0x32 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + 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 = encodeVarintDisaggregated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.TimeoutS != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TimeoutS)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if len(m.EncodedPlan) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.EncodedPlan))) - i += copy(dAtA[i:], m.EncodedPlan) - } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishDisaggTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1669,78 +2476,103 @@ func (m *EstablishDisaggTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *EstablishDisaggTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishDisaggTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Error.Size())) - n15, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StoreId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.StoreId)) + if len(m.Tables) > 0 { + for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tables[iNdEx]) + copy(dAtA[i:], m.Tables[iNdEx]) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Tables[iNdEx]))) + i-- + dAtA[i] = 0x2a + } } if m.SnapshotId != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.SnapshotId.Size())) - n16, err := m.SnapshotId.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.SnapshotId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x22 } - if len(m.Tables) > 0 { - for _, b := range m.Tables { - dAtA[i] = 0x2a - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if m.StoreId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x18 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CancelDisaggTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *CancelDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *CancelDisaggTaskRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelDisaggTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Meta.Size())) - n17, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CancelDisaggTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1748,17 +2580,26 @@ func (m *CancelDisaggTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *CancelDisaggTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelDisaggTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *FetchDisaggPagesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1766,54 +2607,66 @@ func (m *FetchDisaggPagesRequest) Marshal() (dAtA []byte, err error) { } func (m *FetchDisaggPagesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FetchDisaggPagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SnapshotId != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.SnapshotId.Size())) - n18, err := m.SnapshotId.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if m.TableId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TableId)) - } - if m.SegmentId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.SegmentId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.PageIds) > 0 { - dAtA20 := make([]byte, len(m.PageIds)*10) - var j19 int + dAtA17 := make([]byte, len(m.PageIds)*10) + var j16 int for _, num := range m.PageIds { for num >= 1<<7 { - dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) + dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j19++ + j16++ } - dAtA20[j19] = uint8(num) - j19++ + dAtA17[j16] = uint8(num) + j16++ } + i -= j16 + copy(dAtA[i:], dAtA17[:j16]) + i = encodeVarintDisaggregated(dAtA, i, uint64(j16)) + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(j19)) - i += copy(dAtA[i:], dAtA20[:j19]) } - return i, nil + if m.SegmentId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.SegmentId)) + i-- + dAtA[i] = 0x18 + } + if m.TableId != 0 { + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TableId)) + i-- + dAtA[i] = 0x10 + } + if m.SnapshotId != nil { + { + size, err := m.SnapshotId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PagesPacket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1821,66 +2674,91 @@ func (m *PagesPacket) Marshal() (dAtA []byte, err error) { } func (m *PagesPacket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PagesPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(m.Error.Size())) - n21, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Pages) > 0 { - for _, b := range m.Pages { - dAtA[i] = 0x12 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if len(m.Summaries) > 0 { + for iNdEx := len(m.Summaries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Summaries[iNdEx]) + copy(dAtA[i:], m.Summaries[iNdEx]) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Summaries[iNdEx]))) + i-- + dAtA[i] = 0x22 } } if len(m.Chunks) > 0 { - for _, b := range m.Chunks { + for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Chunks[iNdEx]) + copy(dAtA[i:], m.Chunks[iNdEx]) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Chunks[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if len(m.Summaries) > 0 { - for _, b := range m.Summaries { - dAtA[i] = 0x22 - i++ - i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if len(m.Pages) > 0 { + for iNdEx := len(m.Pages) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Pages[iNdEx]) + copy(dAtA[i:], m.Pages[iNdEx]) + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.Pages[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisaggregated(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintDisaggregated(dAtA []byte, offset int, v uint64) int { + offset -= sovDisaggregated(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *S3LockResult) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { n += m.Error.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *S3LockResult_Success) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Success != nil { @@ -1890,6 +2768,9 @@ func (m *S3LockResult_Success) Size() (n int) { return n } func (m *S3LockResult_NotOwner) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.NotOwner != nil { @@ -1899,6 +2780,9 @@ func (m *S3LockResult_NotOwner) Size() (n int) { return n } func (m *S3LockResult_Conflict) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Conflict != nil { @@ -1908,28 +2792,49 @@ func (m *S3LockResult_Conflict) Size() (n int) { return n } func (m *Success) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *NotOwner) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Conflict) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Reason) if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TryAddLockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.DataFileKey) @@ -1942,46 +2847,76 @@ func (m *TryAddLockRequest) Size() (n int) { if m.LockSeq != 0 { n += 1 + sovDisaggregated(uint64(m.LockSeq)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TryAddLockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Result != nil { l = m.Result.Size() n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TryMarkDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.DataFileKey) if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TryMarkDeleteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Result != nil { l = m.Result.Size() n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetDisaggConfigRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DisaggS3Config) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Bucket) @@ -1996,20 +2931,32 @@ func (m *DisaggS3Config) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetDisaggConfigResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.S3Config != nil { l = m.S3Config.Size() n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DisaggTaskMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -2040,10 +2987,16 @@ func (m *DisaggTaskMeta) Size() (n int) { if m.GatherId != 0 { n += 1 + sovDisaggregated(uint64(m.GatherId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DisaggReadError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Code != 0 { @@ -2053,19 +3006,31 @@ func (m *DisaggReadError) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EstablishDisaggTaskError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Errors != nil { n += m.Errors.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EstablishDisaggTaskError_ErrorRegion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrorRegion != nil { @@ -2075,6 +3040,9 @@ func (m *EstablishDisaggTaskError_ErrorRegion) Size() (n int) { return n } func (m *EstablishDisaggTaskError_ErrorLocked) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrorLocked != nil { @@ -2084,6 +3052,9 @@ func (m *EstablishDisaggTaskError_ErrorLocked) Size() (n int) { return n } func (m *EstablishDisaggTaskError_ErrorOther) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrorOther != nil { @@ -2093,6 +3064,9 @@ func (m *EstablishDisaggTaskError_ErrorOther) Size() (n int) { return n } func (m *ErrorRegion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Msg) @@ -2106,10 +3080,16 @@ func (m *ErrorRegion) Size() (n int) { } n += 1 + sovDisaggregated(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ErrorLocked) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Msg) @@ -2122,10 +3102,16 @@ func (m *ErrorLocked) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ErrorOther) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Code != 0 { @@ -2135,10 +3121,16 @@ func (m *ErrorOther) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EstablishDisaggTaskRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -2171,10 +3163,16 @@ func (m *EstablishDisaggTaskRequest) Size() (n int) { if l > 0 { n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EstablishDisaggTaskResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2194,26 +3192,44 @@ func (m *EstablishDisaggTaskResponse) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CancelDisaggTaskRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { l = m.Meta.Size() n += 1 + l + sovDisaggregated(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CancelDisaggTaskResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FetchDisaggPagesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SnapshotId != nil { @@ -2233,10 +3249,16 @@ func (m *FetchDisaggPagesRequest) Size() (n int) { } n += 1 + sovDisaggregated(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PagesPacket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2261,18 +3283,14 @@ func (m *PagesPacket) Size() (n int) { n += 1 + l + sovDisaggregated(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovDisaggregated(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDisaggregated(x uint64) (n int) { return sovDisaggregated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2292,7 +3310,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2320,7 +3338,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2329,6 +3347,9 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2352,7 +3373,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2361,6 +3382,9 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2384,7 +3408,7 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2393,6 +3417,9 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2408,12 +3435,13 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2438,7 +3466,7 @@ func (m *Success) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2458,12 +3486,13 @@ func (m *Success) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2488,7 +3517,7 @@ func (m *NotOwner) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2508,12 +3537,13 @@ func (m *NotOwner) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2538,7 +3568,7 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2566,7 +3596,7 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2576,6 +3606,9 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2587,12 +3620,13 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2617,7 +3651,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2645,7 +3679,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2654,6 +3688,9 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2676,7 +3713,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockStoreId |= (uint64(b) & 0x7F) << shift + m.LockStoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2695,7 +3732,7 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockSeq |= (uint64(b) & 0x7F) << shift + m.LockSeq |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2706,12 +3743,13 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2736,7 +3774,7 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2764,7 +3802,7 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2773,6 +3811,9 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2789,12 +3830,13 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2819,7 +3861,7 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2847,7 +3889,7 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2856,6 +3898,9 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2870,12 +3915,13 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2900,7 +3946,7 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2928,7 +3974,7 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2937,6 +3983,9 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2953,12 +4002,13 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2983,7 +4033,7 @@ func (m *GetDisaggConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3003,12 +4053,13 @@ func (m *GetDisaggConfigRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3033,7 +4084,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3061,7 +4112,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3071,6 +4122,9 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3090,7 +4144,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3100,6 +4154,9 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3119,7 +4176,7 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3129,6 +4186,9 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3140,12 +4200,13 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3170,7 +4231,7 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3198,7 +4259,7 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3207,6 +4268,9 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3223,12 +4287,13 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3253,7 +4318,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3281,7 +4346,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3300,7 +4365,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.QueryTs |= (uint64(b) & 0x7F) << shift + m.QueryTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3319,7 +4384,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ServerId |= (uint64(b) & 0x7F) << shift + m.ServerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3338,7 +4403,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LocalQueryId |= (uint64(b) & 0x7F) << shift + m.LocalQueryId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3357,7 +4422,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= (int64(b) & 0x7F) << shift + m.TaskId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3376,7 +4441,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3386,6 +4451,9 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3405,7 +4473,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -3424,7 +4492,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -3443,7 +4511,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GatherId |= (int64(b) & 0x7F) << shift + m.GatherId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3454,12 +4522,13 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3484,7 +4553,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3512,7 +4581,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= (int32(b) & 0x7F) << shift + m.Code |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -3531,7 +4600,7 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3541,6 +4610,9 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3552,12 +4624,13 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3582,7 +4655,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3610,7 +4683,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3619,6 +4692,9 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3642,7 +4718,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3651,6 +4727,9 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3674,7 +4753,7 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3683,6 +4762,9 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3698,12 +4780,13 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3728,7 +4811,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3756,7 +4839,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3766,6 +4849,9 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3783,7 +4869,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3800,7 +4886,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3809,9 +4895,23 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } 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.RegionIds) == 0 { + m.RegionIds = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3823,7 +4923,7 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3839,12 +4939,13 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3869,7 +4970,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3897,7 +4998,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3907,6 +5008,9 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3926,7 +5030,7 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3935,6 +5039,9 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3949,12 +5056,13 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3979,7 +5087,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4007,7 +5115,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= (int32(b) & 0x7F) << shift + m.Code |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -4026,7 +5134,7 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4036,6 +5144,9 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4047,12 +5158,13 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4077,7 +5189,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4105,7 +5217,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4114,6 +5226,9 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4138,7 +5253,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4148,6 +5263,9 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4167,7 +5285,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimeoutS |= (int64(b) & 0x7F) << shift + m.TimeoutS |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4186,7 +5304,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4195,6 +5313,9 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4217,7 +5338,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= (int64(b) & 0x7F) << shift + m.SchemaVer |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4236,7 +5357,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4245,6 +5366,9 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4267,7 +5391,7 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4276,6 +5400,9 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4290,12 +5417,13 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4320,7 +5448,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4348,7 +5476,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4357,6 +5485,9 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4381,7 +5512,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4400,7 +5531,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4409,6 +5540,9 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4433,7 +5567,7 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4442,6 +5576,9 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4454,12 +5591,13 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4484,7 +5622,7 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4512,7 +5650,7 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4521,6 +5659,9 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4537,12 +5678,13 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4567,7 +5709,7 @@ func (m *CancelDisaggTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4587,12 +5729,13 @@ func (m *CancelDisaggTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4617,7 +5760,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4645,7 +5788,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4654,6 +5797,9 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4678,7 +5824,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= (int64(b) & 0x7F) << shift + m.TableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4697,7 +5843,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SegmentId |= (uint64(b) & 0x7F) << shift + m.SegmentId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4714,7 +5860,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4731,7 +5877,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4740,9 +5886,23 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } 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.PageIds) == 0 { + m.PageIds = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -4754,7 +5914,7 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4770,12 +5930,13 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4800,7 +5961,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4828,7 +5989,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4837,6 +5998,9 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4861,7 +6025,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4870,6 +6034,9 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4890,7 +6057,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4899,6 +6066,9 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4919,7 +6089,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4928,6 +6098,9 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDisaggregated + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4940,12 +6113,13 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDisaggregated } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4958,6 +6132,7 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { func skipDisaggregated(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4989,10 +6164,8 @@ func skipDisaggregated(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -5009,132 +6182,34 @@ func skipDisaggregated(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDisaggregated } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDisaggregated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipDisaggregated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisaggregated + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisaggregated + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDisaggregated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDisaggregated = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDisaggregated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisaggregated = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisaggregated = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("disaggregated.proto", fileDescriptorDisaggregated) } - -var fileDescriptorDisaggregated = []byte{ - // 1153 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xce, 0xc6, 0x8e, 0xbd, 0x3e, 0x76, 0x4a, 0x3b, 0x2d, 0xcd, 0x26, 0xa5, 0x21, 0xac, 0x90, - 0x30, 0x37, 0x91, 0x9a, 0x14, 0x90, 0x2a, 0x28, 0xea, 0x2f, 0x59, 0x48, 0x69, 0x98, 0x84, 0x8a, - 0xbb, 0xd5, 0x64, 0xe7, 0xd4, 0x59, 0xed, 0x7a, 0x67, 0x33, 0x33, 0x0e, 0xe4, 0x29, 0xb8, 0xe5, - 0x29, 0xb8, 0x45, 0x82, 0x17, 0xe0, 0x0e, 0x1e, 0x01, 0x15, 0x1e, 0x04, 0xcd, 0xcf, 0xda, 0x89, - 0x1b, 0x7e, 0x2a, 0xb8, 0xf2, 0x7e, 0xe7, 0x6f, 0xce, 0xf9, 0xce, 0x39, 0x33, 0x86, 0xab, 0x3c, - 0x57, 0x6c, 0x34, 0x92, 0x38, 0x62, 0x1a, 0xf9, 0x66, 0x2d, 0x85, 0x16, 0x64, 0xf9, 0x9c, 0x70, - 0xed, 0x4a, 0x26, 0x6a, 0x29, 0x32, 0x54, 0x4a, 0x48, 0x67, 0xb1, 0xb6, 0x5c, 0x9c, 0xc8, 0x3a, - 0xab, 0x0f, 0x1d, 0x8c, 0x7f, 0x0c, 0x60, 0xb0, 0xbf, 0xbd, 0x2b, 0xb2, 0x82, 0xa2, 0x9a, 0x94, - 0x9a, 0x6c, 0x41, 0x57, 0x4d, 0x32, 0xe3, 0x12, 0x05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 0x37, 0xbd, 0x36, 0x9b, 0x9e, 0x5e, 0x83, 0x25, 0x13, 0xd0, - 0x5d, 0x05, 0x03, 0xea, 0x80, 0x69, 0x47, 0x76, 0x34, 0xa9, 0x0a, 0xb3, 0x17, 0xb6, 0x1d, 0x0e, - 0x91, 0x37, 0xa0, 0xa7, 0x26, 0xe3, 0x31, 0x93, 0x39, 0xba, 0x7c, 0x06, 0x74, 0x26, 0xb8, 0x1f, - 0xff, 0xfc, 0x62, 0x3d, 0xf8, 0xf5, 0xc5, 0x7a, 0xf0, 0xdb, 0x8b, 0xf5, 0xe0, 0xbb, 0xdf, 0xd7, - 0x17, 0xe0, 0xb2, 0x90, 0xa3, 0x4d, 0x9d, 0x17, 0x27, 0x9b, 0xc5, 0x89, 0xfd, 0x2b, 0x78, 0xd8, - 0xb1, 0x3f, 0xdb, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xb2, 0x79, 0x0d, 0x59, 0x0a, 0x00, - 0x00, -} diff --git a/pkg/disk_usage/disk_usage.pb.go b/pkg/disk_usage/disk_usage.pb.go index b2065fb25..1e50033b9 100644 --- a/pkg/disk_usage/disk_usage.pb.go +++ b/pkg/disk_usage/disk_usage.pb.go @@ -1,15 +1,6 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: disk_usage.proto -/* -Package disk_usage is a generated protocol buffer package. - -It is generated from these files: - - disk_usage.proto - -It has these top-level messages: -*/ package disk_usage import ( @@ -28,7 +19,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DiskUsage int32 @@ -43,6 +34,7 @@ var DiskUsage_name = map[int32]string{ 1: "AlmostFull", 2: "AlreadyFull", } + var DiskUsage_value = map[string]int32{ "Normal": 0, "AlmostFull": 1, @@ -52,15 +44,18 @@ var DiskUsage_value = map[string]int32{ func (x DiskUsage) String() string { return proto.EnumName(DiskUsage_name, int32(x)) } -func (DiskUsage) EnumDescriptor() ([]byte, []int) { return fileDescriptorDiskUsage, []int{0} } + +func (DiskUsage) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_82acb53abfd87223, []int{0} +} func init() { proto.RegisterEnum("disk_usage.DiskUsage", DiskUsage_name, DiskUsage_value) } -func init() { proto.RegisterFile("disk_usage.proto", fileDescriptorDiskUsage) } +func init() { proto.RegisterFile("disk_usage.proto", fileDescriptor_82acb53abfd87223) } -var fileDescriptorDiskUsage = []byte{ +var fileDescriptor_82acb53abfd87223 = []byte{ // 151 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xc9, 0x2c, 0xce, 0x8e, 0x2f, 0x2d, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88, diff --git a/pkg/encryptionpb/encryptionpb.pb.go b/pkg/encryptionpb/encryptionpb.pb.go index 22646fea6..24ab078e2 100644 --- a/pkg/encryptionpb/encryptionpb.pb.go +++ b/pkg/encryptionpb/encryptionpb.pb.go @@ -1,32 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: encryptionpb.proto -/* -Package encryptionpb is a generated protocol buffer package. - -It is generated from these files: - - encryptionpb.proto - -It has these top-level messages: - - EncryptionMeta - FileInfo - FileDictionary - DataKey - KeyDictionary - MasterKey - MasterKeyPlaintext - MasterKeyFile - MasterKeyKms - EncryptedContent -*/ package encryptionpb import ( "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" @@ -41,7 +22,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type EncryptionMethod int32 @@ -62,6 +43,7 @@ var EncryptionMethod_name = map[int32]string{ 4: "AES256_CTR", 5: "SM4_CTR", } + var EncryptionMethod_value = map[string]int32{ "UNKNOWN": 0, "PLAINTEXT": 1, @@ -74,20 +56,54 @@ var EncryptionMethod_value = map[string]int32{ func (x EncryptionMethod) String() string { return proto.EnumName(EncryptionMethod_name, int32(x)) } -func (EncryptionMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{0} } + +func (EncryptionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{0} +} // General encryption metadata for any data type. type EncryptionMeta struct { // ID of the key used to encrypt the data. KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // Initialization vector (IV) of the data. - Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` + Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EncryptionMeta) Reset() { *m = EncryptionMeta{} } +func (m *EncryptionMeta) String() string { return proto.CompactTextString(m) } +func (*EncryptionMeta) ProtoMessage() {} +func (*EncryptionMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{0} +} +func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EncryptionMeta.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 *EncryptionMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptionMeta.Merge(m, src) +} +func (m *EncryptionMeta) XXX_Size() int { + return m.Size() +} +func (m *EncryptionMeta) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptionMeta.DiscardUnknown(m) } -func (m *EncryptionMeta) Reset() { *m = EncryptionMeta{} } -func (m *EncryptionMeta) String() string { return proto.CompactTextString(m) } -func (*EncryptionMeta) ProtoMessage() {} -func (*EncryptionMeta) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{0} } +var xxx_messageInfo_EncryptionMeta proto.InternalMessageInfo func (m *EncryptionMeta) GetKeyId() uint64 { if m != nil { @@ -110,13 +126,44 @@ type FileInfo struct { // Initialization vector (IV) of the file. Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"` // Method of encryption algorithm used to encrypted the file. - Method EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` + Method EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileInfo) Reset() { *m = FileInfo{} } +func (m *FileInfo) String() string { return proto.CompactTextString(m) } +func (*FileInfo) ProtoMessage() {} +func (*FileInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{1} +} +func (m *FileInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FileInfo.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 *FileInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileInfo.Merge(m, src) +} +func (m *FileInfo) XXX_Size() int { + return m.Size() +} +func (m *FileInfo) XXX_DiscardUnknown() { + xxx_messageInfo_FileInfo.DiscardUnknown(m) } -func (m *FileInfo) Reset() { *m = FileInfo{} } -func (m *FileInfo) String() string { return proto.CompactTextString(m) } -func (*FileInfo) ProtoMessage() {} -func (*FileInfo) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{1} } +var xxx_messageInfo_FileInfo proto.InternalMessageInfo func (m *FileInfo) GetKeyId() uint64 { if m != nil { @@ -141,13 +188,44 @@ func (m *FileInfo) GetMethod() EncryptionMethod { type FileDictionary struct { // A map of file name to file info. - Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileDictionary) Reset() { *m = FileDictionary{} } +func (m *FileDictionary) String() string { return proto.CompactTextString(m) } +func (*FileDictionary) ProtoMessage() {} +func (*FileDictionary) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{2} +} +func (m *FileDictionary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FileDictionary.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 *FileDictionary) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileDictionary.Merge(m, src) +} +func (m *FileDictionary) XXX_Size() int { + return m.Size() +} +func (m *FileDictionary) XXX_DiscardUnknown() { + xxx_messageInfo_FileDictionary.DiscardUnknown(m) } -func (m *FileDictionary) Reset() { *m = FileDictionary{} } -func (m *FileDictionary) String() string { return proto.CompactTextString(m) } -func (*FileDictionary) ProtoMessage() {} -func (*FileDictionary) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{2} } +var xxx_messageInfo_FileDictionary proto.InternalMessageInfo func (m *FileDictionary) GetFiles() map[string]*FileInfo { if m != nil { @@ -165,13 +243,44 @@ type DataKey struct { // Creation time of the key. CreationTime uint64 `protobuf:"varint,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // A flag for the key have ever been exposed. - WasExposed bool `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"` + WasExposed bool `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataKey) Reset() { *m = DataKey{} } +func (m *DataKey) String() string { return proto.CompactTextString(m) } +func (*DataKey) ProtoMessage() {} +func (*DataKey) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{3} +} +func (m *DataKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataKey.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 *DataKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataKey.Merge(m, src) +} +func (m *DataKey) XXX_Size() int { + return m.Size() +} +func (m *DataKey) XXX_DiscardUnknown() { + xxx_messageInfo_DataKey.DiscardUnknown(m) } -func (m *DataKey) Reset() { *m = DataKey{} } -func (m *DataKey) String() string { return proto.CompactTextString(m) } -func (*DataKey) ProtoMessage() {} -func (*DataKey) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{3} } +var xxx_messageInfo_DataKey proto.InternalMessageInfo func (m *DataKey) GetKey() []byte { if m != nil { @@ -203,15 +312,46 @@ func (m *DataKey) GetWasExposed() bool { type KeyDictionary struct { // A map of key ID to dat key. - Keys map[uint64]*DataKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + Keys map[uint64]*DataKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // ID of a key currently in use. - CurrentKeyId uint64 `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"` + CurrentKeyId uint64 `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyDictionary) Reset() { *m = KeyDictionary{} } +func (m *KeyDictionary) String() string { return proto.CompactTextString(m) } +func (*KeyDictionary) ProtoMessage() {} +func (*KeyDictionary) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{4} +} +func (m *KeyDictionary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyDictionary.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 *KeyDictionary) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyDictionary.Merge(m, src) +} +func (m *KeyDictionary) XXX_Size() int { + return m.Size() +} +func (m *KeyDictionary) XXX_DiscardUnknown() { + xxx_messageInfo_KeyDictionary.DiscardUnknown(m) } -func (m *KeyDictionary) Reset() { *m = KeyDictionary{} } -func (m *KeyDictionary) String() string { return proto.CompactTextString(m) } -func (*KeyDictionary) ProtoMessage() {} -func (*KeyDictionary) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{4} } +var xxx_messageInfo_KeyDictionary proto.InternalMessageInfo func (m *KeyDictionary) GetKeys() map[uint64]*DataKey { if m != nil { @@ -233,13 +373,44 @@ type MasterKey struct { // *MasterKey_Plaintext // *MasterKey_File // *MasterKey_Kms - Backend isMasterKey_Backend `protobuf_oneof:"backend"` + Backend isMasterKey_Backend `protobuf_oneof:"backend"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterKey) Reset() { *m = MasterKey{} } +func (m *MasterKey) String() string { return proto.CompactTextString(m) } +func (*MasterKey) ProtoMessage() {} +func (*MasterKey) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{5} +} +func (m *MasterKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MasterKey.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 *MasterKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKey.Merge(m, src) +} +func (m *MasterKey) XXX_Size() int { + return m.Size() +} +func (m *MasterKey) XXX_DiscardUnknown() { + xxx_messageInfo_MasterKey.DiscardUnknown(m) } -func (m *MasterKey) Reset() { *m = MasterKey{} } -func (m *MasterKey) String() string { return proto.CompactTextString(m) } -func (*MasterKey) ProtoMessage() {} -func (*MasterKey) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{5} } +var xxx_messageInfo_MasterKey proto.InternalMessageInfo type isMasterKey_Backend interface { isMasterKey_Backend() @@ -248,13 +419,13 @@ type isMasterKey_Backend interface { } type MasterKey_Plaintext struct { - Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,oneof"` + Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,proto3,oneof" json:"plaintext,omitempty"` } type MasterKey_File struct { - File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,oneof"` + File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,proto3,oneof" json:"file,omitempty"` } type MasterKey_Kms struct { - Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,oneof"` + Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,proto3,oneof" json:"kms,omitempty"` } func (*MasterKey_Plaintext) isMasterKey_Backend() {} @@ -289,119 +460,97 @@ func (m *MasterKey) GetKms() *MasterKeyKms { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*MasterKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _MasterKey_OneofMarshaler, _MasterKey_OneofUnmarshaler, _MasterKey_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MasterKey) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*MasterKey_Plaintext)(nil), (*MasterKey_File)(nil), (*MasterKey_Kms)(nil), } } -func _MasterKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*MasterKey) - // backend - switch x := m.Backend.(type) { - case *MasterKey_Plaintext: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Plaintext); err != nil { - return err - } - case *MasterKey_File: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.File); err != nil { - return err - } - case *MasterKey_Kms: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Kms); err != nil { - return err +// MasterKeyPlaintext indicates content is stored as plaintext. +type MasterKeyPlaintext struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterKeyPlaintext) Reset() { *m = MasterKeyPlaintext{} } +func (m *MasterKeyPlaintext) String() string { return proto.CompactTextString(m) } +func (*MasterKeyPlaintext) ProtoMessage() {} +func (*MasterKeyPlaintext) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{6} +} +func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MasterKeyPlaintext.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("MasterKey.Backend has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _MasterKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*MasterKey) - switch tag { - case 1: // backend.plaintext - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MasterKeyPlaintext) - err := b.DecodeMessage(msg) - m.Backend = &MasterKey_Plaintext{msg} - return true, err - case 2: // backend.file - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MasterKeyFile) - err := b.DecodeMessage(msg) - m.Backend = &MasterKey_File{msg} - return true, err - case 3: // backend.kms - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MasterKeyKms) - err := b.DecodeMessage(msg) - m.Backend = &MasterKey_Kms{msg} - return true, err - default: - return false, nil - } -} - -func _MasterKey_OneofSizer(msg proto.Message) (n int) { - m := msg.(*MasterKey) - // backend - switch x := m.Backend.(type) { - case *MasterKey_Plaintext: - s := proto.Size(x.Plaintext) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *MasterKey_File: - s := proto.Size(x.File) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *MasterKey_Kms: - s := proto.Size(x.Kms) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyPlaintext.Merge(m, src) } - -// MasterKeyPlaintext indicates content is stored as plaintext. -type MasterKeyPlaintext struct { +func (m *MasterKeyPlaintext) XXX_Size() int { + return m.Size() +} +func (m *MasterKeyPlaintext) XXX_DiscardUnknown() { + xxx_messageInfo_MasterKeyPlaintext.DiscardUnknown(m) } -func (m *MasterKeyPlaintext) Reset() { *m = MasterKeyPlaintext{} } -func (m *MasterKeyPlaintext) String() string { return proto.CompactTextString(m) } -func (*MasterKeyPlaintext) ProtoMessage() {} -func (*MasterKeyPlaintext) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{6} } +var xxx_messageInfo_MasterKeyPlaintext proto.InternalMessageInfo // MasterKeyFile is a master key backed by a file containing encryption key in human-readable // hex format. type MasterKeyFile struct { // Local file path. - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterKeyFile) Reset() { *m = MasterKeyFile{} } +func (m *MasterKeyFile) String() string { return proto.CompactTextString(m) } +func (*MasterKeyFile) ProtoMessage() {} +func (*MasterKeyFile) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{7} +} +func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MasterKeyFile.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 *MasterKeyFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyFile.Merge(m, src) +} +func (m *MasterKeyFile) XXX_Size() int { + return m.Size() +} +func (m *MasterKeyFile) XXX_DiscardUnknown() { + xxx_messageInfo_MasterKeyFile.DiscardUnknown(m) } -func (m *MasterKeyFile) Reset() { *m = MasterKeyFile{} } -func (m *MasterKeyFile) String() string { return proto.CompactTextString(m) } -func (*MasterKeyFile) ProtoMessage() {} -func (*MasterKeyFile) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{7} } +var xxx_messageInfo_MasterKeyFile proto.InternalMessageInfo func (m *MasterKeyFile) GetPath() string { if m != nil { @@ -420,13 +569,44 @@ type MasterKeyKms struct { // KMS region. Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // KMS endpoint. Normally not needed. - Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MasterKeyKms) Reset() { *m = MasterKeyKms{} } +func (m *MasterKeyKms) String() string { return proto.CompactTextString(m) } +func (*MasterKeyKms) ProtoMessage() {} +func (*MasterKeyKms) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{8} +} +func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MasterKeyKms.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 *MasterKeyKms) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyKms.Merge(m, src) +} +func (m *MasterKeyKms) XXX_Size() int { + return m.Size() +} +func (m *MasterKeyKms) XXX_DiscardUnknown() { + xxx_messageInfo_MasterKeyKms.DiscardUnknown(m) } -func (m *MasterKeyKms) Reset() { *m = MasterKeyKms{} } -func (m *MasterKeyKms) String() string { return proto.CompactTextString(m) } -func (*MasterKeyKms) ProtoMessage() {} -func (*MasterKeyKms) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{8} } +var xxx_messageInfo_MasterKeyKms proto.InternalMessageInfo func (m *MasterKeyKms) GetVendor() string { if m != nil { @@ -460,22 +640,53 @@ type EncryptedContent struct { // Metadata of the encrypted content. // Eg. IV, method and KMS key ID // It is preferred to define new fields for extra metadata than using this metadata map. - Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Encrypted content. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Master key used to encrypt the content. - MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey" json:"master_key,omitempty"` + MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"` // Initilization vector (IV) used. Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` // Encrypted data key generated by KMS and used to actually encrypt data. // Valid only when KMS is used. - CiphertextKey []byte `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"` + CiphertextKey []byte `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EncryptedContent) Reset() { *m = EncryptedContent{} } +func (m *EncryptedContent) String() string { return proto.CompactTextString(m) } +func (*EncryptedContent) ProtoMessage() {} +func (*EncryptedContent) Descriptor() ([]byte, []int) { + return fileDescriptor_a483860494a778a2, []int{9} +} +func (m *EncryptedContent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EncryptedContent.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 *EncryptedContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedContent.Merge(m, src) +} +func (m *EncryptedContent) XXX_Size() int { + return m.Size() +} +func (m *EncryptedContent) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedContent.DiscardUnknown(m) } -func (m *EncryptedContent) Reset() { *m = EncryptedContent{} } -func (m *EncryptedContent) String() string { return proto.CompactTextString(m) } -func (*EncryptedContent) ProtoMessage() {} -func (*EncryptedContent) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{9} } +var xxx_messageInfo_EncryptedContent proto.InternalMessageInfo func (m *EncryptedContent) GetMetadata() map[string][]byte { if m != nil { @@ -513,22 +724,80 @@ func (m *EncryptedContent) GetCiphertextKey() []byte { } func init() { + proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) proto.RegisterType((*EncryptionMeta)(nil), "encryptionpb.EncryptionMeta") proto.RegisterType((*FileInfo)(nil), "encryptionpb.FileInfo") proto.RegisterType((*FileDictionary)(nil), "encryptionpb.FileDictionary") + proto.RegisterMapType((map[string]*FileInfo)(nil), "encryptionpb.FileDictionary.FilesEntry") proto.RegisterType((*DataKey)(nil), "encryptionpb.DataKey") proto.RegisterType((*KeyDictionary)(nil), "encryptionpb.KeyDictionary") + proto.RegisterMapType((map[uint64]*DataKey)(nil), "encryptionpb.KeyDictionary.KeysEntry") proto.RegisterType((*MasterKey)(nil), "encryptionpb.MasterKey") proto.RegisterType((*MasterKeyPlaintext)(nil), "encryptionpb.MasterKeyPlaintext") proto.RegisterType((*MasterKeyFile)(nil), "encryptionpb.MasterKeyFile") proto.RegisterType((*MasterKeyKms)(nil), "encryptionpb.MasterKeyKms") proto.RegisterType((*EncryptedContent)(nil), "encryptionpb.EncryptedContent") - proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) + proto.RegisterMapType((map[string][]byte)(nil), "encryptionpb.EncryptedContent.MetadataEntry") } + +func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptor_a483860494a778a2) } + +var fileDescriptor_a483860494a778a2 = []byte{ + // 768 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, + 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, + 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c, + 0x5a, 0x41, 0xb2, 0x13, 0x68, 0x71, 0x2c, 0x11, 0x14, 0x1f, 0x21, 0xc7, 0xb2, 0xf9, 0x27, 0xc9, + 0x32, 0x59, 0xe5, 0x1f, 0xb2, 0xc9, 0x32, 0xcb, 0x2c, 0xb3, 0x0c, 0x9c, 0x1f, 0x09, 0x38, 0x1c, + 0x51, 0x24, 0x6c, 0x03, 0xc9, 0x8a, 0x73, 0xee, 0x9c, 0x7b, 0x79, 0xe7, 0xcc, 0x99, 0x0b, 0x98,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, 0x84, 0x3d, 0x24, 0xbf, 0x42, 0x50, 0x38, 0xd6, + 0xa8, 0xd6, 0x27, 0xa9, 0x7a, 0xe5, 0xa8, 0xde, 0xea, 0xe4, 0xc2, 0xf7, 0x9c, 0x1c, 0x6f, 0x42, + 0x65, 0xe2, 0x11, 0x2d, 0xdc, 0x19, 0x53, 0xc3, 0x22, 0x4c, 0x38, 0x51, 0x2d, 0x2f, 0x83, 0x23, + 0xc3, 0x22, 0xf8, 0x67, 0x28, 0x5d, 0x69, 0xfe, 0x98, 0x5c, 0xbb, 0x8e, 0x4f, 0xf4, 0xba, 0xd8, + 0x42, 0xed, 0xa2, 0x0a, 0x57, 0x9a, 0xdf, 0x8d, 0x22, 0xf2, 0x7b, 0x04, 0x95, 0x3e, 0x09, 0x12, + 0xf2, 0xed, 0x83, 0x68, 0x92, 0x60, 0xa9, 0xde, 0x56, 0xba, 0x9b, 0x14, 0x35, 0x44, 0x5c, 0x3b, + 0x96, 0x82, 0x7f, 0x81, 0xea, 0xe4, 0xd2, 0xf3, 0x88, 0x4d, 0xc7, 0xfc, 0xce, 0x05, 0xde, 0x53, + 0x14, 0xed, 0x87, 0x57, 0xdf, 0x18, 0x82, 0x14, 0x27, 0x26, 0xf5, 0x10, 0x23, 0x3d, 0xfe, 0x48, + 0xeb, 0xbb, 0x9e, 0x6e, 0x80, 0xeb, 0x98, 0x94, 0xf7, 0x1d, 0x02, 0x69, 0xa0, 0xf9, 0x94, 0x78, + 0xa1, 0xc0, 0x0f, 0x41, 0x72, 0xe7, 0x9a, 0x61, 0x53, 0x72, 0x4d, 0x59, 0xd9, 0x92, 0xd2, 0x4a, + 0x97, 0x88, 0xb9, 0xa7, 0x4b, 0x5e, 0x2f, 0xa3, 0xae, 0x92, 0xf0, 0x0e, 0x88, 0xa1, 0x13, 0xf8, + 0xff, 0x7f, 0xba, 0x27, 0x39, 0xbc, 0xe8, 0x5e, 0x46, 0x65, 0x54, 0xdc, 0x81, 0xac, 0x69, 0xf9, + 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58, 0x4b, 0xfa, 0xb4, 0x9c, 0x30, 0xe4, 0xef, 0x66, + 0xac, 0x51, 0xfc, 0x6a, 0x71, 0x09, 0x0a, 0x4f, 0x87, 0xfd, 0xe1, 0x93, 0x67, 0xc3, 0x5a, 0x06, + 0x57, 0x40, 0x3a, 0x7d, 0x7c, 0x70, 0x32, 0x1c, 0x75, 0x9f, 0x8f, 0x6a, 0x08, 0x57, 0x01, 0x0e, + 0xba, 0x67, 0x3b, 0xca, 0xde, 0xf8, 0x68, 0xa4, 0xd6, 0x84, 0x25, 0xde, 0x57, 0x18, 0xce, 0x72, + 0xac, 0xfc, 0xb3, 0xcb, 0xb0, 0x18, 0xd6, 0x3a, 0x1b, 0xfc, 0xcd, 0x40, 0xee, 0xf0, 0xd7, 0x4f, + 0x6f, 0x8b, 0xe8, 0xc3, 0x4d, 0x13, 0x7d, 0xbc, 0x69, 0xa2, 0xcf, 0x37, 0x4d, 0xf4, 0xf2, 0x4b, + 0x33, 0x03, 0x35, 0xc7, 0x9b, 0x76, 0xa8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, + 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, +} + func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -536,28 +805,38 @@ func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) { } func (m *EncryptionMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EncryptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.KeyId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Iv) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Iv) + copy(dAtA[i:], m.Iv) i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i += copy(dAtA[i:], m.Iv) + i-- + dAtA[i] = 0x12 + } + if m.KeyId != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *FileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -565,33 +844,43 @@ func (m *FileInfo) Marshal() (dAtA []byte, err error) { } func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.KeyId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Method != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x18 } if len(m.Iv) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Iv) + copy(dAtA[i:], m.Iv) i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i += copy(dAtA[i:], m.Iv) + i-- + dAtA[i] = 0x12 } - if m.Method != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) + if m.KeyId != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.KeyId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *FileDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -599,45 +888,52 @@ func (m *FileDictionary) Marshal() (dAtA []byte, err error) { } func (m *FileDictionary) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FileDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Files) > 0 { - for k, _ := range m.Files { - dAtA[i] = 0xa - i++ + for k := range m.Files { v := m.Files[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovEncryptionpb(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovEncryptionpb(uint64(len(k))) + msgSize - i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) + baseI := i if v != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(v.Size())) - n1, err := v.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *DataKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -645,43 +941,53 @@ func (m *DataKey) Marshal() (dAtA []byte, err error) { } func (m *DataKey) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if m.Method != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) - } - if m.CreationTime != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CreationTime)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.WasExposed { - dAtA[i] = 0x20 - i++ + i-- if m.WasExposed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if m.CreationTime != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CreationTime)) + i-- + dAtA[i] = 0x18 + } + if m.Method != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x10 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *KeyDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -689,49 +995,55 @@ func (m *KeyDictionary) Marshal() (dAtA []byte, err error) { } func (m *KeyDictionary) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentKeyId != 0 { + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CurrentKeyId)) + i-- + dAtA[i] = 0x10 + } if len(m.Keys) > 0 { - for k, _ := range m.Keys { - dAtA[i] = 0xa - i++ + for k := range m.Keys { v := m.Keys[k] - msgSize := 0 + baseI := i if v != nil { - msgSize = v.Size() - msgSize += 1 + sovEncryptionpb(uint64(msgSize)) - } - mapSize := 1 + sovEncryptionpb(uint64(k)) + msgSize - i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0x8 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(k)) - if v != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(v.Size())) - n2, err := v.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x12 } + i = encodeVarintEncryptionpb(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } } - if m.CurrentKeyId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.CurrentKeyId)) - } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -739,66 +1051,98 @@ func (m *MasterKey) Marshal() (dAtA []byte, err error) { } func (m *MasterKey) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Backend != nil { - nn3, err := m.Backend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Backend.Size() + i -= size + if _, err := m.Backend.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn3 } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Plaintext != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Plaintext.Size())) - n4, err := m.Plaintext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Plaintext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.File != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.File.Size())) - n5, err := m.File.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Kms != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Kms.Size())) - n6, err := m.Kms.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Kms.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -806,17 +1150,26 @@ func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyPlaintext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKeyPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -824,23 +1177,33 @@ func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyFile) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKeyFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Path) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Path) + copy(dAtA[i:], m.Path) i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Path))) - i += copy(dAtA[i:], m.Path) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -848,41 +1211,54 @@ func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Vendor) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Vendor))) - i += copy(dAtA[i:], m.Vendor) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.KeyId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) - i += copy(dAtA[i:], m.KeyId) + if len(m.Endpoint) > 0 { + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0x22 } if len(m.Region) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Region) + copy(dAtA[i:], m.Region) i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) - i += copy(dAtA[i:], m.Region) + i-- + dAtA[i] = 0x1a } - if len(m.Endpoint) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) - i += copy(dAtA[i:], m.Endpoint) + if len(m.KeyId) > 0 { + i -= len(m.KeyId) + copy(dAtA[i:], m.KeyId) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Vendor) > 0 { + i -= len(m.Vendor) + copy(dAtA[i:], m.Vendor) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Vendor))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -890,74 +1266,91 @@ func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { } func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Metadata) > 0 { - for k, _ := range m.Metadata { - dAtA[i] = 0xa - i++ - v := m.Metadata[k] - byteSize := 0 - if len(v) > 0 { - byteSize = 1 + len(v) + sovEncryptionpb(uint64(len(v))) - } - mapSize := 1 + len(k) + sovEncryptionpb(uint64(len(k))) + byteSize - i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - if len(v) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.CiphertextKey) > 0 { + i -= len(m.CiphertextKey) + copy(dAtA[i:], m.CiphertextKey) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) + i-- + dAtA[i] = 0x2a + } + if len(m.Iv) > 0 { + i -= len(m.Iv) + copy(dAtA[i:], m.Iv) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) + i-- + dAtA[i] = 0x22 + } + if m.MasterKey != nil { + { + size, err := m.MasterKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } if len(m.Content) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Content) + copy(dAtA[i:], m.Content) i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) + i-- + dAtA[i] = 0x12 } - if m.MasterKey != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.MasterKey.Size())) - n7, err := m.MasterKey.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Metadata) > 0 { + for k := range m.Metadata { + v := m.Metadata[k] + baseI := i + if len(v) > 0 { + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } - i += n7 - } - if len(m.Iv) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i += copy(dAtA[i:], m.Iv) } - if len(m.CiphertextKey) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) - i += copy(dAtA[i:], m.CiphertextKey) - } - return i, nil + return len(dAtA) - i, nil } func encodeVarintEncryptionpb(dAtA []byte, offset int, v uint64) int { + offset -= sovEncryptionpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *EncryptionMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.KeyId != 0 { @@ -967,10 +1360,16 @@ func (m *EncryptionMeta) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FileInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.KeyId != 0 { @@ -983,10 +1382,16 @@ func (m *FileInfo) Size() (n int) { if m.Method != 0 { n += 1 + sovEncryptionpb(uint64(m.Method)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FileDictionary) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Files) > 0 { @@ -1002,10 +1407,16 @@ func (m *FileDictionary) Size() (n int) { n += mapEntrySize + 1 + sovEncryptionpb(uint64(mapEntrySize)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DataKey) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -1021,10 +1432,16 @@ func (m *DataKey) Size() (n int) { if m.WasExposed { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyDictionary) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Keys) > 0 { @@ -1043,19 +1460,31 @@ func (m *KeyDictionary) Size() (n int) { if m.CurrentKeyId != 0 { n += 1 + sovEncryptionpb(uint64(m.CurrentKeyId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MasterKey) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Backend != nil { n += m.Backend.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MasterKey_Plaintext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Plaintext != nil { @@ -1065,6 +1494,9 @@ func (m *MasterKey_Plaintext) Size() (n int) { return n } func (m *MasterKey_File) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.File != nil { @@ -1074,6 +1506,9 @@ func (m *MasterKey_File) Size() (n int) { return n } func (m *MasterKey_Kms) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Kms != nil { @@ -1083,22 +1518,37 @@ func (m *MasterKey_Kms) Size() (n int) { return n } func (m *MasterKeyPlaintext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MasterKeyFile) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Path) if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MasterKeyKms) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Vendor) @@ -1117,10 +1567,16 @@ func (m *MasterKeyKms) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EncryptedContent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Metadata) > 0 { @@ -1151,18 +1607,14 @@ func (m *EncryptedContent) Size() (n int) { if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovEncryptionpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozEncryptionpb(x uint64) (n int) { return sovEncryptionpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1182,7 +1634,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1210,7 +1662,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= (uint64(b) & 0x7F) << shift + m.KeyId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1229,7 +1681,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1238,6 +1690,9 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1252,12 +1707,13 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1282,7 +1738,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1310,7 +1766,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= (uint64(b) & 0x7F) << shift + m.KeyId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1329,7 +1785,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1338,6 +1794,9 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1360,7 +1819,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= (EncryptionMethod(b) & 0x7F) << shift + m.Method |= EncryptionMethod(b&0x7F) << shift if b < 0x80 { break } @@ -1371,12 +1830,13 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1401,7 +1861,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1429,7 +1889,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1438,6 +1898,9 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1458,7 +1921,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1475,7 +1938,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1485,6 +1948,9 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthEncryptionpb + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1501,7 +1967,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift + mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1510,7 +1976,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -1527,7 +1993,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -1544,12 +2010,13 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1574,7 +2041,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1602,7 +2069,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1611,6 +2078,9 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1633,7 +2103,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= (EncryptionMethod(b) & 0x7F) << shift + m.Method |= EncryptionMethod(b&0x7F) << shift if b < 0x80 { break } @@ -1652,7 +2122,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreationTime |= (uint64(b) & 0x7F) << shift + m.CreationTime |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1671,7 +2141,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1683,12 +2153,13 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1713,7 +2184,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1741,7 +2212,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1750,6 +2221,9 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1770,7 +2244,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1786,7 +2260,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapkey |= (uint64(b) & 0x7F) << shift + mapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1802,7 +2276,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift + mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1811,7 +2285,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -1828,7 +2302,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -1853,7 +2327,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentKeyId |= (uint64(b) & 0x7F) << shift + m.CurrentKeyId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1864,12 +2338,13 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1894,7 +2369,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1922,7 +2397,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1931,6 +2406,9 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1954,7 +2432,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1963,6 +2441,9 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1986,7 +2467,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1995,6 +2476,9 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2010,12 +2494,13 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2040,7 +2525,7 @@ func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2060,12 +2545,13 @@ func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2090,7 +2576,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2118,7 +2604,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2128,6 +2614,9 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2139,12 +2628,13 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2169,7 +2659,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2197,7 +2687,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2207,6 +2697,9 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2226,7 +2719,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2236,6 +2729,9 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2255,7 +2751,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2265,6 +2761,9 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2284,7 +2783,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2294,6 +2793,9 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2305,12 +2807,13 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2335,7 +2838,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2363,7 +2866,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2372,6 +2875,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2392,7 +2898,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2409,7 +2915,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2419,6 +2925,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthEncryptionpb + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2435,7 +2944,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapbyteLen |= (uint64(b) & 0x7F) << shift + mapbyteLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2445,6 +2954,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postbytesIndex := iNdEx + intMapbyteLen + if postbytesIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -2457,7 +2969,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2482,7 +2994,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2491,6 +3003,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2513,7 +3028,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2522,6 +3037,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2546,7 +3064,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2555,6 +3073,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2577,7 +3098,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2586,6 +3107,9 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEncryptionpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2600,12 +3124,13 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2618,6 +3143,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { func skipEncryptionpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2649,10 +3175,8 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2669,107 +3193,34 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEncryptionpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEncryptionpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipEncryptionpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEncryptionpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthEncryptionpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptorEncryptionpb) } - -var fileDescriptorEncryptionpb = []byte{ - // 768 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, - 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, - 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c, - 0x5a, 0x41, 0xb2, 0x13, 0x68, 0x71, 0x2c, 0x11, 0x14, 0x1f, 0x21, 0xc7, 0xb2, 0xf9, 0x27, 0xc9, - 0x32, 0x59, 0xe5, 0x1f, 0xb2, 0xc9, 0x32, 0xcb, 0x2c, 0xb3, 0x0c, 0x9c, 0x1f, 0x09, 0x38, 0x1c, - 0x51, 0x24, 0x6c, 0x03, 0xc9, 0x8a, 0x73, 0xee, 0x9c, 0x7b, 0x79, 0xe7, 0xcc, 0x99, 0x0b, 0x98, - 0xd8, 0x13, 0x2f, 0x70, 0xa9, 0xe1, 0xd8, 0xee, 0x79, 0xc7, 0xf5, 0x1c, 0xea, 0xe0, 0x72, 0x32, - 0xd6, 0x58, 0x9b, 0x3a, 0x53, 0x87, 0x6d, 0xfc, 0x19, 0xae, 0x22, 0x4e, 0xe3, 0x07, 0xef, 0xd2, - 0xa7, 0x6c, 0x19, 0x05, 0xe4, 0x7f, 0xa1, 0xda, 0x8d, 0xd3, 0x06, 0x84, 0x6a, 0x78, 0x1d, 0xf2, - 0x26, 0x09, 0xc6, 0x86, 0x5e, 0x47, 0x2d, 0xd4, 0x16, 0xd5, 0x9c, 0x49, 0x82, 0x13, 0x1d, 0x57, - 0x41, 0x30, 0x16, 0x75, 0xa1, 0x85, 0xda, 0x65, 0x55, 0x30, 0x16, 0xb2, 0x01, 0xc5, 0x47, 0xc6, - 0x9c, 0x9c, 0xd8, 0x17, 0xce, 0x37, 0xa6, 0xe0, 0x5d, 0xc8, 0x5b, 0x84, 0xce, 0x1c, 0xbd, 0x9e, - 0x6d, 0xa1, 0x76, 0x55, 0x69, 0x76, 0x52, 0xa7, 0x48, 0xf5, 0x31, 0x73, 0x74, 0x95, 0xb3, 0xe5, - 0xd7, 0x08, 0xaa, 0xe1, 0xbf, 0x8e, 0x8d, 0x49, 0xb8, 0xab, 0x79, 0x01, 0x7e, 0x00, 0xb9, 0x0b, - 0x63, 0x4e, 0xfc, 0x3a, 0x6a, 0x65, 0xdb, 0x25, 0xe5, 0xb7, 0x74, 0xa5, 0x34, 0x99, 0x41, 0xbf, - 0x6b, 0x53, 0x2f, 0x50, 0xa3, 0xac, 0xc6, 0x29, 0xc0, 0x2a, 0x88, 0x6b, 0x90, 0x35, 0x49, 0xc0, - 0x7a, 0x97, 0xd4, 0x70, 0x89, 0xb7, 0x21, 0xb7, 0xd0, 0xe6, 0x97, 0x84, 0x35, 0x5f, 0x52, 0x36, - 0x6e, 0x97, 0x0f, 0xcf, 0xad, 0x46, 0xa4, 0xff, 0x84, 0x3d, 0x24, 0xbf, 0x42, 0x50, 0x38, 0xd6, - 0xa8, 0xd6, 0x27, 0xa9, 0x7a, 0xe5, 0xa8, 0xde, 0xea, 0xe4, 0xc2, 0xf7, 0x9c, 0x1c, 0x6f, 0x42, - 0x65, 0xe2, 0x11, 0x2d, 0xdc, 0x19, 0x53, 0xc3, 0x22, 0x4c, 0x38, 0x51, 0x2d, 0x2f, 0x83, 0x23, - 0xc3, 0x22, 0xf8, 0x67, 0x28, 0x5d, 0x69, 0xfe, 0x98, 0x5c, 0xbb, 0x8e, 0x4f, 0xf4, 0xba, 0xd8, - 0x42, 0xed, 0xa2, 0x0a, 0x57, 0x9a, 0xdf, 0x8d, 0x22, 0xf2, 0x7b, 0x04, 0x95, 0x3e, 0x09, 0x12, - 0xf2, 0xed, 0x83, 0x68, 0x92, 0x60, 0xa9, 0xde, 0x56, 0xba, 0x9b, 0x14, 0x35, 0x44, 0x5c, 0x3b, - 0x96, 0x82, 0x7f, 0x81, 0xea, 0xe4, 0xd2, 0x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a8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, - 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, -} diff --git a/pkg/enginepb/enginepb.pb.go b/pkg/enginepb/enginepb.pb.go index 2678883d0..5dd72599b 100644 --- a/pkg/enginepb/enginepb.pb.go +++ b/pkg/enginepb/enginepb.pb.go @@ -1,43 +1,22 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: enginepb.proto -/* -Package enginepb is a generated protocol buffer package. - -It is generated from these files: - - enginepb.proto - -It has these top-level messages: - - CommandRequestHeader - CommandRequest - CommandRequestBatch - CommandResponseHeader - CommandResponse - CommandResponseBatch - SnapshotState - SnapshotData - SnapshotRequest - SnapshotDone -*/ package enginepb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" metapb "github.com/pingcap/kvproto/pkg/metapb" - raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" - raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -49,7 +28,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CommandRequestHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` @@ -60,13 +39,44 @@ type CommandRequestHeader struct { // Destroy the region. Destroy bool `protobuf:"varint,5,opt,name=destroy,proto3" json:"destroy,omitempty"` // Additional information for the request. - Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` + Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandRequestHeader) Reset() { *m = CommandRequestHeader{} } +func (m *CommandRequestHeader) String() string { return proto.CompactTextString(m) } +func (*CommandRequestHeader) ProtoMessage() {} +func (*CommandRequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{0} +} +func (m *CommandRequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandRequestHeader.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 *CommandRequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequestHeader.Merge(m, src) +} +func (m *CommandRequestHeader) XXX_Size() int { + return m.Size() +} +func (m *CommandRequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_CommandRequestHeader.DiscardUnknown(m) } -func (m *CommandRequestHeader) Reset() { *m = CommandRequestHeader{} } -func (m *CommandRequestHeader) String() string { return proto.CompactTextString(m) } -func (*CommandRequestHeader) ProtoMessage() {} -func (*CommandRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{0} } +var xxx_messageInfo_CommandRequestHeader proto.InternalMessageInfo func (m *CommandRequestHeader) GetRegionId() uint64 { if m != nil { @@ -111,19 +121,50 @@ func (m *CommandRequestHeader) GetContext() []byte { } type CommandRequest struct { - Header *CommandRequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *CommandRequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // kv put / delete - Requests []*raft_cmdpb.Request `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"` + Requests []*raft_cmdpb.Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` // region metadata manipulation command. - AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` + AdminRequest *raft_cmdpb.AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` // region metadata manipulation result. - AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,4,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` + AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,4,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandRequest) Reset() { *m = CommandRequest{} } +func (m *CommandRequest) String() string { return proto.CompactTextString(m) } +func (*CommandRequest) ProtoMessage() {} +func (*CommandRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{1} +} +func (m *CommandRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandRequest.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 *CommandRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequest.Merge(m, src) +} +func (m *CommandRequest) XXX_Size() int { + return m.Size() +} +func (m *CommandRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CommandRequest.DiscardUnknown(m) } -func (m *CommandRequest) Reset() { *m = CommandRequest{} } -func (m *CommandRequest) String() string { return proto.CompactTextString(m) } -func (*CommandRequest) ProtoMessage() {} -func (*CommandRequest) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{1} } +var xxx_messageInfo_CommandRequest proto.InternalMessageInfo func (m *CommandRequest) GetHeader() *CommandRequestHeader { if m != nil { @@ -154,13 +195,44 @@ func (m *CommandRequest) GetAdminResponse() *raft_cmdpb.AdminResponse { } type CommandRequestBatch struct { - Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` + Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandRequestBatch) Reset() { *m = CommandRequestBatch{} } +func (m *CommandRequestBatch) String() string { return proto.CompactTextString(m) } +func (*CommandRequestBatch) ProtoMessage() {} +func (*CommandRequestBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{2} +} +func (m *CommandRequestBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandRequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandRequestBatch.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 *CommandRequestBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequestBatch.Merge(m, src) +} +func (m *CommandRequestBatch) XXX_Size() int { + return m.Size() +} +func (m *CommandRequestBatch) XXX_DiscardUnknown() { + xxx_messageInfo_CommandRequestBatch.DiscardUnknown(m) } -func (m *CommandRequestBatch) Reset() { *m = CommandRequestBatch{} } -func (m *CommandRequestBatch) String() string { return proto.CompactTextString(m) } -func (*CommandRequestBatch) ProtoMessage() {} -func (*CommandRequestBatch) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{2} } +var xxx_messageInfo_CommandRequestBatch proto.InternalMessageInfo func (m *CommandRequestBatch) GetRequests() []*CommandRequest { if m != nil { @@ -172,13 +244,44 @@ func (m *CommandRequestBatch) GetRequests() []*CommandRequest { type CommandResponseHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Region is destroyed. - Destroyed bool `protobuf:"varint,2,opt,name=destroyed,proto3" json:"destroyed,omitempty"` + Destroyed bool `protobuf:"varint,2,opt,name=destroyed,proto3" json:"destroyed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandResponseHeader) Reset() { *m = CommandResponseHeader{} } +func (m *CommandResponseHeader) String() string { return proto.CompactTextString(m) } +func (*CommandResponseHeader) ProtoMessage() {} +func (*CommandResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{3} +} +func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandResponseHeader.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 *CommandResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponseHeader.Merge(m, src) +} +func (m *CommandResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *CommandResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_CommandResponseHeader.DiscardUnknown(m) } -func (m *CommandResponseHeader) Reset() { *m = CommandResponseHeader{} } -func (m *CommandResponseHeader) String() string { return proto.CompactTextString(m) } -func (*CommandResponseHeader) ProtoMessage() {} -func (*CommandResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{3} } +var xxx_messageInfo_CommandResponseHeader proto.InternalMessageInfo func (m *CommandResponseHeader) GetRegionId() uint64 { if m != nil { @@ -195,15 +298,46 @@ func (m *CommandResponseHeader) GetDestroyed() bool { } type CommandResponse struct { - Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` - AppliedTerm uint64 `protobuf:"varint,3,opt,name=applied_term,json=appliedTerm,proto3" json:"applied_term,omitempty"` + Header *CommandResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,2,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` + AppliedTerm uint64 `protobuf:"varint,3,opt,name=applied_term,json=appliedTerm,proto3" json:"applied_term,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandResponse) Reset() { *m = CommandResponse{} } +func (m *CommandResponse) String() string { return proto.CompactTextString(m) } +func (*CommandResponse) ProtoMessage() {} +func (*CommandResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{4} +} +func (m *CommandResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandResponse.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 *CommandResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponse.Merge(m, src) +} +func (m *CommandResponse) XXX_Size() int { + return m.Size() +} +func (m *CommandResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommandResponse.DiscardUnknown(m) } -func (m *CommandResponse) Reset() { *m = CommandResponse{} } -func (m *CommandResponse) String() string { return proto.CompactTextString(m) } -func (*CommandResponse) ProtoMessage() {} -func (*CommandResponse) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{4} } +var xxx_messageInfo_CommandResponse proto.InternalMessageInfo func (m *CommandResponse) GetHeader() *CommandResponseHeader { if m != nil { @@ -227,13 +361,44 @@ func (m *CommandResponse) GetAppliedTerm() uint64 { } type CommandResponseBatch struct { - Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"` + Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommandResponseBatch) Reset() { *m = CommandResponseBatch{} } +func (m *CommandResponseBatch) String() string { return proto.CompactTextString(m) } +func (*CommandResponseBatch) ProtoMessage() {} +func (*CommandResponseBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{5} +} +func (m *CommandResponseBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommandResponseBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommandResponseBatch.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 *CommandResponseBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponseBatch.Merge(m, src) +} +func (m *CommandResponseBatch) XXX_Size() int { + return m.Size() +} +func (m *CommandResponseBatch) XXX_DiscardUnknown() { + xxx_messageInfo_CommandResponseBatch.DiscardUnknown(m) } -func (m *CommandResponseBatch) Reset() { *m = CommandResponseBatch{} } -func (m *CommandResponseBatch) String() string { return proto.CompactTextString(m) } -func (*CommandResponseBatch) ProtoMessage() {} -func (*CommandResponseBatch) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{5} } +var xxx_messageInfo_CommandResponseBatch proto.InternalMessageInfo func (m *CommandResponseBatch) GetResponses() []*CommandResponse { if m != nil { @@ -243,15 +408,46 @@ func (m *CommandResponseBatch) GetResponses() []*CommandResponse { } type SnapshotState struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` - ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` + ApplyState *raft_serverpb.RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotState) Reset() { *m = SnapshotState{} } +func (m *SnapshotState) String() string { return proto.CompactTextString(m) } +func (*SnapshotState) ProtoMessage() {} +func (*SnapshotState) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{6} +} +func (m *SnapshotState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotState.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 *SnapshotState) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotState.Merge(m, src) +} +func (m *SnapshotState) XXX_Size() int { + return m.Size() +} +func (m *SnapshotState) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotState.DiscardUnknown(m) } -func (m *SnapshotState) Reset() { *m = SnapshotState{} } -func (m *SnapshotState) String() string { return proto.CompactTextString(m) } -func (*SnapshotState) ProtoMessage() {} -func (*SnapshotState) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{6} } +var xxx_messageInfo_SnapshotState proto.InternalMessageInfo func (m *SnapshotState) GetRegion() *metapb.Region { if m != nil { @@ -275,15 +471,46 @@ func (m *SnapshotState) GetApplyState() *raft_serverpb.RaftApplyState { } type SnapshotData struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Checksum uint32 `protobuf:"varint,2,opt,name=checksum,proto3" json:"checksum,omitempty"` - Data []*raft_serverpb.KeyValue `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Checksum uint32 `protobuf:"varint,2,opt,name=checksum,proto3" json:"checksum,omitempty"` + Data []*raft_serverpb.KeyValue `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotData) Reset() { *m = SnapshotData{} } +func (m *SnapshotData) String() string { return proto.CompactTextString(m) } +func (*SnapshotData) ProtoMessage() {} +func (*SnapshotData) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{7} +} +func (m *SnapshotData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotData.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 *SnapshotData) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotData.Merge(m, src) +} +func (m *SnapshotData) XXX_Size() int { + return m.Size() +} +func (m *SnapshotData) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotData.DiscardUnknown(m) } -func (m *SnapshotData) Reset() { *m = SnapshotData{} } -func (m *SnapshotData) String() string { return proto.CompactTextString(m) } -func (*SnapshotData) ProtoMessage() {} -func (*SnapshotData) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{7} } +var xxx_messageInfo_SnapshotData proto.InternalMessageInfo func (m *SnapshotData) GetCf() string { if m != nil { @@ -310,13 +537,44 @@ type SnapshotRequest struct { // Types that are valid to be assigned to Chunk: // *SnapshotRequest_State // *SnapshotRequest_Data - Chunk isSnapshotRequest_Chunk `protobuf_oneof:"chunk"` + Chunk isSnapshotRequest_Chunk `protobuf_oneof:"chunk"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } +func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*SnapshotRequest) ProtoMessage() {} +func (*SnapshotRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{8} +} +func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotRequest.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 *SnapshotRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotRequest.Merge(m, src) +} +func (m *SnapshotRequest) XXX_Size() int { + return m.Size() +} +func (m *SnapshotRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotRequest.DiscardUnknown(m) } -func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } -func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*SnapshotRequest) ProtoMessage() {} -func (*SnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{8} } +var xxx_messageInfo_SnapshotRequest proto.InternalMessageInfo type isSnapshotRequest_Chunk interface { isSnapshotRequest_Chunk() @@ -325,10 +583,10 @@ type isSnapshotRequest_Chunk interface { } type SnapshotRequest_State struct { - State *SnapshotState `protobuf:"bytes,1,opt,name=state,oneof"` + State *SnapshotState `protobuf:"bytes,1,opt,name=state,proto3,oneof" json:"state,omitempty"` } type SnapshotRequest_Data struct { - Data *SnapshotData `protobuf:"bytes,2,opt,name=data,oneof"` + Data *SnapshotData `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` } func (*SnapshotRequest_State) isSnapshotRequest_Chunk() {} @@ -355,87 +613,52 @@ func (m *SnapshotRequest) GetData() *SnapshotData { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _SnapshotRequest_OneofMarshaler, _SnapshotRequest_OneofUnmarshaler, _SnapshotRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SnapshotRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*SnapshotRequest_State)(nil), (*SnapshotRequest_Data)(nil), } } -func _SnapshotRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SnapshotRequest) - // chunk - switch x := m.Chunk.(type) { - case *SnapshotRequest_State: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.State); err != nil { - return err - } - case *SnapshotRequest_Data: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Data); err != nil { - return err +type SnapshotDone struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotDone) Reset() { *m = SnapshotDone{} } +func (m *SnapshotDone) String() string { return proto.CompactTextString(m) } +func (*SnapshotDone) ProtoMessage() {} +func (*SnapshotDone) Descriptor() ([]byte, []int) { + return fileDescriptor_33e98a233b10c1b5, []int{9} +} +func (m *SnapshotDone) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotDone.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("SnapshotRequest.Chunk has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _SnapshotRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SnapshotRequest) - switch tag { - case 1: // chunk.state - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SnapshotState) - err := b.DecodeMessage(msg) - m.Chunk = &SnapshotRequest_State{msg} - return true, err - case 2: // chunk.data - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SnapshotData) - err := b.DecodeMessage(msg) - m.Chunk = &SnapshotRequest_Data{msg} - return true, err - default: - return false, nil - } -} - -func _SnapshotRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SnapshotRequest) - // chunk - switch x := m.Chunk.(type) { - case *SnapshotRequest_State: - s := proto.Size(x.State) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *SnapshotRequest_Data: - s := proto.Size(x.Data) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *SnapshotDone) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotDone.Merge(m, src) } - -type SnapshotDone struct { +func (m *SnapshotDone) XXX_Size() int { + return m.Size() +} +func (m *SnapshotDone) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotDone.DiscardUnknown(m) } -func (m *SnapshotDone) Reset() { *m = SnapshotDone{} } -func (m *SnapshotDone) String() string { return proto.CompactTextString(m) } -func (*SnapshotDone) ProtoMessage() {} -func (*SnapshotDone) Descriptor() ([]byte, []int) { return fileDescriptorEnginepb, []int{9} } +var xxx_messageInfo_SnapshotDone proto.InternalMessageInfo func init() { proto.RegisterType((*CommandRequestHeader)(nil), "enginepb.CommandRequestHeader") @@ -450,6 +673,55 @@ func init() { proto.RegisterType((*SnapshotDone)(nil), "enginepb.SnapshotDone") } +func init() { proto.RegisterFile("enginepb.proto", fileDescriptor_33e98a233b10c1b5) } + +var fileDescriptor_33e98a233b10c1b5 = []byte{ + // 681 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xcd, 0xe4, 0xaf, 0xe9, 0x75, 0x92, 0xf6, 0x9b, 0xf6, 0xa3, 0x4e, 0xa0, 0x21, 0x78, 0x81, + 0x22, 0x81, 0x52, 0x14, 0x10, 0x5d, 0x81, 0x68, 0xf9, 0x51, 0x51, 0x91, 0x40, 0x53, 0x84, 0xd8, + 0x45, 0x53, 0xfb, 0xe6, 0x47, 0xad, 0x7f, 0xb0, 0x27, 0xa8, 0x79, 0x13, 0x78, 0x05, 0x04, 0xef, + 0xc1, 0x92, 0x47, 0x40, 0xe5, 0x2d, 0x58, 0x21, 0xcf, 0x8c, 0x1d, 0x27, 0x4d, 0x24, 0xd8, 0xe5, + 0x9e, 0x7b, 0x66, 0xee, 0x39, 0xe7, 0x8e, 0x03, 0x75, 0xf4, 0x86, 0x63, 0x0f, 0x83, 0xd3, 0x6e, + 0x10, 0xfa, 0xc2, 0xa7, 0x95, 0xa4, 0x6e, 0x56, 0x5d, 0x14, 0x3c, 0xc1, 0x9b, 0x9b, 0x21, 0x1f, + 0x88, 0xbe, 0xed, 0x3a, 0x29, 0xb2, 0x25, 0x91, 0x08, 0xc3, 0x8f, 0x18, 0x26, 0xa0, 0xf5, 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xff, + 0xff, 0x9d, 0xc9, 0x50, 0xee, 0xf4, 0x05, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -458,8 +730,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Engine service - +// EngineClient is the client API for Engine service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type EngineClient interface { ApplyCommandBatch(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplyCommandBatchClient, error) ApplySnapshot(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplySnapshotClient, error) @@ -474,7 +747,7 @@ func NewEngineClient(cc *grpc.ClientConn) EngineClient { } func (c *engineClient) ApplyCommandBatch(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplyCommandBatchClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Engine_serviceDesc.Streams[0], c.cc, "/enginepb.Engine/ApplyCommandBatch", opts...) + stream, err := c.cc.NewStream(ctx, &_Engine_serviceDesc.Streams[0], "/enginepb.Engine/ApplyCommandBatch", opts...) if err != nil { return nil, err } @@ -505,7 +778,7 @@ func (x *engineApplyCommandBatchClient) Recv() (*CommandResponseBatch, error) { } func (c *engineClient) ApplySnapshot(ctx context.Context, opts ...grpc.CallOption) (Engine_ApplySnapshotClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Engine_serviceDesc.Streams[1], c.cc, "/enginepb.Engine/ApplySnapshot", opts...) + stream, err := c.cc.NewStream(ctx, &_Engine_serviceDesc.Streams[1], "/enginepb.Engine/ApplySnapshot", opts...) if err != nil { return nil, err } @@ -538,13 +811,23 @@ func (x *engineApplySnapshotClient) CloseAndRecv() (*SnapshotDone, error) { return m, nil } -// Server API for Engine service - +// EngineServer is the server API for Engine service. type EngineServer interface { ApplyCommandBatch(Engine_ApplyCommandBatchServer) error ApplySnapshot(Engine_ApplySnapshotServer) error } +// UnimplementedEngineServer can be embedded to have forward compatible implementations. +type UnimplementedEngineServer struct { +} + +func (*UnimplementedEngineServer) ApplyCommandBatch(srv Engine_ApplyCommandBatchServer) error { + return status.Errorf(codes.Unimplemented, "method ApplyCommandBatch not implemented") +} +func (*UnimplementedEngineServer) ApplySnapshot(srv Engine_ApplySnapshotServer) error { + return status.Errorf(codes.Unimplemented, "method ApplySnapshot not implemented") +} + func RegisterEngineServer(s *grpc.Server, srv EngineServer) { s.RegisterService(&_Engine_serviceDesc, srv) } @@ -624,7 +907,7 @@ var _Engine_serviceDesc = grpc.ServiceDesc{ func (m *CommandRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -632,58 +915,68 @@ func (m *CommandRequestHeader) Marshal() (dAtA []byte, err error) { } func (m *CommandRequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandRequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Index != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Index)) - } - if m.Term != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Term)) + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x32 } - if m.SyncLog { - dAtA[i] = 0x20 - i++ - if m.SyncLog { + if m.Destroy { + i-- + if m.Destroy { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Destroy { + i-- dAtA[i] = 0x28 - i++ - if m.Destroy { + } + if m.SyncLog { + i-- + if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if len(m.Context) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if m.Term != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.Index != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x10 + } + if m.RegionId != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CommandRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -691,59 +984,76 @@ func (m *CommandRequest) Marshal() (dAtA []byte, err error) { } func (m *CommandRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Header.Size())) - n1, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0x12 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.AdminResponse != nil { + { + size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } if m.AdminRequest != nil { + { + size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.AdminRequest.Size())) - n2, err := m.AdminRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i += n2 } - if m.AdminResponse != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.AdminResponse.Size())) - n3, err := m.AdminResponse.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommandRequestBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -751,29 +1061,40 @@ func (m *CommandRequestBatch) Marshal() (dAtA []byte, err error) { } func (m *CommandRequestBatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandRequestBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *CommandResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -781,32 +1102,41 @@ func (m *CommandResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *CommandResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Destroyed { - dAtA[i] = 0x10 - i++ + i-- if m.Destroyed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CommandResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -814,42 +1144,55 @@ func (m *CommandResponse) Marshal() (dAtA []byte, err error) { } func (m *CommandResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Header.Size())) - n4, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AppliedTerm != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.AppliedTerm)) + i-- + dAtA[i] = 0x18 } if m.ApplyState != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.ApplyState.Size())) - n5, err := m.ApplyState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - if m.AppliedTerm != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.AppliedTerm)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommandResponseBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -857,29 +1200,40 @@ func (m *CommandResponseBatch) Marshal() (dAtA []byte, err error) { } func (m *CommandResponseBatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommandResponseBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Responses) > 0 { - for _, msg := range m.Responses { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -887,47 +1241,62 @@ func (m *SnapshotState) Marshal() (dAtA []byte, err error) { } func (m *SnapshotState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Region.Size())) - n6, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ApplyState != nil { + { + size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } if m.Peer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Peer.Size())) - n7, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x12 } - if m.ApplyState != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.ApplyState.Size())) - n8, err := m.ApplyState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -935,40 +1304,52 @@ func (m *SnapshotData) Marshal() (dAtA []byte, err error) { } func (m *SnapshotData) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if m.Checksum != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Data) > 0 { - for _, msg := range m.Data { - dAtA[i] = 0x1a - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - return i, nil + if m.Checksum != 0 { + i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) + i-- + dAtA[i] = 0x10 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -976,52 +1357,77 @@ func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { } func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Chunk != nil { - nn9, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Chunk.Size() + i -= size + if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn9 } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotRequest_State) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotRequest_State) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.State != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.State.Size())) - n10, err := m.State.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotRequest_Data) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotRequest_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Data != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEnginepb(dAtA, i, uint64(m.Data.Size())) - n11, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEnginepb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotDone) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1029,23 +1435,37 @@ func (m *SnapshotDone) Marshal() (dAtA []byte, err error) { } func (m *SnapshotDone) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotDone) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func encodeVarintEnginepb(dAtA []byte, offset int, v uint64) int { + offset -= sovEnginepb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *CommandRequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1067,10 +1487,16 @@ func (m *CommandRequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovEnginepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommandRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1091,10 +1517,16 @@ func (m *CommandRequest) Size() (n int) { l = m.AdminResponse.Size() n += 1 + l + sovEnginepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommandRequestBatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Requests) > 0 { @@ -1103,10 +1535,16 @@ func (m *CommandRequestBatch) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommandResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1115,10 +1553,16 @@ func (m *CommandResponseHeader) Size() (n int) { if m.Destroyed { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommandResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1132,10 +1576,16 @@ func (m *CommandResponse) Size() (n int) { if m.AppliedTerm != 0 { n += 1 + sovEnginepb(uint64(m.AppliedTerm)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommandResponseBatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Responses) > 0 { @@ -1144,10 +1594,16 @@ func (m *CommandResponseBatch) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { @@ -1162,10 +1618,16 @@ func (m *SnapshotState) Size() (n int) { l = m.ApplyState.Size() n += 1 + l + sovEnginepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotData) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -1181,19 +1643,31 @@ func (m *SnapshotData) Size() (n int) { n += 1 + l + sovEnginepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotRequest_State) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.State != nil { @@ -1203,6 +1677,9 @@ func (m *SnapshotRequest_State) Size() (n int) { return n } func (m *SnapshotRequest_Data) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Data != nil { @@ -1212,20 +1689,19 @@ func (m *SnapshotRequest_Data) Size() (n int) { return n } func (m *SnapshotDone) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovEnginepb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozEnginepb(x uint64) (n int) { return sovEnginepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1245,7 +1721,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1273,7 +1749,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1292,7 +1768,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1311,7 +1787,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1330,7 +1806,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1350,7 +1826,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1370,7 +1846,7 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1379,6 +1855,9 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1393,12 +1872,13 @@ func (m *CommandRequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1423,7 +1903,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1451,7 +1931,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1460,6 +1940,9 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1484,7 +1967,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1493,6 +1976,9 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1515,7 +2001,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1524,6 +2010,9 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1548,7 +2037,7 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1557,6 +2046,9 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1573,12 +2065,13 @@ func (m *CommandRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1603,7 +2096,7 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1631,7 +2124,7 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1640,6 +2133,9 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1654,12 +2150,13 @@ func (m *CommandRequestBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1684,7 +2181,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1712,7 +2209,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1731,7 +2228,7 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1743,12 +2240,13 @@ func (m *CommandResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1773,7 +2271,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1801,7 +2299,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1810,6 +2308,9 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1834,7 +2335,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1843,6 +2344,9 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1867,7 +2371,7 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedTerm |= (uint64(b) & 0x7F) << shift + m.AppliedTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1878,12 +2382,13 @@ func (m *CommandResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1908,7 +2413,7 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1936,7 +2441,7 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1945,6 +2450,9 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1959,12 +2467,13 @@ func (m *CommandResponseBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1989,7 +2498,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2017,7 +2526,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2026,6 +2535,9 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2050,7 +2562,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2059,6 +2571,9 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2083,7 +2598,7 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2092,6 +2607,9 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2108,12 +2626,13 @@ func (m *SnapshotState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2138,7 +2657,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2166,7 +2685,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2176,6 +2695,9 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2195,7 +2717,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= (uint32(b) & 0x7F) << shift + m.Checksum |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2214,7 +2736,7 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2223,6 +2745,9 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2237,12 +2762,13 @@ func (m *SnapshotData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2267,7 +2793,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2295,7 +2821,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2304,6 +2830,9 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2327,7 +2856,7 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2336,6 +2865,9 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEnginepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEnginepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2351,12 +2883,13 @@ func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2381,7 +2914,7 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2401,12 +2934,13 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEnginepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2419,6 +2953,7 @@ func (m *SnapshotDone) Unmarshal(dAtA []byte) error { func skipEnginepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2450,10 +2985,8 @@ func skipEnginepb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2470,102 +3003,34 @@ func skipEnginepb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEnginepb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEnginepb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipEnginepb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEnginepb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthEnginepb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthEnginepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEnginepb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthEnginepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEnginepb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEnginepb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("enginepb.proto", fileDescriptorEnginepb) } - -var fileDescriptorEnginepb = []byte{ - // 681 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xcd, 0xe4, 0xaf, 0xe9, 0x75, 0x92, 0xf6, 0x9b, 0xf6, 0xa3, 0x4e, 0xa0, 0x21, 0x78, 0x81, - 0x22, 0x81, 0x52, 0x14, 0x10, 0x5d, 0x81, 0x68, 0xf9, 0x51, 0x51, 0x91, 0x40, 0x53, 0x84, 0xd8, - 0x45, 0x53, 0xfb, 0xe6, 0x47, 0xad, 0x7f, 0xb0, 0x27, 0xa8, 0x79, 0x13, 0x78, 0x05, 0x04, 0xef, - 0xc1, 0x92, 0x47, 0x40, 0xe5, 0x2d, 0x58, 0x21, 0xcf, 0x8c, 0x1d, 0x27, 0x4d, 0x24, 0xd8, 0xe5, - 0x9e, 0x7b, 0x66, 0xee, 0x39, 0xe7, 0x8e, 0x03, 0x75, 0xf4, 0x86, 0x63, 0x0f, 0x83, 0xd3, 0x6e, - 0x10, 0xfa, 0xc2, 0xa7, 0x95, 0xa4, 0x6e, 0x56, 0x5d, 0x14, 0x3c, 0xc1, 0x9b, 0x9b, 0x21, 0x1f, - 0x88, 0xbe, 0xed, 0x3a, 0x29, 0xb2, 0x25, 0x91, 0x08, 0xc3, 0x8f, 0x18, 0x26, 0xa0, 0xf5, 0x95, - 0xc0, 0xf6, 0x53, 0xdf, 0x75, 0xb9, 0xe7, 0x30, 0xfc, 0x30, 0xc1, 0x48, 0x1c, 0x21, 0x77, 0x30, - 0xa4, 0xd7, 0x61, 0x3d, 0xc4, 0xe1, 0xd8, 0xf7, 0xfa, 0x63, 0xc7, 0x24, 0x6d, 0xd2, 0x29, 0xb2, - 0x8a, 0x02, 0x5e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0xcd, - 0x82, 0xcc, 0x62, 0x67, 0x61, 0xe8, 0x31, 0x4e, 0xdf, 0xf1, 0xf3, 0x09, 0x32, 0x49, 0xb2, 0xa6, - 0xb0, 0x91, 0x0c, 0x4a, 0xde, 0xfe, 0x1e, 0x94, 0x94, 0x6a, 0x15, 0xc2, 0xce, 0x2c, 0xcc, 0xb9, - 0xb4, 0x8e, 0x72, 0x4c, 0xf1, 0xe8, 0x5d, 0x3d, 0x50, 0xc5, 0x71, 0xed, 0x2a, 0x3f, 0xb6, 0x70, - 0x94, 0x53, 0x13, 0x0f, 0xd7, 0xa0, 0x64, 0x8f, 0x26, 0xde, 0x99, 0x55, 0xcf, 0x78, 0xf4, 0x3d, - 0xec, 0x7d, 0x21, 0x50, 0x7e, 0x2e, 0x8f, 0xd2, 0xf7, 0xf0, 0x9f, 0x0c, 0x46, 0x6f, 0x4f, 0x2d, - 0x7a, 0x77, 0xd5, 0x87, 0x22, 0xdb, 0xcd, 0xd6, 0xca, 0xa5, 0xcb, 0xbe, 0x95, 0xeb, 0x90, 0x7b, - 0x84, 0xbe, 0x80, 0x9a, 0x8a, 0x5c, 0x4f, 0xa6, 0x8d, 0xab, 0x72, 0xf5, 0xb5, 0xcd, 0x65, 0x4e, - 0x7c, 0x0f, 0xe3, 0x9b, 0x0e, 0x37, 0xbf, 0x5f, 0xb6, 0xc8, 0x8f, 0xcb, 0x16, 0xf9, 0x79, 0xd9, - 0x22, 0x9f, 0x7e, 0xb5, 0x72, 0xa7, 0x65, 0xf9, 0x1f, 0x7d, 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x9d, 0xc9, 0x50, 0xee, 0xf4, 0x05, 0x00, 0x00, -} diff --git a/pkg/eraftpb/eraftpb.pb.go b/pkg/eraftpb/eraftpb.pb.go index 0fbd39a35..7ee953267 100644 --- a/pkg/eraftpb/eraftpb.pb.go +++ b/pkg/eraftpb/eraftpb.pb.go @@ -1,31 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: eraftpb.proto -/* -Package eraftpb is a generated protocol buffer package. - -It is generated from these files: - - eraftpb.proto - -It has these top-level messages: - - Entry - SnapshotMetadata - Snapshot - Message - HardState - ConfState - ConfChange - ConfChangeSingle - ConfChangeV2 -*/ package eraftpb import ( "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -39,7 +21,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type EntryType int32 @@ -54,6 +36,7 @@ var EntryType_name = map[int32]string{ 1: "EntryConfChange", 2: "EntryConfChangeV2", } + var EntryType_value = map[string]int32{ "EntryNormal": 0, "EntryConfChange": 1, @@ -63,7 +46,10 @@ var EntryType_value = map[string]int32{ func (x EntryType) String() string { return proto.EnumName(EntryType_name, int32(x)) } -func (EntryType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{0} } + +func (EntryType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{0} +} type MessageType int32 @@ -110,6 +96,7 @@ var MessageType_name = map[int32]string{ 17: "MsgRequestPreVote", 18: "MsgRequestPreVoteResponse", } + var MessageType_value = map[string]int32{ "MsgHup": 0, "MsgBeat": 1, @@ -135,7 +122,10 @@ var MessageType_value = map[string]int32{ func (x MessageType) String() string { return proto.EnumName(MessageType_name, int32(x)) } -func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{1} } + +func (MessageType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{1} +} type ConfChangeTransition int32 @@ -162,6 +152,7 @@ var ConfChangeTransition_name = map[int32]string{ 1: "Implicit", 2: "Explicit", } + var ConfChangeTransition_value = map[string]int32{ "Auto": 0, "Implicit": 1, @@ -171,7 +162,10 @@ var ConfChangeTransition_value = map[string]int32{ func (x ConfChangeTransition) String() string { return proto.EnumName(ConfChangeTransition_name, int32(x)) } -func (ConfChangeTransition) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{2} } + +func (ConfChangeTransition) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{2} +} type ConfChangeType int32 @@ -186,6 +180,7 @@ var ConfChangeType_name = map[int32]string{ 1: "RemoveNode", 2: "AddLearnerNode", } + var ConfChangeType_value = map[string]int32{ "AddNode": 0, "RemoveNode": 1, @@ -195,7 +190,10 @@ var ConfChangeType_value = map[string]int32{ func (x ConfChangeType) String() string { return proto.EnumName(ConfChangeType_name, int32(x)) } -func (ConfChangeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{3} } + +func (ConfChangeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{3} +} // The entry is a type of change that needs to be applied. It contains two data fields. // While the fields are built into the model; their usage is determined by the entry_type. @@ -215,13 +213,44 @@ type Entry struct { Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` // Deprecated! It is kept for backward compatibility. // TODO: remove it in the next major release. - SyncLog bool `protobuf:"varint,5,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` + SyncLog bool `protobuf:"varint,5,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Entry) Reset() { *m = Entry{} } +func (m *Entry) String() string { return proto.CompactTextString(m) } +func (*Entry) ProtoMessage() {} +func (*Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{0} +} +func (m *Entry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Entry.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 *Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Entry.Merge(m, src) +} +func (m *Entry) XXX_Size() int { + return m.Size() +} +func (m *Entry) XXX_DiscardUnknown() { + xxx_messageInfo_Entry.DiscardUnknown(m) } -func (m *Entry) Reset() { *m = Entry{} } -func (m *Entry) String() string { return proto.CompactTextString(m) } -func (*Entry) ProtoMessage() {} -func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{0} } +var xxx_messageInfo_Entry proto.InternalMessageInfo func (m *Entry) GetEntryType() EntryType { if m != nil { @@ -267,17 +296,48 @@ func (m *Entry) GetSyncLog() bool { type SnapshotMetadata struct { // The current `ConfState`. - ConfState *ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState" json:"conf_state,omitempty"` + ConfState *ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState,proto3" json:"conf_state,omitempty"` // The applied index. Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // The term of the applied index. - Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` + Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotMetadata) Reset() { *m = SnapshotMetadata{} } +func (m *SnapshotMetadata) String() string { return proto.CompactTextString(m) } +func (*SnapshotMetadata) ProtoMessage() {} +func (*SnapshotMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{1} +} +func (m *SnapshotMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotMetadata.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 *SnapshotMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotMetadata.Merge(m, src) +} +func (m *SnapshotMetadata) XXX_Size() int { + return m.Size() +} +func (m *SnapshotMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotMetadata.DiscardUnknown(m) } -func (m *SnapshotMetadata) Reset() { *m = SnapshotMetadata{} } -func (m *SnapshotMetadata) String() string { return proto.CompactTextString(m) } -func (*SnapshotMetadata) ProtoMessage() {} -func (*SnapshotMetadata) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{1} } +var xxx_messageInfo_SnapshotMetadata proto.InternalMessageInfo func (m *SnapshotMetadata) GetConfState() *ConfState { if m != nil { @@ -301,14 +361,45 @@ func (m *SnapshotMetadata) GetTerm() uint64 { } type Snapshot struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Metadata *SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Metadata *SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Snapshot) Reset() { *m = Snapshot{} } +func (m *Snapshot) String() string { return proto.CompactTextString(m) } +func (*Snapshot) ProtoMessage() {} +func (*Snapshot) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{2} +} +func (m *Snapshot) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Snapshot.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 *Snapshot) XXX_Merge(src proto.Message) { + xxx_messageInfo_Snapshot.Merge(m, src) +} +func (m *Snapshot) XXX_Size() int { + return m.Size() +} +func (m *Snapshot) XXX_DiscardUnknown() { + xxx_messageInfo_Snapshot.DiscardUnknown(m) } -func (m *Snapshot) Reset() { *m = Snapshot{} } -func (m *Snapshot) String() string { return proto.CompactTextString(m) } -func (*Snapshot) ProtoMessage() {} -func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{2} } +var xxx_messageInfo_Snapshot proto.InternalMessageInfo func (m *Snapshot) GetData() []byte { if m != nil { @@ -331,9 +422,9 @@ type Message struct { Term uint64 `protobuf:"varint,4,opt,name=term,proto3" json:"term,omitempty"` LogTerm uint64 `protobuf:"varint,5,opt,name=log_term,json=logTerm,proto3" json:"log_term,omitempty"` Index uint64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` - Entries []*Entry `protobuf:"bytes,7,rep,name=entries" json:"entries,omitempty"` + Entries []*Entry `protobuf:"bytes,7,rep,name=entries,proto3" json:"entries,omitempty"` Commit uint64 `protobuf:"varint,8,opt,name=commit,proto3" json:"commit,omitempty"` - Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot" json:"snapshot,omitempty"` + Snapshot *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` RequestSnapshot uint64 `protobuf:"varint,13,opt,name=request_snapshot,json=requestSnapshot,proto3" json:"request_snapshot,omitempty"` Reject bool `protobuf:"varint,10,opt,name=reject,proto3" json:"reject,omitempty"` RejectHint uint64 `protobuf:"varint,11,opt,name=reject_hint,json=rejectHint,proto3" json:"reject_hint,omitempty"` @@ -344,13 +435,44 @@ type Message struct { // set if the priority is larger than 0. This change is not a fully // compatible change, but it makes minimal impact that only new priority // is not recognized by the old nodes during rolling update. - Priority int64 `protobuf:"varint,15,opt,name=priority,proto3" json:"priority,omitempty"` + Priority int64 `protobuf:"varint,15,opt,name=priority,proto3" json:"priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Message) Reset() { *m = Message{} } +func (m *Message) String() string { return proto.CompactTextString(m) } +func (*Message) ProtoMessage() {} +func (*Message) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{3} +} +func (m *Message) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Message.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 *Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_Message.Merge(m, src) +} +func (m *Message) XXX_Size() int { + return m.Size() +} +func (m *Message) XXX_DiscardUnknown() { + xxx_messageInfo_Message.DiscardUnknown(m) } -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{3} } +var xxx_messageInfo_Message proto.InternalMessageInfo func (m *Message) GetMsgType() MessageType { if m != nil { @@ -458,15 +580,46 @@ func (m *Message) GetPriority() int64 { } type HardState struct { - Term uint64 `protobuf:"varint,1,opt,name=term,proto3" json:"term,omitempty"` - Vote uint64 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"` - Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` + Term uint64 `protobuf:"varint,1,opt,name=term,proto3" json:"term,omitempty"` + Vote uint64 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"` + Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HardState) Reset() { *m = HardState{} } +func (m *HardState) String() string { return proto.CompactTextString(m) } +func (*HardState) ProtoMessage() {} +func (*HardState) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{4} +} +func (m *HardState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HardState.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 *HardState) XXX_Merge(src proto.Message) { + xxx_messageInfo_HardState.Merge(m, src) +} +func (m *HardState) XXX_Size() int { + return m.Size() +} +func (m *HardState) XXX_DiscardUnknown() { + xxx_messageInfo_HardState.DiscardUnknown(m) } -func (m *HardState) Reset() { *m = HardState{} } -func (m *HardState) String() string { return proto.CompactTextString(m) } -func (*HardState) ProtoMessage() {} -func (*HardState) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{4} } +var xxx_messageInfo_HardState proto.InternalMessageInfo func (m *HardState) GetTerm() uint64 { if m != nil { @@ -490,23 +643,54 @@ func (m *HardState) GetCommit() uint64 { } type ConfState struct { - Voters []uint64 `protobuf:"varint,1,rep,packed,name=voters" json:"voters,omitempty"` - Learners []uint64 `protobuf:"varint,2,rep,packed,name=learners" json:"learners,omitempty"` + Voters []uint64 `protobuf:"varint,1,rep,packed,name=voters,proto3" json:"voters,omitempty"` + Learners []uint64 `protobuf:"varint,2,rep,packed,name=learners,proto3" json:"learners,omitempty"` // The voters in the outgoing config. If not empty the node is in joint consensus. - VotersOutgoing []uint64 `protobuf:"varint,3,rep,packed,name=voters_outgoing,json=votersOutgoing" json:"voters_outgoing,omitempty"` + VotersOutgoing []uint64 `protobuf:"varint,3,rep,packed,name=voters_outgoing,json=votersOutgoing,proto3" json:"voters_outgoing,omitempty"` // The nodes that will become learners when the outgoing config is removed. // These nodes are necessarily currently in nodes_joint (or they would have // been added to the incoming config right away). - LearnersNext []uint64 `protobuf:"varint,4,rep,packed,name=learners_next,json=learnersNext" json:"learners_next,omitempty"` + LearnersNext []uint64 `protobuf:"varint,4,rep,packed,name=learners_next,json=learnersNext,proto3" json:"learners_next,omitempty"` // If set, the config is joint and Raft will automatically transition into // the final config (i.e. remove the outgoing config) when this is safe. - AutoLeave bool `protobuf:"varint,5,opt,name=auto_leave,json=autoLeave,proto3" json:"auto_leave,omitempty"` + AutoLeave bool `protobuf:"varint,5,opt,name=auto_leave,json=autoLeave,proto3" json:"auto_leave,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfState) Reset() { *m = ConfState{} } +func (m *ConfState) String() string { return proto.CompactTextString(m) } +func (*ConfState) ProtoMessage() {} +func (*ConfState) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{5} +} +func (m *ConfState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfState.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 *ConfState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfState.Merge(m, src) +} +func (m *ConfState) XXX_Size() int { + return m.Size() +} +func (m *ConfState) XXX_DiscardUnknown() { + xxx_messageInfo_ConfState.DiscardUnknown(m) } -func (m *ConfState) Reset() { *m = ConfState{} } -func (m *ConfState) String() string { return proto.CompactTextString(m) } -func (*ConfState) ProtoMessage() {} -func (*ConfState) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{5} } +var xxx_messageInfo_ConfState proto.InternalMessageInfo func (m *ConfState) GetVoters() []uint64 { if m != nil { @@ -544,16 +728,47 @@ func (m *ConfState) GetAutoLeave() bool { } type ConfChange struct { - ChangeType ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - NodeId uint64 `protobuf:"varint,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - Context []byte `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + ChangeType ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + NodeId uint64 `protobuf:"varint,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Context []byte `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfChange) Reset() { *m = ConfChange{} } +func (m *ConfChange) String() string { return proto.CompactTextString(m) } +func (*ConfChange) ProtoMessage() {} +func (*ConfChange) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{6} +} +func (m *ConfChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfChange.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 *ConfChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChange.Merge(m, src) +} +func (m *ConfChange) XXX_Size() int { + return m.Size() +} +func (m *ConfChange) XXX_DiscardUnknown() { + xxx_messageInfo_ConfChange.DiscardUnknown(m) } -func (m *ConfChange) Reset() { *m = ConfChange{} } -func (m *ConfChange) String() string { return proto.CompactTextString(m) } -func (*ConfChange) ProtoMessage() {} -func (*ConfChange) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{6} } +var xxx_messageInfo_ConfChange proto.InternalMessageInfo func (m *ConfChange) GetChangeType() ConfChangeType { if m != nil { @@ -586,14 +801,45 @@ func (m *ConfChange) GetId() uint64 { // ConfChangeSingle is an individual configuration change operation. Multiple // such operations can be carried out atomically via a ConfChangeV2. type ConfChangeSingle struct { - ChangeType ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + ChangeType ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfChangeSingle) Reset() { *m = ConfChangeSingle{} } +func (m *ConfChangeSingle) String() string { return proto.CompactTextString(m) } +func (*ConfChangeSingle) ProtoMessage() {} +func (*ConfChangeSingle) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{7} +} +func (m *ConfChangeSingle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfChangeSingle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfChangeSingle.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 *ConfChangeSingle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChangeSingle.Merge(m, src) +} +func (m *ConfChangeSingle) XXX_Size() int { + return m.Size() +} +func (m *ConfChangeSingle) XXX_DiscardUnknown() { + xxx_messageInfo_ConfChangeSingle.DiscardUnknown(m) } -func (m *ConfChangeSingle) Reset() { *m = ConfChangeSingle{} } -func (m *ConfChangeSingle) String() string { return proto.CompactTextString(m) } -func (*ConfChangeSingle) ProtoMessage() {} -func (*ConfChangeSingle) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{7} } +var xxx_messageInfo_ConfChangeSingle proto.InternalMessageInfo func (m *ConfChangeSingle) GetChangeType() ConfChangeType { if m != nil { @@ -642,15 +888,46 @@ func (m *ConfChangeSingle) GetNodeId() uint64 { // // [1]: https://github.com/ongardie/dissertation/blob/master/online-trim.pdf type ConfChangeV2 struct { - Transition ConfChangeTransition `protobuf:"varint,1,opt,name=transition,proto3,enum=eraftpb.ConfChangeTransition" json:"transition,omitempty"` - Changes []*ConfChangeSingle `protobuf:"bytes,2,rep,name=changes" json:"changes,omitempty"` - Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + Transition ConfChangeTransition `protobuf:"varint,1,opt,name=transition,proto3,enum=eraftpb.ConfChangeTransition" json:"transition,omitempty"` + Changes []*ConfChangeSingle `protobuf:"bytes,2,rep,name=changes,proto3" json:"changes,omitempty"` + Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConfChangeV2) Reset() { *m = ConfChangeV2{} } +func (m *ConfChangeV2) String() string { return proto.CompactTextString(m) } +func (*ConfChangeV2) ProtoMessage() {} +func (*ConfChangeV2) Descriptor() ([]byte, []int) { + return fileDescriptor_acd9f78e51523dd8, []int{8} +} +func (m *ConfChangeV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConfChangeV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConfChangeV2.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 *ConfChangeV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChangeV2.Merge(m, src) +} +func (m *ConfChangeV2) XXX_Size() int { + return m.Size() +} +func (m *ConfChangeV2) XXX_DiscardUnknown() { + xxx_messageInfo_ConfChangeV2.DiscardUnknown(m) } -func (m *ConfChangeV2) Reset() { *m = ConfChangeV2{} } -func (m *ConfChangeV2) String() string { return proto.CompactTextString(m) } -func (*ConfChangeV2) ProtoMessage() {} -func (*ConfChangeV2) Descriptor() ([]byte, []int) { return fileDescriptorEraftpb, []int{8} } +var xxx_messageInfo_ConfChangeV2 proto.InternalMessageInfo func (m *ConfChangeV2) GetTransition() ConfChangeTransition { if m != nil { @@ -674,6 +951,10 @@ func (m *ConfChangeV2) GetContext() []byte { } func init() { + proto.RegisterEnum("eraftpb.EntryType", EntryType_name, EntryType_value) + proto.RegisterEnum("eraftpb.MessageType", MessageType_name, MessageType_value) + proto.RegisterEnum("eraftpb.ConfChangeTransition", ConfChangeTransition_name, ConfChangeTransition_value) + proto.RegisterEnum("eraftpb.ConfChangeType", ConfChangeType_name, ConfChangeType_value) proto.RegisterType((*Entry)(nil), "eraftpb.Entry") proto.RegisterType((*SnapshotMetadata)(nil), "eraftpb.SnapshotMetadata") proto.RegisterType((*Snapshot)(nil), "eraftpb.Snapshot") @@ -683,15 +964,83 @@ func init() { proto.RegisterType((*ConfChange)(nil), "eraftpb.ConfChange") proto.RegisterType((*ConfChangeSingle)(nil), "eraftpb.ConfChangeSingle") proto.RegisterType((*ConfChangeV2)(nil), "eraftpb.ConfChangeV2") - proto.RegisterEnum("eraftpb.EntryType", EntryType_name, EntryType_value) - proto.RegisterEnum("eraftpb.MessageType", MessageType_name, MessageType_value) - proto.RegisterEnum("eraftpb.ConfChangeTransition", ConfChangeTransition_name, ConfChangeTransition_value) - proto.RegisterEnum("eraftpb.ConfChangeType", ConfChangeType_name, ConfChangeType_value) } + +func init() { proto.RegisterFile("eraftpb.proto", fileDescriptor_acd9f78e51523dd8) } + +var fileDescriptor_acd9f78e51523dd8 = []byte{ + // 1035 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xe4, 0x44, + 0x10, 0x8e, 0x3d, 0x93, 0xb1, 0xa7, 0xe6, 0xaf, 0xd3, 0x1b, 0xb2, 0xce, 0x4a, 0x09, 0xa3, 0xe1, + 0xc0, 0x10, 0x89, 0x5d, 0x6d, 0x56, 0x48, 0x1c, 0xe0, 0x90, 0x8d, 0x56, 0x4a, 0x44, 0x26, 0x04, + 0x27, 0x9b, 0xab, 0xe5, 0xd8, 0x15, 0xc7, 0x30, 0x76, 0x9b, 0xee, 0x9e, 0x90, 0x3c, 0x02, 0x12, + 0x0f, 0xc0, 0x81, 0x47, 0x80, 0xf7, 0xe0, 0xc8, 0x1b, 0x80, 0xc2, 0x8b, 0xa0, 0x6e, 0xb7, 0x3d, + 0x9e, 0x64, 0x4f, 0xdc, 0xaa, 0xbe, 0xfe, 0xaa, 0xfa, 0xab, 0x1f, 0xb7, 0x0c, 0x03, 0xe4, 0xe1, + 0xb5, 0x2c, 0xae, 0x5e, 0x16, 0x9c, 0x49, 0x46, 0x1d, 0xe3, 0x4e, 0xfe, 0xb0, 0x60, 0xfd, 0x5d, + 0x2e, 0xf9, 0x3d, 0x7d, 0x0d, 0x80, 0xca, 0x08, 0xe4, 0x7d, 0x81, 0x9e, 0x35, 0xb6, 0xa6, 0xc3, + 0x7d, 0xfa, 0xb2, 0x0a, 0xd3, 0x9c, 0x8b, 0xfb, 0x02, 0xfd, 0x2e, 0x56, 0x26, 0xa5, 0xd0, 0x96, + 0xc8, 0x33, 0xcf, 0x1e, 0x5b, 0xd3, 0xb6, 0xaf, 0x6d, 0xba, 0x09, 0xeb, 0x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5d, + 0x69, 0xad, 0x74, 0x65, 0xef, 0x08, 0xba, 0xf5, 0x13, 0x4e, 0x47, 0xd0, 0xd3, 0xce, 0x29, 0xe3, + 0x59, 0x38, 0x27, 0x6b, 0xf4, 0x19, 0x8c, 0x34, 0xb0, 0xcc, 0x4c, 0x2c, 0xfa, 0x11, 0x6c, 0x3c, + 0x02, 0x2f, 0xf7, 0x89, 0xbd, 0xf7, 0x4b, 0x0b, 0x7a, 0x8d, 0x57, 0x89, 0x02, 0x74, 0x66, 0x22, + 0x39, 0x5a, 0x14, 0x64, 0x8d, 0xf6, 0xc0, 0x99, 0x89, 0xe4, 0x2d, 0x86, 0x92, 0x58, 0x74, 0x08, + 0x30, 0x13, 0xc9, 0x19, 0x67, 0x05, 0x13, 0x48, 0x6c, 0x3a, 0x80, 0xee, 0x4c, 0x24, 0x07, 0x45, + 0x81, 0x79, 0x4c, 0x5a, 0x2a, 0x7d, 0xed, 0xfa, 0x28, 0x0a, 0x96, 0x0b, 0x24, 0x6d, 0x4a, 0x61, + 0x38, 0x13, 0x89, 0x5f, 0x7e, 0xec, 0x97, 0x4c, 0x22, 0x59, 0xa7, 0x2f, 0x60, 0x6b, 0x15, 0xab, + 0xf9, 0x1d, 0x55, 0xcb, 0x4c, 0x24, 0xd5, 0xab, 0x40, 0x1c, 0x4a, 0xa0, 0xaf, 0xf4, 0x60, 0xc8, + 0xe5, 0x95, 0x12, 0xe2, 0x52, 0x0f, 0x36, 0x9b, 0x48, 0x1d, 0xdc, 0x35, 0x97, 0xbd, 0xcf, 0x39, + 0x86, 0xd1, 0x4d, 0x78, 0x35, 0x47, 0x02, 0x74, 0x03, 0x06, 0x26, 0xa1, 0xfa, 0xd8, 0x16, 0x82, + 0xf4, 0x0c, 0xed, 0xf0, 0x06, 0xa3, 0x1f, 0xbe, 0x5b, 0x30, 0xbe, 0xc8, 0x48, 0xdf, 0xc8, 0xd7, + 0xc3, 0xbb, 0x46, 0x7e, 0x82, 0x61, 0x8c, 0x9c, 0x0c, 0x4c, 0xf4, 0x45, 0x9a, 0x21, 0x5b, 0xc8, + 0x53, 0xf6, 0x13, 0x19, 0x1a, 0x41, 0x3e, 0x86, 0xf1, 0xb1, 0x7a, 0x54, 0xc9, 0x88, 0x6e, 0x02, + 0x69, 0x22, 0x4a, 0x10, 0x21, 0x26, 0xa3, 0xa9, 0xf2, 0x8c, 0xa3, 0x2e, 0x7e, 0x83, 0xee, 0xc0, + 0xf6, 0x13, 0xb8, 0x2e, 0x81, 0xee, 0x7d, 0x05, 0x9b, 0x1f, 0xda, 0x25, 0xea, 0x42, 0xfb, 0x60, + 0x21, 0x19, 0x59, 0xa3, 0x7d, 0x70, 0x8f, 0xb3, 0x62, 0x9e, 0x46, 0xa9, 0x9a, 0x4a, 0x1f, 0xdc, + 0x77, 0x77, 0xc6, 0xb3, 0xf7, 0x0e, 0x60, 0xb8, 0xba, 0xec, 0x6a, 0x84, 0x07, 0x71, 0x7c, 0xca, + 0x62, 0x24, 0x6b, 0x6a, 0x84, 0x3e, 0x66, 0xec, 0x16, 0xb5, 0x6f, 0xa9, 0x46, 0x1c, 0xc4, 0xf1, + 0x49, 0xf9, 0x12, 0x68, 0xcc, 0x7e, 0x4b, 0xfe, 0x7c, 0xd8, 0xb5, 0xfe, 0x7a, 0xd8, 0xb5, 0xfe, + 0x79, 0xd8, 0xb5, 0x7e, 0xfd, 0x77, 0x77, 0xed, 0xaa, 0xa3, 0xff, 0x31, 0xde, 0xfc, 0x17, 0x00, + 0x00, 0xff, 0xff, 0x07, 0x70, 0x92, 0xd9, 0x74, 0x08, 0x00, 0x00, +} + func (m *Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -699,54 +1048,65 @@ func (m *Entry) Marshal() (dAtA []byte, err error) { } func (m *Entry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Entry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.EntryType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.EntryType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Term != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - } - if m.Index != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) - } - if len(m.Data) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x32 } if m.SyncLog { - dAtA[i] = 0x28 - i++ + i-- if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if len(m.Context) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x22 + } + if m.Index != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.Term != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x10 + } + if m.EntryType != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.EntryType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *SnapshotMetadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -754,37 +1114,48 @@ func (m *SnapshotMetadata) Marshal() (dAtA []byte, err error) { } func (m *SnapshotMetadata) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ConfState != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.ConfState.Size())) - n1, err := m.ConfState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Term != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x18 } if m.Index != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x10 } - if m.Term != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + if m.ConfState != nil { + { + size, err := m.ConfState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEraftpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Snapshot) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -792,33 +1163,45 @@ func (m *Snapshot) Marshal() (dAtA []byte, err error) { } func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Data) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Metadata != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Metadata.Size())) - n2, err := m.Metadata.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEraftpb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x12 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Message) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -826,110 +1209,124 @@ func (m *Message) Marshal() (dAtA []byte, err error) { } func (m *Message) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MsgType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.MsgType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.To != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.To)) + if m.Priority != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Priority)) + i-- + dAtA[i] = 0x78 } - if m.From != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.From)) + if m.DeprecatedPriority != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.DeprecatedPriority)) + i-- + dAtA[i] = 0x70 } - if m.Term != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + if m.RequestSnapshot != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.RequestSnapshot)) + i-- + dAtA[i] = 0x68 } - if m.LogTerm != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.LogTerm)) + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x62 } - if m.Index != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) + if m.RejectHint != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.RejectHint)) + i-- + dAtA[i] = 0x58 } - if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0x3a - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Reject { + i-- + if m.Reject { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.Snapshot != nil { + { + size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintEraftpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x4a } if m.Commit != 0 { - dAtA[i] = 0x40 - i++ i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x40 } - if m.Snapshot != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Snapshot.Size())) - n3, err := m.Snapshot.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Entries) > 0 { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEraftpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a } - i += n3 } - if m.Reject { - dAtA[i] = 0x50 - i++ - if m.Reject { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.Index != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x30 } - if m.RejectHint != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.RejectHint)) + if m.LogTerm != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.LogTerm)) + i-- + dAtA[i] = 0x28 } - if len(m.Context) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if m.Term != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x20 } - if m.RequestSnapshot != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.RequestSnapshot)) + if m.From != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.From)) + i-- + dAtA[i] = 0x18 } - if m.DeprecatedPriority != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.DeprecatedPriority)) + if m.To != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.To)) + i-- + dAtA[i] = 0x10 } - if m.Priority != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Priority)) + if m.MsgType != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.MsgType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *HardState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -937,32 +1334,41 @@ func (m *HardState) Marshal() (dAtA []byte, err error) { } func (m *HardState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HardState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Term != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Commit != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x18 } if m.Vote != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintEraftpb(dAtA, i, uint64(m.Vote)) + i-- + dAtA[i] = 0x10 } - if m.Commit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Commit)) + if m.Term != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ConfState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -970,14 +1376,33 @@ func (m *ConfState) Marshal() (dAtA []byte, err error) { } func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Voters) > 0 { - dAtA5 := make([]byte, len(m.Voters)*10) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AutoLeave { + i-- + if m.AutoLeave { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.LearnersNext) > 0 { + dAtA5 := make([]byte, len(m.LearnersNext)*10) var j4 int - for _, num := range m.Voters { + for _, num := range m.LearnersNext { for num >= 1<<7 { dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -986,15 +1411,16 @@ func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { dAtA5[j4] = uint8(num) j4++ } - dAtA[i] = 0xa - i++ + i -= j4 + copy(dAtA[i:], dAtA5[:j4]) i = encodeVarintEraftpb(dAtA, i, uint64(j4)) - i += copy(dAtA[i:], dAtA5[:j4]) + i-- + dAtA[i] = 0x22 } - if len(m.Learners) > 0 { - dAtA7 := make([]byte, len(m.Learners)*10) + if len(m.VotersOutgoing) > 0 { + dAtA7 := make([]byte, len(m.VotersOutgoing)*10) var j6 int - for _, num := range m.Learners { + for _, num := range m.VotersOutgoing { for num >= 1<<7 { dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1003,15 +1429,16 @@ func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { dAtA7[j6] = uint8(num) j6++ } - dAtA[i] = 0x12 - i++ + i -= j6 + copy(dAtA[i:], dAtA7[:j6]) i = encodeVarintEraftpb(dAtA, i, uint64(j6)) - i += copy(dAtA[i:], dAtA7[:j6]) + i-- + dAtA[i] = 0x1a } - if len(m.VotersOutgoing) > 0 { - dAtA9 := make([]byte, len(m.VotersOutgoing)*10) + if len(m.Learners) > 0 { + dAtA9 := make([]byte, len(m.Learners)*10) var j8 int - for _, num := range m.VotersOutgoing { + for _, num := range m.Learners { for num >= 1<<7 { dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1020,15 +1447,16 @@ func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { dAtA9[j8] = uint8(num) j8++ } - dAtA[i] = 0x1a - i++ + i -= j8 + copy(dAtA[i:], dAtA9[:j8]) i = encodeVarintEraftpb(dAtA, i, uint64(j8)) - i += copy(dAtA[i:], dAtA9[:j8]) + i-- + dAtA[i] = 0x12 } - if len(m.LearnersNext) > 0 { - dAtA11 := make([]byte, len(m.LearnersNext)*10) + if len(m.Voters) > 0 { + dAtA11 := make([]byte, len(m.Voters)*10) var j10 int - for _, num := range m.LearnersNext { + for _, num := range m.Voters { for num >= 1<<7 { dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -1037,28 +1465,19 @@ func (m *ConfState) MarshalTo(dAtA []byte) (int, error) { dAtA11[j10] = uint8(num) j10++ } - dAtA[i] = 0x22 - i++ + i -= j10 + copy(dAtA[i:], dAtA11[:j10]) i = encodeVarintEraftpb(dAtA, i, uint64(j10)) - i += copy(dAtA[i:], dAtA11[:j10]) - } - if m.AutoLeave { - dAtA[i] = 0x28 - i++ - if m.AutoLeave { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ConfChange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1066,38 +1485,48 @@ func (m *ConfChange) Marshal() (dAtA []byte, err error) { } func (m *ConfChange) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ChangeType != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x22 } if m.NodeId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) + i-- + dAtA[i] = 0x18 } - if len(m.Context) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if m.ChangeType != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Id != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ConfChangeSingle) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1105,27 +1534,36 @@ func (m *ConfChangeSingle) Marshal() (dAtA []byte, err error) { } func (m *ConfChangeSingle) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfChangeSingle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ChangeType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.NodeId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintEraftpb(dAtA, i, uint64(m.NodeId)) + i-- + dAtA[i] = 0x10 + } + if m.ChangeType != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.ChangeType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ConfChangeV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1133,46 +1571,63 @@ func (m *ConfChangeV2) Marshal() (dAtA []byte, err error) { } func (m *ConfChangeV2) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConfChangeV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Transition != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(m.Transition)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x1a } if len(m.Changes) > 0 { - for _, msg := range m.Changes { - dAtA[i] = 0x12 - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintEraftpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if len(m.Context) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if m.Transition != 0 { + i = encodeVarintEraftpb(dAtA, i, uint64(m.Transition)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintEraftpb(dAtA []byte, offset int, v uint64) int { + offset -= sovEraftpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Entry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.EntryType != 0 { @@ -1195,10 +1650,16 @@ func (m *Entry) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotMetadata) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ConfState != nil { @@ -1211,10 +1672,16 @@ func (m *SnapshotMetadata) Size() (n int) { if m.Term != 0 { n += 1 + sovEraftpb(uint64(m.Term)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Snapshot) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Data) @@ -1225,10 +1692,16 @@ func (m *Snapshot) Size() (n int) { l = m.Metadata.Size() n += 1 + l + sovEraftpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Message) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MsgType != 0 { @@ -1281,10 +1754,16 @@ func (m *Message) Size() (n int) { if m.Priority != 0 { n += 1 + sovEraftpb(uint64(m.Priority)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *HardState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Term != 0 { @@ -1296,10 +1775,16 @@ func (m *HardState) Size() (n int) { if m.Commit != 0 { n += 1 + sovEraftpb(uint64(m.Commit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Voters) > 0 { @@ -1333,10 +1818,16 @@ func (m *ConfState) Size() (n int) { if m.AutoLeave { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfChange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1352,10 +1843,16 @@ func (m *ConfChange) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfChangeSingle) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ChangeType != 0 { @@ -1364,10 +1861,16 @@ func (m *ConfChangeSingle) Size() (n int) { if m.NodeId != 0 { n += 1 + sovEraftpb(uint64(m.NodeId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ConfChangeV2) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Transition != 0 { @@ -1383,18 +1886,14 @@ func (m *ConfChangeV2) Size() (n int) { if l > 0 { n += 1 + l + sovEraftpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovEraftpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozEraftpb(x uint64) (n int) { return sovEraftpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1414,7 +1913,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1442,7 +1941,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EntryType |= (EntryType(b) & 0x7F) << shift + m.EntryType |= EntryType(b&0x7F) << shift if b < 0x80 { break } @@ -1461,7 +1960,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1480,7 +1979,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1499,7 +1998,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1508,6 +2007,9 @@ func (m *Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1530,7 +2032,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1550,7 +2052,7 @@ func (m *Entry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1559,6 +2061,9 @@ func (m *Entry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1573,12 +2078,13 @@ func (m *Entry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1603,7 +2109,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1631,7 +2137,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1640,6 +2146,9 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1664,7 +2173,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1683,7 +2192,7 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1694,12 +2203,13 @@ func (m *SnapshotMetadata) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1724,7 +2234,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1752,7 +2262,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1761,6 +2271,9 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1783,7 +2296,7 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1792,6 +2305,9 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1808,12 +2324,13 @@ func (m *Snapshot) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1838,7 +2355,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1866,7 +2383,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MsgType |= (MessageType(b) & 0x7F) << shift + m.MsgType |= MessageType(b&0x7F) << shift if b < 0x80 { break } @@ -1885,7 +2402,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.To |= (uint64(b) & 0x7F) << shift + m.To |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1904,7 +2421,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.From |= (uint64(b) & 0x7F) << shift + m.From |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1923,7 +2440,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1942,7 +2459,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogTerm |= (uint64(b) & 0x7F) << shift + m.LogTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1961,7 +2478,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1980,7 +2497,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1989,6 +2506,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2011,7 +2531,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift + m.Commit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2030,7 +2550,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2039,6 +2559,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2063,7 +2586,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2083,7 +2606,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RejectHint |= (uint64(b) & 0x7F) << shift + m.RejectHint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2102,7 +2625,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2111,6 +2634,9 @@ func (m *Message) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2133,7 +2659,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestSnapshot |= (uint64(b) & 0x7F) << shift + m.RequestSnapshot |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2152,7 +2678,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeprecatedPriority |= (uint64(b) & 0x7F) << shift + m.DeprecatedPriority |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2171,7 +2697,7 @@ func (m *Message) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= (int64(b) & 0x7F) << shift + m.Priority |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2182,12 +2708,13 @@ func (m *Message) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2212,7 +2739,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2240,7 +2767,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2259,7 +2786,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= (uint64(b) & 0x7F) << shift + m.Vote |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2278,7 +2805,7 @@ func (m *HardState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift + m.Commit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2289,12 +2816,13 @@ func (m *HardState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2319,7 +2847,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2345,7 +2873,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2362,7 +2890,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2371,9 +2899,23 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } 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.Voters) == 0 { + m.Voters = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2385,7 +2927,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2407,7 +2949,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2424,7 +2966,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2433,9 +2975,23 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } 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.Learners) == 0 { + m.Learners = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2447,7 +3003,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2469,7 +3025,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2486,7 +3042,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2495,9 +3051,23 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } 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.VotersOutgoing) == 0 { + m.VotersOutgoing = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2509,7 +3079,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2531,7 +3101,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2548,7 +3118,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2557,9 +3127,23 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } 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.LearnersNext) == 0 { + m.LearnersNext = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2571,7 +3155,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2595,7 +3179,7 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2607,12 +3191,13 @@ func (m *ConfState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2637,7 +3222,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2665,7 +3250,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2684,7 +3269,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= (ConfChangeType(b) & 0x7F) << shift + m.ChangeType |= ConfChangeType(b&0x7F) << shift if b < 0x80 { break } @@ -2703,7 +3288,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeId |= (uint64(b) & 0x7F) << shift + m.NodeId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2722,7 +3307,7 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2731,6 +3316,9 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2745,12 +3333,13 @@ func (m *ConfChange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2775,7 +3364,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2803,7 +3392,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= (ConfChangeType(b) & 0x7F) << shift + m.ChangeType |= ConfChangeType(b&0x7F) << shift if b < 0x80 { break } @@ -2822,7 +3411,7 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeId |= (uint64(b) & 0x7F) << shift + m.NodeId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2833,12 +3422,13 @@ func (m *ConfChangeSingle) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2863,7 +3453,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2891,7 +3481,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Transition |= (ConfChangeTransition(b) & 0x7F) << shift + m.Transition |= ConfChangeTransition(b&0x7F) << shift if b < 0x80 { break } @@ -2910,7 +3500,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2919,6 +3509,9 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2941,7 +3534,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2950,6 +3543,9 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEraftpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEraftpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2964,12 +3560,13 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthEraftpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2982,6 +3579,7 @@ func (m *ConfChangeV2) Unmarshal(dAtA []byte) error { func skipEraftpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3013,10 +3611,8 @@ func skipEraftpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3033,124 +3629,34 @@ func skipEraftpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthEraftpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEraftpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipEraftpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEraftpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthEraftpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthEraftpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEraftpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthEraftpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEraftpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEraftpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("eraftpb.proto", fileDescriptorEraftpb) } - -var fileDescriptorEraftpb = []byte{ - // 1035 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xdc, 0x44, - 0x14, 0x8e, 0xed, 0xcd, 0xda, 0x7b, 0xf6, 0x6f, 0x32, 0x0d, 0xad, 0x53, 0xa9, 0x61, 0xb5, 0x5c, - 0xb0, 0x44, 0xa2, 0x55, 0x53, 0x21, 0x71, 0x01, 0x17, 0x69, 0x55, 0x29, 0x11, 0xd9, 0x10, 0x9c, - 0x34, 0xb7, 0x96, 0x63, 0x9f, 0x38, 0x86, 0xb5, 0xc7, 0xcc, 0xcc, 0x86, 0xe4, 0x11, 0x90, 0x78, - 0x00, 0x2e, 0x78, 0x04, 0x78, 0x0f, 0x2e, 0x79, 0x03, 0x50, 0x78, 0x11, 0x34, 0xe3, 0xb1, 0xd7, - 0x9b, 0xf6, 0x8a, 0xbb, 0x73, 0xbe, 0xf9, 0xce, 0x99, 0xef, 0xfc, 0x78, 0x64, 0x18, 0x22, 0x8f, - 0xae, 0x64, 0x79, 0xf9, 0xbc, 0xe4, 0x4c, 0x32, 0xea, 0x1a, 0x77, 0xfa, 0x87, 0x05, 0x9b, 0x6f, - 0x0b, 0xc9, 0xef, 0xe8, 0x4b, 0x00, 0x54, 0x46, 0x28, 0xef, 0x4a, 0xf4, 0xad, 0x89, 0x35, 0x1b, - 0xed, 0xd3, 0xe7, 0x75, 0x98, 0xe6, 0x9c, 0xdf, 0x95, 0x18, 0xf4, 0xb0, 0x36, 0x29, 0x85, 0x8e, - 0x44, 0x9e, 0xfb, 0xf6, 0xc4, 0x9a, 0x75, 0x02, 0x6d, 0xd3, 0x6d, 0xd8, 0xcc, 0x8a, 0x04, 0x6f, - 0x7d, 0x47, 0x83, 0x95, 0xa3, 0x98, 0x49, 0x24, 0x23, 0xbf, 0x33, 0xb1, 0x66, 0x83, 0x40, 0xdb, - 0x74, 0x07, 0x3c, 0x71, 0x57, 0xc4, 0xe1, 0x82, 0xa5, 0xfe, 0xe6, 0xc4, 0x9a, 0x79, 0x81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 0x98, 0x8c, 0xa6, 0xca, 0x53, 0x8e, 0xba, 0xf8, 0x2d, 0xfa, 0x0c, 0x76, - 0xde, 0x83, 0x9b, 0x12, 0xe8, 0xde, 0x57, 0xb0, 0xfd, 0xa1, 0x5d, 0xa2, 0x1e, 0x74, 0x0e, 0x96, - 0x92, 0x91, 0x0d, 0x3a, 0x00, 0xef, 0x28, 0x2f, 0x17, 0x59, 0x9c, 0xa9, 0xa9, 0x0c, 0xc0, 0x7b, - 0x7b, 0x6b, 0x3c, 0x7b, 0xef, 0x00, 0x46, 0xeb, 0xcb, 0xae, 0x46, 0x78, 0x90, 0x24, 0x27, 0x2c, - 0x41, 0xb2, 0xa1, 0x46, 0x18, 0x60, 0xce, 0x6e, 0x50, 0xfb, 0x96, 0x6a, 0xc4, 0x41, 0x92, 0x1c, - 0x57, 0x2f, 0x81, 0xc6, 0xec, 0xd7, 0xe4, 0xcf, 0xfb, 0x5d, 0xeb, 0xaf, 0xfb, 0x5d, 0xeb, 0x9f, - 0xfb, 0x5d, 0xeb, 0xd7, 0x7f, 0x77, 0x37, 0x2e, 0xbb, 0xfa, 0x1f, 0xe3, 0xd5, 0x7f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x69, 0x98, 0x9c, 0x4f, 0x74, 0x08, 0x00, 0x00, -} diff --git a/pkg/errorpb/errorpb.pb.go b/pkg/errorpb/errorpb.pb.go index 46b13f50b..77f14962c 100644 --- a/pkg/errorpb/errorpb.pb.go +++ b/pkg/errorpb/errorpb.pb.go @@ -1,48 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: errorpb.proto -/* -Package errorpb is a generated protocol buffer package. - -It is generated from these files: - - errorpb.proto - -It has these top-level messages: - - NotLeader - IsWitness - BucketVersionNotMatch - DiskFull - StoreNotMatch - RegionNotFound - RegionNotInitialized - KeyNotInRegion - EpochNotMatch - ServerIsBusy - StaleCommand - RaftEntryTooLarge - MaxTimestampNotSynced - ReadIndexNotReady - ProposalInMergingMode - DataIsNotReady - RecoveryInProgress - FlashbackInProgress - FlashbackNotPrepared - MismatchPeerId - Error -*/ package errorpb import ( "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" metapb "github.com/pingcap/kvproto/pkg/metapb" - - _ "github.com/gogo/protobuf/gogoproto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -54,7 +23,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // NotLeader is the error variant that tells a request be handle by raft leader // is sent to raft follower or learner. @@ -62,13 +31,44 @@ type NotLeader struct { // The requested region ID RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Region leader of the requested region - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotLeader) Reset() { *m = NotLeader{} } +func (m *NotLeader) String() string { return proto.CompactTextString(m) } +func (*NotLeader) ProtoMessage() {} +func (*NotLeader) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{0} +} +func (m *NotLeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NotLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NotLeader.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 *NotLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotLeader.Merge(m, src) +} +func (m *NotLeader) XXX_Size() int { + return m.Size() +} +func (m *NotLeader) XXX_DiscardUnknown() { + xxx_messageInfo_NotLeader.DiscardUnknown(m) } -func (m *NotLeader) Reset() { *m = NotLeader{} } -func (m *NotLeader) String() string { return proto.CompactTextString(m) } -func (*NotLeader) ProtoMessage() {} -func (*NotLeader) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{0} } +var xxx_messageInfo_NotLeader proto.InternalMessageInfo func (m *NotLeader) GetRegionId() uint64 { if m != nil { @@ -88,13 +88,44 @@ func (m *NotLeader) GetLeader() *metapb.Peer { // which should be forbidden and retry. type IsWitness struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsWitness) Reset() { *m = IsWitness{} } +func (m *IsWitness) String() string { return proto.CompactTextString(m) } +func (*IsWitness) ProtoMessage() {} +func (*IsWitness) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{1} +} +func (m *IsWitness) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsWitness.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 *IsWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsWitness.Merge(m, src) +} +func (m *IsWitness) XXX_Size() int { + return m.Size() +} +func (m *IsWitness) XXX_DiscardUnknown() { + xxx_messageInfo_IsWitness.DiscardUnknown(m) } -func (m *IsWitness) Reset() { *m = IsWitness{} } -func (m *IsWitness) String() string { return proto.CompactTextString(m) } -func (*IsWitness) ProtoMessage() {} -func (*IsWitness) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{1} } +var xxx_messageInfo_IsWitness proto.InternalMessageInfo func (m *IsWitness) GetRegionId() uint64 { if m != nil { @@ -106,14 +137,45 @@ func (m *IsWitness) GetRegionId() uint64 { // BucketVersionNotMatch is the error variant that tells the request buckets version is not match. // client should update the buckets version and retry. type BucketVersionNotMatch struct { - Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BucketVersionNotMatch) Reset() { *m = BucketVersionNotMatch{} } +func (m *BucketVersionNotMatch) String() string { return proto.CompactTextString(m) } +func (*BucketVersionNotMatch) ProtoMessage() {} +func (*BucketVersionNotMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{2} +} +func (m *BucketVersionNotMatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BucketVersionNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BucketVersionNotMatch.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 *BucketVersionNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_BucketVersionNotMatch.Merge(m, src) +} +func (m *BucketVersionNotMatch) XXX_Size() int { + return m.Size() +} +func (m *BucketVersionNotMatch) XXX_DiscardUnknown() { + xxx_messageInfo_BucketVersionNotMatch.DiscardUnknown(m) } -func (m *BucketVersionNotMatch) Reset() { *m = BucketVersionNotMatch{} } -func (m *BucketVersionNotMatch) String() string { return proto.CompactTextString(m) } -func (*BucketVersionNotMatch) ProtoMessage() {} -func (*BucketVersionNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{2} } +var xxx_messageInfo_BucketVersionNotMatch proto.InternalMessageInfo func (m *BucketVersionNotMatch) GetVersion() uint64 { if m != nil { @@ -131,15 +193,46 @@ func (m *BucketVersionNotMatch) GetKeys() [][]byte { type DiskFull struct { // The requested store ID - StoreId []uint64 `protobuf:"varint,1,rep,packed,name=store_id,json=storeId" json:"store_id,omitempty"` + StoreId []uint64 `protobuf:"varint,1,rep,packed,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` // The detailed info - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DiskFull) Reset() { *m = DiskFull{} } +func (m *DiskFull) String() string { return proto.CompactTextString(m) } +func (*DiskFull) ProtoMessage() {} +func (*DiskFull) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{3} +} +func (m *DiskFull) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DiskFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DiskFull.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 *DiskFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiskFull.Merge(m, src) +} +func (m *DiskFull) XXX_Size() int { + return m.Size() +} +func (m *DiskFull) XXX_DiscardUnknown() { + xxx_messageInfo_DiskFull.DiscardUnknown(m) } -func (m *DiskFull) Reset() { *m = DiskFull{} } -func (m *DiskFull) String() string { return proto.CompactTextString(m) } -func (*DiskFull) ProtoMessage() {} -func (*DiskFull) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{3} } +var xxx_messageInfo_DiskFull proto.InternalMessageInfo func (m *DiskFull) GetStoreId() []uint64 { if m != nil { @@ -161,13 +254,44 @@ type StoreNotMatch struct { // Store id in request RequestStoreId uint64 `protobuf:"varint,1,opt,name=request_store_id,json=requestStoreId,proto3" json:"request_store_id,omitempty"` // Actual store id - ActualStoreId uint64 `protobuf:"varint,2,opt,name=actual_store_id,json=actualStoreId,proto3" json:"actual_store_id,omitempty"` + ActualStoreId uint64 `protobuf:"varint,2,opt,name=actual_store_id,json=actualStoreId,proto3" json:"actual_store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreNotMatch) Reset() { *m = StoreNotMatch{} } +func (m *StoreNotMatch) String() string { return proto.CompactTextString(m) } +func (*StoreNotMatch) ProtoMessage() {} +func (*StoreNotMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{4} +} +func (m *StoreNotMatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreNotMatch.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 *StoreNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreNotMatch.Merge(m, src) +} +func (m *StoreNotMatch) XXX_Size() int { + return m.Size() +} +func (m *StoreNotMatch) XXX_DiscardUnknown() { + xxx_messageInfo_StoreNotMatch.DiscardUnknown(m) } -func (m *StoreNotMatch) Reset() { *m = StoreNotMatch{} } -func (m *StoreNotMatch) String() string { return proto.CompactTextString(m) } -func (*StoreNotMatch) ProtoMessage() {} -func (*StoreNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{4} } +var xxx_messageInfo_StoreNotMatch proto.InternalMessageInfo func (m *StoreNotMatch) GetRequestStoreId() uint64 { if m != nil { @@ -187,13 +311,44 @@ func (m *StoreNotMatch) GetActualStoreId() uint64 { // matches the requested region ID. type RegionNotFound struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionNotFound) Reset() { *m = RegionNotFound{} } +func (m *RegionNotFound) String() string { return proto.CompactTextString(m) } +func (*RegionNotFound) ProtoMessage() {} +func (*RegionNotFound) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{5} +} +func (m *RegionNotFound) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionNotFound.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 *RegionNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionNotFound.Merge(m, src) +} +func (m *RegionNotFound) XXX_Size() int { + return m.Size() +} +func (m *RegionNotFound) XXX_DiscardUnknown() { + xxx_messageInfo_RegionNotFound.DiscardUnknown(m) } -func (m *RegionNotFound) Reset() { *m = RegionNotFound{} } -func (m *RegionNotFound) String() string { return proto.CompactTextString(m) } -func (*RegionNotFound) ProtoMessage() {} -func (*RegionNotFound) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{5} } +var xxx_messageInfo_RegionNotFound proto.InternalMessageInfo func (m *RegionNotFound) GetRegionId() uint64 { if m != nil { @@ -206,13 +361,44 @@ func (m *RegionNotFound) GetRegionId() uint64 { // matchesthe request region ID. type RegionNotInitialized struct { // The request region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionNotInitialized) Reset() { *m = RegionNotInitialized{} } +func (m *RegionNotInitialized) String() string { return proto.CompactTextString(m) } +func (*RegionNotInitialized) ProtoMessage() {} +func (*RegionNotInitialized) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{6} +} +func (m *RegionNotInitialized) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionNotInitialized) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionNotInitialized.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 *RegionNotInitialized) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionNotInitialized.Merge(m, src) +} +func (m *RegionNotInitialized) XXX_Size() int { + return m.Size() +} +func (m *RegionNotInitialized) XXX_DiscardUnknown() { + xxx_messageInfo_RegionNotInitialized.DiscardUnknown(m) } -func (m *RegionNotInitialized) Reset() { *m = RegionNotInitialized{} } -func (m *RegionNotInitialized) String() string { return proto.CompactTextString(m) } -func (*RegionNotInitialized) ProtoMessage() {} -func (*RegionNotInitialized) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{6} } +var xxx_messageInfo_RegionNotInitialized proto.InternalMessageInfo func (m *RegionNotInitialized) GetRegionId() uint64 { if m != nil { @@ -231,13 +417,44 @@ type KeyNotInRegion struct { // Start key of the requested region StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` // Snd key of the requested region - EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyNotInRegion) Reset() { *m = KeyNotInRegion{} } +func (m *KeyNotInRegion) String() string { return proto.CompactTextString(m) } +func (*KeyNotInRegion) ProtoMessage() {} +func (*KeyNotInRegion) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{7} +} +func (m *KeyNotInRegion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyNotInRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyNotInRegion.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 *KeyNotInRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyNotInRegion.Merge(m, src) +} +func (m *KeyNotInRegion) XXX_Size() int { + return m.Size() +} +func (m *KeyNotInRegion) XXX_DiscardUnknown() { + xxx_messageInfo_KeyNotInRegion.DiscardUnknown(m) } -func (m *KeyNotInRegion) Reset() { *m = KeyNotInRegion{} } -func (m *KeyNotInRegion) String() string { return proto.CompactTextString(m) } -func (*KeyNotInRegion) ProtoMessage() {} -func (*KeyNotInRegion) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{7} } +var xxx_messageInfo_KeyNotInRegion proto.InternalMessageInfo func (m *KeyNotInRegion) GetKey() []byte { if m != nil { @@ -272,13 +489,44 @@ func (m *KeyNotInRegion) GetEndKey() []byte { // Hence, a command is based on a stale version of a region. type EpochNotMatch struct { // Available regions that may be siblings of the requested one. - CurrentRegions []*metapb.Region `protobuf:"bytes,1,rep,name=current_regions,json=currentRegions" json:"current_regions,omitempty"` + CurrentRegions []*metapb.Region `protobuf:"bytes,1,rep,name=current_regions,json=currentRegions,proto3" json:"current_regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EpochNotMatch) Reset() { *m = EpochNotMatch{} } +func (m *EpochNotMatch) String() string { return proto.CompactTextString(m) } +func (*EpochNotMatch) ProtoMessage() {} +func (*EpochNotMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{8} +} +func (m *EpochNotMatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochNotMatch.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 *EpochNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochNotMatch.Merge(m, src) +} +func (m *EpochNotMatch) XXX_Size() int { + return m.Size() +} +func (m *EpochNotMatch) XXX_DiscardUnknown() { + xxx_messageInfo_EpochNotMatch.DiscardUnknown(m) } -func (m *EpochNotMatch) Reset() { *m = EpochNotMatch{} } -func (m *EpochNotMatch) String() string { return proto.CompactTextString(m) } -func (*EpochNotMatch) ProtoMessage() {} -func (*EpochNotMatch) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{8} } +var xxx_messageInfo_EpochNotMatch proto.InternalMessageInfo func (m *EpochNotMatch) GetCurrentRegions() []*metapb.Region { if m != nil { @@ -294,13 +542,44 @@ type ServerIsBusy struct { BackoffMs uint64 `protobuf:"varint,2,opt,name=backoff_ms,json=backoffMs,proto3" json:"backoff_ms,omitempty"` EstimatedWaitMs uint32 `protobuf:"varint,3,opt,name=estimated_wait_ms,json=estimatedWaitMs,proto3" json:"estimated_wait_ms,omitempty"` // Current applied_index at the leader, may be used in replica read. - AppliedIndex uint64 `protobuf:"varint,4,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + AppliedIndex uint64 `protobuf:"varint,4,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServerIsBusy) Reset() { *m = ServerIsBusy{} } +func (m *ServerIsBusy) String() string { return proto.CompactTextString(m) } +func (*ServerIsBusy) ProtoMessage() {} +func (*ServerIsBusy) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{9} +} +func (m *ServerIsBusy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServerIsBusy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServerIsBusy.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 *ServerIsBusy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerIsBusy.Merge(m, src) +} +func (m *ServerIsBusy) XXX_Size() int { + return m.Size() +} +func (m *ServerIsBusy) XXX_DiscardUnknown() { + xxx_messageInfo_ServerIsBusy.DiscardUnknown(m) } -func (m *ServerIsBusy) Reset() { *m = ServerIsBusy{} } -func (m *ServerIsBusy) String() string { return proto.CompactTextString(m) } -func (*ServerIsBusy) ProtoMessage() {} -func (*ServerIsBusy) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{9} } +var xxx_messageInfo_ServerIsBusy proto.InternalMessageInfo func (m *ServerIsBusy) GetReason() string { if m != nil { @@ -334,12 +613,43 @@ func (m *ServerIsBusy) GetAppliedIndex() uint64 { // the current request term is lower than current raft term. // This can be retried at most time. type StaleCommand struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StaleCommand) Reset() { *m = StaleCommand{} } +func (m *StaleCommand) String() string { return proto.CompactTextString(m) } +func (*StaleCommand) ProtoMessage() {} +func (*StaleCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{10} +} +func (m *StaleCommand) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StaleCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StaleCommand.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 *StaleCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_StaleCommand.Merge(m, src) +} +func (m *StaleCommand) XXX_Size() int { + return m.Size() +} +func (m *StaleCommand) XXX_DiscardUnknown() { + xxx_messageInfo_StaleCommand.DiscardUnknown(m) } -func (m *StaleCommand) Reset() { *m = StaleCommand{} } -func (m *StaleCommand) String() string { return proto.CompactTextString(m) } -func (*StaleCommand) ProtoMessage() {} -func (*StaleCommand) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{10} } +var xxx_messageInfo_StaleCommand proto.InternalMessageInfo // RaftEntryTooLarge is the error variant that tells the request is too large to be serialized to a // reasonable small raft entry. @@ -348,13 +658,44 @@ type RaftEntryTooLarge struct { // The requested region ID RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // Size of the raft entry - EntrySize uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize,proto3" json:"entry_size,omitempty"` + EntrySize uint64 `protobuf:"varint,2,opt,name=entry_size,json=entrySize,proto3" json:"entry_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftEntryTooLarge) Reset() { *m = RaftEntryTooLarge{} } +func (m *RaftEntryTooLarge) String() string { return proto.CompactTextString(m) } +func (*RaftEntryTooLarge) ProtoMessage() {} +func (*RaftEntryTooLarge) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{11} +} +func (m *RaftEntryTooLarge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftEntryTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftEntryTooLarge.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 *RaftEntryTooLarge) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftEntryTooLarge.Merge(m, src) +} +func (m *RaftEntryTooLarge) XXX_Size() int { + return m.Size() +} +func (m *RaftEntryTooLarge) XXX_DiscardUnknown() { + xxx_messageInfo_RaftEntryTooLarge.DiscardUnknown(m) } -func (m *RaftEntryTooLarge) Reset() { *m = RaftEntryTooLarge{} } -func (m *RaftEntryTooLarge) String() string { return proto.CompactTextString(m) } -func (*RaftEntryTooLarge) ProtoMessage() {} -func (*RaftEntryTooLarge) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{11} } +var xxx_messageInfo_RaftEntryTooLarge proto.InternalMessageInfo func (m *RaftEntryTooLarge) GetRegionId() uint64 { if m != nil { @@ -375,12 +716,43 @@ func (m *RaftEntryTooLarge) GetEntrySize() uint64 { // the prewrite of an async commit transaction cannot succeed. The client can backoff and // resend the request. type MaxTimestampNotSynced struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MaxTimestampNotSynced) Reset() { *m = MaxTimestampNotSynced{} } +func (m *MaxTimestampNotSynced) String() string { return proto.CompactTextString(m) } +func (*MaxTimestampNotSynced) ProtoMessage() {} +func (*MaxTimestampNotSynced) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{12} +} +func (m *MaxTimestampNotSynced) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MaxTimestampNotSynced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MaxTimestampNotSynced.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 *MaxTimestampNotSynced) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaxTimestampNotSynced.Merge(m, src) +} +func (m *MaxTimestampNotSynced) XXX_Size() int { + return m.Size() +} +func (m *MaxTimestampNotSynced) XXX_DiscardUnknown() { + xxx_messageInfo_MaxTimestampNotSynced.DiscardUnknown(m) } -func (m *MaxTimestampNotSynced) Reset() { *m = MaxTimestampNotSynced{} } -func (m *MaxTimestampNotSynced) String() string { return proto.CompactTextString(m) } -func (*MaxTimestampNotSynced) ProtoMessage() {} -func (*MaxTimestampNotSynced) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{12} } +var xxx_messageInfo_MaxTimestampNotSynced proto.InternalMessageInfo // ReadIndexNotReady is the error variant that tells the read index request is not ready, that is, // the current region is in a status that not ready to serve the read index request. For example, @@ -390,13 +762,44 @@ type ReadIndexNotReady struct { // The reason why the region is not ready to serve read index request Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // The requested region ID - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadIndexNotReady) Reset() { *m = ReadIndexNotReady{} } +func (m *ReadIndexNotReady) String() string { return proto.CompactTextString(m) } +func (*ReadIndexNotReady) ProtoMessage() {} +func (*ReadIndexNotReady) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{13} +} +func (m *ReadIndexNotReady) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadIndexNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadIndexNotReady.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 *ReadIndexNotReady) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexNotReady.Merge(m, src) +} +func (m *ReadIndexNotReady) XXX_Size() int { + return m.Size() +} +func (m *ReadIndexNotReady) XXX_DiscardUnknown() { + xxx_messageInfo_ReadIndexNotReady.DiscardUnknown(m) } -func (m *ReadIndexNotReady) Reset() { *m = ReadIndexNotReady{} } -func (m *ReadIndexNotReady) String() string { return proto.CompactTextString(m) } -func (*ReadIndexNotReady) ProtoMessage() {} -func (*ReadIndexNotReady) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{13} } +var xxx_messageInfo_ReadIndexNotReady proto.InternalMessageInfo func (m *ReadIndexNotReady) GetReason() string { if m != nil { @@ -417,13 +820,44 @@ func (m *ReadIndexNotReady) GetRegionId() uint64 { // This can be retried at most time. type ProposalInMergingMode struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProposalInMergingMode) Reset() { *m = ProposalInMergingMode{} } +func (m *ProposalInMergingMode) String() string { return proto.CompactTextString(m) } +func (*ProposalInMergingMode) ProtoMessage() {} +func (*ProposalInMergingMode) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{14} +} +func (m *ProposalInMergingMode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalInMergingMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalInMergingMode.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 *ProposalInMergingMode) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalInMergingMode.Merge(m, src) +} +func (m *ProposalInMergingMode) XXX_Size() int { + return m.Size() +} +func (m *ProposalInMergingMode) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalInMergingMode.DiscardUnknown(m) } -func (m *ProposalInMergingMode) Reset() { *m = ProposalInMergingMode{} } -func (m *ProposalInMergingMode) String() string { return proto.CompactTextString(m) } -func (*ProposalInMergingMode) ProtoMessage() {} -func (*ProposalInMergingMode) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{14} } +var xxx_messageInfo_ProposalInMergingMode proto.InternalMessageInfo func (m *ProposalInMergingMode) GetRegionId() uint64 { if m != nil { @@ -434,15 +868,46 @@ func (m *ProposalInMergingMode) GetRegionId() uint64 { type DataIsNotReady struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - SafeTs uint64 `protobuf:"varint,3,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + SafeTs uint64 `protobuf:"varint,3,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataIsNotReady) Reset() { *m = DataIsNotReady{} } +func (m *DataIsNotReady) String() string { return proto.CompactTextString(m) } +func (*DataIsNotReady) ProtoMessage() {} +func (*DataIsNotReady) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{15} +} +func (m *DataIsNotReady) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataIsNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataIsNotReady.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 *DataIsNotReady) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataIsNotReady.Merge(m, src) +} +func (m *DataIsNotReady) XXX_Size() int { + return m.Size() +} +func (m *DataIsNotReady) XXX_DiscardUnknown() { + xxx_messageInfo_DataIsNotReady.DiscardUnknown(m) } -func (m *DataIsNotReady) Reset() { *m = DataIsNotReady{} } -func (m *DataIsNotReady) String() string { return proto.CompactTextString(m) } -func (*DataIsNotReady) ProtoMessage() {} -func (*DataIsNotReady) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{15} } +var xxx_messageInfo_DataIsNotReady proto.InternalMessageInfo func (m *DataIsNotReady) GetRegionId() uint64 { if m != nil { @@ -467,13 +932,44 @@ func (m *DataIsNotReady) GetSafeTs() uint64 { type RecoveryInProgress struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecoveryInProgress) Reset() { *m = RecoveryInProgress{} } +func (m *RecoveryInProgress) String() string { return proto.CompactTextString(m) } +func (*RecoveryInProgress) ProtoMessage() {} +func (*RecoveryInProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{16} +} +func (m *RecoveryInProgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoveryInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoveryInProgress.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 *RecoveryInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoveryInProgress.Merge(m, src) +} +func (m *RecoveryInProgress) XXX_Size() int { + return m.Size() +} +func (m *RecoveryInProgress) XXX_DiscardUnknown() { + xxx_messageInfo_RecoveryInProgress.DiscardUnknown(m) } -func (m *RecoveryInProgress) Reset() { *m = RecoveryInProgress{} } -func (m *RecoveryInProgress) String() string { return proto.CompactTextString(m) } -func (*RecoveryInProgress) ProtoMessage() {} -func (*RecoveryInProgress) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{16} } +var xxx_messageInfo_RecoveryInProgress proto.InternalMessageInfo func (m *RecoveryInProgress) GetRegionId() uint64 { if m != nil { @@ -484,14 +980,45 @@ func (m *RecoveryInProgress) GetRegionId() uint64 { type FlashbackInProgress struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FlashbackStartTs uint64 `protobuf:"varint,2,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + FlashbackStartTs uint64 `protobuf:"varint,2,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlashbackInProgress) Reset() { *m = FlashbackInProgress{} } +func (m *FlashbackInProgress) String() string { return proto.CompactTextString(m) } +func (*FlashbackInProgress) ProtoMessage() {} +func (*FlashbackInProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{17} +} +func (m *FlashbackInProgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlashbackInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackInProgress.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 *FlashbackInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackInProgress.Merge(m, src) +} +func (m *FlashbackInProgress) XXX_Size() int { + return m.Size() +} +func (m *FlashbackInProgress) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackInProgress.DiscardUnknown(m) } -func (m *FlashbackInProgress) Reset() { *m = FlashbackInProgress{} } -func (m *FlashbackInProgress) String() string { return proto.CompactTextString(m) } -func (*FlashbackInProgress) ProtoMessage() {} -func (*FlashbackInProgress) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{17} } +var xxx_messageInfo_FlashbackInProgress proto.InternalMessageInfo func (m *FlashbackInProgress) GetRegionId() uint64 { if m != nil { @@ -509,13 +1036,44 @@ func (m *FlashbackInProgress) GetFlashbackStartTs() uint64 { type FlashbackNotPrepared struct { // The requested region ID - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlashbackNotPrepared) Reset() { *m = FlashbackNotPrepared{} } +func (m *FlashbackNotPrepared) String() string { return proto.CompactTextString(m) } +func (*FlashbackNotPrepared) ProtoMessage() {} +func (*FlashbackNotPrepared) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{18} +} +func (m *FlashbackNotPrepared) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlashbackNotPrepared) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackNotPrepared.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 *FlashbackNotPrepared) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackNotPrepared.Merge(m, src) +} +func (m *FlashbackNotPrepared) XXX_Size() int { + return m.Size() +} +func (m *FlashbackNotPrepared) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackNotPrepared.DiscardUnknown(m) } -func (m *FlashbackNotPrepared) Reset() { *m = FlashbackNotPrepared{} } -func (m *FlashbackNotPrepared) String() string { return proto.CompactTextString(m) } -func (*FlashbackNotPrepared) ProtoMessage() {} -func (*FlashbackNotPrepared) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{18} } +var xxx_messageInfo_FlashbackNotPrepared proto.InternalMessageInfo func (m *FlashbackNotPrepared) GetRegionId() uint64 { if m != nil { @@ -527,14 +1085,45 @@ func (m *FlashbackNotPrepared) GetRegionId() uint64 { // MismatchPeerId is the error variant that tells the request is sent to wrong peer. // Client receives this error should reload the region info and retry. type MismatchPeerId struct { - RequestPeerId uint64 `protobuf:"varint,1,opt,name=request_peer_id,json=requestPeerId,proto3" json:"request_peer_id,omitempty"` - StorePeerId uint64 `protobuf:"varint,2,opt,name=store_peer_id,json=storePeerId,proto3" json:"store_peer_id,omitempty"` + RequestPeerId uint64 `protobuf:"varint,1,opt,name=request_peer_id,json=requestPeerId,proto3" json:"request_peer_id,omitempty"` + StorePeerId uint64 `protobuf:"varint,2,opt,name=store_peer_id,json=storePeerId,proto3" json:"store_peer_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MismatchPeerId) Reset() { *m = MismatchPeerId{} } +func (m *MismatchPeerId) String() string { return proto.CompactTextString(m) } +func (*MismatchPeerId) ProtoMessage() {} +func (*MismatchPeerId) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{19} +} +func (m *MismatchPeerId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MismatchPeerId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MismatchPeerId.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 *MismatchPeerId) XXX_Merge(src proto.Message) { + xxx_messageInfo_MismatchPeerId.Merge(m, src) +} +func (m *MismatchPeerId) XXX_Size() int { + return m.Size() +} +func (m *MismatchPeerId) XXX_DiscardUnknown() { + xxx_messageInfo_MismatchPeerId.DiscardUnknown(m) } -func (m *MismatchPeerId) Reset() { *m = MismatchPeerId{} } -func (m *MismatchPeerId) String() string { return proto.CompactTextString(m) } -func (*MismatchPeerId) ProtoMessage() {} -func (*MismatchPeerId) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{19} } +var xxx_messageInfo_MismatchPeerId proto.InternalMessageInfo func (m *MismatchPeerId) GetRequestPeerId() uint64 { if m != nil { @@ -554,41 +1143,72 @@ func (m *MismatchPeerId) GetStorePeerId() uint64 { type Error struct { // The error message Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - NotLeader *NotLeader `protobuf:"bytes,2,opt,name=not_leader,json=notLeader" json:"not_leader,omitempty"` - RegionNotFound *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found,json=regionNotFound" json:"region_not_found,omitempty"` - KeyNotInRegion *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region,json=keyNotInRegion" json:"key_not_in_region,omitempty"` - EpochNotMatch *EpochNotMatch `protobuf:"bytes,5,opt,name=epoch_not_match,json=epochNotMatch" json:"epoch_not_match,omitempty"` - ServerIsBusy *ServerIsBusy `protobuf:"bytes,6,opt,name=server_is_busy,json=serverIsBusy" json:"server_is_busy,omitempty"` - StaleCommand *StaleCommand `protobuf:"bytes,7,opt,name=stale_command,json=staleCommand" json:"stale_command,omitempty"` - StoreNotMatch *StoreNotMatch `protobuf:"bytes,8,opt,name=store_not_match,json=storeNotMatch" json:"store_not_match,omitempty"` - RaftEntryTooLarge *RaftEntryTooLarge `protobuf:"bytes,9,opt,name=raft_entry_too_large,json=raftEntryTooLarge" json:"raft_entry_too_large,omitempty"` - MaxTimestampNotSynced *MaxTimestampNotSynced `protobuf:"bytes,10,opt,name=max_timestamp_not_synced,json=maxTimestampNotSynced" json:"max_timestamp_not_synced,omitempty"` - ReadIndexNotReady *ReadIndexNotReady `protobuf:"bytes,11,opt,name=read_index_not_ready,json=readIndexNotReady" json:"read_index_not_ready,omitempty"` - ProposalInMergingMode *ProposalInMergingMode `protobuf:"bytes,12,opt,name=proposal_in_merging_mode,json=proposalInMergingMode" json:"proposal_in_merging_mode,omitempty"` - DataIsNotReady *DataIsNotReady `protobuf:"bytes,13,opt,name=data_is_not_ready,json=dataIsNotReady" json:"data_is_not_ready,omitempty"` - RegionNotInitialized *RegionNotInitialized `protobuf:"bytes,14,opt,name=region_not_initialized,json=regionNotInitialized" json:"region_not_initialized,omitempty"` - DiskFull *DiskFull `protobuf:"bytes,15,opt,name=disk_full,json=diskFull" json:"disk_full,omitempty"` + NotLeader *NotLeader `protobuf:"bytes,2,opt,name=not_leader,json=notLeader,proto3" json:"not_leader,omitempty"` + RegionNotFound *RegionNotFound `protobuf:"bytes,3,opt,name=region_not_found,json=regionNotFound,proto3" json:"region_not_found,omitempty"` + KeyNotInRegion *KeyNotInRegion `protobuf:"bytes,4,opt,name=key_not_in_region,json=keyNotInRegion,proto3" json:"key_not_in_region,omitempty"` + EpochNotMatch *EpochNotMatch `protobuf:"bytes,5,opt,name=epoch_not_match,json=epochNotMatch,proto3" json:"epoch_not_match,omitempty"` + ServerIsBusy *ServerIsBusy `protobuf:"bytes,6,opt,name=server_is_busy,json=serverIsBusy,proto3" json:"server_is_busy,omitempty"` + StaleCommand *StaleCommand `protobuf:"bytes,7,opt,name=stale_command,json=staleCommand,proto3" json:"stale_command,omitempty"` + StoreNotMatch *StoreNotMatch `protobuf:"bytes,8,opt,name=store_not_match,json=storeNotMatch,proto3" json:"store_not_match,omitempty"` + RaftEntryTooLarge *RaftEntryTooLarge `protobuf:"bytes,9,opt,name=raft_entry_too_large,json=raftEntryTooLarge,proto3" json:"raft_entry_too_large,omitempty"` + MaxTimestampNotSynced *MaxTimestampNotSynced `protobuf:"bytes,10,opt,name=max_timestamp_not_synced,json=maxTimestampNotSynced,proto3" json:"max_timestamp_not_synced,omitempty"` + ReadIndexNotReady *ReadIndexNotReady `protobuf:"bytes,11,opt,name=read_index_not_ready,json=readIndexNotReady,proto3" json:"read_index_not_ready,omitempty"` + ProposalInMergingMode *ProposalInMergingMode `protobuf:"bytes,12,opt,name=proposal_in_merging_mode,json=proposalInMergingMode,proto3" json:"proposal_in_merging_mode,omitempty"` + DataIsNotReady *DataIsNotReady `protobuf:"bytes,13,opt,name=data_is_not_ready,json=dataIsNotReady,proto3" json:"data_is_not_ready,omitempty"` + RegionNotInitialized *RegionNotInitialized `protobuf:"bytes,14,opt,name=region_not_initialized,json=regionNotInitialized,proto3" json:"region_not_initialized,omitempty"` + DiskFull *DiskFull `protobuf:"bytes,15,opt,name=disk_full,json=diskFull,proto3" json:"disk_full,omitempty"` // Online recovery is still in performing, reject writes to avoid potential issues - RecoveryInProgress *RecoveryInProgress `protobuf:"bytes,16,opt,name=RecoveryInProgress" json:"RecoveryInProgress,omitempty"` + RecoveryInProgress *RecoveryInProgress `protobuf:"bytes,16,opt,name=RecoveryInProgress,proto3" json:"RecoveryInProgress,omitempty"` // Flashback is still in performing, reject any read or write to avoid potential issues. // NOTICE: this error is non-retryable, the request should fail ASAP when it meets this error. - FlashbackInProgress *FlashbackInProgress `protobuf:"bytes,17,opt,name=FlashbackInProgress" json:"FlashbackInProgress,omitempty"` + FlashbackInProgress *FlashbackInProgress `protobuf:"bytes,17,opt,name=FlashbackInProgress,proto3" json:"FlashbackInProgress,omitempty"` // If the second phase flashback request is sent to a region that is not prepared for the flashback, // this error will be returned. // NOTICE: this error is non-retryable, the client should retry the first phase flashback request when it meets this error. - FlashbackNotPrepared *FlashbackNotPrepared `protobuf:"bytes,18,opt,name=FlashbackNotPrepared" json:"FlashbackNotPrepared,omitempty"` + FlashbackNotPrepared *FlashbackNotPrepared `protobuf:"bytes,18,opt,name=FlashbackNotPrepared,proto3" json:"FlashbackNotPrepared,omitempty"` // IsWitness is the error variant that tells a request be handle by witness // which should be forbidden and retry. - IsWitness *IsWitness `protobuf:"bytes,19,opt,name=is_witness,json=isWitness" json:"is_witness,omitempty"` - MismatchPeerId *MismatchPeerId `protobuf:"bytes,20,opt,name=mismatch_peer_id,json=mismatchPeerId" json:"mismatch_peer_id,omitempty"` + IsWitness *IsWitness `protobuf:"bytes,19,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + MismatchPeerId *MismatchPeerId `protobuf:"bytes,20,opt,name=mismatch_peer_id,json=mismatchPeerId,proto3" json:"mismatch_peer_id,omitempty"` // BucketVersionNotMatch is the error variant that tells the request buckets version is not match. - BucketVersionNotMatch *BucketVersionNotMatch `protobuf:"bytes,21,opt,name=bucket_version_not_match,json=bucketVersionNotMatch" json:"bucket_version_not_match,omitempty"` + BucketVersionNotMatch *BucketVersionNotMatch `protobuf:"bytes,21,opt,name=bucket_version_not_match,json=bucketVersionNotMatch,proto3" json:"bucket_version_not_match,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_390aa86757fd1154, []int{20} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorErrorpb, []int{20} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetMessage() string { if m != nil { @@ -760,10 +1380,94 @@ func init() { proto.RegisterType((*MismatchPeerId)(nil), "errorpb.MismatchPeerId") proto.RegisterType((*Error)(nil), "errorpb.Error") } + +func init() { proto.RegisterFile("errorpb.proto", fileDescriptor_390aa86757fd1154) } + +var fileDescriptor_390aa86757fd1154 = []byte{ + // 1228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xe1, 0x6e, 0x1b, 0x45, + 0x10, 0x80, 0x71, 0x92, 0x3a, 0xf6, 0xd8, 0x3e, 0xc7, 0xd7, 0xb8, 0x39, 0x5a, 0x1a, 0x55, 0x07, + 0xaa, 0x22, 0x04, 0x41, 0x6d, 0x91, 0x90, 0x40, 0x20, 0x35, 0x34, 0x55, 0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e7, 0x69, 0x4c, 0x9c, 0x38, 0x4f, 0xe7, 0x4b, 0xf0, 0xae, 0xcc, 0xdb, 0x33, 0x48, + 0x9f, 0x96, 0x6b, 0x3d, 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, + 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, + 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, + 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, +} + func (m *NotLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -771,32 +1475,43 @@ func (m *NotLeader) Marshal() (dAtA []byte, err error) { } func (m *NotLeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NotLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Leader != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.Leader.Size())) - n1, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 + } + if m.RegionId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *IsWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -804,22 +1519,31 @@ func (m *IsWitness) Marshal() (dAtA []byte, err error) { } func (m *IsWitness) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *BucketVersionNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -827,30 +1551,40 @@ func (m *BucketVersionNotMatch) Marshal() (dAtA []byte, err error) { } func (m *BucketVersionNotMatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BucketVersionNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Version != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.Version)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - return i, nil + if m.Version != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *DiskFull) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -858,11 +1592,27 @@ func (m *DiskFull) Marshal() (dAtA []byte, err error) { } func (m *DiskFull) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DiskFull) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StoreId) > 0 { + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x12 + } + if len(m.StoreId) > 0 { dAtA3 := make([]byte, len(m.StoreId)*10) var j2 int for _, num := range m.StoreId { @@ -874,24 +1624,19 @@ func (m *DiskFull) MarshalTo(dAtA []byte) (int, error) { dAtA3[j2] = uint8(num) j2++ } - dAtA[i] = 0xa - i++ + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) i = encodeVarintErrorpb(dAtA, i, uint64(j2)) - i += copy(dAtA[i:], dAtA3[:j2]) - } - if len(m.Reason) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StoreNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -899,27 +1644,36 @@ func (m *StoreNotMatch) Marshal() (dAtA []byte, err error) { } func (m *StoreNotMatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RequestStoreId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestStoreId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ActualStoreId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.ActualStoreId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RequestStoreId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestStoreId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RegionNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -927,22 +1681,31 @@ func (m *RegionNotFound) Marshal() (dAtA []byte, err error) { } func (m *RegionNotFound) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionNotInitialized) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -950,22 +1713,31 @@ func (m *RegionNotInitialized) Marshal() (dAtA []byte, err error) { } func (m *RegionNotInitialized) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionNotInitialized) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *KeyNotInRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -973,40 +1745,52 @@ func (m *KeyNotInRegion) Marshal() (dAtA []byte, err error) { } func (m *KeyNotInRegion) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyNotInRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x22 } if len(m.StartKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintErrorpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x1a } - if len(m.EndKey) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.RegionId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *EpochNotMatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1014,29 +1798,40 @@ func (m *EpochNotMatch) Marshal() (dAtA []byte, err error) { } func (m *EpochNotMatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochNotMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.CurrentRegions) > 0 { - for _, msg := range m.CurrentRegions { - dAtA[i] = 0xa - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.CurrentRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CurrentRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *ServerIsBusy) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1044,38 +1839,48 @@ func (m *ServerIsBusy) Marshal() (dAtA []byte, err error) { } func (m *ServerIsBusy) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServerIsBusy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Reason) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.BackoffMs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.BackoffMs)) + if m.AppliedIndex != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x20 } if m.EstimatedWaitMs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.EstimatedWaitMs)) + i-- + dAtA[i] = 0x18 } - if m.AppliedIndex != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.AppliedIndex)) + if m.BackoffMs != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.BackoffMs)) + i-- + dAtA[i] = 0x10 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StaleCommand) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1083,17 +1888,26 @@ func (m *StaleCommand) Marshal() (dAtA []byte, err error) { } func (m *StaleCommand) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StaleCommand) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1101,27 +1915,36 @@ func (m *RaftEntryTooLarge) Marshal() (dAtA []byte, err error) { } func (m *RaftEntryTooLarge) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftEntryTooLarge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.EntrySize != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.EntrySize)) + i-- + dAtA[i] = 0x10 + } + if m.RegionId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MaxTimestampNotSynced) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1129,17 +1952,26 @@ func (m *MaxTimestampNotSynced) Marshal() (dAtA []byte, err error) { } func (m *MaxTimestampNotSynced) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MaxTimestampNotSynced) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ReadIndexNotReady) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1147,28 +1979,38 @@ func (m *ReadIndexNotReady) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexNotReady) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadIndexNotReady) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Reason) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) - i += copy(dAtA[i:], m.Reason) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ProposalInMergingMode) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1176,22 +2018,31 @@ func (m *ProposalInMergingMode) Marshal() (dAtA []byte, err error) { } func (m *ProposalInMergingMode) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalInMergingMode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DataIsNotReady) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1199,32 +2050,41 @@ func (m *DataIsNotReady) Marshal() (dAtA []byte, err error) { } func (m *DataIsNotReady) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataIsNotReady) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SafeTs != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.SafeTs)) + i-- + dAtA[i] = 0x18 } if m.PeerId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.PeerId)) + i-- + dAtA[i] = 0x10 } - if m.SafeTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.SafeTs)) + if m.RegionId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RecoveryInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1232,22 +2092,31 @@ func (m *RecoveryInProgress) Marshal() (dAtA []byte, err error) { } func (m *RecoveryInProgress) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoveryInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1255,27 +2124,36 @@ func (m *FlashbackInProgress) Marshal() (dAtA []byte, err error) { } func (m *FlashbackInProgress) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.FlashbackStartTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackStartTs)) + i-- + dAtA[i] = 0x10 + } + if m.RegionId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackNotPrepared) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1283,22 +2161,31 @@ func (m *FlashbackNotPrepared) Marshal() (dAtA []byte, err error) { } func (m *FlashbackNotPrepared) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackNotPrepared) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MismatchPeerId) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1306,27 +2193,36 @@ func (m *MismatchPeerId) Marshal() (dAtA []byte, err error) { } func (m *MismatchPeerId) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MismatchPeerId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RequestPeerId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestPeerId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StorePeerId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintErrorpb(dAtA, i, uint64(m.StorePeerId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RequestPeerId != 0 { + i = encodeVarintErrorpb(dAtA, i, uint64(m.RequestPeerId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1334,241 +2230,296 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Message) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.NotLeader != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.NotLeader.Size())) - n4, err := m.NotLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.RegionNotFound != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionNotFound.Size())) - n5, err := m.RegionNotFound.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.BucketVersionNotMatch != nil { + { + size, err := m.BucketVersionNotMatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa } - if m.KeyNotInRegion != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.KeyNotInRegion.Size())) - n6, err := m.KeyNotInRegion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.MismatchPeerId != nil { + { + size, err := m.MismatchPeerId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - if m.EpochNotMatch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.EpochNotMatch.Size())) - n7, err := m.EpochNotMatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.IsWitness != nil { + { + size, err := m.IsWitness.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - if m.ServerIsBusy != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.ServerIsBusy.Size())) - n8, err := m.ServerIsBusy.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.FlashbackNotPrepared != nil { + { + size, err := m.FlashbackNotPrepared.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 } - if m.StaleCommand != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.StaleCommand.Size())) - n9, err := m.StaleCommand.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.FlashbackInProgress != nil { + { + size, err := m.FlashbackInProgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - if m.StoreNotMatch != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.StoreNotMatch.Size())) - n10, err := m.StoreNotMatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RecoveryInProgress != nil { + { + size, err := m.RecoveryInProgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - if m.RaftEntryTooLarge != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RaftEntryTooLarge.Size())) - n11, err := m.RaftEntryTooLarge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.DiskFull != nil { + { + size, err := m.DiskFull.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x7a } - if m.MaxTimestampNotSynced != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.MaxTimestampNotSynced.Size())) - n12, err := m.MaxTimestampNotSynced.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionNotInitialized != nil { + { + size, err := m.RegionNotInitialized.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x72 } - if m.ReadIndexNotReady != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.ReadIndexNotReady.Size())) - n13, err := m.ReadIndexNotReady.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.DataIsNotReady != nil { + { + size, err := m.DataIsNotReady.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x6a } if m.ProposalInMergingMode != nil { + { + size, err := m.ProposalInMergingMode.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x62 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.ProposalInMergingMode.Size())) - n14, err := m.ProposalInMergingMode.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.ReadIndexNotReady != nil { + { + size, err := m.ReadIndexNotReady.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x5a } - if m.DataIsNotReady != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.DataIsNotReady.Size())) - n15, err := m.DataIsNotReady.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.MaxTimestampNotSynced != nil { + { + size, err := m.MaxTimestampNotSynced.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x52 } - if m.RegionNotInitialized != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RegionNotInitialized.Size())) - n16, err := m.RegionNotInitialized.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RaftEntryTooLarge != nil { + { + size, err := m.RaftEntryTooLarge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x4a } - if m.DiskFull != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.DiskFull.Size())) - n17, err := m.DiskFull.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.StoreNotMatch != nil { + { + size, err := m.StoreNotMatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x42 } - if m.RecoveryInProgress != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.RecoveryInProgress.Size())) - n18, err := m.RecoveryInProgress.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.StaleCommand != nil { + { + size, err := m.StaleCommand.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0x3a } - if m.FlashbackInProgress != nil { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackInProgress.Size())) - n19, err := m.FlashbackInProgress.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ServerIsBusy != nil { + { + size, err := m.ServerIsBusy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x32 } - if m.FlashbackNotPrepared != nil { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.FlashbackNotPrepared.Size())) - n20, err := m.FlashbackNotPrepared.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.EpochNotMatch != nil { + { + size, err := m.EpochNotMatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x2a } - if m.IsWitness != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.IsWitness.Size())) - n21, err := m.IsWitness.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.KeyNotInRegion != nil { + { + size, err := m.KeyNotInRegion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0x22 } - if m.MismatchPeerId != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.MismatchPeerId.Size())) - n22, err := m.MismatchPeerId.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionNotFound != nil { + { + size, err := m.RegionNotFound.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0x1a } - if m.BucketVersionNotMatch != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintErrorpb(dAtA, i, uint64(m.BucketVersionNotMatch.Size())) - n23, err := m.BucketVersionNotMatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.NotLeader != nil { + { + size, err := m.NotLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintErrorpb(dAtA, i, uint64(size)) } - i += n23 + i-- + dAtA[i] = 0x12 + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintErrorpb(dAtA []byte, offset int, v uint64) int { + offset -= sovErrorpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *NotLeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1578,19 +2529,31 @@ func (m *NotLeader) Size() (n int) { l = m.Leader.Size() n += 1 + l + sovErrorpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IsWitness) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BucketVersionNotMatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Version != 0 { @@ -1602,10 +2565,16 @@ func (m *BucketVersionNotMatch) Size() (n int) { n += 1 + l + sovErrorpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DiskFull) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.StoreId) > 0 { @@ -1619,10 +2588,16 @@ func (m *DiskFull) Size() (n int) { if l > 0 { n += 1 + l + sovErrorpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreNotMatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RequestStoreId != 0 { @@ -1631,28 +2606,46 @@ func (m *StoreNotMatch) Size() (n int) { if m.ActualStoreId != 0 { n += 1 + sovErrorpb(uint64(m.ActualStoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionNotFound) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionNotInitialized) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyNotInRegion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -1670,10 +2663,16 @@ func (m *KeyNotInRegion) Size() (n int) { if l > 0 { n += 1 + l + sovErrorpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EpochNotMatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.CurrentRegions) > 0 { @@ -1682,10 +2681,16 @@ func (m *EpochNotMatch) Size() (n int) { n += 1 + l + sovErrorpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ServerIsBusy) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Reason) @@ -1701,16 +2706,28 @@ func (m *ServerIsBusy) Size() (n int) { if m.AppliedIndex != 0 { n += 1 + sovErrorpb(uint64(m.AppliedIndex)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StaleCommand) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftEntryTooLarge) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1719,16 +2736,28 @@ func (m *RaftEntryTooLarge) Size() (n int) { if m.EntrySize != 0 { n += 1 + sovErrorpb(uint64(m.EntrySize)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MaxTimestampNotSynced) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadIndexNotReady) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Reason) @@ -1738,19 +2767,31 @@ func (m *ReadIndexNotReady) Size() (n int) { if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ProposalInMergingMode) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DataIsNotReady) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1762,19 +2803,31 @@ func (m *DataIsNotReady) Size() (n int) { if m.SafeTs != 0 { n += 1 + sovErrorpb(uint64(m.SafeTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RecoveryInProgress) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackInProgress) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1783,19 +2836,31 @@ func (m *FlashbackInProgress) Size() (n int) { if m.FlashbackStartTs != 0 { n += 1 + sovErrorpb(uint64(m.FlashbackStartTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackNotPrepared) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovErrorpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MismatchPeerId) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RequestPeerId != 0 { @@ -1804,10 +2869,16 @@ func (m *MismatchPeerId) Size() (n int) { if m.StorePeerId != 0 { n += 1 + sovErrorpb(uint64(m.StorePeerId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Message) @@ -1894,18 +2965,14 @@ func (m *Error) Size() (n int) { l = m.BucketVersionNotMatch.Size() n += 2 + l + sovErrorpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovErrorpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozErrorpb(x uint64) (n int) { return sovErrorpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1925,7 +2992,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1953,7 +3020,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1972,7 +3039,7 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1981,6 +3048,9 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1997,12 +3067,13 @@ func (m *NotLeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2027,7 +3098,7 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2055,7 +3126,7 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2066,12 +3137,13 @@ func (m *IsWitness) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2096,7 +3168,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2124,7 +3196,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2143,7 +3215,7 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2152,6 +3224,9 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2164,12 +3239,13 @@ func (m *BucketVersionNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2194,7 +3270,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2220,7 +3296,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2237,7 +3313,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2246,9 +3322,23 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } 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.StoreId) == 0 { + m.StoreId = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2260,7 +3350,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2284,7 +3374,7 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2294,6 +3384,9 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2305,12 +3398,13 @@ func (m *DiskFull) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2335,7 +3429,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2363,7 +3457,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestStoreId |= (uint64(b) & 0x7F) << shift + m.RequestStoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2382,7 +3476,7 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActualStoreId |= (uint64(b) & 0x7F) << shift + m.ActualStoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2393,12 +3487,13 @@ func (m *StoreNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2423,7 +3518,7 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2451,7 +3546,7 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2462,12 +3557,13 @@ func (m *RegionNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2492,7 +3588,7 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2520,7 +3616,7 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2531,12 +3627,13 @@ func (m *RegionNotInitialized) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2561,7 +3658,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2589,7 +3686,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2598,6 +3695,9 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2620,7 +3720,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2639,7 +3739,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2648,6 +3748,9 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2670,7 +3773,7 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2679,6 +3782,9 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2693,12 +3799,13 @@ func (m *KeyNotInRegion) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2723,7 +3830,7 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2751,7 +3858,7 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2760,6 +3867,9 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2774,12 +3884,13 @@ func (m *EpochNotMatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2804,7 +3915,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2832,7 +3943,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2842,6 +3953,9 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2861,7 +3975,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BackoffMs |= (uint64(b) & 0x7F) << shift + m.BackoffMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2880,7 +3994,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EstimatedWaitMs |= (uint32(b) & 0x7F) << shift + m.EstimatedWaitMs |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2899,7 +4013,7 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2910,12 +4024,13 @@ func (m *ServerIsBusy) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2940,7 +4055,7 @@ func (m *StaleCommand) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2960,12 +4075,13 @@ func (m *StaleCommand) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2990,7 +4106,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3018,7 +4134,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3037,7 +4153,7 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EntrySize |= (uint64(b) & 0x7F) << shift + m.EntrySize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3048,12 +4164,13 @@ func (m *RaftEntryTooLarge) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3078,7 +4195,7 @@ func (m *MaxTimestampNotSynced) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3098,12 +4215,13 @@ func (m *MaxTimestampNotSynced) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3128,7 +4246,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3156,7 +4274,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3166,6 +4284,9 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3185,7 +4306,7 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3196,12 +4317,13 @@ func (m *ReadIndexNotReady) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3226,7 +4348,7 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3254,7 +4376,7 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3265,12 +4387,13 @@ func (m *ProposalInMergingMode) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3295,7 +4418,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3323,7 +4446,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3342,7 +4465,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= (uint64(b) & 0x7F) << shift + m.PeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3361,7 +4484,7 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= (uint64(b) & 0x7F) << shift + m.SafeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3372,12 +4495,13 @@ func (m *DataIsNotReady) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3402,7 +4526,7 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3430,7 +4554,7 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3441,12 +4565,13 @@ func (m *RecoveryInProgress) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3471,7 +4596,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3499,7 +4624,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3518,7 +4643,7 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FlashbackStartTs |= (uint64(b) & 0x7F) << shift + m.FlashbackStartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3529,12 +4654,13 @@ func (m *FlashbackInProgress) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3559,7 +4685,7 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3587,7 +4713,7 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3598,12 +4724,13 @@ func (m *FlashbackNotPrepared) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3628,7 +4755,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3656,7 +4783,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestPeerId |= (uint64(b) & 0x7F) << shift + m.RequestPeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3675,7 +4802,7 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StorePeerId |= (uint64(b) & 0x7F) << shift + m.StorePeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3686,12 +4813,13 @@ func (m *MismatchPeerId) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3716,7 +4844,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3744,7 +4872,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3754,6 +4882,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3773,7 +4904,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3782,6 +4913,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3806,7 +4940,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3815,6 +4949,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3839,7 +4976,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3848,6 +4985,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3872,7 +5012,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3881,6 +5021,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3905,7 +5048,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3914,6 +5057,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3938,7 +5084,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3947,6 +5093,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3971,7 +5120,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3980,6 +5129,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4004,7 +5156,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4013,6 +5165,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4037,7 +5192,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4046,6 +5201,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4070,7 +5228,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4079,6 +5237,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4103,7 +5264,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4112,6 +5273,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4136,7 +5300,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4145,6 +5309,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4169,7 +5336,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4178,6 +5345,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4202,7 +5372,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4211,6 +5381,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4235,7 +5408,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4244,6 +5417,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4268,7 +5444,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4277,6 +5453,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4301,7 +5480,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4310,6 +5489,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4334,7 +5516,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4343,6 +5525,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4367,7 +5552,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4376,6 +5561,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4400,7 +5588,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4409,6 +5597,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthErrorpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthErrorpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4425,12 +5616,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthErrorpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4443,6 +5635,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { func skipErrorpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4474,10 +5667,8 @@ func skipErrorpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -4494,136 +5685,34 @@ func skipErrorpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthErrorpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowErrorpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipErrorpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupErrorpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthErrorpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthErrorpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowErrorpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthErrorpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowErrorpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupErrorpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("errorpb.proto", fileDescriptorErrorpb) } - -var fileDescriptorErrorpb = []byte{ - // 1228 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xe1, 0x6e, 0x1b, 0x45, - 0x10, 0x80, 0x71, 0x92, 0x3a, 0xf6, 0xd8, 0x3e, 0xc7, 0xd7, 0xb8, 0x39, 0x5a, 0x1a, 0x55, 0x07, - 0xaa, 0x22, 0x04, 0x41, 0x6d, 0x91, 0x90, 0x40, 0x20, 0x35, 0x34, 0x55, 0xad, 0xd4, 0x26, 0xac, - 0x23, 0xf2, 0x07, 0xe9, 0xd8, 0xf8, 0xc6, 0xee, 0xca, 0x77, 0xb7, 0x66, 0x77, 0x9d, 0xd6, 0x7d, - 0x10, 0xc4, 0x23, 0xf0, 0x02, 0xbc, 0x03, 0x3f, 0xf9, 0xc9, 0x4f, 0x54, 0x5e, 0x04, 0xed, 0xee, - 0xf9, 0xec, 0xbb, 0x1e, 0x2e, 0xbf, 0x6e, 0x67, 0x76, 0x66, 0x76, 0x76, 0x67, 0xe7, 0xbb, 0x85, - 0x16, 0x0a, 0xc1, 0xc5, 0xec, 0xea, 0x78, 0x26, 0xb8, 0xe2, 0xee, 0x6e, 0x2a, 0xde, 0x6e, 0xc6, - 0xa8, 0xe8, 0x52, 0x7d, 0x7b, 0x7f, 0xc2, 0x27, 0xdc, 0x0c, 0x3f, 0xd3, 0xa3, 0x54, 0xdb, 0x16, - 0x73, 0xa9, 0xcc, 0xd0, 0x2a, 0xfc, 0x01, 0xd4, 0x07, 0x5c, 0x3d, 0x47, 0x1a, 0xa2, 0x70, 0xef, - 0x40, 0x5d, 0xe0, 0x84, 0xf1, 0x24, 0x60, 0xa1, 0x57, 0xb9, 0x57, 0x39, 0xda, 0x21, 0x35, 0xab, - 0xe8, 0x85, 0xee, 0x47, 0x50, 0x8d, 0x8c, 0x99, 0xb7, 0x75, 0xaf, 0x72, 0xd4, 0x78, 0xd8, 0x3c, - 0x4e, 0xd7, 0x3b, 0x47, 0x14, 0x24, 0x9d,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0x0e, 0x8a, - 0xf3, 0x20, 0xd2, 0x30, 0xf1, 0xea, 0x26, 0xc8, 0xed, 0x55, 0x0d, 0x8a, 0xb8, 0x21, 0x1d, 0xf1, - 0x16, 0x81, 0x2e, 0xc1, 0x8b, 0xe9, 0xab, 0x40, 0x2d, 0x31, 0x62, 0x92, 0x92, 0x06, 0x24, 0x1e, - 0x98, 0x80, 0x87, 0x59, 0xc0, 0x52, 0xdc, 0x90, 0x6e, 0x5c, 0xa6, 0x36, 0x59, 0x22, 0x4d, 0x09, - 0x69, 0xa2, 0x6a, 0x71, 0xe1, 0x35, 0x8a, 0x59, 0x16, 0x51, 0x45, 0x3a, 0xe2, 0x2d, 0x7a, 0x5d, - 0x82, 0x37, 0x4b, 0x41, 0xa4, 0x2f, 0x4c, 0x6c, 0x51, 0x14, 0xc4, 0x3c, 0x44, 0xaf, 0x59, 0xc8, - 0xb2, 0x94, 0x58, 0xa4, 0x3b, 0x2b, 0x05, 0xd9, 0x09, 0x74, 0x42, 0xaa, 0xa8, 0xbe, 0x02, 0xab, - 0x14, 0x5b, 0x85, 0x8b, 0x98, 0xa7, 0x19, 0x71, 0xc2, 0x3c, 0xdd, 0x86, 0x70, 0x6b, 0xad, 0x1f, - 0xd8, 0xea, 0xd7, 0xeb, 0x39, 0x26, 0xd0, 0xdd, 0xb7, 0xbb, 0x62, 0xed, 0xff, 0x4c, 0xf6, 0x45, - 0xd9, 0x5f, 0xfb, 0x18, 0xea, 0x21, 0x93, 0xd3, 0x60, 0x3c, 0x8f, 0x22, 0xaf, 0x6d, 0xe2, 0x74, - 0x56, 0x09, 0xa5, 0x0f, 0x17, 0x52, 0x0b, 0x97, 0x4f, 0x98, 0xb3, 0x32, 0x26, 0x7a, 0x7b, 0xc6, - 0xf1, 0xce, 0x5a, 0x02, 0x45, 0x13, 0x52, 0x86, 0xd2, 0x41, 0x29, 0x2d, 0xbd, 0x8e, 0x89, 0xf6, - 0x41, 0x16, 0xad, 0xc4, 0x86, 0x94, 0x62, 0xf6, 0xfb, 0x72, 0x36, 0x7a, 0x6e, 0xe1, 0x7c, 0xca, - 0x8c, 0x48, 0x39, 0x56, 0x1f, 0x00, 0x30, 0x19, 0xbc, 0xb4, 0x0f, 0x46, 0xef, 0x66, 0x81, 0x5b, - 0xd9, 0x53, 0x92, 0xd4, 0x59, 0xf6, 0xaa, 0x7c, 0x0c, 0x7b, 0x71, 0x0a, 0xdb, 0x8c, 0x9a, 0xfb, - 0x85, 0x52, 0xe7, 0x69, 0x4c, 0x9c, 0x38, 0x4f, 0xe7, 0x4b, 0xf0, 0xae, 0xcc, 0xdb, 0x33, 0x48, - 0x9f, 0x96, 0x6b, 0x3d, 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, - 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, - 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, - 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, -} diff --git a/pkg/gcpb/gcpb.pb.go b/pkg/gcpb/gcpb.pb.go index 7ea7a0557..de95856f5 100644 --- a/pkg/gcpb/gcpb.pb.go +++ b/pkg/gcpb/gcpb.pb.go @@ -1,41 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: gcpb.proto -/* -Package gcpb is a generated protocol buffer package. - -It is generated from these files: - - gcpb.proto - -It has these top-level messages: - - RequestHeader - ResponseHeader - Error - KeySpace - ListKeySpacesRequest - ListKeySpacesResponse - GetMinServiceSafePointRequest - GetMinServiceSafePointResponse - UpdateGCSafePointRequest - UpdateGCSafePointResponse - UpdateServiceSafePointRequest - UpdateServiceSafePointResponse -*/ package gcpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -47,7 +26,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ErrorType int32 @@ -68,6 +47,7 @@ var ErrorType_name = map[int32]string{ 3: "REVISION_MISMATCH", 4: "SAFEPOINT_ROLLBACK", } + var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -79,19 +59,53 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } -func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{0} } + +func (ErrorType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{0} +} type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // sender_id is the ID of the sender server, also member ID or etcd ID. - SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{0} +} +func (m *RequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(m, src) +} +func (m *RequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RequestHeader.DiscardUnknown(m) } -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{0} } +var xxx_messageInfo_RequestHeader proto.InternalMessageInfo func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -109,14 +123,45 @@ func (m *RequestHeader) GetSenderId() uint64 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{1} +} +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{1} } +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -133,14 +178,45 @@ func (m *ResponseHeader) GetError() *Error { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=gcpb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=gcpb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{2} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{2} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetType() ErrorType { if m != nil { @@ -157,14 +233,45 @@ func (m *Error) GetMessage() string { } type KeySpace struct { - SpaceId []byte `protobuf:"bytes,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + SpaceId []byte `protobuf:"bytes,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeySpace) Reset() { *m = KeySpace{} } +func (m *KeySpace) String() string { return proto.CompactTextString(m) } +func (*KeySpace) ProtoMessage() {} +func (*KeySpace) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{3} +} +func (m *KeySpace) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeySpace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeySpace.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 *KeySpace) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeySpace.Merge(m, src) +} +func (m *KeySpace) XXX_Size() int { + return m.Size() +} +func (m *KeySpace) XXX_DiscardUnknown() { + xxx_messageInfo_KeySpace.DiscardUnknown(m) } -func (m *KeySpace) Reset() { *m = KeySpace{} } -func (m *KeySpace) String() string { return proto.CompactTextString(m) } -func (*KeySpace) ProtoMessage() {} -func (*KeySpace) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{3} } +var xxx_messageInfo_KeySpace proto.InternalMessageInfo func (m *KeySpace) GetSpaceId() []byte { if m != nil { @@ -181,15 +288,46 @@ func (m *KeySpace) GetGcSafePoint() uint64 { } type ListKeySpacesRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // set with_gc_safe_point to true to also receive gc safe point for each key space - WithGcSafePoint bool `protobuf:"varint,2,opt,name=with_gc_safe_point,json=withGcSafePoint,proto3" json:"with_gc_safe_point,omitempty"` + WithGcSafePoint bool `protobuf:"varint,2,opt,name=with_gc_safe_point,json=withGcSafePoint,proto3" json:"with_gc_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListKeySpacesRequest) Reset() { *m = ListKeySpacesRequest{} } +func (m *ListKeySpacesRequest) String() string { return proto.CompactTextString(m) } +func (*ListKeySpacesRequest) ProtoMessage() {} +func (*ListKeySpacesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{4} +} +func (m *ListKeySpacesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListKeySpacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListKeySpacesRequest.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 *ListKeySpacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeySpacesRequest.Merge(m, src) +} +func (m *ListKeySpacesRequest) XXX_Size() int { + return m.Size() +} +func (m *ListKeySpacesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListKeySpacesRequest.DiscardUnknown(m) } -func (m *ListKeySpacesRequest) Reset() { *m = ListKeySpacesRequest{} } -func (m *ListKeySpacesRequest) String() string { return proto.CompactTextString(m) } -func (*ListKeySpacesRequest) ProtoMessage() {} -func (*ListKeySpacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{4} } +var xxx_messageInfo_ListKeySpacesRequest proto.InternalMessageInfo func (m *ListKeySpacesRequest) GetHeader() *RequestHeader { if m != nil { @@ -206,14 +344,45 @@ func (m *ListKeySpacesRequest) GetWithGcSafePoint() bool { } type ListKeySpacesResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - KeySpaces []*KeySpace `protobuf:"bytes,2,rep,name=key_spaces,json=keySpaces" json:"key_spaces,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeySpaces []*KeySpace `protobuf:"bytes,2,rep,name=key_spaces,json=keySpaces,proto3" json:"key_spaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListKeySpacesResponse) Reset() { *m = ListKeySpacesResponse{} } +func (m *ListKeySpacesResponse) String() string { return proto.CompactTextString(m) } +func (*ListKeySpacesResponse) ProtoMessage() {} +func (*ListKeySpacesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{5} +} +func (m *ListKeySpacesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListKeySpacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListKeySpacesResponse.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 *ListKeySpacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeySpacesResponse.Merge(m, src) +} +func (m *ListKeySpacesResponse) XXX_Size() int { + return m.Size() +} +func (m *ListKeySpacesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListKeySpacesResponse.DiscardUnknown(m) } -func (m *ListKeySpacesResponse) Reset() { *m = ListKeySpacesResponse{} } -func (m *ListKeySpacesResponse) String() string { return proto.CompactTextString(m) } -func (*ListKeySpacesResponse) ProtoMessage() {} -func (*ListKeySpacesResponse) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{5} } +var xxx_messageInfo_ListKeySpacesResponse proto.InternalMessageInfo func (m *ListKeySpacesResponse) GetHeader() *ResponseHeader { if m != nil { @@ -230,17 +399,46 @@ func (m *ListKeySpacesResponse) GetKeySpaces() []*KeySpace { } type GetMinServiceSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetMinServiceSafePointRequest) Reset() { *m = GetMinServiceSafePointRequest{} } func (m *GetMinServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointRequest) ProtoMessage() {} func (*GetMinServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptorGcpb, []int{6} + return fileDescriptor_b5e0ef170d88dab2, []int{6} +} +func (m *GetMinServiceSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMinServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMinServiceSafePointRequest.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 *GetMinServiceSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinServiceSafePointRequest.Merge(m, src) +} +func (m *GetMinServiceSafePointRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMinServiceSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinServiceSafePointRequest.DiscardUnknown(m) } +var xxx_messageInfo_GetMinServiceSafePointRequest proto.InternalMessageInfo + func (m *GetMinServiceSafePointRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -256,20 +454,49 @@ func (m *GetMinServiceSafePointRequest) GetSpaceId() []byte { } type GetMinServiceSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `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"` // revision here is to safeguard the validity of the obtained min, // preventing cases where new services register their safe points after min is obtained by gc worker - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetMinServiceSafePointResponse) Reset() { *m = GetMinServiceSafePointResponse{} } func (m *GetMinServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointResponse) ProtoMessage() {} func (*GetMinServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptorGcpb, []int{7} + return fileDescriptor_b5e0ef170d88dab2, []int{7} +} +func (m *GetMinServiceSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMinServiceSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMinServiceSafePointResponse.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 *GetMinServiceSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinServiceSafePointResponse.Merge(m, src) +} +func (m *GetMinServiceSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMinServiceSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinServiceSafePointResponse.DiscardUnknown(m) } +var xxx_messageInfo_GetMinServiceSafePointResponse proto.InternalMessageInfo + func (m *GetMinServiceSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -292,18 +519,49 @@ func (m *GetMinServiceSafePointResponse) GetRevision() int64 { } type UpdateGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` // here client need to provide the revision obtained from GetMinServiceSafePoint, // so server can check if it's still valid - Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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_b5e0ef170d88dab2, []int{8} +} +func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointRequest.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 *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointRequest.Merge(m, src) +} +func (m *UpdateGCSafePointRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateGCSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointRequest.DiscardUnknown(m) } -func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } -func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointRequest) ProtoMessage() {} -func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{8} } +var xxx_messageInfo_UpdateGCSafePointRequest proto.InternalMessageInfo func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -334,17 +592,48 @@ func (m *UpdateGCSafePointRequest) GetRevision() int64 { } type UpdateGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // update will be successful if revision is valid and new safepoint > old safe point // if failed, previously obtained min might be incorrect, should retry from GetMinServiceSafePoint - Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` - NewSafePoint uint64 `protobuf:"varint,3,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + NewSafePoint uint64 `protobuf:"varint,3,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } +func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointResponse) ProtoMessage() {} +func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b5e0ef170d88dab2, []int{9} +} +func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointResponse.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 *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointResponse.Merge(m, src) +} +func (m *UpdateGCSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateGCSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointResponse.DiscardUnknown(m) } -func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } -func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointResponse) ProtoMessage() {} -func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorGcpb, []int{9} } +var xxx_messageInfo_UpdateGCSafePointResponse proto.InternalMessageInfo func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -368,22 +657,51 @@ func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { } type UpdateServiceSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` SpaceId []byte `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` ServiceId []byte `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // safe point will be set to expire on (PD Server time + TTL) // pass in a ttl < 0 to remove target safe point // pass in MAX_INT64 to set a safe point that never expire - TTL int64 `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"` - SafePoint uint64 `protobuf:"varint,5,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + TTL int64 `protobuf:"varint,4,opt,name=TTL,proto3" json:"TTL,omitempty"` + SafePoint uint64 `protobuf:"varint,5,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceSafePointRequest) Reset() { *m = UpdateServiceSafePointRequest{} } func (m *UpdateServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointRequest) ProtoMessage() {} func (*UpdateServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptorGcpb, []int{10} + return fileDescriptor_b5e0ef170d88dab2, []int{10} } +func (m *UpdateServiceSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceSafePointRequest.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 *UpdateServiceSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointRequest.Merge(m, src) +} +func (m *UpdateServiceSafePointRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateServiceSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceSafePointRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateServiceSafePointRequest proto.InternalMessageInfo func (m *UpdateServiceSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -421,21 +739,50 @@ func (m *UpdateServiceSafePointRequest) GetSafePoint() uint64 { } type UpdateServiceSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // update will be successful if ttl < 0 (a removal request) // or if new safe point >= old safe point and new safe point >= gc safe point - Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` - GcSafePoint uint64 `protobuf:"varint,3,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` - OldSafePoint uint64 `protobuf:"varint,4,opt,name=old_safe_point,json=oldSafePoint,proto3" json:"old_safe_point,omitempty"` - NewSafePoint uint64 `protobuf:"varint,5,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + GcSafePoint uint64 `protobuf:"varint,3,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + OldSafePoint uint64 `protobuf:"varint,4,opt,name=old_safe_point,json=oldSafePoint,proto3" json:"old_safe_point,omitempty"` + NewSafePoint uint64 `protobuf:"varint,5,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceSafePointResponse) Reset() { *m = UpdateServiceSafePointResponse{} } func (m *UpdateServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointResponse) ProtoMessage() {} func (*UpdateServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptorGcpb, []int{11} + return fileDescriptor_b5e0ef170d88dab2, []int{11} } +func (m *UpdateServiceSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateServiceSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceSafePointResponse.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 *UpdateServiceSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointResponse.Merge(m, src) +} +func (m *UpdateServiceSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateServiceSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceSafePointResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateServiceSafePointResponse proto.InternalMessageInfo func (m *UpdateServiceSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -473,6 +820,7 @@ func (m *UpdateServiceSafePointResponse) GetNewSafePoint() uint64 { } func init() { + proto.RegisterEnum("gcpb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "gcpb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "gcpb.ResponseHeader") proto.RegisterType((*Error)(nil), "gcpb.Error") @@ -485,7 +833,59 @@ func init() { proto.RegisterType((*UpdateGCSafePointResponse)(nil), "gcpb.UpdateGCSafePointResponse") proto.RegisterType((*UpdateServiceSafePointRequest)(nil), "gcpb.UpdateServiceSafePointRequest") proto.RegisterType((*UpdateServiceSafePointResponse)(nil), "gcpb.UpdateServiceSafePointResponse") - proto.RegisterEnum("gcpb.ErrorType", ErrorType_name, ErrorType_value) +} + +func init() { proto.RegisterFile("gcpb.proto", fileDescriptor_b5e0ef170d88dab2) } + +var fileDescriptor_b5e0ef170d88dab2 = []byte{ + // 750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, + 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, + 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, + 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, + 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, + 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0x00, 0x2c, 0xc3, + 0xbd, 0x2c, 0xb8, 0x9e, 0xe3, 0x3b, 0x28, 0x16, 0xac, 0xb3, 0x69, 0xcb, 0xb1, 0x1c, 0x1a, 0x78, + 0x11, 0xac, 0x18, 0x96, 0xdd, 0xf0, 0x7a, 0xc4, 0xa7, 0x4b, 0x16, 0x90, 0x6a, 0xb0, 0xae, 0xe2, + 0x77, 0x3d, 0x4c, 0xfc, 0x53, 0xdc, 0x36, 0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xfe, 0xfc, 0xb6, 0x0a, 0xe5, + 0x2f, 0xfd, 0x5c, 0x42, 0xf9, 0xcb, 0x3b, 0x53, 0x8a, 0x1c, 0x3f, 0xf9, 0xfe, 0x39, 0xc1, 0x7d, + 0xbd, 0xcb, 0x73, 0xdf, 0xee, 0xf2, 0xdc, 0xcf, 0xbb, 0x3c, 0xf7, 0xf1, 0x57, 0x3e, 0x02, 0xa2, + 0xe3, 0x59, 0x05, 0xdf, 0xee, 0xf4, 0x0b, 0x9d, 0x3e, 0xfd, 0x87, 0xbf, 0x5c, 0xa1, 0x3f, 0x2f, + 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x66, 0xde, 0x26, 0x9d, 0x23, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -496,8 +896,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for GC service - +// GCClient is the client API for GC service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type GCClient interface { ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, opts ...grpc.CallOption) (*ListKeySpacesResponse, error) GetMinServiceSafePoint(ctx context.Context, in *GetMinServiceSafePointRequest, opts ...grpc.CallOption) (*GetMinServiceSafePointResponse, error) @@ -515,7 +916,7 @@ func NewGCClient(cc *grpc.ClientConn) GCClient { func (c *gCClient) ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, opts ...grpc.CallOption) (*ListKeySpacesResponse, error) { out := new(ListKeySpacesResponse) - err := grpc.Invoke(ctx, "/gcpb.GC/ListKeySpaces", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gcpb.GC/ListKeySpaces", in, out, opts...) if err != nil { return nil, err } @@ -524,7 +925,7 @@ func (c *gCClient) ListKeySpaces(ctx context.Context, in *ListKeySpacesRequest, func (c *gCClient) GetMinServiceSafePoint(ctx context.Context, in *GetMinServiceSafePointRequest, opts ...grpc.CallOption) (*GetMinServiceSafePointResponse, error) { out := new(GetMinServiceSafePointResponse) - err := grpc.Invoke(ctx, "/gcpb.GC/GetMinServiceSafePoint", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gcpb.GC/GetMinServiceSafePoint", in, out, opts...) if err != nil { return nil, err } @@ -533,7 +934,7 @@ func (c *gCClient) GetMinServiceSafePoint(ctx context.Context, in *GetMinService func (c *gCClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) { out := new(UpdateGCSafePointResponse) - err := grpc.Invoke(ctx, "/gcpb.GC/UpdateGCSafePoint", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gcpb.GC/UpdateGCSafePoint", in, out, opts...) if err != nil { return nil, err } @@ -542,15 +943,14 @@ func (c *gCClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointR func (c *gCClient) UpdateServiceSafePoint(ctx context.Context, in *UpdateServiceSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceSafePointResponse, error) { out := new(UpdateServiceSafePointResponse) - err := grpc.Invoke(ctx, "/gcpb.GC/UpdateServiceSafePoint", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gcpb.GC/UpdateServiceSafePoint", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for GC service - +// GCServer is the server API for GC service. type GCServer interface { ListKeySpaces(context.Context, *ListKeySpacesRequest) (*ListKeySpacesResponse, error) GetMinServiceSafePoint(context.Context, *GetMinServiceSafePointRequest) (*GetMinServiceSafePointResponse, error) @@ -558,6 +958,23 @@ type GCServer interface { UpdateServiceSafePoint(context.Context, *UpdateServiceSafePointRequest) (*UpdateServiceSafePointResponse, error) } +// UnimplementedGCServer can be embedded to have forward compatible implementations. +type UnimplementedGCServer struct { +} + +func (*UnimplementedGCServer) ListKeySpaces(ctx context.Context, req *ListKeySpacesRequest) (*ListKeySpacesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListKeySpaces not implemented") +} +func (*UnimplementedGCServer) GetMinServiceSafePoint(ctx context.Context, req *GetMinServiceSafePointRequest) (*GetMinServiceSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMinServiceSafePoint not implemented") +} +func (*UnimplementedGCServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") +} +func (*UnimplementedGCServer) UpdateServiceSafePoint(ctx context.Context, req *UpdateServiceSafePointRequest) (*UpdateServiceSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePoint not implemented") +} + func RegisterGCServer(s *grpc.Server, srv GCServer) { s.RegisterService(&_GC_serviceDesc, srv) } @@ -662,7 +1079,7 @@ var _GC_serviceDesc = grpc.ServiceDesc{ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -670,27 +1087,36 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SenderId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintGcpb(dAtA, i, uint64(m.SenderId)) + i-- + dAtA[i] = 0x10 + } + if m.ClusterId != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -698,32 +1124,43 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -731,28 +1168,38 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintGcpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Type != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *KeySpace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -760,28 +1207,38 @@ func (m *KeySpace) Marshal() (dAtA []byte, err error) { } func (m *KeySpace) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeySpace) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.SpaceId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i += copy(dAtA[i:], m.SpaceId) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.GcSafePoint != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.SpaceId) > 0 { + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ListKeySpacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -789,37 +1246,48 @@ func (m *ListKeySpacesRequest) Marshal() (dAtA []byte, err error) { } func (m *ListKeySpacesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListKeySpacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n2, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.WithGcSafePoint { - dAtA[i] = 0x10 - i++ + i-- if m.WithGcSafePoint { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ListKeySpacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -827,39 +1295,52 @@ func (m *ListKeySpacesResponse) Marshal() (dAtA []byte, err error) { } func (m *ListKeySpacesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListKeySpacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n3, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.KeySpaces) > 0 { - for _, msg := range m.KeySpaces { + for iNdEx := len(m.KeySpaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.KeySpaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMinServiceSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -867,33 +1348,45 @@ func (m *GetMinServiceSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMinServiceSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMinServiceSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n4, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.SpaceId) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i += copy(dAtA[i:], m.SpaceId) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMinServiceSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -901,37 +1394,48 @@ func (m *GetMinServiceSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMinServiceSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMinServiceSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Revision != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x18 } if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x10 } - if m.Revision != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -939,43 +1443,55 @@ func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n6, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.SpaceId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i += copy(dAtA[i:], m.SpaceId) + if m.Revision != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x20 } if m.SafePoint != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x18 } - if m.Revision != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) + if len(m.SpaceId) > 0 { + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -983,42 +1499,53 @@ func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + 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.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n7, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NewSafePoint != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + i-- + dAtA[i] = 0x18 } if m.Succeeded { - dAtA[i] = 0x10 - i++ + i-- if m.Succeeded { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - if m.NewSafePoint != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateServiceSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1026,49 +1553,62 @@ func (m *UpdateServiceSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n8, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.SpaceId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) - i += copy(dAtA[i:], m.SpaceId) + if m.SafePoint != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x28 + } + if m.TTL != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.TTL)) + i-- + dAtA[i] = 0x20 } if len(m.ServiceId) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.ServiceId) + copy(dAtA[i:], m.ServiceId) i = encodeVarintGcpb(dAtA, i, uint64(len(m.ServiceId))) - i += copy(dAtA[i:], m.ServiceId) + i-- + dAtA[i] = 0x1a } - if m.TTL != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.TTL)) + if len(m.SpaceId) > 0 { + i -= len(m.SpaceId) + copy(dAtA[i:], m.SpaceId) + i = encodeVarintGcpb(dAtA, i, uint64(len(m.SpaceId))) + i-- + dAtA[i] = 0x12 } - if m.SafePoint != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateServiceSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1076,58 +1616,74 @@ func (m *UpdateServiceSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) - n9, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NewSafePoint != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + i-- + dAtA[i] = 0x28 + } + if m.OldSafePoint != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.OldSafePoint)) + i-- + dAtA[i] = 0x20 + } + if m.GcSafePoint != 0 { + i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) + i-- + dAtA[i] = 0x18 } if m.Succeeded { - dAtA[i] = 0x10 - i++ + i-- if m.Succeeded { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.GcSafePoint != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.GcSafePoint)) - } - if m.OldSafePoint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.OldSafePoint)) + i-- + dAtA[i] = 0x10 } - if m.NewSafePoint != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintGcpb(dAtA []byte, offset int, v uint64) int { + offset -= sovGcpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *RequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1136,10 +1692,16 @@ func (m *RequestHeader) Size() (n int) { if m.SenderId != 0 { n += 1 + sovGcpb(uint64(m.SenderId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1149,10 +1711,16 @@ func (m *ResponseHeader) Size() (n int) { l = m.Error.Size() n += 1 + l + sovGcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -1162,10 +1730,16 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovGcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeySpace) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.SpaceId) @@ -1175,10 +1749,16 @@ func (m *KeySpace) Size() (n int) { if m.GcSafePoint != 0 { n += 1 + sovGcpb(uint64(m.GcSafePoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListKeySpacesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1188,10 +1768,16 @@ func (m *ListKeySpacesRequest) Size() (n int) { if m.WithGcSafePoint { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListKeySpacesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1204,10 +1790,16 @@ func (m *ListKeySpacesResponse) Size() (n int) { n += 1 + l + sovGcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMinServiceSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1218,10 +1810,16 @@ func (m *GetMinServiceSafePointRequest) Size() (n int) { if l > 0 { n += 1 + l + sovGcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMinServiceSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1234,10 +1832,16 @@ func (m *GetMinServiceSafePointResponse) Size() (n int) { if m.Revision != 0 { n += 1 + sovGcpb(uint64(m.Revision)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateGCSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1254,10 +1858,16 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { if m.Revision != 0 { n += 1 + sovGcpb(uint64(m.Revision)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateGCSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1270,10 +1880,16 @@ func (m *UpdateGCSafePointResponse) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovGcpb(uint64(m.NewSafePoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateServiceSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1294,10 +1910,16 @@ func (m *UpdateServiceSafePointRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovGcpb(uint64(m.SafePoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateServiceSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1316,18 +1938,14 @@ func (m *UpdateServiceSafePointResponse) Size() (n int) { if m.NewSafePoint != 0 { n += 1 + sovGcpb(uint64(m.NewSafePoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovGcpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozGcpb(x uint64) (n int) { return sovGcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1347,7 +1965,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1375,7 +1993,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1394,7 +2012,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= (uint64(b) & 0x7F) << shift + m.SenderId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1405,12 +2023,13 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1435,7 +2054,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1463,7 +2082,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1482,7 +2101,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1491,6 +2110,9 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1507,12 +2129,13 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1537,7 +2160,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1565,7 +2188,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } @@ -1584,7 +2207,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1594,6 +2217,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1605,12 +2231,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1635,7 +2262,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1663,7 +2290,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1672,6 +2299,9 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1694,7 +2324,7 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcSafePoint |= (uint64(b) & 0x7F) << shift + m.GcSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1705,12 +2335,13 @@ func (m *KeySpace) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1735,7 +2366,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1763,7 +2394,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1772,6 +2403,9 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1796,7 +2430,7 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1808,12 +2442,13 @@ func (m *ListKeySpacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1838,7 +2473,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1866,7 +2501,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1875,6 +2510,9 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1899,7 +2537,7 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1908,6 +2546,9 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1922,12 +2563,13 @@ func (m *ListKeySpacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1952,7 +2594,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1980,7 +2622,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1989,6 +2631,9 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2013,7 +2658,7 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2022,6 +2667,9 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2036,12 +2684,13 @@ func (m *GetMinServiceSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2066,7 +2715,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2094,7 +2743,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2103,6 +2752,9 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2127,7 +2779,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= (uint64(b) & 0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2146,7 +2798,7 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= (int64(b) & 0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2157,12 +2809,13 @@ func (m *GetMinServiceSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2187,7 +2840,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2215,7 +2868,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2224,6 +2877,9 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2248,7 +2904,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2257,6 +2913,9 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2279,7 +2938,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= (uint64(b) & 0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2298,7 +2957,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= (int64(b) & 0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2309,12 +2968,13 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2339,7 +2999,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2367,7 +3027,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2376,6 +3036,9 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2400,7 +3063,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2420,7 +3083,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= (uint64(b) & 0x7F) << shift + m.NewSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2431,12 +3094,13 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2461,7 +3125,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2489,7 +3153,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2498,6 +3162,9 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2522,7 +3189,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2531,6 +3198,9 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2553,7 +3223,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2562,6 +3232,9 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2584,7 +3257,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TTL |= (int64(b) & 0x7F) << shift + m.TTL |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2603,7 +3276,7 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= (uint64(b) & 0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2614,12 +3287,13 @@ func (m *UpdateServiceSafePointRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2644,7 +3318,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2672,7 +3346,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2681,6 +3355,9 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthGcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2705,7 +3382,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2725,7 +3402,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcSafePoint |= (uint64(b) & 0x7F) << shift + m.GcSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2744,7 +3421,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OldSafePoint |= (uint64(b) & 0x7F) << shift + m.OldSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2763,7 +3440,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= (uint64(b) & 0x7F) << shift + m.NewSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2774,12 +3451,13 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2792,6 +3470,7 @@ func (m *UpdateServiceSafePointResponse) Unmarshal(dAtA []byte) error { func skipGcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2823,10 +3502,8 @@ func skipGcpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2843,106 +3520,34 @@ func skipGcpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthGcpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGcpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGcpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGcpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthGcpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthGcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGcpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthGcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGcpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGcpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("gcpb.proto", fileDescriptorGcpb) } - -var fileDescriptorGcpb = []byte{ - // 750 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, - 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, - 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, - 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, - 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, - 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0x00, 0x2c, 0xc3, - 0xbd, 0x2c, 0xb8, 0x9e, 0xe3, 0x3b, 0x28, 0x16, 0xac, 0xb3, 0x69, 0xcb, 0xb1, 0x1c, 0x1a, 0x78, - 0x11, 0xac, 0x18, 0x96, 0xdd, 0xf0, 0x7a, 0xc4, 0xa7, 0x4b, 0x16, 0x90, 0x6a, 0xb0, 0xae, 0xe2, - 0x77, 0x3d, 0x4c, 0xfc, 0x53, 0xdc, 0x36, 0xb1, 0x87, 0x72, 0x00, 0xc6, 0x4d, 0x8f, 0xf8, 0xd8, - 0xd3, 0x6d, 0x33, 0xc3, 0xed, 0x71, 0x87, 0x31, 0x55, 0x18, 0x46, 0x64, 0x13, 0xed, 0x82, 0x40, - 0x70, 0xd7, 0x64, 0x68, 0x94, 0xa2, 0x09, 0x16, 0x90, 0x4d, 0x49, 0x85, 0x94, 0x8a, 0x89, 0xeb, - 0x74, 0x09, 0xfe, 0xbb, 0x6c, 0xff, 0x43, 0x1c, 0x7b, 0x9e, 0xe3, 0xd1, 0x4c, 0xc9, 0x62, 0xb2, - 0x40, 0xcb, 0xa8, 0x04, 0x21, 0x95, 0x21, 0xd2, 0x09, 0xc4, 0xe9, 0x1e, 0xed, 0x43, 0xcc, 0x1f, - 0xb8, 0x98, 0x26, 0x49, 0x15, 0x37, 0xc6, 0x8e, 0x6a, 0x03, 0x17, 0xab, 0x14, 0x44, 0x19, 0x58, - 0x7d, 0x8b, 0x09, 0x69, 0x5b, 0x98, 0xa6, 0x14, 0xd4, 0x70, 0x2b, 0xc9, 0x90, 0xa8, 0xe1, 0x41, - 0xcb, 0x6d, 0x1b, 0x18, 0xed, 0x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a9, 0x34, 0x15, 0xb9, 0xa1, 0xe9, 0xaa, 0x52, 0xaf, 0x1f, 0x97, 0xca, 0x35, 0x31, 0x56, - 0xfc, 0x1d, 0x85, 0x68, 0xb5, 0x8c, 0x5e, 0xc3, 0xfa, 0xc4, 0x84, 0x42, 0x59, 0x66, 0xd5, 0xbc, - 0x41, 0x99, 0xdd, 0x9d, 0x8b, 0x31, 0x4f, 0xa5, 0x08, 0xc2, 0xb0, 0x3d, 0x7f, 0x1a, 0xa0, 0x7d, - 0x76, 0x71, 0xe9, 0x54, 0xca, 0x1e, 0x2c, 0x3f, 0x34, 0xa2, 0xb9, 0x80, 0xcd, 0x99, 0x0f, 0x09, - 0xe5, 0xd9, 0xe5, 0x45, 0x13, 0x20, 0xfb, 0xdf, 0x42, 0x7c, 0x5c, 0xfe, 0xfc, 0xb6, 0x0a, 0xe5, - 0x2f, 0xfd, 0x5c, 0x42, 0xf9, 0xcb, 0x3b, 0x53, 0x8a, 0x1c, 0x3f, 0xf9, 0xfe, 0x39, 0xc1, 0x7d, - 0xbd, 0xcb, 0x73, 0xdf, 0xee, 0xf2, 0xdc, 0xcf, 0xbb, 0x3c, 0xf7, 0xf1, 0x57, 0x3e, 0x02, 0xa2, - 0xe3, 0x59, 0x05, 0xdf, 0xee, 0xf4, 0x0b, 0x9d, 0x3e, 0xfd, 0x87, 0xbf, 0x5c, 0xa1, 0x3f, 0x2f, - 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x66, 0xde, 0x26, 0x9d, 0x23, 0x08, 0x00, 0x00, -} diff --git a/pkg/import_kvpb/import_kvpb.pb.go b/pkg/import_kvpb/import_kvpb.pb.go index fcb341ee2..e10404263 100644 --- a/pkg/import_kvpb/import_kvpb.pb.go +++ b/pkg/import_kvpb/import_kvpb.pb.go @@ -1,55 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: import_kvpb.proto -/* -Package import_kvpb is a generated protocol buffer package. - -It is generated from these files: - - import_kvpb.proto - -It has these top-level messages: - - SwitchModeRequest - SwitchModeResponse - OpenEngineRequest - OpenEngineResponse - WriteHead - Mutation - WriteBatch - WriteEngineRequest - KVPair - WriteEngineV3Request - WriteEngineResponse - CloseEngineRequest - CloseEngineResponse - ImportEngineRequest - ImportEngineResponse - CleanupEngineRequest - CleanupEngineResponse - CompactClusterRequest - CompactClusterResponse - GetVersionRequest - GetVersionResponse - GetMetricsRequest - GetMetricsResponse - Error -*/ package import_kvpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -61,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Mutation_OP int32 @@ -72,6 +38,7 @@ const ( var Mutation_OP_name = map[int32]string{ 0: "Put", } + var Mutation_OP_value = map[string]int32{ "Put": 0, } @@ -79,17 +46,51 @@ var Mutation_OP_value = map[string]int32{ func (x Mutation_OP) String() string { return proto.EnumName(Mutation_OP_name, int32(x)) } -func (Mutation_OP) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{5, 0} } + +func (Mutation_OP) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{5, 0} +} type SwitchModeRequest struct { - PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` - Request *import_sstpb.SwitchModeRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` + PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + Request *import_sstpb.SwitchModeRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } +func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchModeRequest) ProtoMessage() {} +func (*SwitchModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{0} +} +func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchModeRequest.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 *SwitchModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeRequest.Merge(m, src) +} +func (m *SwitchModeRequest) XXX_Size() int { + return m.Size() +} +func (m *SwitchModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchModeRequest.DiscardUnknown(m) } -func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } -func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchModeRequest) ProtoMessage() {} -func (*SwitchModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{0} } +var xxx_messageInfo_SwitchModeRequest proto.InternalMessageInfo func (m *SwitchModeRequest) GetPdAddr() string { if m != nil { @@ -106,22 +107,84 @@ func (m *SwitchModeRequest) GetRequest() *import_sstpb.SwitchModeRequest { } type SwitchModeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } +func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchModeResponse) ProtoMessage() {} +func (*SwitchModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{1} +} +func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchModeResponse.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 *SwitchModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeResponse.Merge(m, src) +} +func (m *SwitchModeResponse) XXX_Size() int { + return m.Size() +} +func (m *SwitchModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchModeResponse.DiscardUnknown(m) } -func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } -func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchModeResponse) ProtoMessage() {} -func (*SwitchModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{1} } +var xxx_messageInfo_SwitchModeResponse proto.InternalMessageInfo type OpenEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - KeyPrefix []byte `protobuf:"bytes,2,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + KeyPrefix []byte `protobuf:"bytes,2,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpenEngineRequest) Reset() { *m = OpenEngineRequest{} } +func (m *OpenEngineRequest) String() string { return proto.CompactTextString(m) } +func (*OpenEngineRequest) ProtoMessage() {} +func (*OpenEngineRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{2} +} +func (m *OpenEngineRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenEngineRequest.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 *OpenEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenEngineRequest.Merge(m, src) +} +func (m *OpenEngineRequest) XXX_Size() int { + return m.Size() +} +func (m *OpenEngineRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OpenEngineRequest.DiscardUnknown(m) } -func (m *OpenEngineRequest) Reset() { *m = OpenEngineRequest{} } -func (m *OpenEngineRequest) String() string { return proto.CompactTextString(m) } -func (*OpenEngineRequest) ProtoMessage() {} -func (*OpenEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{2} } +var xxx_messageInfo_OpenEngineRequest proto.InternalMessageInfo func (m *OpenEngineRequest) GetUuid() []byte { if m != nil { @@ -138,21 +201,83 @@ func (m *OpenEngineRequest) GetKeyPrefix() []byte { } type OpenEngineResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpenEngineResponse) Reset() { *m = OpenEngineResponse{} } +func (m *OpenEngineResponse) String() string { return proto.CompactTextString(m) } +func (*OpenEngineResponse) ProtoMessage() {} +func (*OpenEngineResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{3} +} +func (m *OpenEngineResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenEngineResponse.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 *OpenEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenEngineResponse.Merge(m, src) +} +func (m *OpenEngineResponse) XXX_Size() int { + return m.Size() +} +func (m *OpenEngineResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OpenEngineResponse.DiscardUnknown(m) } -func (m *OpenEngineResponse) Reset() { *m = OpenEngineResponse{} } -func (m *OpenEngineResponse) String() string { return proto.CompactTextString(m) } -func (*OpenEngineResponse) ProtoMessage() {} -func (*OpenEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{3} } +var xxx_messageInfo_OpenEngineResponse proto.InternalMessageInfo type WriteHead struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteHead) Reset() { *m = WriteHead{} } +func (m *WriteHead) String() string { return proto.CompactTextString(m) } +func (*WriteHead) ProtoMessage() {} +func (*WriteHead) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{4} +} +func (m *WriteHead) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteHead.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 *WriteHead) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteHead.Merge(m, src) +} +func (m *WriteHead) XXX_Size() int { + return m.Size() +} +func (m *WriteHead) XXX_DiscardUnknown() { + xxx_messageInfo_WriteHead.DiscardUnknown(m) } -func (m *WriteHead) Reset() { *m = WriteHead{} } -func (m *WriteHead) String() string { return proto.CompactTextString(m) } -func (*WriteHead) ProtoMessage() {} -func (*WriteHead) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{4} } +var xxx_messageInfo_WriteHead proto.InternalMessageInfo func (m *WriteHead) GetUuid() []byte { if m != nil { @@ -162,15 +287,46 @@ func (m *WriteHead) GetUuid() []byte { } type Mutation struct { - Op Mutation_OP `protobuf:"varint,1,opt,name=op,proto3,enum=import_kvpb.Mutation_OP" json:"op,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Op Mutation_OP `protobuf:"varint,1,opt,name=op,proto3,enum=import_kvpb.Mutation_OP" json:"op,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mutation) Reset() { *m = Mutation{} } +func (m *Mutation) String() string { return proto.CompactTextString(m) } +func (*Mutation) ProtoMessage() {} +func (*Mutation) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{5} +} +func (m *Mutation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mutation.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 *Mutation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mutation.Merge(m, src) +} +func (m *Mutation) XXX_Size() int { + return m.Size() +} +func (m *Mutation) XXX_DiscardUnknown() { + xxx_messageInfo_Mutation.DiscardUnknown(m) } -func (m *Mutation) Reset() { *m = Mutation{} } -func (m *Mutation) String() string { return proto.CompactTextString(m) } -func (*Mutation) ProtoMessage() {} -func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{5} } +var xxx_messageInfo_Mutation proto.InternalMessageInfo func (m *Mutation) GetOp() Mutation_OP { if m != nil { @@ -194,14 +350,45 @@ func (m *Mutation) GetValue() []byte { } type WriteBatch struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteBatch) Reset() { *m = WriteBatch{} } +func (m *WriteBatch) String() string { return proto.CompactTextString(m) } +func (*WriteBatch) ProtoMessage() {} +func (*WriteBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{6} +} +func (m *WriteBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteBatch.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 *WriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteBatch.Merge(m, src) +} +func (m *WriteBatch) XXX_Size() int { + return m.Size() +} +func (m *WriteBatch) XXX_DiscardUnknown() { + xxx_messageInfo_WriteBatch.DiscardUnknown(m) } -func (m *WriteBatch) Reset() { *m = WriteBatch{} } -func (m *WriteBatch) String() string { return proto.CompactTextString(m) } -func (*WriteBatch) ProtoMessage() {} -func (*WriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{6} } +var xxx_messageInfo_WriteBatch proto.InternalMessageInfo func (m *WriteBatch) GetCommitTs() uint64 { if m != nil { @@ -221,13 +408,44 @@ type WriteEngineRequest struct { // Types that are valid to be assigned to Chunk: // *WriteEngineRequest_Head // *WriteEngineRequest_Batch - Chunk isWriteEngineRequest_Chunk `protobuf_oneof:"chunk"` + Chunk isWriteEngineRequest_Chunk `protobuf_oneof:"chunk"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteEngineRequest) Reset() { *m = WriteEngineRequest{} } +func (m *WriteEngineRequest) String() string { return proto.CompactTextString(m) } +func (*WriteEngineRequest) ProtoMessage() {} +func (*WriteEngineRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{7} +} +func (m *WriteEngineRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteEngineRequest.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 *WriteEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineRequest.Merge(m, src) +} +func (m *WriteEngineRequest) XXX_Size() int { + return m.Size() +} +func (m *WriteEngineRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WriteEngineRequest.DiscardUnknown(m) } -func (m *WriteEngineRequest) Reset() { *m = WriteEngineRequest{} } -func (m *WriteEngineRequest) String() string { return proto.CompactTextString(m) } -func (*WriteEngineRequest) ProtoMessage() {} -func (*WriteEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{7} } +var xxx_messageInfo_WriteEngineRequest proto.InternalMessageInfo type isWriteEngineRequest_Chunk interface { isWriteEngineRequest_Chunk() @@ -236,10 +454,10 @@ type isWriteEngineRequest_Chunk interface { } type WriteEngineRequest_Head struct { - Head *WriteHead `protobuf:"bytes,1,opt,name=head,oneof"` + Head *WriteHead `protobuf:"bytes,1,opt,name=head,proto3,oneof" json:"head,omitempty"` } type WriteEngineRequest_Batch struct { - Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` + Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` } func (*WriteEngineRequest_Head) isWriteEngineRequest_Chunk() {} @@ -266,89 +484,54 @@ func (m *WriteEngineRequest) GetBatch() *WriteBatch { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*WriteEngineRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _WriteEngineRequest_OneofMarshaler, _WriteEngineRequest_OneofUnmarshaler, _WriteEngineRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*WriteEngineRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*WriteEngineRequest_Head)(nil), (*WriteEngineRequest_Batch)(nil), } } -func _WriteEngineRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*WriteEngineRequest) - // chunk - switch x := m.Chunk.(type) { - case *WriteEngineRequest_Head: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Head); err != nil { - return err - } - case *WriteEngineRequest_Batch: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Batch); err != nil { - return err +type KVPair struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KVPair) Reset() { *m = KVPair{} } +func (m *KVPair) String() string { return proto.CompactTextString(m) } +func (*KVPair) ProtoMessage() {} +func (*KVPair) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{8} +} +func (m *KVPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KVPair.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("WriteEngineRequest.Chunk has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _WriteEngineRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*WriteEngineRequest) - switch tag { - case 1: // chunk.head - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(WriteHead) - err := b.DecodeMessage(msg) - m.Chunk = &WriteEngineRequest_Head{msg} - return true, err - case 2: // chunk.batch - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(WriteBatch) - err := b.DecodeMessage(msg) - m.Chunk = &WriteEngineRequest_Batch{msg} - return true, err - default: - return false, nil - } -} - -func _WriteEngineRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*WriteEngineRequest) - // chunk - switch x := m.Chunk.(type) { - case *WriteEngineRequest_Head: - s := proto.Size(x.Head) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *WriteEngineRequest_Batch: - s := proto.Size(x.Batch) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *KVPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KVPair.Merge(m, src) } - -type KVPair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +func (m *KVPair) XXX_Size() int { + return m.Size() +} +func (m *KVPair) XXX_DiscardUnknown() { + xxx_messageInfo_KVPair.DiscardUnknown(m) } -func (m *KVPair) Reset() { *m = KVPair{} } -func (m *KVPair) String() string { return proto.CompactTextString(m) } -func (*KVPair) ProtoMessage() {} -func (*KVPair) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{8} } +var xxx_messageInfo_KVPair proto.InternalMessageInfo func (m *KVPair) GetKey() []byte { if m != nil { @@ -365,15 +548,46 @@ func (m *KVPair) GetValue() []byte { } type WriteEngineV3Request struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Pairs []*KVPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + CommitTs uint64 `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Pairs []*KVPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteEngineV3Request) Reset() { *m = WriteEngineV3Request{} } +func (m *WriteEngineV3Request) String() string { return proto.CompactTextString(m) } +func (*WriteEngineV3Request) ProtoMessage() {} +func (*WriteEngineV3Request) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{9} +} +func (m *WriteEngineV3Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteEngineV3Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteEngineV3Request.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 *WriteEngineV3Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineV3Request.Merge(m, src) +} +func (m *WriteEngineV3Request) XXX_Size() int { + return m.Size() +} +func (m *WriteEngineV3Request) XXX_DiscardUnknown() { + xxx_messageInfo_WriteEngineV3Request.DiscardUnknown(m) } -func (m *WriteEngineV3Request) Reset() { *m = WriteEngineV3Request{} } -func (m *WriteEngineV3Request) String() string { return proto.CompactTextString(m) } -func (*WriteEngineV3Request) ProtoMessage() {} -func (*WriteEngineV3Request) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{9} } +var xxx_messageInfo_WriteEngineV3Request proto.InternalMessageInfo func (m *WriteEngineV3Request) GetUuid() []byte { if m != nil { @@ -397,13 +611,44 @@ func (m *WriteEngineV3Request) GetPairs() []*KVPair { } type WriteEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteEngineResponse) Reset() { *m = WriteEngineResponse{} } +func (m *WriteEngineResponse) String() string { return proto.CompactTextString(m) } +func (*WriteEngineResponse) ProtoMessage() {} +func (*WriteEngineResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{10} +} +func (m *WriteEngineResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteEngineResponse.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 *WriteEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineResponse.Merge(m, src) +} +func (m *WriteEngineResponse) XXX_Size() int { + return m.Size() +} +func (m *WriteEngineResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WriteEngineResponse.DiscardUnknown(m) } -func (m *WriteEngineResponse) Reset() { *m = WriteEngineResponse{} } -func (m *WriteEngineResponse) String() string { return proto.CompactTextString(m) } -func (*WriteEngineResponse) ProtoMessage() {} -func (*WriteEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{10} } +var xxx_messageInfo_WriteEngineResponse proto.InternalMessageInfo func (m *WriteEngineResponse) GetError() *Error { if m != nil { @@ -413,13 +658,44 @@ func (m *WriteEngineResponse) GetError() *Error { } type CloseEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CloseEngineRequest) Reset() { *m = CloseEngineRequest{} } +func (m *CloseEngineRequest) String() string { return proto.CompactTextString(m) } +func (*CloseEngineRequest) ProtoMessage() {} +func (*CloseEngineRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{11} +} +func (m *CloseEngineRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CloseEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CloseEngineRequest.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 *CloseEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloseEngineRequest.Merge(m, src) +} +func (m *CloseEngineRequest) XXX_Size() int { + return m.Size() +} +func (m *CloseEngineRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CloseEngineRequest.DiscardUnknown(m) } -func (m *CloseEngineRequest) Reset() { *m = CloseEngineRequest{} } -func (m *CloseEngineRequest) String() string { return proto.CompactTextString(m) } -func (*CloseEngineRequest) ProtoMessage() {} -func (*CloseEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{11} } +var xxx_messageInfo_CloseEngineRequest proto.InternalMessageInfo func (m *CloseEngineRequest) GetUuid() []byte { if m != nil { @@ -429,13 +705,44 @@ func (m *CloseEngineRequest) GetUuid() []byte { } type CloseEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CloseEngineResponse) Reset() { *m = CloseEngineResponse{} } +func (m *CloseEngineResponse) String() string { return proto.CompactTextString(m) } +func (*CloseEngineResponse) ProtoMessage() {} +func (*CloseEngineResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{12} +} +func (m *CloseEngineResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CloseEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CloseEngineResponse.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 *CloseEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloseEngineResponse.Merge(m, src) +} +func (m *CloseEngineResponse) XXX_Size() int { + return m.Size() +} +func (m *CloseEngineResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CloseEngineResponse.DiscardUnknown(m) } -func (m *CloseEngineResponse) Reset() { *m = CloseEngineResponse{} } -func (m *CloseEngineResponse) String() string { return proto.CompactTextString(m) } -func (*CloseEngineResponse) ProtoMessage() {} -func (*CloseEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{12} } +var xxx_messageInfo_CloseEngineResponse proto.InternalMessageInfo func (m *CloseEngineResponse) GetError() *Error { if m != nil { @@ -445,14 +752,45 @@ func (m *CloseEngineResponse) GetError() *Error { } type ImportEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - PdAddr string `protobuf:"bytes,2,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + PdAddr string `protobuf:"bytes,2,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportEngineRequest) Reset() { *m = ImportEngineRequest{} } +func (m *ImportEngineRequest) String() string { return proto.CompactTextString(m) } +func (*ImportEngineRequest) ProtoMessage() {} +func (*ImportEngineRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{13} +} +func (m *ImportEngineRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ImportEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ImportEngineRequest.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 *ImportEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportEngineRequest.Merge(m, src) +} +func (m *ImportEngineRequest) XXX_Size() int { + return m.Size() +} +func (m *ImportEngineRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ImportEngineRequest.DiscardUnknown(m) } -func (m *ImportEngineRequest) Reset() { *m = ImportEngineRequest{} } -func (m *ImportEngineRequest) String() string { return proto.CompactTextString(m) } -func (*ImportEngineRequest) ProtoMessage() {} -func (*ImportEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{13} } +var xxx_messageInfo_ImportEngineRequest proto.InternalMessageInfo func (m *ImportEngineRequest) GetUuid() []byte { if m != nil { @@ -469,21 +807,83 @@ func (m *ImportEngineRequest) GetPdAddr() string { } type ImportEngineResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportEngineResponse) Reset() { *m = ImportEngineResponse{} } +func (m *ImportEngineResponse) String() string { return proto.CompactTextString(m) } +func (*ImportEngineResponse) ProtoMessage() {} +func (*ImportEngineResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{14} +} +func (m *ImportEngineResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ImportEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ImportEngineResponse.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 *ImportEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportEngineResponse.Merge(m, src) +} +func (m *ImportEngineResponse) XXX_Size() int { + return m.Size() +} +func (m *ImportEngineResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ImportEngineResponse.DiscardUnknown(m) } -func (m *ImportEngineResponse) Reset() { *m = ImportEngineResponse{} } -func (m *ImportEngineResponse) String() string { return proto.CompactTextString(m) } -func (*ImportEngineResponse) ProtoMessage() {} -func (*ImportEngineResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{14} } +var xxx_messageInfo_ImportEngineResponse proto.InternalMessageInfo type CleanupEngineRequest struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CleanupEngineRequest) Reset() { *m = CleanupEngineRequest{} } +func (m *CleanupEngineRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupEngineRequest) ProtoMessage() {} +func (*CleanupEngineRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{15} +} +func (m *CleanupEngineRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupEngineRequest.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 *CleanupEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupEngineRequest.Merge(m, src) +} +func (m *CleanupEngineRequest) XXX_Size() int { + return m.Size() +} +func (m *CleanupEngineRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupEngineRequest.DiscardUnknown(m) } -func (m *CleanupEngineRequest) Reset() { *m = CleanupEngineRequest{} } -func (m *CleanupEngineRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupEngineRequest) ProtoMessage() {} -func (*CleanupEngineRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{15} } +var xxx_messageInfo_CleanupEngineRequest proto.InternalMessageInfo func (m *CleanupEngineRequest) GetUuid() []byte { if m != nil { @@ -493,26 +893,84 @@ func (m *CleanupEngineRequest) GetUuid() []byte { } type CleanupEngineResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CleanupEngineResponse) Reset() { *m = CleanupEngineResponse{} } func (m *CleanupEngineResponse) String() string { return proto.CompactTextString(m) } func (*CleanupEngineResponse) ProtoMessage() {} func (*CleanupEngineResponse) Descriptor() ([]byte, []int) { - return fileDescriptorImportKvpb, []int{16} + return fileDescriptor_638ccc00b4358d93, []int{16} +} +func (m *CleanupEngineResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupEngineResponse.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 *CleanupEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupEngineResponse.Merge(m, src) +} +func (m *CleanupEngineResponse) XXX_Size() int { + return m.Size() } +func (m *CleanupEngineResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupEngineResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CleanupEngineResponse proto.InternalMessageInfo type CompactClusterRequest struct { - PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` - Request *import_sstpb.CompactRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` + PdAddr string `protobuf:"bytes,1,opt,name=pd_addr,json=pdAddr,proto3" json:"pd_addr,omitempty"` + Request *import_sstpb.CompactRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactClusterRequest) Reset() { *m = CompactClusterRequest{} } func (m *CompactClusterRequest) String() string { return proto.CompactTextString(m) } func (*CompactClusterRequest) ProtoMessage() {} func (*CompactClusterRequest) Descriptor() ([]byte, []int) { - return fileDescriptorImportKvpb, []int{17} + return fileDescriptor_638ccc00b4358d93, []int{17} +} +func (m *CompactClusterRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *CompactClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactClusterRequest.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 *CompactClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactClusterRequest.Merge(m, src) +} +func (m *CompactClusterRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactClusterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactClusterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactClusterRequest proto.InternalMessageInfo func (m *CompactClusterRequest) GetPdAddr() string { if m != nil { @@ -529,32 +987,123 @@ func (m *CompactClusterRequest) GetRequest() *import_sstpb.CompactRequest { } type CompactClusterResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactClusterResponse) Reset() { *m = CompactClusterResponse{} } func (m *CompactClusterResponse) String() string { return proto.CompactTextString(m) } func (*CompactClusterResponse) ProtoMessage() {} func (*CompactClusterResponse) Descriptor() ([]byte, []int) { - return fileDescriptorImportKvpb, []int{18} + return fileDescriptor_638ccc00b4358d93, []int{18} +} +func (m *CompactClusterResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactClusterResponse.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 *CompactClusterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactClusterResponse.Merge(m, src) +} +func (m *CompactClusterResponse) XXX_Size() int { + return m.Size() } +func (m *CompactClusterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactClusterResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactClusterResponse proto.InternalMessageInfo type GetVersionRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } +func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } +func (*GetVersionRequest) ProtoMessage() {} +func (*GetVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{19} +} +func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVersionRequest.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 *GetVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionRequest.Merge(m, src) +} +func (m *GetVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *GetVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) } -func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } -func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*GetVersionRequest) ProtoMessage() {} -func (*GetVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{19} } +var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo type GetVersionResponse struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } +func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*GetVersionResponse) ProtoMessage() {} +func (*GetVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{20} +} +func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVersionResponse.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 *GetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionResponse.Merge(m, src) +} +func (m *GetVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *GetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) } -func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } -func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } -func (*GetVersionResponse) ProtoMessage() {} -func (*GetVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{20} } +var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo func (m *GetVersionResponse) GetVersion() string { if m != nil { @@ -571,21 +1120,83 @@ func (m *GetVersionResponse) GetCommit() string { } type GetMetricsRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } +func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*GetMetricsRequest) ProtoMessage() {} +func (*GetMetricsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{21} +} +func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMetricsRequest.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 *GetMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsRequest.Merge(m, src) +} +func (m *GetMetricsRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMetricsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMetricsRequest.DiscardUnknown(m) } -func (m *GetMetricsRequest) Reset() { *m = GetMetricsRequest{} } -func (m *GetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*GetMetricsRequest) ProtoMessage() {} -func (*GetMetricsRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{21} } +var xxx_messageInfo_GetMetricsRequest proto.InternalMessageInfo type GetMetricsResponse struct { - Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` + Prometheus string `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } +func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*GetMetricsResponse) ProtoMessage() {} +func (*GetMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{22} +} +func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMetricsResponse.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 *GetMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsResponse.Merge(m, src) +} +func (m *GetMetricsResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMetricsResponse.DiscardUnknown(m) } -func (m *GetMetricsResponse) Reset() { *m = GetMetricsResponse{} } -func (m *GetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*GetMetricsResponse) ProtoMessage() {} -func (*GetMetricsResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{22} } +var xxx_messageInfo_GetMetricsResponse proto.InternalMessageInfo func (m *GetMetricsResponse) GetPrometheus() string { if m != nil { @@ -599,13 +1210,44 @@ type Error struct { // restarts while the client is writing or closing. An unclosed engine will // be removed on server restart, so the client should not continue but // restart the previous job in that case. - EngineNotFound *Error_EngineNotFound `protobuf:"bytes,1,opt,name=engine_not_found,json=engineNotFound" json:"engine_not_found,omitempty"` + EngineNotFound *Error_EngineNotFound `protobuf:"bytes,1,opt,name=engine_not_found,json=engineNotFound,proto3" json:"engine_not_found,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_638ccc00b4358d93, []int{23} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorImportKvpb, []int{23} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetEngineNotFound() *Error_EngineNotFound { if m != nil { @@ -615,15 +1257,44 @@ func (m *Error) GetEngineNotFound() *Error_EngineNotFound { } type Error_EngineNotFound struct { - Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Error_EngineNotFound) Reset() { *m = Error_EngineNotFound{} } func (m *Error_EngineNotFound) String() string { return proto.CompactTextString(m) } func (*Error_EngineNotFound) ProtoMessage() {} func (*Error_EngineNotFound) Descriptor() ([]byte, []int) { - return fileDescriptorImportKvpb, []int{23, 0} + return fileDescriptor_638ccc00b4358d93, []int{23, 0} +} +func (m *Error_EngineNotFound) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error_EngineNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error_EngineNotFound.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 *Error_EngineNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error_EngineNotFound.Merge(m, src) +} +func (m *Error_EngineNotFound) XXX_Size() int { + return m.Size() +} +func (m *Error_EngineNotFound) XXX_DiscardUnknown() { + xxx_messageInfo_Error_EngineNotFound.DiscardUnknown(m) +} + +var xxx_messageInfo_Error_EngineNotFound proto.InternalMessageInfo func (m *Error_EngineNotFound) GetUuid() []byte { if m != nil { @@ -633,6 +1304,7 @@ func (m *Error_EngineNotFound) GetUuid() []byte { } func init() { + proto.RegisterEnum("import_kvpb.Mutation_OP", Mutation_OP_name, Mutation_OP_value) proto.RegisterType((*SwitchModeRequest)(nil), "import_kvpb.SwitchModeRequest") proto.RegisterType((*SwitchModeResponse)(nil), "import_kvpb.SwitchModeResponse") proto.RegisterType((*OpenEngineRequest)(nil), "import_kvpb.OpenEngineRequest") @@ -658,7 +1330,68 @@ func init() { proto.RegisterType((*GetMetricsResponse)(nil), "import_kvpb.GetMetricsResponse") proto.RegisterType((*Error)(nil), "import_kvpb.Error") proto.RegisterType((*Error_EngineNotFound)(nil), "import_kvpb.Error.EngineNotFound") - proto.RegisterEnum("import_kvpb.Mutation_OP", Mutation_OP_name, Mutation_OP_value) +} + +func init() { proto.RegisterFile("import_kvpb.proto", fileDescriptor_638ccc00b4358d93) } + +var fileDescriptor_638ccc00b4358d93 = []byte{ + // 884 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xd1, 0x6e, 0xf3, 0x34, + 0x18, 0x4d, 0xd2, 0xb5, 0x5d, 0xbf, 0x6e, 0x63, 0xf3, 0xba, 0x2d, 0x2a, 0xd0, 0x6d, 0x01, 0xa1, + 0x82, 0x50, 0x7f, 0xd4, 0x21, 0x24, 0xae, 0x10, 0xad, 0xfe, 0x31, 0x34, 0x8d, 0x56, 0xe1, 0xa7, + 0x20, 0x21, 0x51, 0x65, 0x8d, 0xd7, 0x46, 0x69, 0xe3, 0xe0, 0x38, 0x85, 0x21, 0x1e, 0x84, 0x47, + 0xe0, 0x51, 0xb8, 0xe4, 0x92, 0x2b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 0xc5, 0x44, 0xf3, + 0x9d, 0x8d, 0x98, 0xf4, 0x03, 0x5b, 0xbb, 0x39, 0xf3, 0xc0, 0x72, 0xde, 0xcf, 0x3c, 0xb0, 0x7c, + 0x0c, 0xac, 0x08, 0x85, 0x83, 0xf3, 0x84, 0xb2, 0xdf, 0xf3, 0x84, 0x19, 0xeb, 0x1b, 0x4a, 0xef, + 0xbd, 0xbf, 0x7e, 0xdf, 0x55, 0xff, 0x78, 0x6a, 0xa9, 0x7f, 0x3e, 0xb5, 0xd4, 0x7f, 0x9e, 0x5a, + 0xea, 0x6f, 0xff, 0xb6, 0x14, 0x38, 0x24, 0x74, 0xda, 0x61, 0x8e, 0xbb, 0xec, 0xb8, 0x4b, 0xfe, + 0xcf, 0xd6, 0x7d, 0x85, 0xff, 0xb9, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4a, 0x28, 0xa0, + 0xd0, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -669,8 +1402,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for ImportKV service - +// ImportKVClient is the client API for ImportKV service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ImportKVClient interface { // Switch the target cluster to normal/import mode. SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) @@ -704,7 +1438,7 @@ func NewImportKVClient(cc *grpc.ClientConn) ImportKVClient { func (c *importKVClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) { out := new(SwitchModeResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/SwitchMode", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/SwitchMode", in, out, opts...) if err != nil { return nil, err } @@ -713,7 +1447,7 @@ func (c *importKVClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, func (c *importKVClient) OpenEngine(ctx context.Context, in *OpenEngineRequest, opts ...grpc.CallOption) (*OpenEngineResponse, error) { out := new(OpenEngineResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/OpenEngine", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/OpenEngine", in, out, opts...) if err != nil { return nil, err } @@ -721,7 +1455,7 @@ func (c *importKVClient) OpenEngine(ctx context.Context, in *OpenEngineRequest, } func (c *importKVClient) WriteEngine(ctx context.Context, opts ...grpc.CallOption) (ImportKV_WriteEngineClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ImportKV_serviceDesc.Streams[0], c.cc, "/import_kvpb.ImportKV/WriteEngine", opts...) + stream, err := c.cc.NewStream(ctx, &_ImportKV_serviceDesc.Streams[0], "/import_kvpb.ImportKV/WriteEngine", opts...) if err != nil { return nil, err } @@ -756,7 +1490,7 @@ func (x *importKVWriteEngineClient) CloseAndRecv() (*WriteEngineResponse, error) func (c *importKVClient) WriteEngineV3(ctx context.Context, in *WriteEngineV3Request, opts ...grpc.CallOption) (*WriteEngineResponse, error) { out := new(WriteEngineResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/WriteEngineV3", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/WriteEngineV3", in, out, opts...) if err != nil { return nil, err } @@ -765,7 +1499,7 @@ func (c *importKVClient) WriteEngineV3(ctx context.Context, in *WriteEngineV3Req func (c *importKVClient) CloseEngine(ctx context.Context, in *CloseEngineRequest, opts ...grpc.CallOption) (*CloseEngineResponse, error) { out := new(CloseEngineResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CloseEngine", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CloseEngine", in, out, opts...) if err != nil { return nil, err } @@ -774,7 +1508,7 @@ func (c *importKVClient) CloseEngine(ctx context.Context, in *CloseEngineRequest func (c *importKVClient) ImportEngine(ctx context.Context, in *ImportEngineRequest, opts ...grpc.CallOption) (*ImportEngineResponse, error) { out := new(ImportEngineResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/ImportEngine", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/ImportEngine", in, out, opts...) if err != nil { return nil, err } @@ -783,7 +1517,7 @@ func (c *importKVClient) ImportEngine(ctx context.Context, in *ImportEngineReque func (c *importKVClient) CleanupEngine(ctx context.Context, in *CleanupEngineRequest, opts ...grpc.CallOption) (*CleanupEngineResponse, error) { out := new(CleanupEngineResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CleanupEngine", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CleanupEngine", in, out, opts...) if err != nil { return nil, err } @@ -792,7 +1526,7 @@ func (c *importKVClient) CleanupEngine(ctx context.Context, in *CleanupEngineReq func (c *importKVClient) CompactCluster(ctx context.Context, in *CompactClusterRequest, opts ...grpc.CallOption) (*CompactClusterResponse, error) { out := new(CompactClusterResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/CompactCluster", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/CompactCluster", in, out, opts...) if err != nil { return nil, err } @@ -801,7 +1535,7 @@ func (c *importKVClient) CompactCluster(ctx context.Context, in *CompactClusterR func (c *importKVClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) { out := new(GetVersionResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/GetVersion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/GetVersion", in, out, opts...) if err != nil { return nil, err } @@ -810,15 +1544,14 @@ func (c *importKVClient) GetVersion(ctx context.Context, in *GetVersionRequest, func (c *importKVClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) { out := new(GetMetricsResponse) - err := grpc.Invoke(ctx, "/import_kvpb.ImportKV/GetMetrics", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_kvpb.ImportKV/GetMetrics", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for ImportKV service - +// ImportKVServer is the server API for ImportKV service. type ImportKVServer interface { // Switch the target cluster to normal/import mode. SwitchMode(context.Context, *SwitchModeRequest) (*SwitchModeResponse, error) @@ -842,6 +1575,41 @@ type ImportKVServer interface { GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) } +// UnimplementedImportKVServer can be embedded to have forward compatible implementations. +type UnimplementedImportKVServer struct { +} + +func (*UnimplementedImportKVServer) SwitchMode(ctx context.Context, req *SwitchModeRequest) (*SwitchModeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwitchMode not implemented") +} +func (*UnimplementedImportKVServer) OpenEngine(ctx context.Context, req *OpenEngineRequest) (*OpenEngineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenEngine not implemented") +} +func (*UnimplementedImportKVServer) WriteEngine(srv ImportKV_WriteEngineServer) error { + return status.Errorf(codes.Unimplemented, "method WriteEngine not implemented") +} +func (*UnimplementedImportKVServer) WriteEngineV3(ctx context.Context, req *WriteEngineV3Request) (*WriteEngineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WriteEngineV3 not implemented") +} +func (*UnimplementedImportKVServer) CloseEngine(ctx context.Context, req *CloseEngineRequest) (*CloseEngineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseEngine not implemented") +} +func (*UnimplementedImportKVServer) ImportEngine(ctx context.Context, req *ImportEngineRequest) (*ImportEngineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ImportEngine not implemented") +} +func (*UnimplementedImportKVServer) CleanupEngine(ctx context.Context, req *CleanupEngineRequest) (*CleanupEngineResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CleanupEngine not implemented") +} +func (*UnimplementedImportKVServer) CompactCluster(ctx context.Context, req *CompactClusterRequest) (*CompactClusterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CompactCluster not implemented") +} +func (*UnimplementedImportKVServer) GetVersion(ctx context.Context, req *GetVersionRequest) (*GetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") +} +func (*UnimplementedImportKVServer) GetMetrics(ctx context.Context, req *GetMetricsRequest) (*GetMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") +} + func RegisterImportKVServer(s *grpc.Server, srv ImportKVServer) { s.RegisterService(&_ImportKV_serviceDesc, srv) } @@ -1088,7 +1856,7 @@ var _ImportKV_serviceDesc = grpc.ServiceDesc{ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1096,33 +1864,45 @@ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.PdAddr) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i += copy(dAtA[i:], m.PdAddr) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Request != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Request.Size())) - n1, err := m.Request.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.PdAddr) > 0 { + i -= len(m.PdAddr) + copy(dAtA[i:], m.PdAddr) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1130,17 +1910,26 @@ func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *OpenEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1148,29 +1937,40 @@ func (m *OpenEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *OpenEngineRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.KeyPrefix) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.KeyPrefix) + copy(dAtA[i:], m.KeyPrefix) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.KeyPrefix))) - i += copy(dAtA[i:], m.KeyPrefix) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *OpenEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1178,17 +1978,26 @@ func (m *OpenEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *OpenEngineResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *WriteHead) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1196,23 +2005,33 @@ func (m *WriteHead) Marshal() (dAtA []byte, err error) { } func (m *WriteHead) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteHead) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Mutation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1220,34 +2039,45 @@ func (m *Mutation) Marshal() (dAtA []byte, err error) { } func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Op)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.Op != 0 { + i = encodeVarintImportKvpb(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *WriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1255,34 +2085,45 @@ func (m *WriteBatch) Marshal() (dAtA []byte, err error) { } func (m *WriteBatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CommitTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Mutations) > 0 { - for _, msg := range m.Mutations { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.CommitTs != 0 { + i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *WriteEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1290,52 +2131,77 @@ func (m *WriteEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Chunk != nil { - nn2, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Chunk.Size() + i -= size + if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn2 } - return i, nil + return len(dAtA) - i, nil } func (m *WriteEngineRequest_Head) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteEngineRequest_Head) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Head != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Head.Size())) - n3, err := m.Head.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Head.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteEngineRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteEngineRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Batch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Batch.Size())) - n4, err := m.Batch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *KVPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1343,29 +2209,40 @@ func (m *KVPair) Marshal() (dAtA []byte, err error) { } func (m *KVPair) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KVPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteEngineV3Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1373,40 +2250,52 @@ func (m *WriteEngineV3Request) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineV3Request) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteEngineV3Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) - } - if m.CommitTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - return i, nil + if m.CommitTs != 0 { + i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x10 + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *WriteEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1414,27 +2303,38 @@ func (m *WriteEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *WriteEngineResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Error.Size())) - n5, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CloseEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1442,23 +2342,33 @@ func (m *CloseEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *CloseEngineRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CloseEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CloseEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1466,27 +2376,38 @@ func (m *CloseEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *CloseEngineResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CloseEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Error.Size())) - n6, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ImportEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1494,29 +2415,40 @@ func (m *ImportEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *ImportEngineRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImportEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.PdAddr) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.PdAddr) + copy(dAtA[i:], m.PdAddr) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i += copy(dAtA[i:], m.PdAddr) + i-- + dAtA[i] = 0x12 + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ImportEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1524,17 +2456,26 @@ func (m *ImportEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *ImportEngineResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImportEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CleanupEngineRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1542,23 +2483,33 @@ func (m *CleanupEngineRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupEngineRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupEngineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CleanupEngineResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1566,17 +2517,26 @@ func (m *CleanupEngineResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupEngineResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupEngineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CompactClusterRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1584,33 +2544,45 @@ func (m *CompactClusterRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactClusterRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactClusterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.PdAddr) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) - i += copy(dAtA[i:], m.PdAddr) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Request != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.Request.Size())) - n7, err := m.Request.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x12 + } + if len(m.PdAddr) > 0 { + i -= len(m.PdAddr) + copy(dAtA[i:], m.PdAddr) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.PdAddr))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactClusterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1618,17 +2590,26 @@ func (m *CompactClusterResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactClusterResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactClusterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1636,17 +2617,26 @@ func (m *GetVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *GetVersionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1654,29 +2644,40 @@ func (m *GetVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *GetVersionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Version) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Commit) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Commit) + copy(dAtA[i:], m.Commit) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Commit))) - i += copy(dAtA[i:], m.Commit) + i-- + dAtA[i] = 0x12 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1684,17 +2685,26 @@ func (m *GetMetricsRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1702,23 +2712,33 @@ func (m *GetMetricsResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMetricsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Prometheus) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Prometheus) + copy(dAtA[i:], m.Prometheus) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Prometheus))) - i += copy(dAtA[i:], m.Prometheus) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1726,27 +2746,38 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.EngineNotFound != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportKvpb(dAtA, i, uint64(m.EngineNotFound.Size())) - n8, err := m.EngineNotFound.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.EngineNotFound.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportKvpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Error_EngineNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1754,29 +2785,44 @@ func (m *Error_EngineNotFound) Marshal() (dAtA []byte, err error) { } func (m *Error_EngineNotFound) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error_EngineNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintImportKvpb(dAtA []byte, offset int, v uint64) int { + offset -= sovImportKvpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *SwitchModeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.PdAddr) @@ -1787,16 +2833,28 @@ func (m *SwitchModeRequest) Size() (n int) { l = m.Request.Size() n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SwitchModeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *OpenEngineRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) @@ -1807,26 +2865,44 @@ func (m *OpenEngineRequest) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *OpenEngineResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteHead) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Mutation) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Op != 0 { @@ -1840,10 +2916,16 @@ func (m *Mutation) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteBatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CommitTs != 0 { @@ -1855,19 +2937,31 @@ func (m *WriteBatch) Size() (n int) { n += 1 + l + sovImportKvpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteEngineRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteEngineRequest_Head) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Head != nil { @@ -1877,6 +2971,9 @@ func (m *WriteEngineRequest_Head) Size() (n int) { return n } func (m *WriteEngineRequest_Batch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Batch != nil { @@ -1886,6 +2983,9 @@ func (m *WriteEngineRequest_Batch) Size() (n int) { return n } func (m *KVPair) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -1896,10 +2996,16 @@ func (m *KVPair) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteEngineV3Request) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) @@ -1915,40 +3021,64 @@ func (m *WriteEngineV3Request) Size() (n int) { n += 1 + l + sovImportKvpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteEngineResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CloseEngineRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CloseEngineResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ImportEngineRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) @@ -1959,32 +3089,56 @@ func (m *ImportEngineRequest) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ImportEngineResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupEngineRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupEngineResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactClusterRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.PdAddr) @@ -1995,22 +3149,40 @@ func (m *CompactClusterRequest) Size() (n int) { l = m.Request.Size() n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactClusterResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetVersionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetVersionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Version) @@ -2021,54 +3193,74 @@ func (m *GetVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMetricsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMetricsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Prometheus) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.EngineNotFound != nil { l = m.EngineNotFound.Size() n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error_EngineNotFound) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) if l > 0 { n += 1 + l + sovImportKvpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovImportKvpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozImportKvpb(x uint64) (n int) { return sovImportKvpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -2088,7 +3280,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2116,7 +3308,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2126,6 +3318,9 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2145,7 +3340,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2154,6 +3349,9 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2170,12 +3368,13 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2200,7 +3399,7 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2220,12 +3419,13 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2250,7 +3450,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2278,7 +3478,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2287,6 +3487,9 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2309,7 +3512,7 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2318,6 +3521,9 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2332,12 +3538,13 @@ func (m *OpenEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2362,7 +3569,7 @@ func (m *OpenEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2382,12 +3589,13 @@ func (m *OpenEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2412,7 +3620,7 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2440,7 +3648,7 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2449,6 +3657,9 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2463,12 +3674,13 @@ func (m *WriteHead) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2493,7 +3705,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2521,7 +3733,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (Mutation_OP(b) & 0x7F) << shift + m.Op |= Mutation_OP(b&0x7F) << shift if b < 0x80 { break } @@ -2540,7 +3752,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2549,6 +3761,9 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2571,7 +3786,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2580,6 +3795,9 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2594,12 +3812,13 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2624,7 +3843,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2652,7 +3871,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2671,7 +3890,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2680,6 +3899,9 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2694,12 +3916,13 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2724,7 +3947,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2752,7 +3975,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2761,6 +3984,9 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2784,7 +4010,7 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2793,6 +4019,9 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2808,12 +4037,13 @@ func (m *WriteEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2838,7 +4068,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2866,7 +4096,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2875,6 +4105,9 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2897,7 +4130,7 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2906,6 +4139,9 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2920,12 +4156,13 @@ func (m *KVPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2950,7 +4187,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2978,7 +4215,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2987,6 +4224,9 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3009,7 +4249,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3028,7 +4268,7 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3037,6 +4277,9 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3051,12 +4294,13 @@ func (m *WriteEngineV3Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3081,7 +4325,7 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3109,7 +4353,7 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3118,6 +4362,9 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3134,12 +4381,13 @@ func (m *WriteEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3164,7 +4412,7 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3192,7 +4440,7 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3201,6 +4449,9 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3215,12 +4466,13 @@ func (m *CloseEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3245,7 +4497,7 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3273,7 +4525,7 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3282,6 +4534,9 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3298,12 +4553,13 @@ func (m *CloseEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3328,7 +4584,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3356,7 +4612,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3365,6 +4621,9 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3387,7 +4646,7 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3397,6 +4656,9 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3408,12 +4670,13 @@ func (m *ImportEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3438,7 +4701,7 @@ func (m *ImportEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3458,12 +4721,13 @@ func (m *ImportEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3488,7 +4752,7 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3516,7 +4780,7 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3525,6 +4789,9 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3539,12 +4806,13 @@ func (m *CleanupEngineRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3569,7 +4837,7 @@ func (m *CleanupEngineResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3589,12 +4857,13 @@ func (m *CleanupEngineResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3619,7 +4888,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3647,7 +4916,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3657,6 +4926,9 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3676,7 +4948,7 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3685,6 +4957,9 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3701,12 +4976,13 @@ func (m *CompactClusterRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3731,7 +5007,7 @@ func (m *CompactClusterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3751,12 +5027,13 @@ func (m *CompactClusterResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3781,7 +5058,7 @@ func (m *GetVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3801,12 +5078,13 @@ func (m *GetVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3831,7 +5109,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3859,7 +5137,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3869,6 +5147,9 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3888,7 +5169,7 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3898,6 +5179,9 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3909,12 +5193,13 @@ func (m *GetVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3939,7 +5224,7 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3959,12 +5244,13 @@ func (m *GetMetricsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3989,7 +5275,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4017,7 +5303,7 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4027,6 +5313,9 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4038,12 +5327,13 @@ func (m *GetMetricsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4068,7 +5358,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4096,7 +5386,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4105,6 +5395,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4121,12 +5414,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4151,7 +5445,7 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4179,7 +5473,7 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4188,6 +5482,9 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportKvpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportKvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4202,12 +5499,13 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportKvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4220,6 +5518,7 @@ func (m *Error_EngineNotFound) Unmarshal(dAtA []byte) error { func skipImportKvpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4251,10 +5550,8 @@ func skipImportKvpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -4271,115 +5568,34 @@ func skipImportKvpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthImportKvpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowImportKvpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipImportKvpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupImportKvpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthImportKvpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthImportKvpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowImportKvpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthImportKvpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowImportKvpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupImportKvpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("import_kvpb.proto", fileDescriptorImportKvpb) } - -var fileDescriptorImportKvpb = []byte{ - // 884 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xd1, 0x6e, 0xf3, 0x34, - 0x18, 0x4d, 0xd2, 0xb5, 0x5d, 0xbf, 0x6e, 0x63, 0xf3, 0xba, 0x2d, 0x2a, 0xd0, 0x6d, 0x01, 0xa1, - 0x82, 0x50, 0x7f, 0xd4, 0x21, 0x24, 0xae, 0x10, 0xad, 0xfe, 0x31, 0x34, 0x8d, 0x56, 0xe1, 0xa7, - 0x20, 0x21, 0x51, 0x65, 0x8d, 0xd7, 0x46, 0x69, 0xe3, 0xe0, 0x38, 0x85, 0x21, 0x1e, 0x84, 0x47, - 0xe0, 0x51, 0xb8, 0xe4, 0x92, 0x2b, 0x84, 0xc6, 0x8b, 0xa0, 0x38, 0x4e, 0x1b, 0x27, 0x59, 0xcb, - 0x7f, 0x35, 0xfb, 0xf3, 0xc9, 0xf9, 0xbe, 0x1e, 0xfb, 0x1c, 0x0d, 0x8e, 0x9c, 0x85, 0x4f, 0x28, - 0x1b, 0xbb, 0x4b, 0xff, 0xbe, 0xe3, 0x53, 0xc2, 0x08, 0xaa, 0xa7, 0x4a, 0x4d, 0x24, 0x36, 0x41, - 0xc0, 0x12, 0x40, 0xb3, 0x31, 0x25, 0x53, 0xc2, 0x97, 0x2f, 0xa2, 0x95, 0xa8, 0xbe, 0x41, 0xc3, - 0x80, 0xf1, 0x65, 0x5c, 0x30, 0xa6, 0x70, 0xf4, 0xf5, 0x4f, 0x0e, 0x9b, 0xcc, 0xee, 0x88, 0x8d, - 0x4d, 0xfc, 0x63, 0x88, 0x03, 0x86, 0xce, 0xa0, 0xea, 0xdb, 0x63, 0xcb, 0xb6, 0xa9, 0xae, 0x5e, - 0xa8, 0xed, 0x9a, 0x59, 0xf1, 0xed, 0xcf, 0x6d, 0x9b, 0xa2, 0x4f, 0xa1, 0x4a, 0x63, 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, - 0xca, 0x8b, 0xe7, 0x01, 0x09, 0x67, 0x5b, 0x45, 0x23, 0xd8, 0x97, 0xd2, 0x06, 0x5d, 0x3e, 0xf7, - 0xd9, 0x2a, 0x89, 0xfe, 0x0f, 0x33, 0x32, 0xa1, 0x9e, 0xb2, 0x79, 0x66, 0xda, 0x7c, 0x54, 0x64, - 0x38, 0x0b, 0x12, 0xc2, 0x50, 0xd0, 0x37, 0xb0, 0x97, 0x76, 0x2d, 0x92, 0xbf, 0x29, 0x08, 0x85, - 0xe6, 0xe5, 0x06, 0xc4, 0x8a, 0xf6, 0x3b, 0xd8, 0x97, 0x8c, 0x9c, 0x91, 0xa0, 0x28, 0x10, 0x9a, - 0xc6, 0x26, 0xc8, 0x8a, 0xf9, 0x7b, 0x38, 0x90, 0xfd, 0x89, 0x32, 0xdf, 0x15, 0xc5, 0x44, 0xf3, - 0x9d, 0x8d, 0x98, 0xf4, 0x03, 0x5b, 0xbb, 0x39, 0xf3, 0xc0, 0x72, 0xde, 0xcf, 0x3c, 0xb0, 0x7c, - 0x0c, 0xac, 0x08, 0x85, 0x83, 0xf3, 0x84, 0xb2, 0xdf, 0xf3, 0x84, 0x19, 0xeb, 0x1b, 0x4a, 0xef, - 0xbd, 0xbf, 0x7e, 0xdf, 0x55, 0xff, 0x78, 0x6a, 0xa9, 0x7f, 0x3e, 0xb5, 0xd4, 0x7f, 0x9e, 0x5a, - 0xea, 0x6f, 0xff, 0xb6, 0x14, 0x38, 0x24, 0x74, 0xda, 0x61, 0x8e, 0xbb, 0xec, 0xb8, 0x4b, 0xfe, - 0xcf, 0xd6, 0x7d, 0x85, 0xff, 0xb9, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x4a, 0x28, 0xa0, - 0xd0, 0x09, 0x00, 0x00, -} diff --git a/pkg/import_sstpb/import_sstpb.pb.go b/pkg/import_sstpb/import_sstpb.pb.go index 3d37e39e4..8c077a5d8 100644 --- a/pkg/import_sstpb/import_sstpb.pb.go +++ b/pkg/import_sstpb/import_sstpb.pb.go @@ -1,73 +1,24 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: import_sstpb.proto -/* -Package import_sstpb is a generated protocol buffer package. - -It is generated from these files: - - import_sstpb.proto - -It has these top-level messages: - - SuspendImportRPCRequest - SuspendImportRPCResponse - SwitchModeRequest - SwitchModeResponse - GetModeRequest - GetModeResponse - Range - SSTMeta - RewriteRule - UploadRequest - UploadResponse - IngestRequest - MultiIngestRequest - IngestResponse - CompactRequest - CompactResponse - DownloadRequest - Error - DownloadResponse - SetDownloadSpeedLimitRequest - SetDownloadSpeedLimitResponse - Pair - WriteBatch - WriteRequest - WriteResponse - RawWriteBatch - RawWriteRequest - RawWriteResponse - DuplicateDetectRequest - KvPair - DuplicateDetectResponse - KVMeta - ApplyRequest - ApplyResponse - ClearRequest - ClearResponse -*/ package import_sstpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - metapb "github.com/pingcap/kvproto/pkg/metapb" - + brpb "github.com/pingcap/kvproto/pkg/brpb" errorpb "github.com/pingcap/kvproto/pkg/errorpb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - - _ "github.com/gogo/protobuf/gogoproto" - - backup "github.com/pingcap/kvproto/pkg/brpb" - - context "golang.org/x/net/context" - + metapb "github.com/pingcap/kvproto/pkg/metapb" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -79,7 +30,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SwitchMode int32 @@ -92,6 +43,7 @@ var SwitchMode_name = map[int32]string{ 0: "Normal", 1: "Import", } + var SwitchMode_value = map[string]int32{ "Normal": 0, "Import": 1, @@ -100,7 +52,10 @@ var SwitchMode_value = map[string]int32{ func (x SwitchMode) String() string { return proto.EnumName(SwitchMode_name, int32(x)) } -func (SwitchMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{0} } + +func (SwitchMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{0} +} type DownloadRequestType int32 @@ -115,6 +70,7 @@ var DownloadRequestType_name = map[int32]string{ 0: "Legacy", 1: "Keyspace", } + var DownloadRequestType_value = map[string]int32{ "Legacy": 0, "Keyspace": 1, @@ -123,8 +79,9 @@ var DownloadRequestType_value = map[string]int32{ func (x DownloadRequestType) String() string { return proto.EnumName(DownloadRequestType_name, int32(x)) } + func (DownloadRequestType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{1} + return fileDescriptor_4d076b7935cfab6b, []int{1} } type Pair_OP int32 @@ -138,6 +95,7 @@ var Pair_OP_name = map[int32]string{ 0: "Put", 1: "Delete", } + var Pair_OP_value = map[string]int32{ "Put": 0, "Delete": 1, @@ -146,7 +104,10 @@ var Pair_OP_value = map[string]int32{ func (x Pair_OP) String() string { return proto.EnumName(Pair_OP_name, int32(x)) } -func (Pair_OP) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{21, 0} } + +func (Pair_OP) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{21, 0} +} type SuspendImportRPCRequest struct { // whether to suspend new imports. @@ -156,16 +117,45 @@ type SuspendImportRPCRequest struct { // this won't take effect. DurationInSecs uint64 `protobuf:"varint,2,opt,name=duration_in_secs,json=durationInSecs,proto3" json:"duration_in_secs,omitempty"` // The identifier for the caller. - Caller string `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"` + Caller string `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SuspendImportRPCRequest) Reset() { *m = SuspendImportRPCRequest{} } func (m *SuspendImportRPCRequest) String() string { return proto.CompactTextString(m) } func (*SuspendImportRPCRequest) ProtoMessage() {} func (*SuspendImportRPCRequest) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{0} + return fileDescriptor_4d076b7935cfab6b, []int{0} +} +func (m *SuspendImportRPCRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SuspendImportRPCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SuspendImportRPCRequest.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 *SuspendImportRPCRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuspendImportRPCRequest.Merge(m, src) +} +func (m *SuspendImportRPCRequest) XXX_Size() int { + return m.Size() +} +func (m *SuspendImportRPCRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SuspendImportRPCRequest.DiscardUnknown(m) } +var xxx_messageInfo_SuspendImportRPCRequest proto.InternalMessageInfo + func (m *SuspendImportRPCRequest) GetShouldSuspendImports() bool { if m != nil { return m.ShouldSuspendImports @@ -189,15 +179,44 @@ func (m *SuspendImportRPCRequest) GetCaller() string { type SuspendImportRPCResponse struct { // The last state before this RPC. - AlreadySuspended bool `protobuf:"varint,1,opt,name=already_suspended,json=alreadySuspended,proto3" json:"already_suspended,omitempty"` + AlreadySuspended bool `protobuf:"varint,1,opt,name=already_suspended,json=alreadySuspended,proto3" json:"already_suspended,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SuspendImportRPCResponse) Reset() { *m = SuspendImportRPCResponse{} } func (m *SuspendImportRPCResponse) String() string { return proto.CompactTextString(m) } func (*SuspendImportRPCResponse) ProtoMessage() {} func (*SuspendImportRPCResponse) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{1} + return fileDescriptor_4d076b7935cfab6b, []int{1} +} +func (m *SuspendImportRPCResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SuspendImportRPCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SuspendImportRPCResponse.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 *SuspendImportRPCResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuspendImportRPCResponse.Merge(m, src) +} +func (m *SuspendImportRPCResponse) XXX_Size() int { + return m.Size() +} +func (m *SuspendImportRPCResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SuspendImportRPCResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SuspendImportRPCResponse proto.InternalMessageInfo func (m *SuspendImportRPCResponse) GetAlreadySuspended() bool { if m != nil { @@ -207,14 +226,45 @@ func (m *SuspendImportRPCResponse) GetAlreadySuspended() bool { } type SwitchModeRequest struct { - Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` - Ranges []*Range `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` + Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` + Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } +func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchModeRequest) ProtoMessage() {} +func (*SwitchModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{2} +} +func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchModeRequest.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 *SwitchModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeRequest.Merge(m, src) +} +func (m *SwitchModeRequest) XXX_Size() int { + return m.Size() +} +func (m *SwitchModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchModeRequest.DiscardUnknown(m) } -func (m *SwitchModeRequest) Reset() { *m = SwitchModeRequest{} } -func (m *SwitchModeRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchModeRequest) ProtoMessage() {} -func (*SwitchModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{2} } +var xxx_messageInfo_SwitchModeRequest proto.InternalMessageInfo func (m *SwitchModeRequest) GetMode() SwitchMode { if m != nil { @@ -231,29 +281,122 @@ func (m *SwitchModeRequest) GetRanges() []*Range { } type SwitchModeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } +func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchModeResponse) ProtoMessage() {} +func (*SwitchModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{3} +} +func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchModeResponse.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 *SwitchModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeResponse.Merge(m, src) +} +func (m *SwitchModeResponse) XXX_Size() int { + return m.Size() +} +func (m *SwitchModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchModeResponse.DiscardUnknown(m) } -func (m *SwitchModeResponse) Reset() { *m = SwitchModeResponse{} } -func (m *SwitchModeResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchModeResponse) ProtoMessage() {} -func (*SwitchModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{3} } +var xxx_messageInfo_SwitchModeResponse proto.InternalMessageInfo type GetModeRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetModeRequest) Reset() { *m = GetModeRequest{} } +func (m *GetModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetModeRequest) ProtoMessage() {} +func (*GetModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{4} +} +func (m *GetModeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetModeRequest.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 *GetModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModeRequest.Merge(m, src) +} +func (m *GetModeRequest) XXX_Size() int { + return m.Size() +} +func (m *GetModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetModeRequest.DiscardUnknown(m) } -func (m *GetModeRequest) Reset() { *m = GetModeRequest{} } -func (m *GetModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetModeRequest) ProtoMessage() {} -func (*GetModeRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{4} } +var xxx_messageInfo_GetModeRequest proto.InternalMessageInfo type GetModeResponse struct { - Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` + Mode SwitchMode `protobuf:"varint,1,opt,name=mode,proto3,enum=import_sstpb.SwitchMode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetModeResponse) Reset() { *m = GetModeResponse{} } +func (m *GetModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetModeResponse) ProtoMessage() {} +func (*GetModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{5} +} +func (m *GetModeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetModeResponse.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 *GetModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModeResponse.Merge(m, src) +} +func (m *GetModeResponse) XXX_Size() int { + return m.Size() +} +func (m *GetModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetModeResponse.DiscardUnknown(m) } -func (m *GetModeResponse) Reset() { *m = GetModeResponse{} } -func (m *GetModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetModeResponse) ProtoMessage() {} -func (*GetModeResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{5} } +var xxx_messageInfo_GetModeResponse proto.InternalMessageInfo func (m *GetModeResponse) GetMode() SwitchMode { if m != nil { @@ -263,14 +406,45 @@ func (m *GetModeResponse) GetMode() SwitchMode { } type Range struct { - Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Range) Reset() { *m = Range{} } +func (m *Range) String() string { return proto.CompactTextString(m) } +func (*Range) ProtoMessage() {} +func (*Range) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{6} +} +func (m *Range) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Range.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 *Range) XXX_Merge(src proto.Message) { + xxx_messageInfo_Range.Merge(m, src) +} +func (m *Range) XXX_Size() int { + return m.Size() +} +func (m *Range) XXX_DiscardUnknown() { + xxx_messageInfo_Range.DiscardUnknown(m) } -func (m *Range) Reset() { *m = Range{} } -func (m *Range) String() string { return proto.CompactTextString(m) } -func (*Range) ProtoMessage() {} -func (*Range) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{6} } +var xxx_messageInfo_Range proto.InternalMessageInfo func (m *Range) GetStart() []byte { if m != nil { @@ -288,12 +462,12 @@ func (m *Range) GetEnd() []byte { type SSTMeta struct { Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Range *Range `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"` + Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` Crc32 uint32 `protobuf:"varint,3,opt,name=crc32,proto3" json:"crc32,omitempty"` Length uint64 `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"` CfName string `protobuf:"bytes,5,opt,name=cf_name,json=cfName,proto3" json:"cf_name,omitempty"` RegionId uint64 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,7,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,7,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` EndKeyExclusive bool `protobuf:"varint,8,opt,name=end_key_exclusive,json=endKeyExclusive,proto3" json:"end_key_exclusive,omitempty"` // total_kvs and total_bytes is equivalent to PD's approximate_keys and approximate_size // set these values can save time from tikv upload keys and size to PD through Heartbeat. @@ -302,13 +476,44 @@ type SSTMeta struct { // API version implies the encode of the key and value. ApiVersion kvrpcpb.APIVersion `protobuf:"varint,11,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // cipher_iv is used to encrypt/decrypt sst - CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` + CipherIv []byte `protobuf:"bytes,12,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SSTMeta) Reset() { *m = SSTMeta{} } +func (m *SSTMeta) String() string { return proto.CompactTextString(m) } +func (*SSTMeta) ProtoMessage() {} +func (*SSTMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{7} +} +func (m *SSTMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SSTMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SSTMeta.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 *SSTMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SSTMeta.Merge(m, src) +} +func (m *SSTMeta) XXX_Size() int { + return m.Size() +} +func (m *SSTMeta) XXX_DiscardUnknown() { + xxx_messageInfo_SSTMeta.DiscardUnknown(m) } -func (m *SSTMeta) Reset() { *m = SSTMeta{} } -func (m *SSTMeta) String() string { return proto.CompactTextString(m) } -func (*SSTMeta) ProtoMessage() {} -func (*SSTMeta) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{7} } +var xxx_messageInfo_SSTMeta proto.InternalMessageInfo func (m *SSTMeta) GetUuid() []byte { if m != nil { @@ -397,15 +602,46 @@ func (m *SSTMeta) GetCipherIv() []byte { // A rewrite rule is applied on the *encoded* keys (the internal storage // representation). type RewriteRule struct { - OldKeyPrefix []byte `protobuf:"bytes,1,opt,name=old_key_prefix,json=oldKeyPrefix,proto3" json:"old_key_prefix,omitempty"` - NewKeyPrefix []byte `protobuf:"bytes,2,opt,name=new_key_prefix,json=newKeyPrefix,proto3" json:"new_key_prefix,omitempty"` - NewTimestamp uint64 `protobuf:"varint,3,opt,name=new_timestamp,json=newTimestamp,proto3" json:"new_timestamp,omitempty"` + OldKeyPrefix []byte `protobuf:"bytes,1,opt,name=old_key_prefix,json=oldKeyPrefix,proto3" json:"old_key_prefix,omitempty"` + NewKeyPrefix []byte `protobuf:"bytes,2,opt,name=new_key_prefix,json=newKeyPrefix,proto3" json:"new_key_prefix,omitempty"` + NewTimestamp uint64 `protobuf:"varint,3,opt,name=new_timestamp,json=newTimestamp,proto3" json:"new_timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RewriteRule) Reset() { *m = RewriteRule{} } +func (m *RewriteRule) String() string { return proto.CompactTextString(m) } +func (*RewriteRule) ProtoMessage() {} +func (*RewriteRule) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{8} +} +func (m *RewriteRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RewriteRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RewriteRule.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 *RewriteRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RewriteRule.Merge(m, src) +} +func (m *RewriteRule) XXX_Size() int { + return m.Size() +} +func (m *RewriteRule) XXX_DiscardUnknown() { + xxx_messageInfo_RewriteRule.DiscardUnknown(m) } -func (m *RewriteRule) Reset() { *m = RewriteRule{} } -func (m *RewriteRule) String() string { return proto.CompactTextString(m) } -func (*RewriteRule) ProtoMessage() {} -func (*RewriteRule) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{8} } +var xxx_messageInfo_RewriteRule proto.InternalMessageInfo func (m *RewriteRule) GetOldKeyPrefix() []byte { if m != nil { @@ -432,13 +668,44 @@ type UploadRequest struct { // Types that are valid to be assigned to Chunk: // *UploadRequest_Meta // *UploadRequest_Data - Chunk isUploadRequest_Chunk `protobuf_oneof:"chunk"` + Chunk isUploadRequest_Chunk `protobuf_oneof:"chunk"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UploadRequest) Reset() { *m = UploadRequest{} } +func (m *UploadRequest) String() string { return proto.CompactTextString(m) } +func (*UploadRequest) ProtoMessage() {} +func (*UploadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{9} +} +func (m *UploadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UploadRequest.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 *UploadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadRequest.Merge(m, src) +} +func (m *UploadRequest) XXX_Size() int { + return m.Size() +} +func (m *UploadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UploadRequest.DiscardUnknown(m) } -func (m *UploadRequest) Reset() { *m = UploadRequest{} } -func (m *UploadRequest) String() string { return proto.CompactTextString(m) } -func (*UploadRequest) ProtoMessage() {} -func (*UploadRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{9} } +var xxx_messageInfo_UploadRequest proto.InternalMessageInfo type isUploadRequest_Chunk interface { isUploadRequest_Chunk() @@ -447,10 +714,10 @@ type isUploadRequest_Chunk interface { } type UploadRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` } type UploadRequest_Data struct { - Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` } func (*UploadRequest_Meta) isUploadRequest_Chunk() {} @@ -477,93 +744,93 @@ func (m *UploadRequest) GetData() []byte { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*UploadRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _UploadRequest_OneofMarshaler, _UploadRequest_OneofUnmarshaler, _UploadRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UploadRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*UploadRequest_Meta)(nil), (*UploadRequest_Data)(nil), } } -func _UploadRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*UploadRequest) - // chunk - switch x := m.Chunk.(type) { - case *UploadRequest_Meta: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Meta); err != nil { - return err +type UploadResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UploadResponse) Reset() { *m = UploadResponse{} } +func (m *UploadResponse) String() string { return proto.CompactTextString(m) } +func (*UploadResponse) ProtoMessage() {} +func (*UploadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{10} +} +func (m *UploadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UploadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case *UploadRequest_Data: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - _ = b.EncodeRawBytes(x.Data) - case nil: - default: - return fmt.Errorf("UploadRequest.Chunk has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _UploadRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*UploadRequest) - switch tag { - case 1: // chunk.meta - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SSTMeta) - err := b.DecodeMessage(msg) - m.Chunk = &UploadRequest_Meta{msg} - return true, err - case 2: // chunk.data - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Chunk = &UploadRequest_Data{x} - return true, err - default: - return false, nil - } -} - -func _UploadRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*UploadRequest) - // chunk - switch x := m.Chunk.(type) { - case *UploadRequest_Meta: - s := proto.Size(x.Meta) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *UploadRequest_Data: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Data))) - n += len(x.Data) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *UploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadResponse.Merge(m, src) } - -type UploadResponse struct { +func (m *UploadResponse) XXX_Size() int { + return m.Size() +} +func (m *UploadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UploadResponse.DiscardUnknown(m) } -func (m *UploadResponse) Reset() { *m = UploadResponse{} } -func (m *UploadResponse) String() string { return proto.CompactTextString(m) } -func (*UploadResponse) ProtoMessage() {} -func (*UploadResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{10} } +var xxx_messageInfo_UploadResponse proto.InternalMessageInfo type IngestRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Sst *SSTMeta `protobuf:"bytes,2,opt,name=sst" json:"sst,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Sst *SSTMeta `protobuf:"bytes,2,opt,name=sst,proto3" json:"sst,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngestRequest) Reset() { *m = IngestRequest{} } +func (m *IngestRequest) String() string { return proto.CompactTextString(m) } +func (*IngestRequest) ProtoMessage() {} +func (*IngestRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{11} +} +func (m *IngestRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngestRequest.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 *IngestRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestRequest.Merge(m, src) +} +func (m *IngestRequest) XXX_Size() int { + return m.Size() +} +func (m *IngestRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IngestRequest.DiscardUnknown(m) } -func (m *IngestRequest) Reset() { *m = IngestRequest{} } -func (m *IngestRequest) String() string { return proto.CompactTextString(m) } -func (*IngestRequest) ProtoMessage() {} -func (*IngestRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{11} } +var xxx_messageInfo_IngestRequest proto.InternalMessageInfo func (m *IngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -580,14 +847,45 @@ func (m *IngestRequest) GetSst() *SSTMeta { } type MultiIngestRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Ssts []*SSTMeta `protobuf:"bytes,2,rep,name=ssts" json:"ssts,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Ssts []*SSTMeta `protobuf:"bytes,2,rep,name=ssts,proto3" json:"ssts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MultiIngestRequest) Reset() { *m = MultiIngestRequest{} } +func (m *MultiIngestRequest) String() string { return proto.CompactTextString(m) } +func (*MultiIngestRequest) ProtoMessage() {} +func (*MultiIngestRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{12} +} +func (m *MultiIngestRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MultiIngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MultiIngestRequest.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 *MultiIngestRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MultiIngestRequest.Merge(m, src) +} +func (m *MultiIngestRequest) XXX_Size() int { + return m.Size() +} +func (m *MultiIngestRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MultiIngestRequest.DiscardUnknown(m) } -func (m *MultiIngestRequest) Reset() { *m = MultiIngestRequest{} } -func (m *MultiIngestRequest) String() string { return proto.CompactTextString(m) } -func (*MultiIngestRequest) ProtoMessage() {} -func (*MultiIngestRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{12} } +var xxx_messageInfo_MultiIngestRequest proto.InternalMessageInfo func (m *MultiIngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -604,13 +902,44 @@ func (m *MultiIngestRequest) GetSsts() []*SSTMeta { } type IngestResponse struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngestResponse) Reset() { *m = IngestResponse{} } +func (m *IngestResponse) String() string { return proto.CompactTextString(m) } +func (*IngestResponse) ProtoMessage() {} +func (*IngestResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{13} +} +func (m *IngestResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngestResponse.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 *IngestResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestResponse.Merge(m, src) +} +func (m *IngestResponse) XXX_Size() int { + return m.Size() +} +func (m *IngestResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IngestResponse.DiscardUnknown(m) } -func (m *IngestResponse) Reset() { *m = IngestResponse{} } -func (m *IngestResponse) String() string { return proto.CompactTextString(m) } -func (*IngestResponse) ProtoMessage() {} -func (*IngestResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{13} } +var xxx_messageInfo_IngestResponse proto.InternalMessageInfo func (m *IngestResponse) GetError() *errorpb.Error { if m != nil { @@ -623,15 +952,46 @@ type CompactRequest struct { // Compact files in the range and above the output level. // Compact all files if the range is not specified. // Compact all files to the bottommost level if the output level is -1. - Range *Range `protobuf:"bytes,1,opt,name=range" json:"range,omitempty"` - OutputLevel int32 `protobuf:"varint,2,opt,name=output_level,json=outputLevel,proto3" json:"output_level,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` + Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` + OutputLevel int32 `protobuf:"varint,2,opt,name=output_level,json=outputLevel,proto3" json:"output_level,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{14} +} +func (m *CompactRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(m, src) +} +func (m *CompactRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactRequest.DiscardUnknown(m) } -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{14} } +var xxx_messageInfo_CompactRequest proto.InternalMessageInfo func (m *CompactRequest) GetRange() *Range { if m != nil { @@ -655,17 +1015,48 @@ func (m *CompactRequest) GetContext() *kvrpcpb.Context { } type CompactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{15} +} +func (m *CompactResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(m, src) +} +func (m *CompactResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactResponse.DiscardUnknown(m) } -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{15} } +var xxx_messageInfo_CompactResponse proto.InternalMessageInfo type DownloadRequest struct { // Map represents the map of . // We'll generate all SSTMeta into one SST File. - Ssts map[string]*SSTMeta `protobuf:"bytes,1,rep,name=ssts" json:"ssts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + Ssts map[string]*SSTMeta `protobuf:"bytes,1,rep,name=ssts,proto3" json:"ssts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // resolved_ts is used to merge related SST Files. ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` // The SST meta used to identify the downloaded file. @@ -673,7 +1064,7 @@ type DownloadRequest struct { // Note: the "crc32" and "cf_name" fields are ignored in this request, // and the "range" field represents the closed key range after rewrite // (as origin keys in encoded representation). - Sst SSTMeta `protobuf:"bytes,2,opt,name=sst" json:"sst"` + Sst SSTMeta `protobuf:"bytes,2,opt,name=sst,proto3" json:"sst"` // The file name of the SST file. Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` // Performs a key prefix rewrite after downloading the SST file. @@ -688,24 +1079,55 @@ type DownloadRequest struct { // // You need to ensure that the keys before and after rewriting are in the // same order, otherwise the RPC request will fail. - RewriteRule RewriteRule `protobuf:"bytes,13,opt,name=rewrite_rule,json=rewriteRule" json:"rewrite_rule"` - StorageBackend *backup.StorageBackend `protobuf:"bytes,14,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` + RewriteRule RewriteRule `protobuf:"bytes,13,opt,name=rewrite_rule,json=rewriteRule,proto3" json:"rewrite_rule"` + StorageBackend *brpb.StorageBackend `protobuf:"bytes,14,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` // The identity for the stroage backend. // When this field presents, the storage would be cached. // If there is a cached storage, TiKV would use it driectly. StorageCacheId string `protobuf:"bytes,17,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` IsRawKv bool `protobuf:"varint,15,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` // cipher_info is used to decrypt sst when download sst - CipherInfo *backup.CipherInfo `protobuf:"bytes,16,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` + CipherInfo *brpb.CipherInfo `protobuf:"bytes,16,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` // The type of the download request. - RequestType DownloadRequestType `protobuf:"varint,18,opt,name=request_type,json=requestType,proto3,enum=import_sstpb.DownloadRequestType" json:"request_type,omitempty"` - Context *kvrpcpb.Context `protobuf:"bytes,19,opt,name=context" json:"context,omitempty"` + RequestType DownloadRequestType `protobuf:"varint,18,opt,name=request_type,json=requestType,proto3,enum=import_sstpb.DownloadRequestType" json:"request_type,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,19,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DownloadRequest) Reset() { *m = DownloadRequest{} } +func (m *DownloadRequest) String() string { return proto.CompactTextString(m) } +func (*DownloadRequest) ProtoMessage() {} +func (*DownloadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{16} +} +func (m *DownloadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DownloadRequest.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 *DownloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadRequest.Merge(m, src) +} +func (m *DownloadRequest) XXX_Size() int { + return m.Size() +} +func (m *DownloadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DownloadRequest.DiscardUnknown(m) } -func (m *DownloadRequest) Reset() { *m = DownloadRequest{} } -func (m *DownloadRequest) String() string { return proto.CompactTextString(m) } -func (*DownloadRequest) ProtoMessage() {} -func (*DownloadRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{16} } +var xxx_messageInfo_DownloadRequest proto.InternalMessageInfo func (m *DownloadRequest) GetSsts() map[string]*SSTMeta { if m != nil { @@ -742,7 +1164,7 @@ func (m *DownloadRequest) GetRewriteRule() RewriteRule { return RewriteRule{} } -func (m *DownloadRequest) GetStorageBackend() *backup.StorageBackend { +func (m *DownloadRequest) GetStorageBackend() *brpb.StorageBackend { if m != nil { return m.StorageBackend } @@ -763,7 +1185,7 @@ func (m *DownloadRequest) GetIsRawKv() bool { return false } -func (m *DownloadRequest) GetCipherInfo() *backup.CipherInfo { +func (m *DownloadRequest) GetCipherInfo() *brpb.CipherInfo { if m != nil { return m.CipherInfo } @@ -789,13 +1211,44 @@ func (m *DownloadRequest) GetContext() *kvrpcpb.Context { type Error struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // We meet some internal errors of the store. - StoreError *errorpb.Error `protobuf:"bytes,2,opt,name=store_error,json=storeError" json:"store_error,omitempty"` + StoreError *errorpb.Error `protobuf:"bytes,2,opt,name=store_error,json=storeError,proto3" json:"store_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{17} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{17} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetMessage() string { if m != nil { @@ -814,12 +1267,12 @@ func (m *Error) GetStoreError() *errorpb.Error { type DownloadResponse struct { // The actual key range (after rewrite) of the downloaded SST. The range is // inclusive in both ends. - Range Range `protobuf:"bytes,1,opt,name=range" json:"range"` + Range Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range"` // Whether the SST is empty. An empty SST is prohibited in TiKV, do not // ingest if this field is true. // (Deprecated, should be replaced by checking `length == 0` in the future) IsEmpty bool `protobuf:"varint,2,opt,name=is_empty,json=isEmpty,proto3" json:"is_empty,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // The CRC32 checksum of the rewritten SST file (implementation can return // zero, indicating the CRC32 was not calculated). Crc32 uint32 `protobuf:"varint,4,opt,name=crc32,proto3" json:"crc32,omitempty"` @@ -827,13 +1280,44 @@ type DownloadResponse struct { Length uint64 `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"` // This field only return when file-copy backup enabled. // Because it will merge many SST files in a download request. - Ssts []*SSTMeta `protobuf:"bytes,6,rep,name=ssts" json:"ssts,omitempty"` + Ssts []*SSTMeta `protobuf:"bytes,6,rep,name=ssts,proto3" json:"ssts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DownloadResponse) Reset() { *m = DownloadResponse{} } +func (m *DownloadResponse) String() string { return proto.CompactTextString(m) } +func (*DownloadResponse) ProtoMessage() {} +func (*DownloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{18} +} +func (m *DownloadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DownloadResponse.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 *DownloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadResponse.Merge(m, src) +} +func (m *DownloadResponse) XXX_Size() int { + return m.Size() +} +func (m *DownloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DownloadResponse.DiscardUnknown(m) } -func (m *DownloadResponse) Reset() { *m = DownloadResponse{} } -func (m *DownloadResponse) String() string { return proto.CompactTextString(m) } -func (*DownloadResponse) ProtoMessage() {} -func (*DownloadResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{18} } +var xxx_messageInfo_DownloadResponse proto.InternalMessageInfo func (m *DownloadResponse) GetRange() Range { if m != nil { @@ -879,15 +1363,44 @@ func (m *DownloadResponse) GetSsts() []*SSTMeta { type SetDownloadSpeedLimitRequest struct { // The download speed limit (bytes/second). Set to 0 for unlimited speed. - SpeedLimit uint64 `protobuf:"varint,1,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"` + SpeedLimit uint64 `protobuf:"varint,1,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetDownloadSpeedLimitRequest) Reset() { *m = SetDownloadSpeedLimitRequest{} } func (m *SetDownloadSpeedLimitRequest) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitRequest) ProtoMessage() {} func (*SetDownloadSpeedLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{19} + return fileDescriptor_4d076b7935cfab6b, []int{19} +} +func (m *SetDownloadSpeedLimitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetDownloadSpeedLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetDownloadSpeedLimitRequest.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 *SetDownloadSpeedLimitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDownloadSpeedLimitRequest.Merge(m, src) +} +func (m *SetDownloadSpeedLimitRequest) XXX_Size() int { + return m.Size() } +func (m *SetDownloadSpeedLimitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetDownloadSpeedLimitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetDownloadSpeedLimitRequest proto.InternalMessageInfo func (m *SetDownloadSpeedLimitRequest) GetSpeedLimit() uint64 { if m != nil { @@ -897,25 +1410,85 @@ func (m *SetDownloadSpeedLimitRequest) GetSpeedLimit() uint64 { } type SetDownloadSpeedLimitResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetDownloadSpeedLimitResponse) Reset() { *m = SetDownloadSpeedLimitResponse{} } func (m *SetDownloadSpeedLimitResponse) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitResponse) ProtoMessage() {} func (*SetDownloadSpeedLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{20} + return fileDescriptor_4d076b7935cfab6b, []int{20} +} +func (m *SetDownloadSpeedLimitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetDownloadSpeedLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetDownloadSpeedLimitResponse.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 *SetDownloadSpeedLimitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDownloadSpeedLimitResponse.Merge(m, src) +} +func (m *SetDownloadSpeedLimitResponse) XXX_Size() int { + return m.Size() +} +func (m *SetDownloadSpeedLimitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetDownloadSpeedLimitResponse.DiscardUnknown(m) } +var xxx_messageInfo_SetDownloadSpeedLimitResponse proto.InternalMessageInfo + type Pair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Op Pair_OP `protobuf:"varint,3,opt,name=op,proto3,enum=import_sstpb.Pair_OP" json:"op,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Op Pair_OP `protobuf:"varint,3,opt,name=op,proto3,enum=import_sstpb.Pair_OP" json:"op,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Pair) Reset() { *m = Pair{} } +func (m *Pair) String() string { return proto.CompactTextString(m) } +func (*Pair) ProtoMessage() {} +func (*Pair) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{21} +} +func (m *Pair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Pair.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 *Pair) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pair.Merge(m, src) +} +func (m *Pair) XXX_Size() int { + return m.Size() +} +func (m *Pair) XXX_DiscardUnknown() { + xxx_messageInfo_Pair.DiscardUnknown(m) } -func (m *Pair) Reset() { *m = Pair{} } -func (m *Pair) String() string { return proto.CompactTextString(m) } -func (*Pair) ProtoMessage() {} -func (*Pair) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{21} } +var xxx_messageInfo_Pair proto.InternalMessageInfo func (m *Pair) GetKey() []byte { if m != nil { @@ -939,14 +1512,45 @@ func (m *Pair) GetOp() Pair_OP { } type WriteBatch struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteBatch) Reset() { *m = WriteBatch{} } +func (m *WriteBatch) String() string { return proto.CompactTextString(m) } +func (*WriteBatch) ProtoMessage() {} +func (*WriteBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{22} +} +func (m *WriteBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteBatch.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 *WriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteBatch.Merge(m, src) +} +func (m *WriteBatch) XXX_Size() int { + return m.Size() +} +func (m *WriteBatch) XXX_DiscardUnknown() { + xxx_messageInfo_WriteBatch.DiscardUnknown(m) } -func (m *WriteBatch) Reset() { *m = WriteBatch{} } -func (m *WriteBatch) String() string { return proto.CompactTextString(m) } -func (*WriteBatch) ProtoMessage() {} -func (*WriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{22} } +var xxx_messageInfo_WriteBatch proto.InternalMessageInfo func (m *WriteBatch) GetCommitTs() uint64 { if m != nil { @@ -966,14 +1570,45 @@ type WriteRequest struct { // Types that are valid to be assigned to Chunk: // *WriteRequest_Meta // *WriteRequest_Batch - Chunk isWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` + Chunk isWriteRequest_Chunk `protobuf_oneof:"chunk"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteRequest) Reset() { *m = WriteRequest{} } +func (m *WriteRequest) String() string { return proto.CompactTextString(m) } +func (*WriteRequest) ProtoMessage() {} +func (*WriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{23} +} +func (m *WriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteRequest.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 *WriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteRequest.Merge(m, src) +} +func (m *WriteRequest) XXX_Size() int { + return m.Size() +} +func (m *WriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WriteRequest.DiscardUnknown(m) } -func (m *WriteRequest) Reset() { *m = WriteRequest{} } -func (m *WriteRequest) String() string { return proto.CompactTextString(m) } -func (*WriteRequest) ProtoMessage() {} -func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{23} } +var xxx_messageInfo_WriteRequest proto.InternalMessageInfo type isWriteRequest_Chunk interface { isWriteRequest_Chunk() @@ -982,10 +1617,10 @@ type isWriteRequest_Chunk interface { } type WriteRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` } type WriteRequest_Batch struct { - Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` + Batch *WriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` } func (*WriteRequest_Meta) isWriteRequest_Chunk() {} @@ -1019,89 +1654,54 @@ func (m *WriteRequest) GetContext() *kvrpcpb.Context { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*WriteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _WriteRequest_OneofMarshaler, _WriteRequest_OneofUnmarshaler, _WriteRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*WriteRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*WriteRequest_Meta)(nil), (*WriteRequest_Batch)(nil), } } -func _WriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*WriteRequest) - // chunk - switch x := m.Chunk.(type) { - case *WriteRequest_Meta: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Meta); err != nil { - return err - } - case *WriteRequest_Batch: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Batch); err != nil { - return err +type WriteResponse struct { + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteResponse) Reset() { *m = WriteResponse{} } +func (m *WriteResponse) String() string { return proto.CompactTextString(m) } +func (*WriteResponse) ProtoMessage() {} +func (*WriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{24} +} +func (m *WriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("WriteRequest.Chunk has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _WriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*WriteRequest) - switch tag { - case 1: // chunk.meta - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SSTMeta) - err := b.DecodeMessage(msg) - m.Chunk = &WriteRequest_Meta{msg} - return true, err - case 2: // chunk.batch - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(WriteBatch) - err := b.DecodeMessage(msg) - m.Chunk = &WriteRequest_Batch{msg} - return true, err - default: - return false, nil - } -} - -func _WriteRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*WriteRequest) - // chunk - switch x := m.Chunk.(type) { - case *WriteRequest_Meta: - s := proto.Size(x.Meta) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *WriteRequest_Batch: - s := proto.Size(x.Batch) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *WriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteResponse.Merge(m, src) } - -type WriteResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` +func (m *WriteResponse) XXX_Size() int { + return m.Size() +} +func (m *WriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WriteResponse.DiscardUnknown(m) } -func (m *WriteResponse) Reset() { *m = WriteResponse{} } -func (m *WriteResponse) String() string { return proto.CompactTextString(m) } -func (*WriteResponse) ProtoMessage() {} -func (*WriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{24} } +var xxx_messageInfo_WriteResponse proto.InternalMessageInfo func (m *WriteResponse) GetError() *Error { if m != nil { @@ -1119,19 +1719,50 @@ func (m *WriteResponse) GetMetas() []*SSTMeta { type RawWriteBatch struct { Ttl uint64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` - Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` // To be compatible with the key encoding of API V2. // This field should be generated from the client instead of the server, // since the message will be send to all the replicas of a region. // Otherwise, the underlying data generated by the server would be inconsistent which is hard to scale // for other features like MVCC over RawKV. - Ts uint64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` + Ts uint64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawWriteBatch) Reset() { *m = RawWriteBatch{} } +func (m *RawWriteBatch) String() string { return proto.CompactTextString(m) } +func (*RawWriteBatch) ProtoMessage() {} +func (*RawWriteBatch) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{25} +} +func (m *RawWriteBatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawWriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawWriteBatch.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 *RawWriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteBatch.Merge(m, src) +} +func (m *RawWriteBatch) XXX_Size() int { + return m.Size() +} +func (m *RawWriteBatch) XXX_DiscardUnknown() { + xxx_messageInfo_RawWriteBatch.DiscardUnknown(m) } -func (m *RawWriteBatch) Reset() { *m = RawWriteBatch{} } -func (m *RawWriteBatch) String() string { return proto.CompactTextString(m) } -func (*RawWriteBatch) ProtoMessage() {} -func (*RawWriteBatch) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{25} } +var xxx_messageInfo_RawWriteBatch proto.InternalMessageInfo func (m *RawWriteBatch) GetTtl() uint64 { if m != nil { @@ -1158,14 +1789,45 @@ type RawWriteRequest struct { // Types that are valid to be assigned to Chunk: // *RawWriteRequest_Meta // *RawWriteRequest_Batch - Chunk isRawWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` + Chunk isRawWriteRequest_Chunk `protobuf_oneof:"chunk"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawWriteRequest) Reset() { *m = RawWriteRequest{} } +func (m *RawWriteRequest) String() string { return proto.CompactTextString(m) } +func (*RawWriteRequest) ProtoMessage() {} +func (*RawWriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{26} +} +func (m *RawWriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawWriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawWriteRequest.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 *RawWriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteRequest.Merge(m, src) +} +func (m *RawWriteRequest) XXX_Size() int { + return m.Size() +} +func (m *RawWriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawWriteRequest.DiscardUnknown(m) } -func (m *RawWriteRequest) Reset() { *m = RawWriteRequest{} } -func (m *RawWriteRequest) String() string { return proto.CompactTextString(m) } -func (*RawWriteRequest) ProtoMessage() {} -func (*RawWriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{26} } +var xxx_messageInfo_RawWriteRequest proto.InternalMessageInfo type isRawWriteRequest_Chunk interface { isRawWriteRequest_Chunk() @@ -1174,10 +1836,10 @@ type isRawWriteRequest_Chunk interface { } type RawWriteRequest_Meta struct { - Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,oneof"` + Meta *SSTMeta `protobuf:"bytes,1,opt,name=meta,proto3,oneof" json:"meta,omitempty"` } type RawWriteRequest_Batch struct { - Batch *RawWriteBatch `protobuf:"bytes,2,opt,name=batch,oneof"` + Batch *RawWriteBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof" json:"batch,omitempty"` } func (*RawWriteRequest_Meta) isRawWriteRequest_Chunk() {} @@ -1211,89 +1873,54 @@ func (m *RawWriteRequest) GetContext() *kvrpcpb.Context { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*RawWriteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _RawWriteRequest_OneofMarshaler, _RawWriteRequest_OneofUnmarshaler, _RawWriteRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RawWriteRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*RawWriteRequest_Meta)(nil), (*RawWriteRequest_Batch)(nil), } } -func _RawWriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*RawWriteRequest) - // chunk - switch x := m.Chunk.(type) { - case *RawWriteRequest_Meta: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Meta); err != nil { - return err - } - case *RawWriteRequest_Batch: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Batch); err != nil { - return err +type RawWriteResponse struct { + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawWriteResponse) Reset() { *m = RawWriteResponse{} } +func (m *RawWriteResponse) String() string { return proto.CompactTextString(m) } +func (*RawWriteResponse) ProtoMessage() {} +func (*RawWriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{27} +} +func (m *RawWriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawWriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawWriteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("RawWriteRequest.Chunk has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _RawWriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*RawWriteRequest) - switch tag { - case 1: // chunk.meta - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SSTMeta) - err := b.DecodeMessage(msg) - m.Chunk = &RawWriteRequest_Meta{msg} - return true, err - case 2: // chunk.batch - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(RawWriteBatch) - err := b.DecodeMessage(msg) - m.Chunk = &RawWriteRequest_Batch{msg} - return true, err - default: - return false, nil - } -} - -func _RawWriteRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*RawWriteRequest) - // chunk - switch x := m.Chunk.(type) { - case *RawWriteRequest_Meta: - s := proto.Size(x.Meta) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *RawWriteRequest_Batch: - s := proto.Size(x.Batch) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *RawWriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteResponse.Merge(m, src) } - -type RawWriteResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` +func (m *RawWriteResponse) XXX_Size() int { + return m.Size() +} +func (m *RawWriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawWriteResponse.DiscardUnknown(m) } -func (m *RawWriteResponse) Reset() { *m = RawWriteResponse{} } -func (m *RawWriteResponse) String() string { return proto.CompactTextString(m) } -func (*RawWriteResponse) ProtoMessage() {} -func (*RawWriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{27} } +var xxx_messageInfo_RawWriteResponse proto.InternalMessageInfo func (m *RawWriteResponse) GetError() *Error { if m != nil { @@ -1310,21 +1937,50 @@ func (m *RawWriteResponse) GetMetas() []*SSTMeta { } type DuplicateDetectRequest struct { - Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // Return only the keys found by scanning, not their values. KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` // We only check the data whose timestamp is larger than `min_commit_ts`. `min_commit_ts` is exclueded. - MinCommitTs uint64 `protobuf:"varint,5,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + MinCommitTs uint64 `protobuf:"varint,5,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DuplicateDetectRequest) Reset() { *m = DuplicateDetectRequest{} } func (m *DuplicateDetectRequest) String() string { return proto.CompactTextString(m) } func (*DuplicateDetectRequest) ProtoMessage() {} func (*DuplicateDetectRequest) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{28} + return fileDescriptor_4d076b7935cfab6b, []int{28} +} +func (m *DuplicateDetectRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DuplicateDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DuplicateDetectRequest.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 *DuplicateDetectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateDetectRequest.Merge(m, src) +} +func (m *DuplicateDetectRequest) XXX_Size() int { + return m.Size() } +func (m *DuplicateDetectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DuplicateDetectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DuplicateDetectRequest proto.InternalMessageInfo func (m *DuplicateDetectRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -1362,15 +2018,46 @@ func (m *DuplicateDetectRequest) GetMinCommitTs() uint64 { } type KvPair struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KvPair) Reset() { *m = KvPair{} } +func (m *KvPair) String() string { return proto.CompactTextString(m) } +func (*KvPair) ProtoMessage() {} +func (*KvPair) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{29} +} +func (m *KvPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KvPair.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 *KvPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KvPair.Merge(m, src) +} +func (m *KvPair) XXX_Size() int { + return m.Size() +} +func (m *KvPair) XXX_DiscardUnknown() { + xxx_messageInfo_KvPair.DiscardUnknown(m) } -func (m *KvPair) Reset() { *m = KvPair{} } -func (m *KvPair) String() string { return proto.CompactTextString(m) } -func (*KvPair) ProtoMessage() {} -func (*KvPair) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{29} } +var xxx_messageInfo_KvPair proto.InternalMessageInfo func (m *KvPair) GetKey() []byte { if m != nil { @@ -1394,8 +2081,8 @@ func (m *KvPair) GetCommitTs() uint64 { } type DuplicateDetectResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - KeyError *Error `protobuf:"bytes,2,opt,name=key_error,json=keyError" json:"key_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + KeyError *Error `protobuf:"bytes,2,opt,name=key_error,json=keyError,proto3" json:"key_error,omitempty"` // The these keys will be in asc order (but commit time is in desc order), // and the content is just like following: // [ @@ -1406,16 +2093,45 @@ type DuplicateDetectResponse struct { // {key: "key2", value: "value22", commit_ts: 1002}, // ... // ] - Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` + Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DuplicateDetectResponse) Reset() { *m = DuplicateDetectResponse{} } func (m *DuplicateDetectResponse) String() string { return proto.CompactTextString(m) } func (*DuplicateDetectResponse) ProtoMessage() {} func (*DuplicateDetectResponse) Descriptor() ([]byte, []int) { - return fileDescriptorImportSstpb, []int{30} + return fileDescriptor_4d076b7935cfab6b, []int{30} +} +func (m *DuplicateDetectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DuplicateDetectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DuplicateDetectResponse.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 *DuplicateDetectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateDetectResponse.Merge(m, src) +} +func (m *DuplicateDetectResponse) XXX_Size() int { + return m.Size() +} +func (m *DuplicateDetectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DuplicateDetectResponse.DiscardUnknown(m) } +var xxx_messageInfo_DuplicateDetectResponse proto.InternalMessageInfo + func (m *DuplicateDetectResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -1463,13 +2179,44 @@ type KVMeta struct { // Deprecated: this field 'start_snapshot_ts' is replaced by the field 'start_ts'. StartSnapshotTs uint64 `protobuf:"varint,9,opt,name=start_snapshot_ts,json=startSnapshotTs,proto3" json:"start_snapshot_ts,omitempty"` // the compression type for the file. - CompressionType backup.CompressionType `protobuf:"varint,13,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + CompressionType brpb.CompressionType `protobuf:"varint,13,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KVMeta) Reset() { *m = KVMeta{} } +func (m *KVMeta) String() string { return proto.CompactTextString(m) } +func (*KVMeta) ProtoMessage() {} +func (*KVMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{31} +} +func (m *KVMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KVMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KVMeta.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 *KVMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_KVMeta.Merge(m, src) +} +func (m *KVMeta) XXX_Size() int { + return m.Size() +} +func (m *KVMeta) XXX_DiscardUnknown() { + xxx_messageInfo_KVMeta.DiscardUnknown(m) } -func (m *KVMeta) Reset() { *m = KVMeta{} } -func (m *KVMeta) String() string { return proto.CompactTextString(m) } -func (*KVMeta) ProtoMessage() {} -func (*KVMeta) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{31} } +var xxx_messageInfo_KVMeta proto.InternalMessageInfo func (m *KVMeta) GetName() string { if m != nil { @@ -1555,17 +2302,17 @@ func (m *KVMeta) GetStartSnapshotTs() uint64 { return 0 } -func (m *KVMeta) GetCompressionType() backup.CompressionType { +func (m *KVMeta) GetCompressionType() brpb.CompressionType { if m != nil { return m.CompressionType } - return backup.CompressionType_UNKNOWN + return brpb.CompressionType_UNKNOWN } type ApplyRequest struct { // The meta of the KV file. - Meta *KVMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` - Metas []*KVMeta `protobuf:"bytes,12,rep,name=metas" json:"metas,omitempty"` + Meta *KVMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Metas []*KVMeta `protobuf:"bytes,12,rep,name=metas,proto3" json:"metas,omitempty"` // Performs a key prefix rewrite after downloading the file. // All keys in the files will be rewritten as: // @@ -1577,23 +2324,54 @@ type ApplyRequest struct { // // You need to ensure that the keys before and after rewriting are in the // same order, otherwise the RPC request will fail. - RewriteRule RewriteRule `protobuf:"bytes,2,opt,name=rewrite_rule,json=rewriteRule" json:"rewrite_rule"` - RewriteRules []*RewriteRule `protobuf:"bytes,13,rep,name=rewrite_rules,json=rewriteRules" json:"rewrite_rules,omitempty"` + RewriteRule RewriteRule `protobuf:"bytes,2,opt,name=rewrite_rule,json=rewriteRule,proto3" json:"rewrite_rule"` + RewriteRules []*RewriteRule `protobuf:"bytes,13,rep,name=rewrite_rules,json=rewriteRules,proto3" json:"rewrite_rules,omitempty"` // The identity for the stroage backend. // When this field presents, the storage would be cached. // If there is a cached storage, TiKV would use it driectly. - StorageCacheId string `protobuf:"bytes,5,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` - StorageBackend *backup.StorageBackend `protobuf:"bytes,3,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` + StorageCacheId string `protobuf:"bytes,5,opt,name=storage_cache_id,json=storageCacheId,proto3" json:"storage_cache_id,omitempty"` + StorageBackend *brpb.StorageBackend `protobuf:"bytes,3,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` // context represents region info and it used to build raft commands. - Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` // cipher_info is used to decrypt kv file when download file. - CipherInfo *backup.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` + CipherInfo *brpb.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplyRequest) Reset() { *m = ApplyRequest{} } +func (m *ApplyRequest) String() string { return proto.CompactTextString(m) } +func (*ApplyRequest) ProtoMessage() {} +func (*ApplyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{32} +} +func (m *ApplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApplyRequest.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 *ApplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyRequest.Merge(m, src) +} +func (m *ApplyRequest) XXX_Size() int { + return m.Size() +} +func (m *ApplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ApplyRequest.DiscardUnknown(m) } -func (m *ApplyRequest) Reset() { *m = ApplyRequest{} } -func (m *ApplyRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyRequest) ProtoMessage() {} -func (*ApplyRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{32} } +var xxx_messageInfo_ApplyRequest proto.InternalMessageInfo func (m *ApplyRequest) GetMeta() *KVMeta { if m != nil { @@ -1630,7 +2408,7 @@ func (m *ApplyRequest) GetStorageCacheId() string { return "" } -func (m *ApplyRequest) GetStorageBackend() *backup.StorageBackend { +func (m *ApplyRequest) GetStorageBackend() *brpb.StorageBackend { if m != nil { return m.StorageBackend } @@ -1644,7 +2422,7 @@ func (m *ApplyRequest) GetContext() *kvrpcpb.Context { return nil } -func (m *ApplyRequest) GetCipherInfo() *backup.CipherInfo { +func (m *ApplyRequest) GetCipherInfo() *brpb.CipherInfo { if m != nil { return m.CipherInfo } @@ -1654,14 +2432,45 @@ func (m *ApplyRequest) GetCipherInfo() *backup.CipherInfo { type ApplyResponse struct { // The actual key range (after rewrite) of the downloaded file. The range is // inclusive in both ends. - Range Range `protobuf:"bytes,1,opt,name=range" json:"range"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Range Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplyResponse) Reset() { *m = ApplyResponse{} } +func (m *ApplyResponse) String() string { return proto.CompactTextString(m) } +func (*ApplyResponse) ProtoMessage() {} +func (*ApplyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{33} +} +func (m *ApplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApplyResponse.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 *ApplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyResponse.Merge(m, src) +} +func (m *ApplyResponse) XXX_Size() int { + return m.Size() +} +func (m *ApplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ApplyResponse.DiscardUnknown(m) } -func (m *ApplyResponse) Reset() { *m = ApplyResponse{} } -func (m *ApplyResponse) String() string { return proto.CompactTextString(m) } -func (*ApplyResponse) ProtoMessage() {} -func (*ApplyResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{33} } +var xxx_messageInfo_ApplyResponse proto.InternalMessageInfo func (m *ApplyResponse) GetRange() Range { if m != nil { @@ -1679,14 +2488,45 @@ func (m *ApplyResponse) GetError() *Error { type ClearRequest struct { // clear files in import directory with given prefix. - Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearRequest) Reset() { *m = ClearRequest{} } +func (m *ClearRequest) String() string { return proto.CompactTextString(m) } +func (*ClearRequest) ProtoMessage() {} +func (*ClearRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{34} +} +func (m *ClearRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClearRequest.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 *ClearRequest) Reset() { *m = ClearRequest{} } -func (m *ClearRequest) String() string { return proto.CompactTextString(m) } -func (*ClearRequest) ProtoMessage() {} -func (*ClearRequest) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{34} } - +func (m *ClearRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearRequest.Merge(m, src) +} +func (m *ClearRequest) XXX_Size() int { + return m.Size() +} +func (m *ClearRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearRequest proto.InternalMessageInfo + func (m *ClearRequest) GetPrefix() string { if m != nil { return m.Prefix @@ -1695,13 +2535,44 @@ func (m *ClearRequest) GetPrefix() string { } type ClearResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearResponse) Reset() { *m = ClearResponse{} } +func (m *ClearResponse) String() string { return proto.CompactTextString(m) } +func (*ClearResponse) ProtoMessage() {} +func (*ClearResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4d076b7935cfab6b, []int{35} +} +func (m *ClearResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClearResponse.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 *ClearResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearResponse.Merge(m, src) +} +func (m *ClearResponse) XXX_Size() int { + return m.Size() +} +func (m *ClearResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearResponse.DiscardUnknown(m) } -func (m *ClearResponse) Reset() { *m = ClearResponse{} } -func (m *ClearResponse) String() string { return proto.CompactTextString(m) } -func (*ClearResponse) ProtoMessage() {} -func (*ClearResponse) Descriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{35} } +var xxx_messageInfo_ClearResponse proto.InternalMessageInfo func (m *ClearResponse) GetError() *Error { if m != nil { @@ -1711,6 +2582,9 @@ func (m *ClearResponse) GetError() *Error { } func init() { + proto.RegisterEnum("import_sstpb.SwitchMode", SwitchMode_name, SwitchMode_value) + proto.RegisterEnum("import_sstpb.DownloadRequestType", DownloadRequestType_name, DownloadRequestType_value) + proto.RegisterEnum("import_sstpb.Pair_OP", Pair_OP_name, Pair_OP_value) proto.RegisterType((*SuspendImportRPCRequest)(nil), "import_sstpb.SuspendImportRPCRequest") proto.RegisterType((*SuspendImportRPCResponse)(nil), "import_sstpb.SuspendImportRPCResponse") proto.RegisterType((*SwitchModeRequest)(nil), "import_sstpb.SwitchModeRequest") @@ -1728,6 +2602,7 @@ func init() { proto.RegisterType((*CompactRequest)(nil), "import_sstpb.CompactRequest") proto.RegisterType((*CompactResponse)(nil), "import_sstpb.CompactResponse") proto.RegisterType((*DownloadRequest)(nil), "import_sstpb.DownloadRequest") + proto.RegisterMapType((map[string]*SSTMeta)(nil), "import_sstpb.DownloadRequest.SstsEntry") proto.RegisterType((*Error)(nil), "import_sstpb.Error") proto.RegisterType((*DownloadResponse)(nil), "import_sstpb.DownloadResponse") proto.RegisterType((*SetDownloadSpeedLimitRequest)(nil), "import_sstpb.SetDownloadSpeedLimitRequest") @@ -1747,9 +2622,150 @@ func init() { proto.RegisterType((*ApplyResponse)(nil), "import_sstpb.ApplyResponse") proto.RegisterType((*ClearRequest)(nil), "import_sstpb.ClearRequest") proto.RegisterType((*ClearResponse)(nil), "import_sstpb.ClearResponse") - proto.RegisterEnum("import_sstpb.SwitchMode", SwitchMode_name, SwitchMode_value) - proto.RegisterEnum("import_sstpb.DownloadRequestType", DownloadRequestType_name, DownloadRequestType_value) - proto.RegisterEnum("import_sstpb.Pair_OP", Pair_OP_name, Pair_OP_value) +} + +func init() { proto.RegisterFile("import_sstpb.proto", fileDescriptor_4d076b7935cfab6b) } + +var fileDescriptor_4d076b7935cfab6b = []byte{ + // 2197 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0xdb, 0xc8, + 0x11, 0x16, 0xf8, 0x66, 0x13, 0x7c, 0x78, 0xac, 0x95, 0x69, 0xfa, 0x8d, 0x78, 0xbd, 0xb2, 0x94, + 0xc8, 0x8e, 0xbc, 0x71, 0xa5, 0x36, 0x55, 0x71, 0xad, 0x1e, 0xb1, 0x15, 0xf9, 0xa1, 0x80, 0x8a, + 0x73, 0xc8, 0x01, 0x05, 0x81, 0x23, 0x09, 0x21, 0x08, 0x20, 0x98, 0x21, 0x65, 0x5e, 0xf2, 0x03, + 0x72, 0xcb, 0x2d, 0xb7, 0x54, 0x72, 0xda, 0xca, 0x39, 0x97, 0xfc, 0x83, 0x3d, 0xe6, 0x98, 0x53, + 0x2a, 0xe5, 0xfc, 0x90, 0x4d, 0x4d, 0xcf, 0x00, 0x04, 0x60, 0x4a, 0xb4, 0x55, 0xc9, 0x89, 0x98, + 0xee, 0x9e, 0x9e, 0x9e, 0x7e, 0x7c, 0xd3, 0x33, 0x04, 0xe2, 0x8e, 0xc2, 0x20, 0xe2, 0x16, 0x63, + 0x3c, 0x3c, 0xda, 0x08, 0xa3, 0x80, 0x07, 0x44, 0x4f, 0xd3, 0x7a, 0xfa, 0x88, 0x72, 0x3b, 0xe6, + 0xf5, 0x9a, 0x34, 0x8a, 0x82, 0x68, 0x36, 0x1c, 0x4e, 0xa2, 0xd0, 0x49, 0x86, 0xcb, 0x27, 0xc1, + 0x49,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 0xfe, 0xfd, 0xfe, 0xb6, 0xf6, + 0xc7, 0xff, 0xdc, 0x5e, 0x82, 0x4e, 0x10, 0x9d, 0x6c, 0x70, 0x77, 0x38, 0xd9, 0x18, 0x4e, 0xf0, + 0xdf, 0x86, 0xa3, 0x0a, 0xfe, 0x3c, 0xf9, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x3f, 0xff, + 0xb2, 0xf7, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1760,8 +2776,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for ImportSST service - +// ImportSSTClient is the client API for ImportSST service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ImportSSTClient interface { // Switch to normal/import mode. SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) @@ -1802,7 +2819,7 @@ func NewImportSSTClient(cc *grpc.ClientConn) ImportSSTClient { func (c *importSSTClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, opts ...grpc.CallOption) (*SwitchModeResponse, error) { out := new(SwitchModeResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SwitchMode", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SwitchMode", in, out, opts...) if err != nil { return nil, err } @@ -1811,7 +2828,7 @@ func (c *importSSTClient) SwitchMode(ctx context.Context, in *SwitchModeRequest, func (c *importSSTClient) GetMode(ctx context.Context, in *GetModeRequest, opts ...grpc.CallOption) (*GetModeResponse, error) { out := new(GetModeResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/GetMode", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/GetMode", in, out, opts...) if err != nil { return nil, err } @@ -1819,7 +2836,7 @@ func (c *importSSTClient) GetMode(ctx context.Context, in *GetModeRequest, opts } func (c *importSSTClient) Upload(ctx context.Context, opts ...grpc.CallOption) (ImportSST_UploadClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[0], c.cc, "/import_sstpb.ImportSST/Upload", opts...) + stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[0], "/import_sstpb.ImportSST/Upload", opts...) if err != nil { return nil, err } @@ -1854,7 +2871,7 @@ func (x *importSSTUploadClient) CloseAndRecv() (*UploadResponse, error) { func (c *importSSTClient) Ingest(ctx context.Context, in *IngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) { out := new(IngestResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Ingest", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Ingest", in, out, opts...) if err != nil { return nil, err } @@ -1863,7 +2880,7 @@ func (c *importSSTClient) Ingest(ctx context.Context, in *IngestRequest, opts .. func (c *importSSTClient) Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error) { out := new(CompactResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Compact", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Compact", in, out, opts...) if err != nil { return nil, err } @@ -1872,7 +2889,7 @@ func (c *importSSTClient) Compact(ctx context.Context, in *CompactRequest, opts func (c *importSSTClient) SetDownloadSpeedLimit(ctx context.Context, in *SetDownloadSpeedLimitRequest, opts ...grpc.CallOption) (*SetDownloadSpeedLimitResponse, error) { out := new(SetDownloadSpeedLimitResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SetDownloadSpeedLimit", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SetDownloadSpeedLimit", in, out, opts...) if err != nil { return nil, err } @@ -1881,7 +2898,7 @@ func (c *importSSTClient) SetDownloadSpeedLimit(ctx context.Context, in *SetDown func (c *importSSTClient) Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (*DownloadResponse, error) { out := new(DownloadResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Download", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Download", in, out, opts...) if err != nil { return nil, err } @@ -1889,7 +2906,7 @@ func (c *importSSTClient) Download(ctx context.Context, in *DownloadRequest, opt } func (c *importSSTClient) Write(ctx context.Context, opts ...grpc.CallOption) (ImportSST_WriteClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[1], c.cc, "/import_sstpb.ImportSST/Write", opts...) + stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[1], "/import_sstpb.ImportSST/Write", opts...) if err != nil { return nil, err } @@ -1923,7 +2940,7 @@ func (x *importSSTWriteClient) CloseAndRecv() (*WriteResponse, error) { } func (c *importSSTClient) RawWrite(ctx context.Context, opts ...grpc.CallOption) (ImportSST_RawWriteClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[2], c.cc, "/import_sstpb.ImportSST/RawWrite", opts...) + stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[2], "/import_sstpb.ImportSST/RawWrite", opts...) if err != nil { return nil, err } @@ -1958,7 +2975,7 @@ func (x *importSSTRawWriteClient) CloseAndRecv() (*RawWriteResponse, error) { func (c *importSSTClient) MultiIngest(ctx context.Context, in *MultiIngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) { out := new(IngestResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/MultiIngest", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/MultiIngest", in, out, opts...) if err != nil { return nil, err } @@ -1966,7 +2983,7 @@ func (c *importSSTClient) MultiIngest(ctx context.Context, in *MultiIngestReques } func (c *importSSTClient) DuplicateDetect(ctx context.Context, in *DuplicateDetectRequest, opts ...grpc.CallOption) (ImportSST_DuplicateDetectClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ImportSST_serviceDesc.Streams[3], c.cc, "/import_sstpb.ImportSST/DuplicateDetect", opts...) + stream, err := c.cc.NewStream(ctx, &_ImportSST_serviceDesc.Streams[3], "/import_sstpb.ImportSST/DuplicateDetect", opts...) if err != nil { return nil, err } @@ -1999,7 +3016,7 @@ func (x *importSSTDuplicateDetectClient) Recv() (*DuplicateDetectResponse, error func (c *importSSTClient) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) { out := new(ApplyResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/Apply", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/Apply", in, out, opts...) if err != nil { return nil, err } @@ -2008,7 +3025,7 @@ func (c *importSSTClient) Apply(ctx context.Context, in *ApplyRequest, opts ...g func (c *importSSTClient) ClearFiles(ctx context.Context, in *ClearRequest, opts ...grpc.CallOption) (*ClearResponse, error) { out := new(ClearResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/ClearFiles", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/ClearFiles", in, out, opts...) if err != nil { return nil, err } @@ -2017,15 +3034,14 @@ func (c *importSSTClient) ClearFiles(ctx context.Context, in *ClearRequest, opts func (c *importSSTClient) SuspendImportRPC(ctx context.Context, in *SuspendImportRPCRequest, opts ...grpc.CallOption) (*SuspendImportRPCResponse, error) { out := new(SuspendImportRPCResponse) - err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SuspendImportRPC", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SuspendImportRPC", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for ImportSST service - +// ImportSSTServer is the server API for ImportSST service. type ImportSSTServer interface { // Switch to normal/import mode. SwitchMode(context.Context, *SwitchModeRequest) (*SwitchModeResponse, error) @@ -2056,6 +3072,53 @@ type ImportSSTServer interface { SuspendImportRPC(context.Context, *SuspendImportRPCRequest) (*SuspendImportRPCResponse, error) } +// UnimplementedImportSSTServer can be embedded to have forward compatible implementations. +type UnimplementedImportSSTServer struct { +} + +func (*UnimplementedImportSSTServer) SwitchMode(ctx context.Context, req *SwitchModeRequest) (*SwitchModeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwitchMode not implemented") +} +func (*UnimplementedImportSSTServer) GetMode(ctx context.Context, req *GetModeRequest) (*GetModeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMode not implemented") +} +func (*UnimplementedImportSSTServer) Upload(srv ImportSST_UploadServer) error { + return status.Errorf(codes.Unimplemented, "method Upload not implemented") +} +func (*UnimplementedImportSSTServer) Ingest(ctx context.Context, req *IngestRequest) (*IngestResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Ingest not implemented") +} +func (*UnimplementedImportSSTServer) Compact(ctx context.Context, req *CompactRequest) (*CompactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") +} +func (*UnimplementedImportSSTServer) SetDownloadSpeedLimit(ctx context.Context, req *SetDownloadSpeedLimitRequest) (*SetDownloadSpeedLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDownloadSpeedLimit not implemented") +} +func (*UnimplementedImportSSTServer) Download(ctx context.Context, req *DownloadRequest) (*DownloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Download not implemented") +} +func (*UnimplementedImportSSTServer) Write(srv ImportSST_WriteServer) error { + return status.Errorf(codes.Unimplemented, "method Write not implemented") +} +func (*UnimplementedImportSSTServer) RawWrite(srv ImportSST_RawWriteServer) error { + return status.Errorf(codes.Unimplemented, "method RawWrite not implemented") +} +func (*UnimplementedImportSSTServer) MultiIngest(ctx context.Context, req *MultiIngestRequest) (*IngestResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MultiIngest not implemented") +} +func (*UnimplementedImportSSTServer) DuplicateDetect(req *DuplicateDetectRequest, srv ImportSST_DuplicateDetectServer) error { + return status.Errorf(codes.Unimplemented, "method DuplicateDetect not implemented") +} +func (*UnimplementedImportSSTServer) Apply(ctx context.Context, req *ApplyRequest) (*ApplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Apply not implemented") +} +func (*UnimplementedImportSSTServer) ClearFiles(ctx context.Context, req *ClearRequest) (*ClearResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearFiles not implemented") +} +func (*UnimplementedImportSSTServer) SuspendImportRPC(ctx context.Context, req *SuspendImportRPCRequest) (*SuspendImportRPCResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SuspendImportRPC not implemented") +} + func RegisterImportSSTServer(s *grpc.Server, srv ImportSSTServer) { s.RegisterService(&_ImportSST_serviceDesc, srv) } @@ -2412,7 +3475,7 @@ var _ImportSST_serviceDesc = grpc.ServiceDesc{ func (m *SuspendImportRPCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2420,38 +3483,48 @@ func (m *SuspendImportRPCRequest) Marshal() (dAtA []byte, err error) { } func (m *SuspendImportRPCRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SuspendImportRPCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Caller) > 0 { + i -= len(m.Caller) + copy(dAtA[i:], m.Caller) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Caller))) + i-- + dAtA[i] = 0x1a + } + if m.DurationInSecs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.DurationInSecs)) + i-- + dAtA[i] = 0x10 + } if m.ShouldSuspendImports { - dAtA[i] = 0x8 - i++ + i-- if m.ShouldSuspendImports { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.DurationInSecs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.DurationInSecs)) - } - if len(m.Caller) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Caller))) - i += copy(dAtA[i:], m.Caller) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SuspendImportRPCResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2459,27 +3532,36 @@ func (m *SuspendImportRPCResponse) Marshal() (dAtA []byte, err error) { } func (m *SuspendImportRPCResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SuspendImportRPCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.AlreadySuspended { - dAtA[i] = 0x8 - i++ + i-- if m.AlreadySuspended { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2487,34 +3569,45 @@ func (m *SwitchModeRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Mode != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.Mode != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2522,17 +3615,26 @@ func (m *SwitchModeResponse) Marshal() (dAtA []byte, err error) { } func (m *SwitchModeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetModeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2540,17 +3642,26 @@ func (m *GetModeRequest) Marshal() (dAtA []byte, err error) { } func (m *GetModeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetModeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *GetModeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2558,22 +3669,31 @@ func (m *GetModeResponse) Marshal() (dAtA []byte, err error) { } func (m *GetModeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetModeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Mode != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintImportSstpb(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Range) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2581,29 +3701,40 @@ func (m *Range) Marshal() (dAtA []byte, err error) { } func (m *Range) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Start) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Start))) - i += copy(dAtA[i:], m.Start) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.End) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.End) + copy(dAtA[i:], m.End) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.End))) - i += copy(dAtA[i:], m.End) + i-- + dAtA[i] = 0x12 + } + if len(m.Start) > 0 { + i -= len(m.Start) + copy(dAtA[i:], m.Start) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Start))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SSTMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2611,95 +3742,111 @@ func (m *SSTMeta) Marshal() (dAtA []byte, err error) { } func (m *SSTMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SSTMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Uuid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) - } - if m.Range != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) - n1, err := m.Range.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.Crc32 != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Length != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + if len(m.CipherIv) > 0 { + i -= len(m.CipherIv) + copy(dAtA[i:], m.CipherIv) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CipherIv))) + i-- + dAtA[i] = 0x62 } - if len(m.CfName) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CfName))) - i += copy(dAtA[i:], m.CfName) + if m.ApiVersion != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x58 } - if m.RegionId != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionId)) + if m.TotalBytes != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalBytes)) + i-- + dAtA[i] = 0x50 } - if m.RegionEpoch != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n2, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.TotalKvs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalKvs)) + i-- + dAtA[i] = 0x48 } if m.EndKeyExclusive { - dAtA[i] = 0x40 - i++ + i-- if m.EndKeyExclusive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x40 } - if m.TotalKvs != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalKvs)) + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a } - if m.TotalBytes != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalBytes)) + if m.RegionId != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x30 } - if m.ApiVersion != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.ApiVersion)) + if len(m.CfName) > 0 { + i -= len(m.CfName) + copy(dAtA[i:], m.CfName) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CfName))) + i-- + dAtA[i] = 0x2a } - if len(m.CipherIv) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CipherIv))) - i += copy(dAtA[i:], m.CipherIv) + if m.Length != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x20 + } + if m.Crc32 != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) + i-- + dAtA[i] = 0x18 + } + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RewriteRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2707,34 +3854,45 @@ func (m *RewriteRule) Marshal() (dAtA []byte, err error) { } func (m *RewriteRule) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RewriteRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.OldKeyPrefix) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.OldKeyPrefix))) - i += copy(dAtA[i:], m.OldKeyPrefix) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NewTimestamp != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) + i-- + dAtA[i] = 0x18 } if len(m.NewKeyPrefix) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.NewKeyPrefix) + copy(dAtA[i:], m.NewKeyPrefix) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.NewKeyPrefix))) - i += copy(dAtA[i:], m.NewKeyPrefix) + i-- + dAtA[i] = 0x12 } - if m.NewTimestamp != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) + if len(m.OldKeyPrefix) > 0 { + i -= len(m.OldKeyPrefix) + copy(dAtA[i:], m.OldKeyPrefix) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.OldKeyPrefix))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UploadRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2742,48 +3900,72 @@ func (m *UploadRequest) Marshal() (dAtA []byte, err error) { } func (m *UploadRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Chunk != nil { - nn3, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Chunk.Size() + i -= size + if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn3 } - return i, nil + return len(dAtA) - i, nil } func (m *UploadRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) - n4, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UploadRequest_Data) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadRequest_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Data != nil { - dAtA[i] = 0x12 - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *UploadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2791,17 +3973,26 @@ func (m *UploadResponse) Marshal() (dAtA []byte, err error) { } func (m *UploadResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *IngestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2809,37 +4000,50 @@ func (m *IngestRequest) Marshal() (dAtA []byte, err error) { } func (m *IngestRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n5, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Sst != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Sst.Size())) - n6, err := m.Sst.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *MultiIngestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2847,39 +4051,52 @@ func (m *MultiIngestRequest) Marshal() (dAtA []byte, err error) { } func (m *MultiIngestRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MultiIngestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n7, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Ssts) > 0 { - for _, msg := range m.Ssts { + for iNdEx := len(m.Ssts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ssts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *IngestResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2887,27 +4104,38 @@ func (m *IngestResponse) Marshal() (dAtA []byte, err error) { } func (m *IngestResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n8, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2915,42 +4143,55 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Range != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) - n9, err := m.Range.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x1a } if m.OutputLevel != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintImportSstpb(dAtA, i, uint64(m.OutputLevel)) + i-- + dAtA[i] = 0x10 } - if m.Context != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n10, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2958,17 +4199,26 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *DownloadRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2976,131 +4226,150 @@ func (m *DownloadRequest) Marshal() (dAtA []byte, err error) { } func (m *DownloadRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DownloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Ssts) > 0 { - for k, _ := range m.Ssts { - dAtA[i] = 0xa - i++ - v := m.Ssts[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovImportSstpb(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovImportSstpb(uint64(len(k))) + msgSize - i = encodeVarintImportSstpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - if v != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(v.Size())) - n11, err := v.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Sst.Size())) - n12, err := m.Sst.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - if m.ResolvedTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.ResolvedTs)) - } - if len(m.Name) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.RequestType != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 } - dAtA[i] = 0x6a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) - n13, err := m.RewriteRule.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.StorageCacheId) > 0 { + i -= len(m.StorageCacheId) + copy(dAtA[i:], m.StorageCacheId) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - i += n13 - if m.StorageBackend != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) - n14, err := m.StorageBackend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CipherInfo != nil { + { + size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } if m.IsRawKv { - dAtA[i] = 0x78 - i++ + i-- if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x78 } - if m.CipherInfo != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) - n15, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if m.StorageBackend != nil { + { + size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + { + size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n15 + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - if len(m.StorageCacheId) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) - i += copy(dAtA[i:], m.StorageCacheId) + i-- + dAtA[i] = 0x6a + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x4a } - if m.RequestType != 0 { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) + if m.ResolvedTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x18 } - if m.Context != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n16, err := m.Context.MarshalTo(dAtA[i:]) + { + size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n16 + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0x12 + if len(m.Ssts) > 0 { + for k := range m.Ssts { + v := m.Ssts[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintImportSstpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3108,33 +4377,45 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Message) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StoreError != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StoreError.Size())) - n17, err := m.StoreError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.StoreError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *DownloadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3142,67 +4423,82 @@ func (m *DownloadResponse) Marshal() (dAtA []byte, err error) { } func (m *DownloadResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DownloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) - n18, err := m.Range.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - i += n18 - if m.IsEmpty { - dAtA[i] = 0x10 - i++ - if m.IsEmpty { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Ssts) > 0 { + for iNdEx := len(m.Ssts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ssts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 } - i++ } - if m.Error != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n19, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 + if m.Length != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x28 } if m.Crc32 != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) + i-- + dAtA[i] = 0x20 } - if m.Length != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - } - if len(m.Ssts) > 0 { - for _, msg := range m.Ssts { - dAtA[i] = 0x32 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.IsEmpty { + i-- + if m.IsEmpty { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *SetDownloadSpeedLimitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3210,22 +4506,31 @@ func (m *SetDownloadSpeedLimitRequest) Marshal() (dAtA []byte, err error) { } func (m *SetDownloadSpeedLimitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetDownloadSpeedLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.SpeedLimit != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintImportSstpb(dAtA, i, uint64(m.SpeedLimit)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SetDownloadSpeedLimitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3233,17 +4538,26 @@ func (m *SetDownloadSpeedLimitResponse) Marshal() (dAtA []byte, err error) { } func (m *SetDownloadSpeedLimitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetDownloadSpeedLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *Pair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3251,34 +4565,45 @@ func (m *Pair) Marshal() (dAtA []byte, err error) { } func (m *Pair) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Op != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x18 } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - if m.Op != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Op)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3286,34 +4611,45 @@ func (m *WriteBatch) Marshal() (dAtA []byte, err error) { } func (m *WriteBatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CommitTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.CommitTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *WriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3321,62 +4657,89 @@ func (m *WriteRequest) Marshal() (dAtA []byte, err error) { } func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Chunk != nil { - nn20, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn20 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n21, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Chunk != nil { + { + size := m.Chunk.Size() + i -= size + if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += n21 } - return i, nil + return len(dAtA) - i, nil } func (m *WriteRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) - n22, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Batch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Batch.Size())) - n23, err := m.Batch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n23 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *WriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3384,39 +4747,52 @@ func (m *WriteResponse) Marshal() (dAtA []byte, err error) { } func (m *WriteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n24, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Metas) > 0 { - for _, msg := range m.Metas { + for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawWriteBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3424,39 +4800,50 @@ func (m *RawWriteBatch) Marshal() (dAtA []byte, err error) { } func (m *RawWriteBatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawWriteBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Ttl != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ttl)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ts != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x18 } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if m.Ts != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ts)) + if m.Ttl != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RawWriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3464,62 +4851,89 @@ func (m *RawWriteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawWriteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawWriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Chunk != nil { - nn25, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn25 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n26, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Chunk != nil { + { + size := m.Chunk.Size() + i -= size + if _, err := m.Chunk.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += n26 } - return i, nil + return len(dAtA) - i, nil } func (m *RawWriteRequest_Meta) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawWriteRequest_Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) - n27, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n27 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawWriteRequest_Batch) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawWriteRequest_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Batch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Batch.Size())) - n28, err := m.Batch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n28 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *RawWriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3527,39 +4941,52 @@ func (m *RawWriteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawWriteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawWriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n29, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Metas) > 0 { - for _, msg := range m.Metas { + for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DuplicateDetectRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3567,54 +4994,67 @@ func (m *DuplicateDetectRequest) Marshal() (dAtA []byte, err error) { } func (m *DuplicateDetectRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DuplicateDetectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n30, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.MinCommitTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x28 } if m.KeyOnly { - dAtA[i] = 0x20 - i++ + i-- if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if m.MinCommitTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.MinCommitTs)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a } - return i, nil + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *KvPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3622,34 +5062,45 @@ func (m *KvPair) Marshal() (dAtA []byte, err error) { } func (m *KvPair) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KvPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CommitTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x18 } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - if m.CommitTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CommitTs)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DuplicateDetectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3657,49 +5108,64 @@ func (m *DuplicateDetectResponse) Marshal() (dAtA []byte, err error) { } func (m *DuplicateDetectResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DuplicateDetectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionError.Size())) - n31, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Pairs) > 0 { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n31 } if m.KeyError != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.KeyError.Size())) - n32, err := m.KeyError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.KeyError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n32 + i-- + dAtA[i] = 0x12 } - if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *KVMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3707,92 +5173,106 @@ func (m *KVMeta) Marshal() (dAtA []byte, err error) { } func (m *KVMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KVMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Length != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + if m.CompressionType != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) + i-- + dAtA[i] = 0x68 } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.RangeLength != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) + i-- + dAtA[i] = 0x60 } - if m.IsDelete { - dAtA[i] = 0x20 - i++ - if m.IsDelete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.RangeOffset != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) + i-- + dAtA[i] = 0x58 } - if m.RestoreTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) + if m.StartTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x50 } - if len(m.StartKey) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.StartSnapshotTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) + i-- + dAtA[i] = 0x48 + } + if len(m.Sha256) > 0 { + i -= len(m.Sha256) + copy(dAtA[i:], m.Sha256) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) + i-- + dAtA[i] = 0x42 } if len(m.EndKey) > 0 { - dAtA[i] = 0x3a - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x3a } - if len(m.Sha256) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) - i += copy(dAtA[i:], m.Sha256) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x32 } - if m.StartSnapshotTs != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) + if m.RestoreTs != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) + i-- + dAtA[i] = 0x28 } - if m.StartTs != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) + if m.IsDelete { + i-- + if m.IsDelete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 } - if m.RangeOffset != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a } - if m.RangeLength != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) + if m.Length != 0 { + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x10 } - if m.CompressionType != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ApplyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3800,95 +5280,119 @@ func (m *ApplyRequest) Marshal() (dAtA []byte, err error) { } func (m *ApplyRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) - n33, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) - n34, err := m.RewriteRule.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RewriteRules) > 0 { + for iNdEx := len(m.RewriteRules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RewriteRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } } - i += n34 - if m.StorageBackend != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) - n35, err := m.StorageBackend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Metas) > 0 { + for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 } - i += n35 } - if m.Context != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Context.Size())) - n36, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CipherInfo != nil { + { + size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n36 + i-- + dAtA[i] = 0x5a } if len(m.StorageCacheId) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.StorageCacheId) + copy(dAtA[i:], m.StorageCacheId) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) - i += copy(dAtA[i:], m.StorageCacheId) + i-- + dAtA[i] = 0x2a } - if m.CipherInfo != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) - n37, err := m.CipherInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n37 + i-- + dAtA[i] = 0x22 } - if len(m.Metas) > 0 { - for _, msg := range m.Metas { - dAtA[i] = 0x62 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.StorageBackend != nil { + { + size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if len(m.RewriteRules) > 0 { - for _, msg := range m.RewriteRules { - dAtA[i] = 0x6a - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + { + size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ApplyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3896,35 +5400,48 @@ func (m *ApplyResponse) Marshal() (dAtA []byte, err error) { } func (m *ApplyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) - n38, err := m.Range.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - i += n38 if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n39, err := m.Error.MarshalTo(dAtA[i:]) + } + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n39 + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - return i, nil + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *ClearRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3932,23 +5449,33 @@ func (m *ClearRequest) Marshal() (dAtA []byte, err error) { } func (m *ClearRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClearRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Prefix) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Prefix) + copy(dAtA[i:], m.Prefix) i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Prefix))) - i += copy(dAtA[i:], m.Prefix) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ClearResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3956,33 +5483,49 @@ func (m *ClearResponse) Marshal() (dAtA []byte, err error) { } func (m *ClearResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClearResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) - n40, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i += n40 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintImportSstpb(dAtA []byte, offset int, v uint64) int { + offset -= sovImportSstpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *SuspendImportRPCRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ShouldSuspendImports { @@ -3995,19 +5538,31 @@ func (m *SuspendImportRPCRequest) Size() (n int) { if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SuspendImportRPCResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AlreadySuspended { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SwitchModeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Mode != 0 { @@ -4019,31 +5574,55 @@ func (m *SwitchModeRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SwitchModeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetModeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetModeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Mode != 0 { n += 1 + sovImportSstpb(uint64(m.Mode)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Range) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Start) @@ -4054,10 +5633,16 @@ func (m *Range) Size() (n int) { if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SSTMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Uuid) @@ -4101,10 +5686,16 @@ func (m *SSTMeta) Size() (n int) { if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RewriteRule) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.OldKeyPrefix) @@ -4118,19 +5709,31 @@ func (m *RewriteRule) Size() (n int) { if m.NewTimestamp != 0 { n += 1 + sovImportSstpb(uint64(m.NewTimestamp)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UploadRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { n += m.Chunk.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UploadRequest_Meta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -4140,6 +5743,9 @@ func (m *UploadRequest_Meta) Size() (n int) { return n } func (m *UploadRequest_Data) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Data != nil { @@ -4149,12 +5755,21 @@ func (m *UploadRequest_Data) Size() (n int) { return n } func (m *UploadResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IngestRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -4165,10 +5780,16 @@ func (m *IngestRequest) Size() (n int) { l = m.Sst.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MultiIngestRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -4181,20 +5802,32 @@ func (m *MultiIngestRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IngestResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Range != nil { @@ -4208,16 +5841,28 @@ func (m *CompactRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DownloadRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Ssts) > 0 { @@ -4266,10 +5911,16 @@ func (m *DownloadRequest) Size() (n int) { l = m.Context.Size() n += 2 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Message) @@ -4280,10 +5931,16 @@ func (m *Error) Size() (n int) { l = m.StoreError.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DownloadResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Range.Size() @@ -4307,25 +5964,43 @@ func (m *DownloadResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SetDownloadSpeedLimitRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SpeedLimit != 0 { n += 1 + sovImportSstpb(uint64(m.SpeedLimit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SetDownloadSpeedLimitResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Pair) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -4339,10 +6014,16 @@ func (m *Pair) Size() (n int) { if m.Op != 0 { n += 1 + sovImportSstpb(uint64(m.Op)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteBatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CommitTs != 0 { @@ -4354,10 +6035,16 @@ func (m *WriteBatch) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { @@ -4367,10 +6054,16 @@ func (m *WriteRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteRequest_Meta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -4380,6 +6073,9 @@ func (m *WriteRequest_Meta) Size() (n int) { return n } func (m *WriteRequest_Batch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Batch != nil { @@ -4389,6 +6085,9 @@ func (m *WriteRequest_Batch) Size() (n int) { return n } func (m *WriteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -4401,10 +6100,16 @@ func (m *WriteResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawWriteBatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Ttl != 0 { @@ -4419,10 +6124,16 @@ func (m *RawWriteBatch) Size() (n int) { if m.Ts != 0 { n += 1 + sovImportSstpb(uint64(m.Ts)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawWriteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { @@ -4432,10 +6143,16 @@ func (m *RawWriteRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawWriteRequest_Meta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -4445,6 +6162,9 @@ func (m *RawWriteRequest_Meta) Size() (n int) { return n } func (m *RawWriteRequest_Batch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Batch != nil { @@ -4454,6 +6174,9 @@ func (m *RawWriteRequest_Batch) Size() (n int) { return n } func (m *RawWriteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -4466,10 +6189,16 @@ func (m *RawWriteResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DuplicateDetectRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -4490,10 +6219,16 @@ func (m *DuplicateDetectRequest) Size() (n int) { if m.MinCommitTs != 0 { n += 1 + sovImportSstpb(uint64(m.MinCommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KvPair) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -4507,10 +6242,16 @@ func (m *KvPair) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovImportSstpb(uint64(m.CommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DuplicateDetectResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -4527,10 +6268,16 @@ func (m *DuplicateDetectResponse) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KVMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -4577,10 +6324,16 @@ func (m *KVMeta) Size() (n int) { if m.CompressionType != 0 { n += 1 + sovImportSstpb(uint64(m.CompressionType)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ApplyRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -4617,10 +6370,16 @@ func (m *ApplyRequest) Size() (n int) { n += 1 + l + sovImportSstpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ApplyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Range.Size() @@ -4629,38 +6388,46 @@ func (m *ApplyResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ClearRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Prefix) if l > 0 { n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ClearResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovImportSstpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovImportSstpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozImportSstpb(x uint64) (n int) { return sovImportSstpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -4680,7 +6447,7 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4708,7 +6475,7 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4728,7 +6495,7 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationInSecs |= (uint64(b) & 0x7F) << shift + m.DurationInSecs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4747,7 +6514,7 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4757,6 +6524,9 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4768,12 +6538,13 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4798,7 +6569,7 @@ func (m *SuspendImportRPCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4826,7 +6597,7 @@ func (m *SuspendImportRPCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4838,12 +6609,13 @@ func (m *SuspendImportRPCResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4868,7 +6640,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4896,7 +6668,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (SwitchMode(b) & 0x7F) << shift + m.Mode |= SwitchMode(b&0x7F) << shift if b < 0x80 { break } @@ -4915,7 +6687,7 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4924,6 +6696,9 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4938,12 +6713,13 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4968,7 +6744,7 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4988,12 +6764,13 @@ func (m *SwitchModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5018,7 +6795,7 @@ func (m *GetModeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5038,12 +6815,13 @@ func (m *GetModeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5068,7 +6846,7 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5096,7 +6874,7 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (SwitchMode(b) & 0x7F) << shift + m.Mode |= SwitchMode(b&0x7F) << shift if b < 0x80 { break } @@ -5107,12 +6885,13 @@ func (m *GetModeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5137,7 +6916,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5165,7 +6944,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5174,6 +6953,9 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5196,7 +6978,7 @@ func (m *Range) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5205,6 +6987,9 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5219,12 +7004,13 @@ func (m *Range) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5249,7 +7035,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5277,7 +7063,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5286,6 +7072,9 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5308,7 +7097,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5317,6 +7106,9 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5341,7 +7133,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc32 |= (uint32(b) & 0x7F) << shift + m.Crc32 |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -5360,7 +7152,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (uint64(b) & 0x7F) << shift + m.Length |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5379,7 +7171,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5389,6 +7181,9 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5408,7 +7203,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5427,7 +7222,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5436,6 +7231,9 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5460,7 +7258,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5480,7 +7278,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= (uint64(b) & 0x7F) << shift + m.TotalKvs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5499,7 +7297,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (uint64(b) & 0x7F) << shift + m.TotalBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5518,7 +7316,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -5537,7 +7335,7 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5546,6 +7344,9 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5560,12 +7361,13 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5590,7 +7392,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5618,7 +7420,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5627,6 +7429,9 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5649,7 +7454,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5658,6 +7463,9 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5680,7 +7488,7 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewTimestamp |= (uint64(b) & 0x7F) << shift + m.NewTimestamp |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5691,12 +7499,13 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5721,7 +7530,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5749,7 +7558,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5758,6 +7567,9 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5781,7 +7593,7 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5790,6 +7602,9 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5803,12 +7618,13 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5833,7 +7649,7 @@ func (m *UploadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5853,12 +7669,13 @@ func (m *UploadResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5883,7 +7700,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5911,7 +7728,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5920,6 +7737,9 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5944,7 +7764,7 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5953,6 +7773,9 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5969,12 +7792,13 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5999,7 +7823,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6027,7 +7851,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6036,6 +7860,9 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6060,7 +7887,7 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6069,6 +7896,9 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6083,12 +7913,13 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6113,7 +7944,7 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6141,7 +7972,7 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6150,6 +7981,9 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6166,12 +8000,13 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6196,7 +8031,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6224,7 +8059,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6233,6 +8068,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6257,7 +8095,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OutputLevel |= (int32(b) & 0x7F) << shift + m.OutputLevel |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -6276,7 +8114,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6285,6 +8123,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6301,12 +8142,13 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6331,7 +8173,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6351,12 +8193,13 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6381,7 +8224,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6409,7 +8252,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6418,6 +8261,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6438,7 +8284,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6455,7 +8301,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6465,6 +8311,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthImportSstpb + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -6481,7 +8330,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift + mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6490,7 +8339,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { + if postmsgIndex < 0 { return ErrInvalidLengthImportSstpb } if postmsgIndex > l { @@ -6507,7 +8356,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > postIndex { @@ -6532,7 +8381,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6541,6 +8390,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6562,7 +8414,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= (uint64(b) & 0x7F) << shift + m.ResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6581,7 +8433,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6591,6 +8443,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6610,7 +8465,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6619,6 +8474,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6640,7 +8498,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6649,11 +8507,14 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } if m.StorageBackend == nil { - m.StorageBackend = &backup.StorageBackend{} + m.StorageBackend = &brpb.StorageBackend{} } if err := m.StorageBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6673,7 +8534,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6693,7 +8554,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6702,11 +8563,14 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } if m.CipherInfo == nil { - m.CipherInfo = &backup.CipherInfo{} + m.CipherInfo = &brpb.CipherInfo{} } if err := m.CipherInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6726,7 +8590,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6736,6 +8600,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6755,7 +8622,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestType |= (DownloadRequestType(b) & 0x7F) << shift + m.RequestType |= DownloadRequestType(b&0x7F) << shift if b < 0x80 { break } @@ -6774,7 +8641,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6783,6 +8650,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6799,12 +8669,13 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6829,7 +8700,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6857,7 +8728,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6867,6 +8738,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6886,7 +8760,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6895,6 +8769,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6911,12 +8788,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6941,7 +8819,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6969,7 +8847,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6978,6 +8856,9 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6999,7 +8880,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7019,7 +8900,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7028,6 +8909,9 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7052,7 +8936,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc32 |= (uint32(b) & 0x7F) << shift + m.Crc32 |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -7071,7 +8955,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (uint64(b) & 0x7F) << shift + m.Length |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7090,7 +8974,7 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7099,6 +8983,9 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7113,12 +9000,13 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7143,7 +9031,7 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7171,7 +9059,7 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpeedLimit |= (uint64(b) & 0x7F) << shift + m.SpeedLimit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7182,12 +9070,13 @@ func (m *SetDownloadSpeedLimitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7212,7 +9101,7 @@ func (m *SetDownloadSpeedLimitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7232,12 +9121,13 @@ func (m *SetDownloadSpeedLimitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7262,7 +9152,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7290,7 +9180,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7299,6 +9189,9 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7321,7 +9214,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7330,6 +9223,9 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7352,7 +9248,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (Pair_OP(b) & 0x7F) << shift + m.Op |= Pair_OP(b&0x7F) << shift if b < 0x80 { break } @@ -7363,12 +9259,13 @@ func (m *Pair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7393,7 +9290,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7421,7 +9318,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7440,7 +9337,7 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7449,6 +9346,9 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7463,12 +9363,13 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7493,7 +9394,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7521,7 +9422,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7530,6 +9431,9 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7553,7 +9457,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7562,6 +9466,9 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7585,7 +9492,7 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7594,6 +9501,9 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7610,12 +9520,13 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7640,7 +9551,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7668,7 +9579,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7677,6 +9588,9 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7701,7 +9615,7 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7710,6 +9624,9 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7724,12 +9641,13 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7754,7 +9672,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7782,7 +9700,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7801,7 +9719,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7810,6 +9728,9 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7832,7 +9753,7 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (uint64(b) & 0x7F) << shift + m.Ts |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7843,12 +9764,13 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7873,7 +9795,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7901,7 +9823,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7910,6 +9832,9 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7933,7 +9858,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7942,6 +9867,9 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7965,7 +9893,7 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7974,6 +9902,9 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7990,12 +9921,13 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8020,7 +9952,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8048,7 +9980,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8057,6 +9989,9 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8081,7 +10016,7 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8090,6 +10025,9 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8104,12 +10042,13 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8134,7 +10073,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8162,7 +10101,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8171,6 +10110,9 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8195,7 +10137,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8204,6 +10146,9 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8226,7 +10171,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8235,6 +10180,9 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8257,7 +10205,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8277,7 +10225,7 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8288,12 +10236,13 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8318,7 +10267,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8346,7 +10295,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8355,6 +10304,9 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8377,7 +10329,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8386,6 +10338,9 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8408,7 +10363,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8419,12 +10374,13 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8449,7 +10405,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8477,7 +10433,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8486,6 +10442,9 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8510,7 +10469,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8519,6 +10478,9 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8543,7 +10505,7 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8552,6 +10514,9 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8566,12 +10531,13 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8596,7 +10562,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8624,7 +10590,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8634,6 +10600,9 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8653,7 +10622,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= (uint64(b) & 0x7F) << shift + m.Length |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8672,7 +10641,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8682,6 +10651,9 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8701,7 +10673,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8721,7 +10693,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RestoreTs |= (uint64(b) & 0x7F) << shift + m.RestoreTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8740,7 +10712,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8749,6 +10721,9 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8771,7 +10746,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8780,6 +10755,9 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8802,7 +10780,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8811,6 +10789,9 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8833,7 +10814,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartSnapshotTs |= (uint64(b) & 0x7F) << shift + m.StartSnapshotTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8852,7 +10833,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8871,7 +10852,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeOffset |= (uint64(b) & 0x7F) << shift + m.RangeOffset |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8890,7 +10871,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeLength |= (uint64(b) & 0x7F) << shift + m.RangeLength |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8909,7 +10890,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= (backup.CompressionType(b) & 0x7F) << shift + m.CompressionType |= brpb.CompressionType(b&0x7F) << shift if b < 0x80 { break } @@ -8920,12 +10901,13 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8950,7 +10932,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8978,7 +10960,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8987,6 +10969,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9011,7 +10996,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9020,6 +11005,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9041,7 +11029,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9050,11 +11038,14 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } if m.StorageBackend == nil { - m.StorageBackend = &backup.StorageBackend{} + m.StorageBackend = &brpb.StorageBackend{} } if err := m.StorageBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9074,7 +11065,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9083,6 +11074,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9107,7 +11101,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9117,6 +11111,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9136,7 +11133,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9145,11 +11142,14 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } if m.CipherInfo == nil { - m.CipherInfo = &backup.CipherInfo{} + m.CipherInfo = &brpb.CipherInfo{} } if err := m.CipherInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9169,7 +11169,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9178,6 +11178,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9200,7 +11203,7 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9209,6 +11212,9 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9223,12 +11229,13 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9253,7 +11260,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9281,7 +11288,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9290,6 +11297,9 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9311,7 +11321,7 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9320,6 +11330,9 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9336,12 +11349,13 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9366,7 +11380,7 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9394,7 +11408,7 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9404,6 +11418,9 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9415,12 +11432,13 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9445,7 +11463,7 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9473,7 +11491,7 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9482,6 +11500,9 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthImportSstpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9498,12 +11519,13 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthImportSstpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9516,6 +11538,7 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { func skipImportSstpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -9547,10 +11570,8 @@ func skipImportSstpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -9567,197 +11588,34 @@ func skipImportSstpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthImportSstpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowImportSstpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipImportSstpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupImportSstpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthImportSstpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthImportSstpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowImportSstpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthImportSstpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowImportSstpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupImportSstpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("import_sstpb.proto", fileDescriptorImportSstpb) } - -var fileDescriptorImportSstpb = []byte{ - // 2195 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0xdb, 0xc8, - 0x11, 0x16, 0xf8, 0x66, 0x13, 0x7c, 0x78, 0xac, 0x95, 0x61, 0xfa, 0xb9, 0x88, 0xd7, 0x2b, 0x4b, - 0x89, 0xec, 0xc8, 0x1b, 0x57, 0x6a, 0x53, 0x15, 0xd7, 0xea, 0x11, 0x5b, 0x91, 0x1f, 0x0a, 0xa8, - 0x38, 0x87, 0x1c, 0x50, 0x10, 0x38, 0x92, 0x10, 0x82, 0x00, 0x82, 0x19, 0x52, 0xe6, 0x25, 0x3f, - 0x20, 0xb7, 0xdc, 0x72, 0x4b, 0x25, 0xa7, 0xad, 0x9c, 0x73, 0xc9, 0x3f, 0xd8, 0x63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 0x12, 0xac, - 0xfb, 0xd9, 0x02, 0xae, 0x44, 0xc3, 0x23, 0x8d, 0x6c, 0x41, 0x19, 0x71, 0x2b, 0xef, 0xc9, 0xf4, - 0x15, 0x94, 0xf7, 0x64, 0x06, 0xe8, 0x30, 0x51, 0x00, 0x61, 0xe6, 0x17, 0x9e, 0x4f, 0x59, 0x5e, - 0x50, 0x1a, 0xa8, 0xf2, 0x82, 0x32, 0xe0, 0x64, 0x2e, 0x11, 0x17, 0x3a, 0xf9, 0xc7, 0x74, 0x92, - 0xdb, 0xcb, 0x39, 0xef, 0xff, 0xdd, 0xfb, 0x8b, 0xd8, 0x12, 0x25, 0x5b, 0xf7, 0xff, 0xfd, 0x75, - 0x4d, 0xfb, 0xe6, 0xdd, 0x6d, 0xed, 0x5f, 0xef, 0x6e, 0x6b, 0xff, 0x7d, 0x77, 0x5b, 0xfb, 0xf3, - 0xff, 0x6e, 0x2f, 0x41, 0x27, 0x8c, 0x4f, 0x36, 0xb8, 0x37, 0x18, 0x6f, 0x0c, 0xc6, 0xf8, 0x6f, - 0xc3, 0x51, 0x05, 0x7f, 0x1e, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xa6, 0xce, 0xb7, 0xf7, - 0x18, 0x00, 0x00, -} diff --git a/pkg/keyspacepb/keyspacepb.pb.go b/pkg/keyspacepb/keyspacepb.pb.go index 3b8fb7e3b..4ac64771b 100644 --- a/pkg/keyspacepb/keyspacepb.pb.go +++ b/pkg/keyspacepb/keyspacepb.pb.go @@ -1,40 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: keyspacepb.proto -/* -Package keyspacepb is a generated protocol buffer package. - -It is generated from these files: - - keyspacepb.proto - -It has these top-level messages: - - KeyspaceMeta - LoadKeyspaceRequest - LoadKeyspaceResponse - WatchKeyspacesRequest - WatchKeyspacesResponse - UpdateKeyspaceStateRequest - UpdateKeyspaceStateResponse - GetAllKeyspacesRequest - GetAllKeyspacesResponse -*/ package keyspacepb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" pdpb "github.com/pingcap/kvproto/pkg/pdpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -46,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type KeyspaceState int32 @@ -63,6 +44,7 @@ var KeyspaceState_name = map[int32]string{ 2: "ARCHIVED", 3: "TOMBSTONE", } + var KeyspaceState_value = map[string]int32{ "ENABLED": 0, "DISABLED": 1, @@ -73,21 +55,55 @@ var KeyspaceState_value = map[string]int32{ func (x KeyspaceState) String() string { return proto.EnumName(KeyspaceState_name, int32(x)) } -func (KeyspaceState) EnumDescriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{0} } + +func (KeyspaceState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5c5d91f3e5071166, []int{0} +} type KeyspaceMeta struct { - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - StateChangedAt int64 `protobuf:"varint,5,opt,name=state_changed_at,json=stateChangedAt,proto3" json:"state_changed_at,omitempty"` - Config map[string]string `protobuf:"bytes,7,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + StateChangedAt int64 `protobuf:"varint,5,opt,name=state_changed_at,json=stateChangedAt,proto3" json:"state_changed_at,omitempty"` + Config map[string]string `protobuf:"bytes,7,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyspaceMeta) Reset() { *m = KeyspaceMeta{} } +func (m *KeyspaceMeta) String() string { return proto.CompactTextString(m) } +func (*KeyspaceMeta) ProtoMessage() {} +func (*KeyspaceMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_5c5d91f3e5071166, []int{0} +} +func (m *KeyspaceMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyspaceMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyspaceMeta.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 *KeyspaceMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceMeta.Merge(m, src) +} +func (m *KeyspaceMeta) XXX_Size() int { + return m.Size() +} +func (m *KeyspaceMeta) XXX_DiscardUnknown() { + xxx_messageInfo_KeyspaceMeta.DiscardUnknown(m) } -func (m *KeyspaceMeta) Reset() { *m = KeyspaceMeta{} } -func (m *KeyspaceMeta) String() string { return proto.CompactTextString(m) } -func (*KeyspaceMeta) ProtoMessage() {} -func (*KeyspaceMeta) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{0} } +var xxx_messageInfo_KeyspaceMeta proto.InternalMessageInfo func (m *KeyspaceMeta) GetId() uint32 { if m != nil { @@ -132,14 +148,45 @@ func (m *KeyspaceMeta) GetConfig() map[string]string { } type LoadKeyspaceRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadKeyspaceRequest) Reset() { *m = LoadKeyspaceRequest{} } +func (m *LoadKeyspaceRequest) String() string { return proto.CompactTextString(m) } +func (*LoadKeyspaceRequest) ProtoMessage() {} +func (*LoadKeyspaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5c5d91f3e5071166, []int{1} +} +func (m *LoadKeyspaceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LoadKeyspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LoadKeyspaceRequest.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 *LoadKeyspaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadKeyspaceRequest.Merge(m, src) +} +func (m *LoadKeyspaceRequest) XXX_Size() int { + return m.Size() +} +func (m *LoadKeyspaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadKeyspaceRequest.DiscardUnknown(m) } -func (m *LoadKeyspaceRequest) Reset() { *m = LoadKeyspaceRequest{} } -func (m *LoadKeyspaceRequest) String() string { return proto.CompactTextString(m) } -func (*LoadKeyspaceRequest) ProtoMessage() {} -func (*LoadKeyspaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{1} } +var xxx_messageInfo_LoadKeyspaceRequest proto.InternalMessageInfo func (m *LoadKeyspaceRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -156,14 +203,45 @@ func (m *LoadKeyspaceRequest) GetName() string { } type LoadKeyspaceResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadKeyspaceResponse) Reset() { *m = LoadKeyspaceResponse{} } +func (m *LoadKeyspaceResponse) String() string { return proto.CompactTextString(m) } +func (*LoadKeyspaceResponse) ProtoMessage() {} +func (*LoadKeyspaceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5c5d91f3e5071166, []int{2} +} +func (m *LoadKeyspaceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LoadKeyspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LoadKeyspaceResponse.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 *LoadKeyspaceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadKeyspaceResponse.Merge(m, src) +} +func (m *LoadKeyspaceResponse) XXX_Size() int { + return m.Size() +} +func (m *LoadKeyspaceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadKeyspaceResponse.DiscardUnknown(m) } -func (m *LoadKeyspaceResponse) Reset() { *m = LoadKeyspaceResponse{} } -func (m *LoadKeyspaceResponse) String() string { return proto.CompactTextString(m) } -func (*LoadKeyspaceResponse) ProtoMessage() {} -func (*LoadKeyspaceResponse) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{2} } +var xxx_messageInfo_LoadKeyspaceResponse proto.InternalMessageInfo func (m *LoadKeyspaceResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -180,13 +258,44 @@ func (m *LoadKeyspaceResponse) GetKeyspace() *KeyspaceMeta { } type WatchKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchKeyspacesRequest) Reset() { *m = WatchKeyspacesRequest{} } +func (m *WatchKeyspacesRequest) String() string { return proto.CompactTextString(m) } +func (*WatchKeyspacesRequest) ProtoMessage() {} +func (*WatchKeyspacesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5c5d91f3e5071166, []int{3} +} +func (m *WatchKeyspacesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchKeyspacesRequest.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 *WatchKeyspacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchKeyspacesRequest.Merge(m, src) +} +func (m *WatchKeyspacesRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchKeyspacesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchKeyspacesRequest.DiscardUnknown(m) } -func (m *WatchKeyspacesRequest) Reset() { *m = WatchKeyspacesRequest{} } -func (m *WatchKeyspacesRequest) String() string { return proto.CompactTextString(m) } -func (*WatchKeyspacesRequest) ProtoMessage() {} -func (*WatchKeyspacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorKeyspacepb, []int{3} } +var xxx_messageInfo_WatchKeyspacesRequest proto.InternalMessageInfo func (m *WatchKeyspacesRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -196,16 +305,45 @@ func (m *WatchKeyspacesRequest) GetHeader() *pdpb.RequestHeader { } type WatchKeyspacesResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *WatchKeyspacesResponse) Reset() { *m = WatchKeyspacesResponse{} } func (m *WatchKeyspacesResponse) String() string { return proto.CompactTextString(m) } func (*WatchKeyspacesResponse) ProtoMessage() {} func (*WatchKeyspacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKeyspacepb, []int{4} + return fileDescriptor_5c5d91f3e5071166, []int{4} } +func (m *WatchKeyspacesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchKeyspacesResponse.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 *WatchKeyspacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchKeyspacesResponse.Merge(m, src) +} +func (m *WatchKeyspacesResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchKeyspacesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchKeyspacesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WatchKeyspacesResponse proto.InternalMessageInfo func (m *WatchKeyspacesResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -222,17 +360,46 @@ func (m *WatchKeyspacesResponse) GetKeyspaces() []*KeyspaceMeta { } type UpdateKeyspaceStateRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + State KeyspaceState `protobuf:"varint,3,opt,name=state,proto3,enum=keyspacepb.KeyspaceState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateKeyspaceStateRequest) Reset() { *m = UpdateKeyspaceStateRequest{} } func (m *UpdateKeyspaceStateRequest) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateRequest) ProtoMessage() {} func (*UpdateKeyspaceStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKeyspacepb, []int{5} + return fileDescriptor_5c5d91f3e5071166, []int{5} } +func (m *UpdateKeyspaceStateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateKeyspaceStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateKeyspaceStateRequest.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 *UpdateKeyspaceStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyspaceStateRequest.Merge(m, src) +} +func (m *UpdateKeyspaceStateRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateKeyspaceStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateKeyspaceStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateKeyspaceStateRequest proto.InternalMessageInfo func (m *UpdateKeyspaceStateRequest) GetHeader() *pdpb.RequestHeader { if m != nil { @@ -256,16 +423,45 @@ func (m *UpdateKeyspaceStateRequest) GetState() KeyspaceState { } type UpdateKeyspaceStateResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateKeyspaceStateResponse) Reset() { *m = UpdateKeyspaceStateResponse{} } func (m *UpdateKeyspaceStateResponse) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateResponse) ProtoMessage() {} func (*UpdateKeyspaceStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKeyspacepb, []int{6} + return fileDescriptor_5c5d91f3e5071166, []int{6} +} +func (m *UpdateKeyspaceStateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateKeyspaceStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateKeyspaceStateResponse.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 *UpdateKeyspaceStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyspaceStateResponse.Merge(m, src) +} +func (m *UpdateKeyspaceStateResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateKeyspaceStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateKeyspaceStateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateKeyspaceStateResponse proto.InternalMessageInfo func (m *UpdateKeyspaceStateResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -282,18 +478,47 @@ func (m *UpdateKeyspaceStateResponse) GetKeyspace() *KeyspaceMeta { } type GetAllKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - StartId uint32 `protobuf:"varint,2,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + StartId uint32 `protobuf:"varint,2,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetAllKeyspacesRequest) Reset() { *m = GetAllKeyspacesRequest{} } func (m *GetAllKeyspacesRequest) String() string { return proto.CompactTextString(m) } func (*GetAllKeyspacesRequest) ProtoMessage() {} func (*GetAllKeyspacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKeyspacepb, []int{7} + return fileDescriptor_5c5d91f3e5071166, []int{7} +} +func (m *GetAllKeyspacesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllKeyspacesRequest.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 *GetAllKeyspacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllKeyspacesRequest.Merge(m, src) +} +func (m *GetAllKeyspacesRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAllKeyspacesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllKeyspacesRequest.DiscardUnknown(m) } +var xxx_messageInfo_GetAllKeyspacesRequest proto.InternalMessageInfo + func (m *GetAllKeyspacesRequest) GetHeader() *pdpb.RequestHeader { if m != nil { return m.Header @@ -316,16 +541,45 @@ func (m *GetAllKeyspacesRequest) GetLimit() uint32 { } type GetAllKeyspacesResponse struct { - Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetAllKeyspacesResponse) Reset() { *m = GetAllKeyspacesResponse{} } func (m *GetAllKeyspacesResponse) String() string { return proto.CompactTextString(m) } func (*GetAllKeyspacesResponse) ProtoMessage() {} func (*GetAllKeyspacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKeyspacepb, []int{8} + return fileDescriptor_5c5d91f3e5071166, []int{8} +} +func (m *GetAllKeyspacesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *GetAllKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllKeyspacesResponse.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 *GetAllKeyspacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllKeyspacesResponse.Merge(m, src) +} +func (m *GetAllKeyspacesResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAllKeyspacesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllKeyspacesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAllKeyspacesResponse proto.InternalMessageInfo func (m *GetAllKeyspacesResponse) GetHeader() *pdpb.ResponseHeader { if m != nil { @@ -342,7 +596,9 @@ func (m *GetAllKeyspacesResponse) GetKeyspaces() []*KeyspaceMeta { } func init() { + proto.RegisterEnum("keyspacepb.KeyspaceState", KeyspaceState_name, KeyspaceState_value) proto.RegisterType((*KeyspaceMeta)(nil), "keyspacepb.KeyspaceMeta") + proto.RegisterMapType((map[string]string)(nil), "keyspacepb.KeyspaceMeta.ConfigEntry") proto.RegisterType((*LoadKeyspaceRequest)(nil), "keyspacepb.LoadKeyspaceRequest") proto.RegisterType((*LoadKeyspaceResponse)(nil), "keyspacepb.LoadKeyspaceResponse") proto.RegisterType((*WatchKeyspacesRequest)(nil), "keyspacepb.WatchKeyspacesRequest") @@ -351,7 +607,53 @@ func init() { proto.RegisterType((*UpdateKeyspaceStateResponse)(nil), "keyspacepb.UpdateKeyspaceStateResponse") proto.RegisterType((*GetAllKeyspacesRequest)(nil), "keyspacepb.GetAllKeyspacesRequest") proto.RegisterType((*GetAllKeyspacesResponse)(nil), "keyspacepb.GetAllKeyspacesResponse") - proto.RegisterEnum("keyspacepb.KeyspaceState", KeyspaceState_name, KeyspaceState_value) +} + +func init() { proto.RegisterFile("keyspacepb.proto", fileDescriptor_5c5d91f3e5071166) } + +var fileDescriptor_5c5d91f3e5071166 = []byte{ + // 643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xee, 0xda, 0xfd, 0x49, 0x26, 0x4d, 0x6a, 0x6d, 0x43, 0x71, 0x8d, 0x08, 0xc6, 0xa0, 0x62, + 0x01, 0x72, 0x51, 0x40, 0x08, 0x10, 0x97, 0xb4, 0x89, 0xda, 0x8a, 0xfe, 0x48, 0x4e, 0x29, 0x07, + 0x90, 0xaa, 0x6d, 0xbc, 0x24, 0x56, 0xd2, 0xd8, 0xd8, 0xdb, 0x48, 0xe5, 0x00, 0x42, 0xe2, 0xc4, + 0x13, 0xf0, 0x02, 0x48, 0x3c, 0x0a, 0x47, 0x8e, 0x1c, 0x51, 0x78, 0x11, 0xe4, 0xb5, 0x9d, 0x3a, + 0xc1, 0x29, 0x22, 0x48, 0x3d, 0x65, 0x66, 0xf6, 0xdb, 0x6f, 0xe7, 0x9b, 0x9f, 0x18, 0xa4, 0x36, + 0x3d, 0xf5, 0x5d, 0xd2, 0xa0, 0xee, 0x91, 0xe1, 0x7a, 0x0e, 0x73, 0x30, 0x9c, 0x45, 0x14, 0x70, + 0xad, 0x38, 0xae, 0x14, 0x9b, 0x4e, 0xd3, 0xe1, 0xe6, 0x6a, 0x60, 0x45, 0xd1, 0x05, 0xef, 0xc4, + 0x67, 0xdc, 0x0c, 0x03, 0xda, 0x17, 0x01, 0xe6, 0x9f, 0x45, 0x0c, 0x3b, 0x94, 0x11, 0x5c, 0x00, + 0xc1, 0xb6, 0x64, 0xa4, 0x22, 0x3d, 0x6f, 0x0a, 0xb6, 0x85, 0x31, 0x4c, 0x77, 0xc9, 0x31, 0x95, + 0x05, 0x15, 0xe9, 0x59, 0x93, 0xdb, 0x78, 0x15, 0x66, 0x7c, 0x46, 0x18, 0x95, 0x45, 0x15, 0x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xc2, 0x2f, 0xa1, 0x30, 0xbc, 0x34, + 0xf8, 0x7a, 0xf2, 0x56, 0xea, 0x5a, 0x2a, 0xda, 0x79, 0x90, 0x98, 0xfa, 0x1e, 0xc2, 0x2d, 0x58, + 0x4c, 0x99, 0x41, 0xbc, 0x92, 0xbc, 0x3e, 0x7e, 0x63, 0x94, 0x5b, 0x7f, 0xc5, 0x0d, 0x64, 0xbc, + 0x82, 0x85, 0x91, 0x96, 0xe3, 0xa1, 0x24, 0xd3, 0xe7, 0x50, 0xb9, 0x71, 0x2e, 0x26, 0x66, 0x5f, + 0x5b, 0xf9, 0xf1, 0x35, 0x83, 0xbe, 0xf5, 0x4b, 0xe8, 0x7b, 0xbf, 0x84, 0x7e, 0xf6, 0x4b, 0xe8, + 0xf3, 0xaf, 0xd2, 0x14, 0x48, 0x8e, 0xd7, 0x34, 0x98, 0xdd, 0xee, 0x19, 0xed, 0x1e, 0xff, 0x86, + 0x1d, 0xcd, 0xf2, 0x9f, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0x1b, 0x21, 0x95, 0x1d, + 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -362,8 +664,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Keyspace service - +// KeyspaceClient is the client API for Keyspace service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type KeyspaceClient interface { LoadKeyspace(ctx context.Context, in *LoadKeyspaceRequest, opts ...grpc.CallOption) (*LoadKeyspaceResponse, error) // WatchKeyspaces first return all current keyspaces' metadata as its first response. @@ -383,7 +686,7 @@ func NewKeyspaceClient(cc *grpc.ClientConn) KeyspaceClient { func (c *keyspaceClient) LoadKeyspace(ctx context.Context, in *LoadKeyspaceRequest, opts ...grpc.CallOption) (*LoadKeyspaceResponse, error) { out := new(LoadKeyspaceResponse) - err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/LoadKeyspace", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/LoadKeyspace", in, out, opts...) if err != nil { return nil, err } @@ -391,7 +694,7 @@ func (c *keyspaceClient) LoadKeyspace(ctx context.Context, in *LoadKeyspaceReque } func (c *keyspaceClient) WatchKeyspaces(ctx context.Context, in *WatchKeyspacesRequest, opts ...grpc.CallOption) (Keyspace_WatchKeyspacesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Keyspace_serviceDesc.Streams[0], c.cc, "/keyspacepb.Keyspace/WatchKeyspaces", opts...) + stream, err := c.cc.NewStream(ctx, &_Keyspace_serviceDesc.Streams[0], "/keyspacepb.Keyspace/WatchKeyspaces", opts...) if err != nil { return nil, err } @@ -424,7 +727,7 @@ func (x *keyspaceWatchKeyspacesClient) Recv() (*WatchKeyspacesResponse, error) { func (c *keyspaceClient) UpdateKeyspaceState(ctx context.Context, in *UpdateKeyspaceStateRequest, opts ...grpc.CallOption) (*UpdateKeyspaceStateResponse, error) { out := new(UpdateKeyspaceStateResponse) - err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/UpdateKeyspaceState", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/UpdateKeyspaceState", in, out, opts...) if err != nil { return nil, err } @@ -433,15 +736,14 @@ func (c *keyspaceClient) UpdateKeyspaceState(ctx context.Context, in *UpdateKeys func (c *keyspaceClient) GetAllKeyspaces(ctx context.Context, in *GetAllKeyspacesRequest, opts ...grpc.CallOption) (*GetAllKeyspacesResponse, error) { out := new(GetAllKeyspacesResponse) - err := grpc.Invoke(ctx, "/keyspacepb.Keyspace/GetAllKeyspaces", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/keyspacepb.Keyspace/GetAllKeyspaces", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Keyspace service - +// KeyspaceServer is the server API for Keyspace service. type KeyspaceServer interface { LoadKeyspace(context.Context, *LoadKeyspaceRequest) (*LoadKeyspaceResponse, error) // WatchKeyspaces first return all current keyspaces' metadata as its first response. @@ -451,6 +753,23 @@ type KeyspaceServer interface { GetAllKeyspaces(context.Context, *GetAllKeyspacesRequest) (*GetAllKeyspacesResponse, error) } +// UnimplementedKeyspaceServer can be embedded to have forward compatible implementations. +type UnimplementedKeyspaceServer struct { +} + +func (*UnimplementedKeyspaceServer) LoadKeyspace(ctx context.Context, req *LoadKeyspaceRequest) (*LoadKeyspaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadKeyspace not implemented") +} +func (*UnimplementedKeyspaceServer) WatchKeyspaces(req *WatchKeyspacesRequest, srv Keyspace_WatchKeyspacesServer) error { + return status.Errorf(codes.Unimplemented, "method WatchKeyspaces not implemented") +} +func (*UnimplementedKeyspaceServer) UpdateKeyspaceState(ctx context.Context, req *UpdateKeyspaceStateRequest) (*UpdateKeyspaceStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateKeyspaceState not implemented") +} +func (*UnimplementedKeyspaceServer) GetAllKeyspaces(ctx context.Context, req *GetAllKeyspacesRequest) (*GetAllKeyspacesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllKeyspaces not implemented") +} + func RegisterKeyspaceServer(s *grpc.Server, srv KeyspaceServer) { s.RegisterService(&_Keyspace_serviceDesc, srv) } @@ -560,7 +879,7 @@ var _Keyspace_serviceDesc = grpc.ServiceDesc{ func (m *KeyspaceMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -568,60 +887,72 @@ func (m *KeyspaceMeta) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyspaceMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if len(m.Config) > 0 { + for k := range m.Config { + v := m.Config[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintKeyspacepb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + } } - if m.State != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) + if m.StateChangedAt != 0 { + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StateChangedAt)) + i-- + dAtA[i] = 0x28 } if m.CreatedAt != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintKeyspacepb(dAtA, i, uint64(m.CreatedAt)) + i-- + dAtA[i] = 0x20 } - if m.StateChangedAt != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StateChangedAt)) + if m.State != 0 { + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x18 } - if len(m.Config) > 0 { - for k, _ := range m.Config { - dAtA[i] = 0x3a - i++ - v := m.Config[k] - mapSize := 1 + len(k) + sovKeyspacepb(uint64(len(k))) + 1 + len(v) + sovKeyspacepb(uint64(len(v))) - i = encodeVarintKeyspacepb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(len(v))) - i += copy(dAtA[i:], v) - } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *LoadKeyspaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -629,33 +960,45 @@ func (m *LoadKeyspaceRequest) Marshal() (dAtA []byte, err error) { } func (m *LoadKeyspaceRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LoadKeyspaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n1, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintKeyspacepb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *LoadKeyspaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -663,37 +1006,50 @@ func (m *LoadKeyspaceResponse) Marshal() (dAtA []byte, err error) { } func (m *LoadKeyspaceResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LoadKeyspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n2, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Keyspace != nil { + { + size, err := m.Keyspace.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Keyspace.Size())) - n3, err := m.Keyspace.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WatchKeyspacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -701,27 +1057,38 @@ func (m *WatchKeyspacesRequest) Marshal() (dAtA []byte, err error) { } func (m *WatchKeyspacesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchKeyspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n4, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WatchKeyspacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -729,39 +1096,52 @@ func (m *WatchKeyspacesResponse) Marshal() (dAtA []byte, err error) { } func (m *WatchKeyspacesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Keyspaces) > 0 { - for _, msg := range m.Keyspaces { + for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Keyspaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateKeyspaceStateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -769,37 +1149,48 @@ func (m *UpdateKeyspaceStateRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateKeyspaceStateRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateKeyspaceStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n6, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != 0 { + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x18 } if m.Id != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 } - if m.State != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.State)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateKeyspaceStateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -807,37 +1198,50 @@ func (m *UpdateKeyspaceStateResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateKeyspaceStateResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateKeyspaceStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n7, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Keyspace != nil { + { + size, err := m.Keyspace.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Keyspace.Size())) - n8, err := m.Keyspace.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetAllKeyspacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -845,37 +1249,48 @@ func (m *GetAllKeyspacesRequest) Marshal() (dAtA []byte, err error) { } func (m *GetAllKeyspacesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllKeyspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n9, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Limit != 0 { + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 } if m.StartId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StartId)) + i-- + dAtA[i] = 0x10 } - if m.Limit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Limit)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetAllKeyspacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -883,45 +1298,63 @@ func (m *GetAllKeyspacesResponse) Marshal() (dAtA []byte, err error) { } func (m *GetAllKeyspacesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Header.Size())) - n10, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Keyspaces) > 0 { - for _, msg := range m.Keyspaces { + for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Keyspaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKeyspacepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKeyspacepb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintKeyspacepb(dAtA []byte, offset int, v uint64) int { + offset -= sovKeyspacepb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *KeyspaceMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -948,10 +1381,16 @@ func (m *KeyspaceMeta) Size() (n int) { n += mapEntrySize + 1 + sovKeyspacepb(uint64(mapEntrySize)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LoadKeyspaceRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -962,10 +1401,16 @@ func (m *LoadKeyspaceRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKeyspacepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LoadKeyspaceResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -976,20 +1421,32 @@ func (m *LoadKeyspaceResponse) Size() (n int) { l = m.Keyspace.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WatchKeyspacesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { l = m.Header.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WatchKeyspacesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1002,10 +1459,16 @@ func (m *WatchKeyspacesResponse) Size() (n int) { n += 1 + l + sovKeyspacepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateKeyspaceStateRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1018,10 +1481,16 @@ func (m *UpdateKeyspaceStateRequest) Size() (n int) { if m.State != 0 { n += 1 + sovKeyspacepb(uint64(m.State)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateKeyspaceStateResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1032,10 +1501,16 @@ func (m *UpdateKeyspaceStateResponse) Size() (n int) { l = m.Keyspace.Size() n += 1 + l + sovKeyspacepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllKeyspacesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1048,10 +1523,16 @@ func (m *GetAllKeyspacesRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovKeyspacepb(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetAllKeyspacesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1064,18 +1545,14 @@ func (m *GetAllKeyspacesResponse) Size() (n int) { n += 1 + l + sovKeyspacepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovKeyspacepb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozKeyspacepb(x uint64) (n int) { return sovKeyspacepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1095,7 +1572,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1123,7 +1600,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint32(b) & 0x7F) << shift + m.Id |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1142,7 +1619,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1152,6 +1629,9 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1171,7 +1651,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (KeyspaceState(b) & 0x7F) << shift + m.State |= KeyspaceState(b&0x7F) << shift if b < 0x80 { break } @@ -1190,7 +1670,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreatedAt |= (int64(b) & 0x7F) << shift + m.CreatedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1209,7 +1689,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateChangedAt |= (int64(b) & 0x7F) << shift + m.StateChangedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1228,7 +1708,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1237,6 +1717,9 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1257,7 +1740,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1274,7 +1757,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1284,6 +1767,9 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthKeyspacepb + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1300,7 +1786,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1310,6 +1796,9 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthKeyspacepb + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -1321,7 +1810,7 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > postIndex { @@ -1338,12 +1827,13 @@ func (m *KeyspaceMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1368,7 +1858,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1396,7 +1886,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1405,6 +1895,9 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1429,7 +1922,7 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1439,6 +1932,9 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1450,12 +1946,13 @@ func (m *LoadKeyspaceRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1480,7 +1977,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1508,7 +2005,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1517,6 +2014,9 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1541,7 +2041,7 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1550,6 +2050,9 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1566,12 +2069,13 @@ func (m *LoadKeyspaceResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1596,7 +2100,7 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1624,7 +2128,7 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1633,6 +2137,9 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1649,12 +2156,13 @@ func (m *WatchKeyspacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1679,7 +2187,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1707,7 +2215,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1716,6 +2224,9 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1740,7 +2251,7 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1749,6 +2260,9 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1763,12 +2277,13 @@ func (m *WatchKeyspacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1793,7 +2308,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1821,7 +2336,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1830,6 +2345,9 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1854,7 +2372,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint32(b) & 0x7F) << shift + m.Id |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1873,7 +2391,7 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (KeyspaceState(b) & 0x7F) << shift + m.State |= KeyspaceState(b&0x7F) << shift if b < 0x80 { break } @@ -1884,12 +2402,13 @@ func (m *UpdateKeyspaceStateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1914,7 +2433,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1942,7 +2461,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1951,6 +2470,9 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1975,7 +2497,7 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1984,6 +2506,9 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2000,12 +2525,13 @@ func (m *UpdateKeyspaceStateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2030,7 +2556,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2058,7 +2584,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2067,6 +2593,9 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2091,7 +2620,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartId |= (uint32(b) & 0x7F) << shift + m.StartId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2110,7 +2639,7 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2121,12 +2650,13 @@ func (m *GetAllKeyspacesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2151,7 +2681,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2179,7 +2709,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2188,6 +2718,9 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2212,7 +2745,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2221,6 +2754,9 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKeyspacepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeyspacepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2235,12 +2771,13 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKeyspacepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2253,6 +2790,7 @@ func (m *GetAllKeyspacesResponse) Unmarshal(dAtA []byte) error { func skipKeyspacepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2284,10 +2822,8 @@ func skipKeyspacepb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2304,100 +2840,34 @@ func skipKeyspacepb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthKeyspacepb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowKeyspacepb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipKeyspacepb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKeyspacepb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthKeyspacepb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthKeyspacepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowKeyspacepb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthKeyspacepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKeyspacepb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKeyspacepb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("keyspacepb.proto", fileDescriptorKeyspacepb) } - -var fileDescriptorKeyspacepb = []byte{ - // 643 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xee, 0xda, 0xfd, 0x49, 0x26, 0x4d, 0x6a, 0x6d, 0x43, 0x71, 0x8d, 0x08, 0xc6, 0xa0, 0x62, - 0x01, 0x72, 0x51, 0x40, 0x08, 0x10, 0x97, 0xb4, 0x89, 0xda, 0x8a, 0xfe, 0x48, 0x4e, 0x29, 0x07, - 0x90, 0xaa, 0x6d, 0xbc, 0x24, 0x56, 0xd2, 0xd8, 0xd8, 0xdb, 0x48, 0xe5, 0x00, 0x42, 0xe2, 0xc4, - 0x13, 0xf0, 0x02, 0x48, 0x3c, 0x0a, 0x47, 0x8e, 0x1c, 0x51, 0x78, 0x11, 0xe4, 0xb5, 0x9d, 0x3a, - 0xc1, 0x29, 0x22, 0x48, 0x3d, 0x65, 0x66, 0xf6, 0xdb, 0x6f, 0xe7, 0x9b, 0x9f, 0x18, 0xa4, 0x36, - 0x3d, 0xf5, 0x5d, 0xd2, 0xa0, 0xee, 0x91, 0xe1, 0x7a, 0x0e, 0x73, 0x30, 0x9c, 0x45, 0x14, 0x70, - 0xad, 0x38, 0xae, 0x14, 0x9b, 0x4e, 0xd3, 0xe1, 0xe6, 0x6a, 0x60, 0x45, 0xd1, 0x05, 0xef, 0xc4, - 0x67, 0xdc, 0x0c, 0x03, 0xda, 0x17, 0x01, 0xe6, 0x9f, 0x45, 0x0c, 0x3b, 0x94, 0x11, 0x5c, 0x00, - 0xc1, 0xb6, 0x64, 0xa4, 0x22, 0x3d, 0x6f, 0x0a, 0xb6, 0x85, 0x31, 0x4c, 0x77, 0xc9, 0x31, 0x95, - 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, 0xc5, 0xd7, 0x92, 0xa9, - 0xa4, 0xfc, 0x27, 0x28, 0xea, 0x78, 0x40, 0x28, 0x57, 0x9b, 0xc2, 0x2f, 0xa1, 0x30, 0xbc, 0x34, - 0xf8, 0x7a, 0xf2, 0x56, 0xea, 0x5a, 0x2a, 0xda, 0x79, 0x90, 0x98, 0xfa, 0x1e, 0xc2, 0x2d, 0x58, - 0x4c, 0x99, 0x41, 0xbc, 0x92, 0xbc, 0x3e, 0x7e, 0x63, 0x94, 0x5b, 0x7f, 0xc5, 0x0d, 0x64, 0xbc, - 0x82, 0x85, 0x91, 0x96, 0xe3, 0xa1, 0x24, 0xd3, 0xe7, 0x50, 0xb9, 0x71, 0x2e, 0x26, 0x66, 0x5f, - 0x5b, 0xf9, 0xf1, 0x35, 0x83, 0xbe, 0xf5, 0x4b, 0xe8, 0x7b, 0xbf, 0x84, 0x7e, 0xf6, 0x4b, 0xe8, - 0xf3, 0xaf, 0xd2, 0x14, 0x48, 0x8e, 0xd7, 0x34, 0x98, 0xdd, 0xee, 0x19, 0xed, 0x1e, 0xff, 0x86, - 0x1d, 0xcd, 0xf2, 0x9f, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xde, 0x1b, 0x21, 0x95, 0x1d, - 0x07, 0x00, 0x00, -} diff --git a/pkg/kvrpcpb/kvrpcpb.pb.go b/pkg/kvrpcpb/kvrpcpb.pb.go index 65be845ee..5f1f627e1 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -1,171 +1,22 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: kvrpcpb.proto -/* -Package kvrpcpb is a generated protocol buffer package. - -It is generated from these files: - - kvrpcpb.proto - -It has these top-level messages: - - GetRequest - GetResponse - ScanRequest - ScanResponse - PrewriteRequest - PrewriteResponse - PessimisticLockRequest - PessimisticLockKeyResult - PessimisticLockResponse - PessimisticRollbackRequest - PessimisticRollbackResponse - TxnHeartBeatRequest - TxnHeartBeatResponse - CheckTxnStatusRequest - CheckTxnStatusResponse - CheckSecondaryLocksRequest - CheckSecondaryLocksResponse - CommitRequest - CommitResponse - ImportRequest - ImportResponse - CleanupRequest - CleanupResponse - BatchGetRequest - BatchGetResponse - BatchRollbackRequest - BatchRollbackResponse - ScanLockRequest - ScanLockResponse - ResolveLockRequest - ResolveLockResponse - GCRequest - GCResponse - DeleteRangeRequest - DeleteRangeResponse - PrepareFlashbackToVersionRequest - PrepareFlashbackToVersionResponse - FlashbackToVersionRequest - FlashbackToVersionResponse - RawGetRequest - RawGetResponse - RawBatchGetRequest - RawBatchGetResponse - RawPutRequest - RawPutResponse - RawBatchPutRequest - RawBatchPutResponse - RawDeleteRequest - RawDeleteResponse - RawBatchDeleteRequest - RawBatchDeleteResponse - RawScanRequest - RawScanResponse - RawDeleteRangeRequest - RawDeleteRangeResponse - RawBatchScanRequest - RawBatchScanResponse - UnsafeDestroyRangeRequest - UnsafeDestroyRangeResponse - RegisterLockObserverRequest - RegisterLockObserverResponse - CheckLockObserverRequest - CheckLockObserverResponse - RemoveLockObserverRequest - RemoveLockObserverResponse - PhysicalScanLockRequest - PhysicalScanLockResponse - SplitRegionRequest - SplitRegionResponse - ReadIndexRequest - ReadIndexResponse - MvccGetByKeyRequest - MvccGetByKeyResponse - MvccGetByStartTsRequest - MvccGetByStartTsResponse - Context - ResourceControlContext - SourceStmt - LockInfo - KeyError - WriteConflict - AlreadyExist - Deadlock - CommitTsExpired - TxnNotFound - CommitTsTooLarge - AssertionFailed - PrimaryMismatch - TimeDetail - TimeDetailV2 - ScanInfo - ScanDetail - ScanDetailV2 - ExecDetails - ExecDetailsV2 - WriteDetail - KvPair - Mutation - MvccWrite - MvccValue - MvccLock - MvccInfo - TxnInfo - KeyRange - LeaderInfo - ReadState - CheckLeaderRequest - CheckLeaderResponse - StoreSafeTSRequest - StoreSafeTSResponse - RawGetKeyTTLRequest - RawGetKeyTTLResponse - RawCASRequest - RawCASResponse - GetLockWaitInfoRequest - GetLockWaitInfoResponse - GetLockWaitHistoryRequest - GetLockWaitHistoryResponse - RawCoprocessorRequest - RawCoprocessorResponse - RawChecksumRequest - RawChecksumResponse - CompactError - CompactErrorInvalidStartKey - CompactErrorPhysicalTableNotExist - CompactErrorCompactInProgress - CompactErrorTooManyPendingTasks - CompactRequest - CompactResponse - TiFlashSystemTableRequest - TiFlashSystemTableResponse - TxnEntry - ScanTxnEntriesRequest - ScanTxnEntriesResponse -*/ package kvrpcpb import ( "fmt" "io" "math" - - proto "github.com/golang/protobuf/proto" - metapb "github.com/pingcap/kvproto/pkg/metapb" - - errorpb "github.com/pingcap/kvproto/pkg/errorpb" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" - + proto "github.com/golang/protobuf/proto" deadlock "github.com/pingcap/kvproto/pkg/deadlock" - - tracepb "github.com/pingcap/kvproto/pkg/tracepb" - + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" resource_manager "github.com/pingcap/kvproto/pkg/resource_manager" - github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" + tracepb "github.com/pingcap/kvproto/pkg/tracepb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -177,7 +28,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Used to specify the behavior when a pessimistic lock request is woken up after waiting for another // lock. @@ -199,6 +50,7 @@ var PessimisticLockWakeUpMode_name = map[int32]string{ 0: "WakeUpModeNormal", 1: "WakeUpModeForceLock", } + var PessimisticLockWakeUpMode_value = map[string]int32{ "WakeUpModeNormal": 0, "WakeUpModeForceLock": 1, @@ -207,8 +59,9 @@ var PessimisticLockWakeUpMode_value = map[string]int32{ func (x PessimisticLockWakeUpMode) String() string { return proto.EnumName(PessimisticLockWakeUpMode_name, int32(x)) } + func (PessimisticLockWakeUpMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{0} + return fileDescriptor_1afe832be69693c7, []int{0} } type PessimisticLockKeyResultType int32 @@ -224,6 +77,7 @@ var PessimisticLockKeyResultType_name = map[int32]string{ 1: "LockResultLockedWithConflict", 2: "LockResultFailed", } + var PessimisticLockKeyResultType_value = map[string]int32{ "LockResultNormal": 0, "LockResultLockedWithConflict": 1, @@ -233,8 +87,9 @@ var PessimisticLockKeyResultType_value = map[string]int32{ func (x PessimisticLockKeyResultType) String() string { return proto.EnumName(PessimisticLockKeyResultType_name, int32(x)) } + func (PessimisticLockKeyResultType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{1} + return fileDescriptor_1afe832be69693c7, []int{1} } // The API version the server and the client is using. @@ -299,6 +154,7 @@ var APIVersion_name = map[int32]string{ 1: "V1TTL", 2: "V2", } + var APIVersion_value = map[string]int32{ "V1": 0, "V1TTL": 1, @@ -308,7 +164,10 @@ var APIVersion_value = map[string]int32{ func (x APIVersion) String() string { return proto.EnumName(APIVersion_name, int32(x)) } -func (APIVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{2} } + +func (APIVersion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{2} +} type CommandPri int32 @@ -323,6 +182,7 @@ var CommandPri_name = map[int32]string{ 1: "Low", 2: "High", } + var CommandPri_value = map[string]int32{ "Normal": 0, "Low": 1, @@ -332,7 +192,10 @@ var CommandPri_value = map[string]int32{ func (x CommandPri) String() string { return proto.EnumName(CommandPri_name, int32(x)) } -func (CommandPri) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{3} } + +func (CommandPri) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{3} +} type IsolationLevel int32 @@ -347,6 +210,7 @@ var IsolationLevel_name = map[int32]string{ 1: "RC", 2: "RCCheckTS", } + var IsolationLevel_value = map[string]int32{ "SI": 0, "RC": 1, @@ -356,7 +220,10 @@ var IsolationLevel_value = map[string]int32{ func (x IsolationLevel) String() string { return proto.EnumName(IsolationLevel_name, int32(x)) } -func (IsolationLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{4} } + +func (IsolationLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{4} +} // Operation allowed info during each TiKV storage threshold. type DiskFullOpt int32 @@ -372,6 +239,7 @@ var DiskFullOpt_name = map[int32]string{ 1: "AllowedOnAlmostFull", 2: "AllowedOnAlreadyFull", } + var DiskFullOpt_value = map[string]int32{ "NotAllowedOnFull": 0, "AllowedOnAlmostFull": 1, @@ -381,7 +249,10 @@ var DiskFullOpt_value = map[string]int32{ func (x DiskFullOpt) String() string { return proto.EnumName(DiskFullOpt_name, int32(x)) } -func (DiskFullOpt) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{5} } + +func (DiskFullOpt) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{5} +} type Op int32 @@ -405,6 +276,7 @@ var Op_name = map[int32]string{ 5: "PessimisticLock", 6: "CheckNotExists", } + var Op_value = map[string]int32{ "Put": 0, "Del": 1, @@ -418,7 +290,10 @@ var Op_value = map[string]int32{ func (x Op) String() string { return proto.EnumName(Op_name, int32(x)) } -func (Op) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{6} } + +func (Op) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{6} +} type Assertion int32 @@ -433,6 +308,7 @@ var Assertion_name = map[int32]string{ 1: "Exist", 2: "NotExist", } + var Assertion_value = map[string]int32{ "None": 0, "Exist": 1, @@ -442,7 +318,10 @@ var Assertion_value = map[string]int32{ func (x Assertion) String() string { return proto.EnumName(Assertion_name, int32(x)) } -func (Assertion) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{7} } + +func (Assertion) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{7} +} type AssertionLevel int32 @@ -460,6 +339,7 @@ var AssertionLevel_name = map[int32]string{ 1: "Fast", 2: "Strict", } + var AssertionLevel_value = map[string]int32{ "Off": 0, "Fast": 1, @@ -469,7 +349,10 @@ var AssertionLevel_value = map[string]int32{ func (x AssertionLevel) String() string { return proto.EnumName(AssertionLevel_name, int32(x)) } -func (AssertionLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{8} } + +func (AssertionLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{8} +} type Action int32 @@ -490,6 +373,7 @@ var Action_name = map[int32]string{ 4: "TTLExpirePessimisticRollback", 5: "LockNotExistDoNothing", } + var Action_value = map[string]int32{ "NoAction": 0, "TTLExpireRollback": 1, @@ -502,7 +386,10 @@ var Action_value = map[string]int32{ func (x Action) String() string { return proto.EnumName(Action_name, int32(x)) } -func (Action) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{9} } + +func (Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{9} +} type ExtraOp int32 @@ -516,6 +403,7 @@ var ExtraOp_name = map[int32]string{ 0: "Noop", 1: "ReadOldValue", } + var ExtraOp_value = map[string]int32{ "Noop": 0, "ReadOldValue": 1, @@ -524,7 +412,10 @@ var ExtraOp_value = map[string]int32{ func (x ExtraOp) String() string { return proto.EnumName(ExtraOp_name, int32(x)) } -func (ExtraOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{10} } + +func (ExtraOp) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{10} +} type ChecksumAlgorithm int32 @@ -535,6 +426,7 @@ const ( var ChecksumAlgorithm_name = map[int32]string{ 0: "Crc64_Xor", } + var ChecksumAlgorithm_value = map[string]int32{ "Crc64_Xor": 0, } @@ -542,7 +434,10 @@ var ChecksumAlgorithm_value = map[string]int32{ func (x ChecksumAlgorithm) String() string { return proto.EnumName(ChecksumAlgorithm_name, int32(x)) } -func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{11} } + +func (ChecksumAlgorithm) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{11} +} // What kind of checks need to be performed for keys in a pessimistic transaction. type PrewriteRequest_PessimisticAction int32 @@ -561,6 +456,7 @@ var PrewriteRequest_PessimisticAction_name = map[int32]string{ 1: "DO_PESSIMISTIC_CHECK", 2: "DO_CONSTRAINT_CHECK", } + var PrewriteRequest_PessimisticAction_value = map[string]int32{ "SKIP_PESSIMISTIC_CHECK": 0, "DO_PESSIMISTIC_CHECK": 1, @@ -570,8 +466,9 @@ var PrewriteRequest_PessimisticAction_value = map[string]int32{ func (x PrewriteRequest_PessimisticAction) String() string { return proto.EnumName(PrewriteRequest_PessimisticAction_name, int32(x)) } + func (PrewriteRequest_PessimisticAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{4, 0} + return fileDescriptor_1afe832be69693c7, []int{4, 0} } type WriteConflict_Reason int32 @@ -593,6 +490,7 @@ var WriteConflict_Reason_name = map[int32]string{ 4: "RcCheckTs", 5: "LazyUniquenessCheck", } + var WriteConflict_Reason_value = map[string]int32{ "Unknown": 0, "Optimistic": 1, @@ -605,22 +503,54 @@ var WriteConflict_Reason_value = map[string]int32{ func (x WriteConflict_Reason) String() string { return proto.EnumName(WriteConflict_Reason_name, int32(x)) } + func (WriteConflict_Reason) EnumDescriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{80, 0} + return fileDescriptor_1afe832be69693c7, []int{80, 0} } // A transactional get command. Lookup a value for `key` in the transaction with // starting timestamp = `version`. type GetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{0} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{0} } +var xxx_messageInfo_GetRequest proto.InternalMessageInfo func (m *GetRequest) GetContext() *Context { if m != nil { @@ -646,21 +576,52 @@ func (m *GetRequest) GetVersion() uint64 { type GetResponse struct { // A region error indicates that the request was sent to the wrong TiKV node // (or other, similar errors). - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` // A value could not be retrieved due to the state of the database for the requested key. - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // A successful result. Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // True if the key does not exist in the database. NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` // Time and scan details when processing the request. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{1} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{1} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo func (m *GetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -700,7 +661,7 @@ func (m *GetResponse) GetExecDetailsV2() *ExecDetailsV2 { // Scan fetches values for a range of keys; it is part of the transaction with // starting timestamp = `version`. type ScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` // The maximum number of results to return. Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` @@ -713,13 +674,44 @@ type ScanRequest struct { EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key. // locks are not checked. - SampleStep uint32 `protobuf:"varint,8,opt,name=sample_step,json=sampleStep,proto3" json:"sample_step,omitempty"` + SampleStep uint32 `protobuf:"varint,8,opt,name=sample_step,json=sampleStep,proto3" json:"sample_step,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanRequest) Reset() { *m = ScanRequest{} } +func (m *ScanRequest) String() string { return proto.CompactTextString(m) } +func (*ScanRequest) ProtoMessage() {} +func (*ScanRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{2} +} +func (m *ScanRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanRequest.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 *ScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRequest.Merge(m, src) +} +func (m *ScanRequest) XXX_Size() int { + return m.Size() +} +func (m *ScanRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanRequest.DiscardUnknown(m) } -func (m *ScanRequest) Reset() { *m = ScanRequest{} } -func (m *ScanRequest) String() string { return proto.CompactTextString(m) } -func (*ScanRequest) ProtoMessage() {} -func (*ScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{2} } +var xxx_messageInfo_ScanRequest proto.InternalMessageInfo func (m *ScanRequest) GetContext() *Context { if m != nil { @@ -778,19 +770,50 @@ func (m *ScanRequest) GetSampleStep() uint32 { } type ScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` // Each KvPair may contain a key error. - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` // This KeyError exists when some key is locked but we cannot check locks of all keys. // In this case, `pairs` should be empty and the client should redo scanning all the keys // after resolving the lock. - Error *KeyError `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + Error *KeyError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanResponse) Reset() { *m = ScanResponse{} } +func (m *ScanResponse) String() string { return proto.CompactTextString(m) } +func (*ScanResponse) ProtoMessage() {} +func (*ScanResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{3} +} +func (m *ScanResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanResponse.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 *ScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanResponse.Merge(m, src) +} +func (m *ScanResponse) XXX_Size() int { + return m.Size() +} +func (m *ScanResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanResponse.DiscardUnknown(m) } -func (m *ScanResponse) Reset() { *m = ScanResponse{} } -func (m *ScanResponse) String() string { return proto.CompactTextString(m) } -func (*ScanResponse) ProtoMessage() {} -func (*ScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{3} } +var xxx_messageInfo_ScanResponse proto.InternalMessageInfo func (m *ScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -817,9 +840,9 @@ func (m *ScanResponse) GetError() *KeyError { // TiKV will write the data in a preliminary state. Data cannot be read until it has been committed. // The client should only commit a transaction once all prewrites succeed. type PrewriteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The data to be written to the database. - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` // The client picks one key to be primary (unrelated to the primary key concept in SQL). This // key's lock is the source of truth for the state of a transaction. All other locks due to a // transaction will point to the primary lock. @@ -831,7 +854,7 @@ type PrewriteRequest struct { SkipConstraintCheck bool `protobuf:"varint,6,opt,name=skip_constraint_check,json=skipConstraintCheck,proto3" json:"skip_constraint_check,omitempty"` // For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key. // Keys with deferred constraint checks are not locked. - PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` + PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,proto3,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` // How many keys this transaction involves in this region. TxnSize uint64 `protobuf:"varint,8,opt,name=txn_size,json=txnSize,proto3" json:"txn_size,omitempty"` // For pessimistic transactions only; used to check if a conflict lock is already committed. @@ -842,7 +865,7 @@ type PrewriteRequest struct { // When async commit is enabled, `secondaries` should be set as the key list of all secondary // locks if the request prewrites the primary lock. UseAsyncCommit bool `protobuf:"varint,11,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` - Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries" json:"secondaries,omitempty"` + Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries,proto3" json:"secondaries,omitempty"` // When the transaction involves only one region, it's possible to commit the transaction // directly with 1PC protocol. TryOnePc bool `protobuf:"varint,13,opt,name=try_one_pc,json=tryOnePc,proto3" json:"try_one_pc,omitempty"` @@ -853,13 +876,44 @@ type PrewriteRequest struct { AssertionLevel AssertionLevel `protobuf:"varint,15,opt,name=assertion_level,json=assertionLevel,proto3,enum=kvrpcpb.AssertionLevel" json:"assertion_level,omitempty"` // for_update_ts constriants that should be checked when prewriting a pessimistic transaction. // See https://github.com/tikv/tikv/issues/14311 - ForUpdateTsConstraints []*PrewriteRequest_ForUpdateTSConstraint `protobuf:"bytes,16,rep,name=for_update_ts_constraints,json=forUpdateTsConstraints" json:"for_update_ts_constraints,omitempty"` + ForUpdateTsConstraints []*PrewriteRequest_ForUpdateTSConstraint `protobuf:"bytes,16,rep,name=for_update_ts_constraints,json=forUpdateTsConstraints,proto3" json:"for_update_ts_constraints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } +func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } +func (*PrewriteRequest) ProtoMessage() {} +func (*PrewriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{4} +} +func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrewriteRequest.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 *PrewriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest.Merge(m, src) +} +func (m *PrewriteRequest) XXX_Size() int { + return m.Size() +} +func (m *PrewriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrewriteRequest.DiscardUnknown(m) } -func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } -func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } -func (*PrewriteRequest) ProtoMessage() {} -func (*PrewriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{4} } +var xxx_messageInfo_PrewriteRequest proto.InternalMessageInfo func (m *PrewriteRequest) GetContext() *Context { if m != nil { @@ -978,16 +1032,45 @@ type PrewriteRequest_ForUpdateTSConstraint struct { // The index of key in the prewrite request that should be checked. Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // The expected for_update_ts of the pessimistic lock of the key. - ExpectedForUpdateTs uint64 `protobuf:"varint,2,opt,name=expected_for_update_ts,json=expectedForUpdateTs,proto3" json:"expected_for_update_ts,omitempty"` + ExpectedForUpdateTs uint64 `protobuf:"varint,2,opt,name=expected_for_update_ts,json=expectedForUpdateTs,proto3" json:"expected_for_update_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PrewriteRequest_ForUpdateTSConstraint) Reset() { *m = PrewriteRequest_ForUpdateTSConstraint{} } func (m *PrewriteRequest_ForUpdateTSConstraint) String() string { return proto.CompactTextString(m) } func (*PrewriteRequest_ForUpdateTSConstraint) ProtoMessage() {} func (*PrewriteRequest_ForUpdateTSConstraint) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{4, 0} + return fileDescriptor_1afe832be69693c7, []int{4, 0} +} +func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.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 *PrewriteRequest_ForUpdateTSConstraint) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.Merge(m, src) +} +func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Size() int { + return m.Size() +} +func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_DiscardUnknown() { + xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.DiscardUnknown(m) } +var xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint proto.InternalMessageInfo + func (m *PrewriteRequest_ForUpdateTSConstraint) GetIndex() uint32 { if m != nil { return m.Index @@ -1003,8 +1086,8 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) GetExpectedForUpdateTs() uint64 } type PrewriteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // 0 if the min_commit_ts is not ready or any other reason that async // commit cannot proceed. The client can then fallback to normal way to // continue committing the transaction if prewrite are all finished. @@ -1014,13 +1097,44 @@ type PrewriteResponse struct { // transaction is not 1PC, the value will be 0. OnePcCommitTs uint64 `protobuf:"varint,4,opt,name=one_pc_commit_ts,json=onePcCommitTs,proto3" json:"one_pc_commit_ts,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } +func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } +func (*PrewriteResponse) ProtoMessage() {} +func (*PrewriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{5} +} +func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrewriteResponse.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 *PrewriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteResponse.Merge(m, src) +} +func (m *PrewriteResponse) XXX_Size() int { + return m.Size() +} +func (m *PrewriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrewriteResponse.DiscardUnknown(m) } -func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } -func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } -func (*PrewriteResponse) ProtoMessage() {} -func (*PrewriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{5} } +var xxx_messageInfo_PrewriteResponse proto.InternalMessageInfo func (m *PrewriteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1059,9 +1173,9 @@ func (m *PrewriteResponse) GetExecDetailsV2() *ExecDetailsV2 { // Lock a set of keys to prepare to write to them. type PessimisticLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // In this case every `Op` of the mutations must be `PessimisticLock`. - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` PrimaryLock []byte `protobuf:"bytes,3,opt,name=primary_lock,json=primaryLock,proto3" json:"primary_lock,omitempty"` StartVersion uint64 `protobuf:"varint,4,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` LockTtl uint64 `protobuf:"varint,5,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` @@ -1078,7 +1192,7 @@ type PessimisticLockRequest struct { WaitTimeout int64 `protobuf:"varint,8,opt,name=wait_timeout,json=waitTimeout,proto3" json:"wait_timeout,omitempty"` // If it is true, TiKV will acquire the pessimistic lock regardless of write conflict // and return the latest value. It's only supported for single mutation. - Force bool `protobuf:"varint,9,opt,name=force,proto3" json:"force,omitempty"` + Force bool `protobuf:"varint,9,opt,name=force,proto3" json:"force,omitempty"` // Deprecated: Do not use. // If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for // later read in the same transaction. // When 'force' is set to true, this field is ignored. @@ -1094,13 +1208,44 @@ type PessimisticLockRequest struct { // TiKV lock the record only when it exists LockOnlyIfExists bool `protobuf:"varint,13,opt,name=lock_only_if_exists,json=lockOnlyIfExists,proto3" json:"lock_only_if_exists,omitempty"` // Specifies the behavior when the request is woken up after wating for lock of another transaction. - WakeUpMode PessimisticLockWakeUpMode `protobuf:"varint,14,opt,name=wake_up_mode,json=wakeUpMode,proto3,enum=kvrpcpb.PessimisticLockWakeUpMode" json:"wake_up_mode,omitempty"` + WakeUpMode PessimisticLockWakeUpMode `protobuf:"varint,14,opt,name=wake_up_mode,json=wakeUpMode,proto3,enum=kvrpcpb.PessimisticLockWakeUpMode" json:"wake_up_mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PessimisticLockRequest) Reset() { *m = PessimisticLockRequest{} } +func (m *PessimisticLockRequest) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockRequest) ProtoMessage() {} +func (*PessimisticLockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{6} +} +func (m *PessimisticLockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PessimisticLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PessimisticLockRequest.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 *PessimisticLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockRequest.Merge(m, src) +} +func (m *PessimisticLockRequest) XXX_Size() int { + return m.Size() +} +func (m *PessimisticLockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PessimisticLockRequest.DiscardUnknown(m) } -func (m *PessimisticLockRequest) Reset() { *m = PessimisticLockRequest{} } -func (m *PessimisticLockRequest) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockRequest) ProtoMessage() {} -func (*PessimisticLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{6} } +var xxx_messageInfo_PessimisticLockRequest proto.InternalMessageInfo func (m *PessimisticLockRequest) GetContext() *Context { if m != nil { @@ -1158,6 +1303,7 @@ func (m *PessimisticLockRequest) GetWaitTimeout() int64 { return 0 } +// Deprecated: Do not use. func (m *PessimisticLockRequest) GetForce() bool { if m != nil { return m.Force @@ -1214,13 +1360,44 @@ type PessimisticLockKeyResult struct { LockedWithConflictTs uint64 `protobuf:"varint,4,opt,name=locked_with_conflict_ts,json=lockedWithConflictTs,proto3" json:"locked_with_conflict_ts,omitempty"` // Hint the client that resolving lock is not needed for this lock. For `PessimisticLock` // requests only. - SkipResolvingLock bool `protobuf:"varint,11,opt,name=skip_resolving_lock,json=skipResolvingLock,proto3" json:"skip_resolving_lock,omitempty"` + SkipResolvingLock bool `protobuf:"varint,11,opt,name=skip_resolving_lock,json=skipResolvingLock,proto3" json:"skip_resolving_lock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PessimisticLockKeyResult) Reset() { *m = PessimisticLockKeyResult{} } +func (m *PessimisticLockKeyResult) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockKeyResult) ProtoMessage() {} +func (*PessimisticLockKeyResult) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{7} +} +func (m *PessimisticLockKeyResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PessimisticLockKeyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PessimisticLockKeyResult.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 *PessimisticLockKeyResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockKeyResult.Merge(m, src) +} +func (m *PessimisticLockKeyResult) XXX_Size() int { + return m.Size() +} +func (m *PessimisticLockKeyResult) XXX_DiscardUnknown() { + xxx_messageInfo_PessimisticLockKeyResult.DiscardUnknown(m) } -func (m *PessimisticLockKeyResult) Reset() { *m = PessimisticLockKeyResult{} } -func (m *PessimisticLockKeyResult) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockKeyResult) ProtoMessage() {} -func (*PessimisticLockKeyResult) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{7} } +var xxx_messageInfo_PessimisticLockKeyResult proto.InternalMessageInfo func (m *PessimisticLockKeyResult) GetType() PessimisticLockKeyResultType { if m != nil { @@ -1258,30 +1435,61 @@ func (m *PessimisticLockKeyResult) GetSkipResolvingLock() bool { } type PessimisticLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // It carries the latest value and its commit ts if force in PessimisticLockRequest is true. - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Deprecated: Do not use. + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // Deprecated: Do not use. // The values is set if 'return_values' is true in the request and no error. // If 'force' is true, this field is not used. // Only used when `wake_up_mode` is `WakeUpModeNormal`. - Values [][]byte `protobuf:"bytes,5,rep,name=values" json:"values,omitempty"` + Values [][]byte `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"` // Indicates whether the values at the same index is correspond to an existing key. // In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates // two possible situations: (1) the key does not exist. (2) the key exists but the value is empty. // Only used when `wake_up_mode` is `WakeUpModeNormal`. - NotFounds []bool `protobuf:"varint,6,rep,packed,name=not_founds,json=notFounds" json:"not_founds,omitempty"` + NotFounds []bool `protobuf:"varint,6,rep,packed,name=not_founds,json=notFounds,proto3" json:"not_founds,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` // Results of the request. Only used when `wake_up_mode` is `WakeUpModeForceLock`. - Results []*PessimisticLockKeyResult `protobuf:"bytes,8,rep,name=results" json:"results,omitempty"` + Results []*PessimisticLockKeyResult `protobuf:"bytes,8,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PessimisticLockResponse) Reset() { *m = PessimisticLockResponse{} } +func (m *PessimisticLockResponse) String() string { return proto.CompactTextString(m) } +func (*PessimisticLockResponse) ProtoMessage() {} +func (*PessimisticLockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{8} +} +func (m *PessimisticLockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PessimisticLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PessimisticLockResponse.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 *PessimisticLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockResponse.Merge(m, src) +} +func (m *PessimisticLockResponse) XXX_Size() int { + return m.Size() +} +func (m *PessimisticLockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PessimisticLockResponse.DiscardUnknown(m) } -func (m *PessimisticLockResponse) Reset() { *m = PessimisticLockResponse{} } -func (m *PessimisticLockResponse) String() string { return proto.CompactTextString(m) } -func (*PessimisticLockResponse) ProtoMessage() {} -func (*PessimisticLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{8} } +var xxx_messageInfo_PessimisticLockResponse proto.InternalMessageInfo func (m *PessimisticLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1297,6 +1505,7 @@ func (m *PessimisticLockResponse) GetErrors() []*KeyError { return nil } +// Deprecated: Do not use. func (m *PessimisticLockResponse) GetCommitTs() uint64 { if m != nil { return m.CommitTs @@ -1304,6 +1513,7 @@ func (m *PessimisticLockResponse) GetCommitTs() uint64 { return 0 } +// Deprecated: Do not use. func (m *PessimisticLockResponse) GetValue() []byte { if m != nil { return m.Value @@ -1341,19 +1551,48 @@ func (m *PessimisticLockResponse) GetResults() []*PessimisticLockKeyResult { // Unlock keys locked using `PessimisticLockRequest`. type PessimisticRollbackRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` - ForUpdateTs uint64 `protobuf:"varint,3,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` - Keys [][]byte `protobuf:"bytes,4,rep,name=keys" json:"keys,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + ForUpdateTs uint64 `protobuf:"varint,3,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` + Keys [][]byte `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PessimisticRollbackRequest) Reset() { *m = PessimisticRollbackRequest{} } func (m *PessimisticRollbackRequest) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackRequest) ProtoMessage() {} func (*PessimisticRollbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{9} + return fileDescriptor_1afe832be69693c7, []int{9} +} +func (m *PessimisticRollbackRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PessimisticRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PessimisticRollbackRequest.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 *PessimisticRollbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticRollbackRequest.Merge(m, src) +} +func (m *PessimisticRollbackRequest) XXX_Size() int { + return m.Size() +} +func (m *PessimisticRollbackRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PessimisticRollbackRequest.DiscardUnknown(m) } +var xxx_messageInfo_PessimisticRollbackRequest proto.InternalMessageInfo + func (m *PessimisticRollbackRequest) GetContext() *Context { if m != nil { return m.Context @@ -1383,19 +1622,48 @@ func (m *PessimisticRollbackRequest) GetKeys() [][]byte { } type PessimisticRollbackResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Errors []*KeyError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Errors []*KeyError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PessimisticRollbackResponse) Reset() { *m = PessimisticRollbackResponse{} } func (m *PessimisticRollbackResponse) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackResponse) ProtoMessage() {} func (*PessimisticRollbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{10} + return fileDescriptor_1afe832be69693c7, []int{10} +} +func (m *PessimisticRollbackResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PessimisticRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PessimisticRollbackResponse.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 *PessimisticRollbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticRollbackResponse.Merge(m, src) +} +func (m *PessimisticRollbackResponse) XXX_Size() int { + return m.Size() +} +func (m *PessimisticRollbackResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PessimisticRollbackResponse.DiscardUnknown(m) } +var xxx_messageInfo_PessimisticRollbackResponse proto.InternalMessageInfo + func (m *PessimisticRollbackResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -1419,19 +1687,50 @@ func (m *PessimisticRollbackResponse) GetExecDetailsV2() *ExecDetailsV2 { // Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed. type TxnHeartBeatRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The key of the lock to update. PrimaryLock []byte `protobuf:"bytes,2,opt,name=primary_lock,json=primaryLock,proto3" json:"primary_lock,omitempty"` // Start timestamp of the large transaction. StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The new TTL the sender would like. - AdviseLockTtl uint64 `protobuf:"varint,4,opt,name=advise_lock_ttl,json=adviseLockTtl,proto3" json:"advise_lock_ttl,omitempty"` + AdviseLockTtl uint64 `protobuf:"varint,4,opt,name=advise_lock_ttl,json=adviseLockTtl,proto3" json:"advise_lock_ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnHeartBeatRequest) Reset() { *m = TxnHeartBeatRequest{} } +func (m *TxnHeartBeatRequest) String() string { return proto.CompactTextString(m) } +func (*TxnHeartBeatRequest) ProtoMessage() {} +func (*TxnHeartBeatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{11} +} +func (m *TxnHeartBeatRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnHeartBeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnHeartBeatRequest.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 *TxnHeartBeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnHeartBeatRequest.Merge(m, src) +} +func (m *TxnHeartBeatRequest) XXX_Size() int { + return m.Size() +} +func (m *TxnHeartBeatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TxnHeartBeatRequest.DiscardUnknown(m) } -func (m *TxnHeartBeatRequest) Reset() { *m = TxnHeartBeatRequest{} } -func (m *TxnHeartBeatRequest) String() string { return proto.CompactTextString(m) } -func (*TxnHeartBeatRequest) ProtoMessage() {} -func (*TxnHeartBeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{11} } +var xxx_messageInfo_TxnHeartBeatRequest proto.InternalMessageInfo func (m *TxnHeartBeatRequest) GetContext() *Context { if m != nil { @@ -1462,18 +1761,49 @@ func (m *TxnHeartBeatRequest) GetAdviseLockTtl() uint64 { } type TxnHeartBeatResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // The TTL actually set on the requested lock. LockTtl uint64 `protobuf:"varint,3,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnHeartBeatResponse) Reset() { *m = TxnHeartBeatResponse{} } +func (m *TxnHeartBeatResponse) String() string { return proto.CompactTextString(m) } +func (*TxnHeartBeatResponse) ProtoMessage() {} +func (*TxnHeartBeatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{12} +} +func (m *TxnHeartBeatResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnHeartBeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnHeartBeatResponse.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 *TxnHeartBeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnHeartBeatResponse.Merge(m, src) +} +func (m *TxnHeartBeatResponse) XXX_Size() int { + return m.Size() +} +func (m *TxnHeartBeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TxnHeartBeatResponse.DiscardUnknown(m) } -func (m *TxnHeartBeatResponse) Reset() { *m = TxnHeartBeatResponse{} } -func (m *TxnHeartBeatResponse) String() string { return proto.CompactTextString(m) } -func (*TxnHeartBeatResponse) ProtoMessage() {} -func (*TxnHeartBeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{12} } +var xxx_messageInfo_TxnHeartBeatResponse proto.InternalMessageInfo func (m *TxnHeartBeatResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1509,7 +1839,7 @@ func (m *TxnHeartBeatResponse) GetExecDetailsV2() *ExecDetailsV2 { // Otherwise, returns the TTL information for the transaction. // CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction. type CheckTxnStatusRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Primary key and lock ts together to locate the primary lock of a transaction. PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` // Starting timestamp of the transaction being checked. @@ -1535,13 +1865,44 @@ type CheckTxnStatusRequest struct { // (see https://github.com/pingcap/tidb/issues/42937 for details). This field is necessary // because the old versions of clients cannot handle some results returned from TiKV correctly. // For new versions, this field should always be set to true. - VerifyIsPrimary bool `protobuf:"varint,9,opt,name=verify_is_primary,json=verifyIsPrimary,proto3" json:"verify_is_primary,omitempty"` + VerifyIsPrimary bool `protobuf:"varint,9,opt,name=verify_is_primary,json=verifyIsPrimary,proto3" json:"verify_is_primary,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckTxnStatusRequest) Reset() { *m = CheckTxnStatusRequest{} } +func (m *CheckTxnStatusRequest) String() string { return proto.CompactTextString(m) } +func (*CheckTxnStatusRequest) ProtoMessage() {} +func (*CheckTxnStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{13} +} +func (m *CheckTxnStatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckTxnStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckTxnStatusRequest.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 *CheckTxnStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTxnStatusRequest.Merge(m, src) +} +func (m *CheckTxnStatusRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckTxnStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckTxnStatusRequest.DiscardUnknown(m) } -func (m *CheckTxnStatusRequest) Reset() { *m = CheckTxnStatusRequest{} } -func (m *CheckTxnStatusRequest) String() string { return proto.CompactTextString(m) } -func (*CheckTxnStatusRequest) ProtoMessage() {} -func (*CheckTxnStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{13} } +var xxx_messageInfo_CheckTxnStatusRequest proto.InternalMessageInfo func (m *CheckTxnStatusRequest) GetContext() *Context { if m != nil { @@ -1607,25 +1968,57 @@ func (m *CheckTxnStatusRequest) GetVerifyIsPrimary() bool { } type CheckTxnStatusResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Three kinds of transaction status: - // locked: lock_ttl > 0 - // committed: commit_version > 0 - // rollbacked: lock_ttl = 0 && commit_version = 0 + // + // locked: lock_ttl > 0 + // committed: commit_version > 0 + // rollbacked: lock_ttl = 0 && commit_version = 0 LockTtl uint64 `protobuf:"varint,3,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` // The action performed by TiKV (and why if the action is to rollback). Action Action `protobuf:"varint,5,opt,name=action,proto3,enum=kvrpcpb.Action" json:"action,omitempty"` - LockInfo *LockInfo `protobuf:"bytes,6,opt,name=lock_info,json=lockInfo" json:"lock_info,omitempty"` + LockInfo *LockInfo `protobuf:"bytes,6,opt,name=lock_info,json=lockInfo,proto3" json:"lock_info,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckTxnStatusResponse) Reset() { *m = CheckTxnStatusResponse{} } +func (m *CheckTxnStatusResponse) String() string { return proto.CompactTextString(m) } +func (*CheckTxnStatusResponse) ProtoMessage() {} +func (*CheckTxnStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{14} +} +func (m *CheckTxnStatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckTxnStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckTxnStatusResponse.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 *CheckTxnStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTxnStatusResponse.Merge(m, src) +} +func (m *CheckTxnStatusResponse) XXX_Size() int { + return m.Size() +} +func (m *CheckTxnStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckTxnStatusResponse.DiscardUnknown(m) } -func (m *CheckTxnStatusResponse) Reset() { *m = CheckTxnStatusResponse{} } -func (m *CheckTxnStatusResponse) String() string { return proto.CompactTextString(m) } -func (*CheckTxnStatusResponse) ProtoMessage() {} -func (*CheckTxnStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{14} } +var xxx_messageInfo_CheckTxnStatusResponse proto.InternalMessageInfo func (m *CheckTxnStatusResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1680,18 +2073,47 @@ func (m *CheckTxnStatusResponse) GetExecDetailsV2() *ExecDetailsV2 { // does not have a successful status, or belongs to another transaction, TiKV will leave a rollback // tombstone for that key. type CheckSecondaryLocksRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` // Identifies the transaction we are investigating. - StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CheckSecondaryLocksRequest) Reset() { *m = CheckSecondaryLocksRequest{} } func (m *CheckSecondaryLocksRequest) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksRequest) ProtoMessage() {} func (*CheckSecondaryLocksRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{15} + return fileDescriptor_1afe832be69693c7, []int{15} +} +func (m *CheckSecondaryLocksRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *CheckSecondaryLocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckSecondaryLocksRequest.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 *CheckSecondaryLocksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSecondaryLocksRequest.Merge(m, src) +} +func (m *CheckSecondaryLocksRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckSecondaryLocksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckSecondaryLocksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckSecondaryLocksRequest proto.InternalMessageInfo func (m *CheckSecondaryLocksRequest) GetContext() *Context { if m != nil { @@ -1715,26 +2137,55 @@ func (m *CheckSecondaryLocksRequest) GetStartVersion() uint64 { } type CheckSecondaryLocksResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in // this list if there is a lock present and belonging to the correct transaction, // nil otherwise. - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` // If any of the locks have been committed, this is the commit ts used. If no // locks have been committed, it will be zero. CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CheckSecondaryLocksResponse) Reset() { *m = CheckSecondaryLocksResponse{} } func (m *CheckSecondaryLocksResponse) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksResponse) ProtoMessage() {} func (*CheckSecondaryLocksResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{16} + return fileDescriptor_1afe832be69693c7, []int{16} +} +func (m *CheckSecondaryLocksResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckSecondaryLocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckSecondaryLocksResponse.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 *CheckSecondaryLocksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSecondaryLocksResponse.Merge(m, src) +} +func (m *CheckSecondaryLocksResponse) XXX_Size() int { + return m.Size() +} +func (m *CheckSecondaryLocksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckSecondaryLocksResponse.DiscardUnknown(m) } +var xxx_messageInfo_CheckSecondaryLocksResponse proto.InternalMessageInfo + func (m *CheckSecondaryLocksResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -1773,19 +2224,50 @@ func (m *CheckSecondaryLocksResponse) GetExecDetailsV2() *ExecDetailsV2 { // The second phase of writing to TiKV. If there are no errors or conflicts, then this request // commits a transaction so that its data can be read by other transactions. type CommitRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Identifies the transaction. StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // All keys in the transaction (to be committed). - Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` // Timestamp for the end of the transaction. Must be greater than `start_version`. - CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + CommitVersion uint64 `protobuf:"varint,4,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitRequest) Reset() { *m = CommitRequest{} } +func (m *CommitRequest) String() string { return proto.CompactTextString(m) } +func (*CommitRequest) ProtoMessage() {} +func (*CommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{17} +} +func (m *CommitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitRequest.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 *CommitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitRequest.Merge(m, src) +} +func (m *CommitRequest) XXX_Size() int { + return m.Size() +} +func (m *CommitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CommitRequest.DiscardUnknown(m) } -func (m *CommitRequest) Reset() { *m = CommitRequest{} } -func (m *CommitRequest) String() string { return proto.CompactTextString(m) } -func (*CommitRequest) ProtoMessage() {} -func (*CommitRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{17} } +var xxx_messageInfo_CommitRequest proto.InternalMessageInfo func (m *CommitRequest) GetContext() *Context { if m != nil { @@ -1816,18 +2298,49 @@ func (m *CommitRequest) GetCommitVersion() uint64 { } type CommitResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // If the commit ts is derived from min_commit_ts, this field should be set. CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitResponse) Reset() { *m = CommitResponse{} } +func (m *CommitResponse) String() string { return proto.CompactTextString(m) } +func (*CommitResponse) ProtoMessage() {} +func (*CommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{18} +} +func (m *CommitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitResponse.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 *CommitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitResponse.Merge(m, src) +} +func (m *CommitResponse) XXX_Size() int { + return m.Size() +} +func (m *CommitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommitResponse.DiscardUnknown(m) } -func (m *CommitResponse) Reset() { *m = CommitResponse{} } -func (m *CommitResponse) String() string { return proto.CompactTextString(m) } -func (*CommitResponse) ProtoMessage() {} -func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{18} } +var xxx_messageInfo_CommitResponse proto.InternalMessageInfo func (m *CommitResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1859,14 +2372,45 @@ func (m *CommitResponse) GetExecDetailsV2() *ExecDetailsV2 { // Not yet implemented. type ImportRequest struct { - Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"` - CommitVersion uint64 `protobuf:"varint,2,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations,proto3" json:"mutations,omitempty"` + CommitVersion uint64 `protobuf:"varint,2,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportRequest) Reset() { *m = ImportRequest{} } +func (m *ImportRequest) String() string { return proto.CompactTextString(m) } +func (*ImportRequest) ProtoMessage() {} +func (*ImportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{19} +} +func (m *ImportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ImportRequest.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 *ImportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportRequest.Merge(m, src) +} +func (m *ImportRequest) XXX_Size() int { + return m.Size() +} +func (m *ImportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ImportRequest.DiscardUnknown(m) } -func (m *ImportRequest) Reset() { *m = ImportRequest{} } -func (m *ImportRequest) String() string { return proto.CompactTextString(m) } -func (*ImportRequest) ProtoMessage() {} -func (*ImportRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{19} } +var xxx_messageInfo_ImportRequest proto.InternalMessageInfo func (m *ImportRequest) GetMutations() []*Mutation { if m != nil { @@ -1883,14 +2427,45 @@ func (m *ImportRequest) GetCommitVersion() uint64 { } type ImportResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ImportResponse) Reset() { *m = ImportResponse{} } +func (m *ImportResponse) String() string { return proto.CompactTextString(m) } +func (*ImportResponse) ProtoMessage() {} +func (*ImportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{20} +} +func (m *ImportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ImportResponse.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 *ImportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportResponse.Merge(m, src) +} +func (m *ImportResponse) XXX_Size() int { + return m.Size() +} +func (m *ImportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ImportResponse.DiscardUnknown(m) } -func (m *ImportResponse) Reset() { *m = ImportResponse{} } -func (m *ImportResponse) String() string { return proto.CompactTextString(m) } -func (*ImportResponse) ProtoMessage() {} -func (*ImportResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{20} } +var xxx_messageInfo_ImportResponse proto.InternalMessageInfo func (m *ImportResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1909,19 +2484,50 @@ func (m *ImportResponse) GetError() string { // Cleanup a key by possibly unlocking it. // From 4.0 onwards, this message is no longer used. type CleanupRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` StartVersion uint64 `protobuf:"varint,3,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The current timestamp, used in combination with a lock's TTL to determine // if the lock has expired. If `current_ts == 0`, then the key will be unlocked // irrespective of its TTL. - CurrentTs uint64 `protobuf:"varint,4,opt,name=current_ts,json=currentTs,proto3" json:"current_ts,omitempty"` + CurrentTs uint64 `protobuf:"varint,4,opt,name=current_ts,json=currentTs,proto3" json:"current_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } +func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupRequest) ProtoMessage() {} +func (*CleanupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{21} +} +func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupRequest.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 *CleanupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupRequest.Merge(m, src) +} +func (m *CleanupRequest) XXX_Size() int { + return m.Size() +} +func (m *CleanupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupRequest.DiscardUnknown(m) } -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{21} } +var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo func (m *CleanupRequest) GetContext() *Context { if m != nil { @@ -1952,16 +2558,47 @@ func (m *CleanupRequest) GetCurrentTs() uint64 { } type CleanupResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Set if the key is already committed. - CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } +func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } +func (*CleanupResponse) ProtoMessage() {} +func (*CleanupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{22} +} +func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CleanupResponse.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 *CleanupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupResponse.Merge(m, src) +} +func (m *CleanupResponse) XXX_Size() int { + return m.Size() +} +func (m *CleanupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CleanupResponse.DiscardUnknown(m) } -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{22} } +var xxx_messageInfo_CleanupResponse proto.InternalMessageInfo func (m *CleanupResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -1986,15 +2623,46 @@ func (m *CleanupResponse) GetCommitVersion() uint64 { // Similar to a `Get` request. type BatchGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` - Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchGetRequest) Reset() { *m = BatchGetRequest{} } +func (m *BatchGetRequest) String() string { return proto.CompactTextString(m) } +func (*BatchGetRequest) ProtoMessage() {} +func (*BatchGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{23} +} +func (m *BatchGetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchGetRequest.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 *BatchGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetRequest.Merge(m, src) +} +func (m *BatchGetRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchGetRequest.DiscardUnknown(m) } -func (m *BatchGetRequest) Reset() { *m = BatchGetRequest{} } -func (m *BatchGetRequest) String() string { return proto.CompactTextString(m) } -func (*BatchGetRequest) ProtoMessage() {} -func (*BatchGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{23} } +var xxx_messageInfo_BatchGetRequest proto.InternalMessageInfo func (m *BatchGetRequest) GetContext() *Context { if m != nil { @@ -2018,20 +2686,51 @@ func (m *BatchGetRequest) GetVersion() uint64 { } type BatchGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` // Time and scan details when processing the request. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` // This KeyError exists when some key is locked but we cannot check locks of all keys. // In this case, `pairs` should be empty and the client should redo batch get all the keys // after resolving the lock. - Error *KeyError `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` + Error *KeyError `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchGetResponse) Reset() { *m = BatchGetResponse{} } +func (m *BatchGetResponse) String() string { return proto.CompactTextString(m) } +func (*BatchGetResponse) ProtoMessage() {} +func (*BatchGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{24} +} +func (m *BatchGetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchGetResponse.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 *BatchGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetResponse.Merge(m, src) +} +func (m *BatchGetResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchGetResponse.DiscardUnknown(m) } -func (m *BatchGetResponse) Reset() { *m = BatchGetResponse{} } -func (m *BatchGetResponse) String() string { return proto.CompactTextString(m) } -func (*BatchGetResponse) ProtoMessage() {} -func (*BatchGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{24} } +var xxx_messageInfo_BatchGetResponse proto.InternalMessageInfo func (m *BatchGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2064,17 +2763,48 @@ func (m *BatchGetResponse) GetError() *KeyError { // Rollback a prewritten transaction. This will remove the preliminary data from the database, // unlock locks, and leave a rollback tombstone. type BatchRollbackRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Identify the transaction to be rolled back. StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // The keys to rollback. - Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchRollbackRequest) Reset() { *m = BatchRollbackRequest{} } +func (m *BatchRollbackRequest) String() string { return proto.CompactTextString(m) } +func (*BatchRollbackRequest) ProtoMessage() {} +func (*BatchRollbackRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{25} +} +func (m *BatchRollbackRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchRollbackRequest.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 *BatchRollbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRollbackRequest.Merge(m, src) +} +func (m *BatchRollbackRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchRollbackRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchRollbackRequest.DiscardUnknown(m) } -func (m *BatchRollbackRequest) Reset() { *m = BatchRollbackRequest{} } -func (m *BatchRollbackRequest) String() string { return proto.CompactTextString(m) } -func (*BatchRollbackRequest) ProtoMessage() {} -func (*BatchRollbackRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{25} } +var xxx_messageInfo_BatchRollbackRequest proto.InternalMessageInfo func (m *BatchRollbackRequest) GetContext() *Context { if m != nil { @@ -2098,16 +2828,47 @@ func (m *BatchRollbackRequest) GetKeys() [][]byte { } type BatchRollbackResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchRollbackResponse) Reset() { *m = BatchRollbackResponse{} } +func (m *BatchRollbackResponse) String() string { return proto.CompactTextString(m) } +func (*BatchRollbackResponse) ProtoMessage() {} +func (*BatchRollbackResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{26} +} +func (m *BatchRollbackResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchRollbackResponse.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 *BatchRollbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRollbackResponse.Merge(m, src) +} +func (m *BatchRollbackResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchRollbackResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchRollbackResponse.DiscardUnknown(m) } -func (m *BatchRollbackResponse) Reset() { *m = BatchRollbackResponse{} } -func (m *BatchRollbackResponse) String() string { return proto.CompactTextString(m) } -func (*BatchRollbackResponse) ProtoMessage() {} -func (*BatchRollbackResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{26} } +var xxx_messageInfo_BatchRollbackResponse proto.InternalMessageInfo func (m *BatchRollbackResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2133,7 +2894,7 @@ func (m *BatchRollbackResponse) GetExecDetailsV2() *ExecDetailsV2 { // Scan the database for locks. Used at the start of the GC process to find all // old locks. type ScanLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Returns all locks with a start timestamp before `max_version`. MaxVersion uint64 `protobuf:"varint,2,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` // Start scanning from this key. @@ -2141,13 +2902,44 @@ type ScanLockRequest struct { // The maximum number of locks to return. Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // The exclusive upperbound for scanning. - EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanLockRequest) Reset() { *m = ScanLockRequest{} } +func (m *ScanLockRequest) String() string { return proto.CompactTextString(m) } +func (*ScanLockRequest) ProtoMessage() {} +func (*ScanLockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{27} +} +func (m *ScanLockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanLockRequest.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 *ScanLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanLockRequest.Merge(m, src) +} +func (m *ScanLockRequest) XXX_Size() int { + return m.Size() +} +func (m *ScanLockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanLockRequest.DiscardUnknown(m) } -func (m *ScanLockRequest) Reset() { *m = ScanLockRequest{} } -func (m *ScanLockRequest) String() string { return proto.CompactTextString(m) } -func (*ScanLockRequest) ProtoMessage() {} -func (*ScanLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{27} } +var xxx_messageInfo_ScanLockRequest proto.InternalMessageInfo func (m *ScanLockRequest) GetContext() *Context { if m != nil { @@ -2185,18 +2977,49 @@ func (m *ScanLockRequest) GetEndKey() []byte { } type ScanLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Info on all locks found by the scan. - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanLockResponse) Reset() { *m = ScanLockResponse{} } +func (m *ScanLockResponse) String() string { return proto.CompactTextString(m) } +func (*ScanLockResponse) ProtoMessage() {} +func (*ScanLockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{28} +} +func (m *ScanLockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanLockResponse.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 *ScanLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanLockResponse.Merge(m, src) +} +func (m *ScanLockResponse) XXX_Size() int { + return m.Size() +} +func (m *ScanLockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanLockResponse.DiscardUnknown(m) } -func (m *ScanLockResponse) Reset() { *m = ScanLockResponse{} } -func (m *ScanLockResponse) String() string { return proto.CompactTextString(m) } -func (*ScanLockResponse) ProtoMessage() {} -func (*ScanLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{28} } +var xxx_messageInfo_ScanLockResponse proto.InternalMessageInfo func (m *ScanLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2229,20 +3052,51 @@ func (m *ScanLockResponse) GetExecDetailsV2() *ExecDetailsV2 { // For all keys locked by the transaction identified by `start_version`, either // commit or rollback the transaction and unlock the key. type ResolveLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartVersion uint64 `protobuf:"varint,2,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // `commit_version == 0` means the transaction was rolled back. // `commit_version > 0` means the transaction was committed at the given timestamp. CommitVersion uint64 `protobuf:"varint,3,opt,name=commit_version,json=commitVersion,proto3" json:"commit_version,omitempty"` - TxnInfos []*TxnInfo `protobuf:"bytes,4,rep,name=txn_infos,json=txnInfos" json:"txn_infos,omitempty"` + TxnInfos []*TxnInfo `protobuf:"bytes,4,rep,name=txn_infos,json=txnInfos,proto3" json:"txn_infos,omitempty"` // Only resolve specified keys. - Keys [][]byte `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResolveLockRequest) Reset() { *m = ResolveLockRequest{} } +func (m *ResolveLockRequest) String() string { return proto.CompactTextString(m) } +func (*ResolveLockRequest) ProtoMessage() {} +func (*ResolveLockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{29} +} +func (m *ResolveLockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResolveLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResolveLockRequest.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 *ResolveLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveLockRequest.Merge(m, src) +} +func (m *ResolveLockRequest) XXX_Size() int { + return m.Size() +} +func (m *ResolveLockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResolveLockRequest.DiscardUnknown(m) } -func (m *ResolveLockRequest) Reset() { *m = ResolveLockRequest{} } -func (m *ResolveLockRequest) String() string { return proto.CompactTextString(m) } -func (*ResolveLockRequest) ProtoMessage() {} -func (*ResolveLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{29} } +var xxx_messageInfo_ResolveLockRequest proto.InternalMessageInfo func (m *ResolveLockRequest) GetContext() *Context { if m != nil { @@ -2280,16 +3134,47 @@ func (m *ResolveLockRequest) GetKeys() [][]byte { } type ResolveLockResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Execution details about the request processing. - ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2,proto3" json:"exec_details_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResolveLockResponse) Reset() { *m = ResolveLockResponse{} } +func (m *ResolveLockResponse) String() string { return proto.CompactTextString(m) } +func (*ResolveLockResponse) ProtoMessage() {} +func (*ResolveLockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{30} +} +func (m *ResolveLockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResolveLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResolveLockResponse.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 *ResolveLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveLockResponse.Merge(m, src) +} +func (m *ResolveLockResponse) XXX_Size() int { + return m.Size() +} +func (m *ResolveLockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ResolveLockResponse.DiscardUnknown(m) } -func (m *ResolveLockResponse) Reset() { *m = ResolveLockResponse{} } -func (m *ResolveLockResponse) String() string { return proto.CompactTextString(m) } -func (*ResolveLockResponse) ProtoMessage() {} -func (*ResolveLockResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{30} } +var xxx_messageInfo_ResolveLockResponse proto.InternalMessageInfo func (m *ResolveLockResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2314,14 +3199,45 @@ func (m *ResolveLockResponse) GetExecDetailsV2() *ExecDetailsV2 { // Request TiKV to garbage collect all non-current data older than `safe_point`. type GCRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GCRequest) Reset() { *m = GCRequest{} } +func (m *GCRequest) String() string { return proto.CompactTextString(m) } +func (*GCRequest) ProtoMessage() {} +func (*GCRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{31} +} +func (m *GCRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GCRequest.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 *GCRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCRequest.Merge(m, src) +} +func (m *GCRequest) XXX_Size() int { + return m.Size() +} +func (m *GCRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GCRequest.DiscardUnknown(m) } -func (m *GCRequest) Reset() { *m = GCRequest{} } -func (m *GCRequest) String() string { return proto.CompactTextString(m) } -func (*GCRequest) ProtoMessage() {} -func (*GCRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{31} } +var xxx_messageInfo_GCRequest proto.InternalMessageInfo func (m *GCRequest) GetContext() *Context { if m != nil { @@ -2338,14 +3254,45 @@ func (m *GCRequest) GetSafePoint() uint64 { } type GCResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error *KeyError `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GCResponse) Reset() { *m = GCResponse{} } +func (m *GCResponse) String() string { return proto.CompactTextString(m) } +func (*GCResponse) ProtoMessage() {} +func (*GCResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{32} +} +func (m *GCResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GCResponse.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 *GCResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCResponse.Merge(m, src) +} +func (m *GCResponse) XXX_Size() int { + return m.Size() +} +func (m *GCResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GCResponse.DiscardUnknown(m) } -func (m *GCResponse) Reset() { *m = GCResponse{} } -func (m *GCResponse) String() string { return proto.CompactTextString(m) } -func (*GCResponse) ProtoMessage() {} -func (*GCResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{32} } +var xxx_messageInfo_GCResponse proto.InternalMessageInfo func (m *GCResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2363,19 +3310,50 @@ func (m *GCResponse) GetError() *KeyError { // Delete a range of data from TiKV. type DeleteRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If true, the data will not be immediately deleted, but the operation will // still be replicated via Raft. This is used to notify TiKV that the data // will be deleted using `unsafe_destroy_range` soon. - NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` + NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } +func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeRequest) ProtoMessage() {} +func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{33} +} +func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRangeRequest.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 *DeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeRequest.Merge(m, src) +} +func (m *DeleteRangeRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteRangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m) } -func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } -func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeRequest) ProtoMessage() {} -func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{33} } +var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo func (m *DeleteRangeRequest) GetContext() *Context { if m != nil { @@ -2406,14 +3384,45 @@ func (m *DeleteRangeRequest) GetNotifyOnly() bool { } type DeleteRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } +func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeResponse) ProtoMessage() {} +func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{34} +} +func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRangeResponse.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 *DeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeResponse.Merge(m, src) +} +func (m *DeleteRangeResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteRangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m) } -func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } -func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeResponse) ProtoMessage() {} -func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{34} } +var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo func (m *DeleteRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2433,23 +3442,52 @@ func (m *DeleteRangeResponse) GetError() string { // so that there is no any read, write or schedule operation could be proposed before // the actual flashback operation. type PrepareFlashbackToVersionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // The `start_ts` which we will use to write a lock to prevent // the `resolved_ts` from advancing during the whole process. StartTs uint64 `protobuf:"varint,4,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // The TS version which the data will flashback to later. - Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PrepareFlashbackToVersionRequest) Reset() { *m = PrepareFlashbackToVersionRequest{} } func (m *PrepareFlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionRequest) ProtoMessage() {} func (*PrepareFlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{35} + return fileDescriptor_1afe832be69693c7, []int{35} +} +func (m *PrepareFlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareFlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareFlashbackToVersionRequest.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 *PrepareFlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackToVersionRequest.Merge(m, src) +} +func (m *PrepareFlashbackToVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *PrepareFlashbackToVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareFlashbackToVersionRequest.DiscardUnknown(m) } +var xxx_messageInfo_PrepareFlashbackToVersionRequest proto.InternalMessageInfo + func (m *PrepareFlashbackToVersionRequest) GetContext() *Context { if m != nil { return m.Context @@ -2486,17 +3524,46 @@ func (m *PrepareFlashbackToVersionRequest) GetVersion() uint64 { } type PrepareFlashbackToVersionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PrepareFlashbackToVersionResponse) Reset() { *m = PrepareFlashbackToVersionResponse{} } func (m *PrepareFlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionResponse) ProtoMessage() {} func (*PrepareFlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{36} + return fileDescriptor_1afe832be69693c7, []int{36} +} +func (m *PrepareFlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareFlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareFlashbackToVersionResponse.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 *PrepareFlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackToVersionResponse.Merge(m, src) +} +func (m *PrepareFlashbackToVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *PrepareFlashbackToVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareFlashbackToVersionResponse.DiscardUnknown(m) } +var xxx_messageInfo_PrepareFlashbackToVersionResponse proto.InternalMessageInfo + func (m *PrepareFlashbackToVersionResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError @@ -2515,23 +3582,52 @@ func (m *PrepareFlashbackToVersionResponse) GetError() string { // make sure the region is "locked" by `PrepareFlashbackToVersionRequest` first, // otherwise this request will fail. type FlashbackToVersionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The TS version which the data should flashback to. Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // The `start_ts` and `commit_ts` which the newly written MVCC version will use. // Please make sure the `start_ts` is the same one in `PrepareFlashbackToVersionRequest`. - StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,6,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + StartTs uint64 `protobuf:"varint,5,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,6,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionRequest{} } func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{37} + return fileDescriptor_1afe832be69693c7, []int{37} +} +func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackToVersionRequest.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 *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionRequest.Merge(m, src) +} +func (m *FlashbackToVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *FlashbackToVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackToVersionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FlashbackToVersionRequest proto.InternalMessageInfo func (m *FlashbackToVersionRequest) GetContext() *Context { if m != nil { @@ -2576,16 +3672,45 @@ func (m *FlashbackToVersionRequest) GetCommitTs() uint64 { } type FlashbackToVersionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionResponse{} } func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{38} + return fileDescriptor_1afe832be69693c7, []int{38} +} +func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlashbackToVersionResponse.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 *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionResponse.Merge(m, src) +} +func (m *FlashbackToVersionResponse) XXX_Size() int { + return m.Size() } +func (m *FlashbackToVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FlashbackToVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FlashbackToVersionResponse proto.InternalMessageInfo func (m *FlashbackToVersionResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2602,15 +3727,46 @@ func (m *FlashbackToVersionResponse) GetError() string { } type RawGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawGetRequest) Reset() { *m = RawGetRequest{} } +func (m *RawGetRequest) String() string { return proto.CompactTextString(m) } +func (*RawGetRequest) ProtoMessage() {} +func (*RawGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{39} +} +func (m *RawGetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawGetRequest.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 *RawGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetRequest.Merge(m, src) +} +func (m *RawGetRequest) XXX_Size() int { + return m.Size() +} +func (m *RawGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawGetRequest.DiscardUnknown(m) } -func (m *RawGetRequest) Reset() { *m = RawGetRequest{} } -func (m *RawGetRequest) String() string { return proto.CompactTextString(m) } -func (*RawGetRequest) ProtoMessage() {} -func (*RawGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{39} } +var xxx_messageInfo_RawGetRequest proto.InternalMessageInfo func (m *RawGetRequest) GetContext() *Context { if m != nil { @@ -2634,16 +3790,47 @@ func (m *RawGetRequest) GetCf() string { } type RawGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawGetResponse) Reset() { *m = RawGetResponse{} } +func (m *RawGetResponse) String() string { return proto.CompactTextString(m) } +func (*RawGetResponse) ProtoMessage() {} +func (*RawGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{40} +} +func (m *RawGetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawGetResponse.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 *RawGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetResponse.Merge(m, src) +} +func (m *RawGetResponse) XXX_Size() int { + return m.Size() +} +func (m *RawGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawGetResponse.DiscardUnknown(m) } -func (m *RawGetResponse) Reset() { *m = RawGetResponse{} } -func (m *RawGetResponse) String() string { return proto.CompactTextString(m) } -func (*RawGetResponse) ProtoMessage() {} -func (*RawGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{40} } +var xxx_messageInfo_RawGetResponse proto.InternalMessageInfo func (m *RawGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2674,15 +3861,46 @@ func (m *RawGetResponse) GetNotFound() bool { } type RawBatchGetRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchGetRequest) Reset() { *m = RawBatchGetRequest{} } +func (m *RawBatchGetRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchGetRequest) ProtoMessage() {} +func (*RawBatchGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{41} +} +func (m *RawBatchGetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchGetRequest.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 *RawBatchGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchGetRequest.Merge(m, src) +} +func (m *RawBatchGetRequest) XXX_Size() int { + return m.Size() +} +func (m *RawBatchGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchGetRequest.DiscardUnknown(m) } -func (m *RawBatchGetRequest) Reset() { *m = RawBatchGetRequest{} } -func (m *RawBatchGetRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchGetRequest) ProtoMessage() {} -func (*RawBatchGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{41} } +var xxx_messageInfo_RawBatchGetRequest proto.InternalMessageInfo func (m *RawBatchGetRequest) GetContext() *Context { if m != nil { @@ -2706,14 +3924,45 @@ func (m *RawBatchGetRequest) GetCf() string { } type RawBatchGetResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchGetResponse) Reset() { *m = RawBatchGetResponse{} } +func (m *RawBatchGetResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchGetResponse) ProtoMessage() {} +func (*RawBatchGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{42} +} +func (m *RawBatchGetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchGetResponse.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 *RawBatchGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchGetResponse.Merge(m, src) +} +func (m *RawBatchGetResponse) XXX_Size() int { + return m.Size() +} +func (m *RawBatchGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchGetResponse.DiscardUnknown(m) } -func (m *RawBatchGetResponse) Reset() { *m = RawBatchGetResponse{} } -func (m *RawBatchGetResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchGetResponse) ProtoMessage() {} -func (*RawBatchGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{42} } +var xxx_messageInfo_RawBatchGetResponse proto.InternalMessageInfo func (m *RawBatchGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2730,18 +3979,49 @@ func (m *RawBatchGetResponse) GetPairs() []*KvPair { } type RawPutRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` - ForCas bool `protobuf:"varint,6,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` + Ttl uint64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + ForCas bool `protobuf:"varint,6,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawPutRequest) Reset() { *m = RawPutRequest{} } +func (m *RawPutRequest) String() string { return proto.CompactTextString(m) } +func (*RawPutRequest) ProtoMessage() {} +func (*RawPutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{43} +} +func (m *RawPutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawPutRequest.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 *RawPutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawPutRequest.Merge(m, src) +} +func (m *RawPutRequest) XXX_Size() int { + return m.Size() +} +func (m *RawPutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawPutRequest.DiscardUnknown(m) } -func (m *RawPutRequest) Reset() { *m = RawPutRequest{} } -func (m *RawPutRequest) String() string { return proto.CompactTextString(m) } -func (*RawPutRequest) ProtoMessage() {} -func (*RawPutRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{43} } +var xxx_messageInfo_RawPutRequest proto.InternalMessageInfo func (m *RawPutRequest) GetContext() *Context { if m != nil { @@ -2786,14 +4066,45 @@ func (m *RawPutRequest) GetForCas() bool { } type RawPutResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawPutResponse) Reset() { *m = RawPutResponse{} } +func (m *RawPutResponse) String() string { return proto.CompactTextString(m) } +func (*RawPutResponse) ProtoMessage() {} +func (*RawPutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{44} +} +func (m *RawPutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawPutResponse.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 *RawPutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawPutResponse.Merge(m, src) +} +func (m *RawPutResponse) XXX_Size() int { + return m.Size() +} +func (m *RawPutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawPutResponse.DiscardUnknown(m) } -func (m *RawPutResponse) Reset() { *m = RawPutResponse{} } -func (m *RawPutResponse) String() string { return proto.CompactTextString(m) } -func (*RawPutResponse) ProtoMessage() {} -func (*RawPutResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{44} } +var xxx_messageInfo_RawPutResponse proto.InternalMessageInfo func (m *RawPutResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2810,21 +4121,52 @@ func (m *RawPutResponse) GetError() string { } type RawBatchPutRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Pairs []*KvPair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"` Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` + Ttl uint64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` // Deprecated: Do not use. ForCas bool `protobuf:"varint,5,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` // The time-to-live for each keys in seconds, and if the length of `ttls` // is exactly one, the ttl will be applied to all keys. Otherwise, the length // mismatch between `ttls` and `pairs` will return an error. - Ttls []uint64 `protobuf:"varint,6,rep,packed,name=ttls" json:"ttls,omitempty"` + Ttls []uint64 `protobuf:"varint,6,rep,packed,name=ttls,proto3" json:"ttls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchPutRequest) Reset() { *m = RawBatchPutRequest{} } +func (m *RawBatchPutRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchPutRequest) ProtoMessage() {} +func (*RawBatchPutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{45} +} +func (m *RawBatchPutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchPutRequest.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 *RawBatchPutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchPutRequest.Merge(m, src) +} +func (m *RawBatchPutRequest) XXX_Size() int { + return m.Size() +} +func (m *RawBatchPutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchPutRequest.DiscardUnknown(m) } -func (m *RawBatchPutRequest) Reset() { *m = RawBatchPutRequest{} } -func (m *RawBatchPutRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchPutRequest) ProtoMessage() {} -func (*RawBatchPutRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{45} } +var xxx_messageInfo_RawBatchPutRequest proto.InternalMessageInfo func (m *RawBatchPutRequest) GetContext() *Context { if m != nil { @@ -2847,6 +4189,7 @@ func (m *RawBatchPutRequest) GetCf() string { return "" } +// Deprecated: Do not use. func (m *RawBatchPutRequest) GetTtl() uint64 { if m != nil { return m.Ttl @@ -2869,14 +4212,45 @@ func (m *RawBatchPutRequest) GetTtls() []uint64 { } type RawBatchPutResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchPutResponse) Reset() { *m = RawBatchPutResponse{} } +func (m *RawBatchPutResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchPutResponse) ProtoMessage() {} +func (*RawBatchPutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{46} +} +func (m *RawBatchPutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchPutResponse.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 *RawBatchPutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchPutResponse.Merge(m, src) +} +func (m *RawBatchPutResponse) XXX_Size() int { + return m.Size() +} +func (m *RawBatchPutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchPutResponse.DiscardUnknown(m) } -func (m *RawBatchPutResponse) Reset() { *m = RawBatchPutResponse{} } -func (m *RawBatchPutResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchPutResponse) ProtoMessage() {} -func (*RawBatchPutResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{46} } +var xxx_messageInfo_RawBatchPutResponse proto.InternalMessageInfo func (m *RawBatchPutResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2893,16 +4267,47 @@ func (m *RawBatchPutResponse) GetError() string { } type RawDeleteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawDeleteRequest) Reset() { *m = RawDeleteRequest{} } +func (m *RawDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRequest) ProtoMessage() {} +func (*RawDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{47} +} +func (m *RawDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawDeleteRequest.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 *RawDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRequest.Merge(m, src) +} +func (m *RawDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RawDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawDeleteRequest.DiscardUnknown(m) } -func (m *RawDeleteRequest) Reset() { *m = RawDeleteRequest{} } -func (m *RawDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRequest) ProtoMessage() {} -func (*RawDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{47} } +var xxx_messageInfo_RawDeleteRequest proto.InternalMessageInfo func (m *RawDeleteRequest) GetContext() *Context { if m != nil { @@ -2933,14 +4338,45 @@ func (m *RawDeleteRequest) GetForCas() bool { } type RawDeleteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawDeleteResponse) Reset() { *m = RawDeleteResponse{} } +func (m *RawDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RawDeleteResponse) ProtoMessage() {} +func (*RawDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{48} +} +func (m *RawDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawDeleteResponse.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 *RawDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteResponse.Merge(m, src) +} +func (m *RawDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RawDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawDeleteResponse.DiscardUnknown(m) } -func (m *RawDeleteResponse) Reset() { *m = RawDeleteResponse{} } -func (m *RawDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RawDeleteResponse) ProtoMessage() {} -func (*RawDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{48} } +var xxx_messageInfo_RawDeleteResponse proto.InternalMessageInfo func (m *RawDeleteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -2957,16 +4393,47 @@ func (m *RawDeleteResponse) GetError() string { } type RawBatchDeleteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` - ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + ForCas bool `protobuf:"varint,4,opt,name=for_cas,json=forCas,proto3" json:"for_cas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchDeleteRequest) Reset() { *m = RawBatchDeleteRequest{} } +func (m *RawBatchDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchDeleteRequest) ProtoMessage() {} +func (*RawBatchDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{49} +} +func (m *RawBatchDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchDeleteRequest.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 *RawBatchDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchDeleteRequest.Merge(m, src) +} +func (m *RawBatchDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RawBatchDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchDeleteRequest.DiscardUnknown(m) } -func (m *RawBatchDeleteRequest) Reset() { *m = RawBatchDeleteRequest{} } -func (m *RawBatchDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchDeleteRequest) ProtoMessage() {} -func (*RawBatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{49} } +var xxx_messageInfo_RawBatchDeleteRequest proto.InternalMessageInfo func (m *RawBatchDeleteRequest) GetContext() *Context { if m != nil { @@ -2997,14 +4464,45 @@ func (m *RawBatchDeleteRequest) GetForCas() bool { } type RawBatchDeleteResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchDeleteResponse) Reset() { *m = RawBatchDeleteResponse{} } +func (m *RawBatchDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchDeleteResponse) ProtoMessage() {} +func (*RawBatchDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{50} +} +func (m *RawBatchDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchDeleteResponse.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 *RawBatchDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchDeleteResponse.Merge(m, src) +} +func (m *RawBatchDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RawBatchDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchDeleteResponse.DiscardUnknown(m) } -func (m *RawBatchDeleteResponse) Reset() { *m = RawBatchDeleteResponse{} } -func (m *RawBatchDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchDeleteResponse) ProtoMessage() {} -func (*RawBatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{50} } +var xxx_messageInfo_RawBatchDeleteResponse proto.InternalMessageInfo func (m *RawBatchDeleteResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3021,7 +4519,7 @@ func (m *RawBatchDeleteResponse) GetError() string { } type RawScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` @@ -3029,13 +4527,44 @@ type RawScanRequest struct { Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` // For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key; // and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key. - EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + EndKey []byte `protobuf:"bytes,7,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawScanRequest) Reset() { *m = RawScanRequest{} } +func (m *RawScanRequest) String() string { return proto.CompactTextString(m) } +func (*RawScanRequest) ProtoMessage() {} +func (*RawScanRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{51} +} +func (m *RawScanRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawScanRequest.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 *RawScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawScanRequest.Merge(m, src) +} +func (m *RawScanRequest) XXX_Size() int { + return m.Size() +} +func (m *RawScanRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawScanRequest.DiscardUnknown(m) } -func (m *RawScanRequest) Reset() { *m = RawScanRequest{} } -func (m *RawScanRequest) String() string { return proto.CompactTextString(m) } -func (*RawScanRequest) ProtoMessage() {} -func (*RawScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{51} } +var xxx_messageInfo_RawScanRequest proto.InternalMessageInfo func (m *RawScanRequest) GetContext() *Context { if m != nil { @@ -3087,14 +4616,45 @@ func (m *RawScanRequest) GetEndKey() []byte { } type RawScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawScanResponse) Reset() { *m = RawScanResponse{} } +func (m *RawScanResponse) String() string { return proto.CompactTextString(m) } +func (*RawScanResponse) ProtoMessage() {} +func (*RawScanResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{52} +} +func (m *RawScanResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawScanResponse.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 *RawScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawScanResponse.Merge(m, src) +} +func (m *RawScanResponse) XXX_Size() int { + return m.Size() +} +func (m *RawScanResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawScanResponse.DiscardUnknown(m) } -func (m *RawScanResponse) Reset() { *m = RawScanResponse{} } -func (m *RawScanResponse) String() string { return proto.CompactTextString(m) } -func (*RawScanResponse) ProtoMessage() {} -func (*RawScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{52} } +var xxx_messageInfo_RawScanResponse proto.InternalMessageInfo func (m *RawScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3111,16 +4671,47 @@ func (m *RawScanResponse) GetKvs() []*KvPair { } type RawDeleteRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawDeleteRangeRequest) Reset() { *m = RawDeleteRangeRequest{} } +func (m *RawDeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRangeRequest) ProtoMessage() {} +func (*RawDeleteRangeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{53} +} +func (m *RawDeleteRangeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawDeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawDeleteRangeRequest.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 *RawDeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRangeRequest.Merge(m, src) +} +func (m *RawDeleteRangeRequest) XXX_Size() int { + return m.Size() +} +func (m *RawDeleteRangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawDeleteRangeRequest.DiscardUnknown(m) } -func (m *RawDeleteRangeRequest) Reset() { *m = RawDeleteRangeRequest{} } -func (m *RawDeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRangeRequest) ProtoMessage() {} -func (*RawDeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{53} } +var xxx_messageInfo_RawDeleteRangeRequest proto.InternalMessageInfo func (m *RawDeleteRangeRequest) GetContext() *Context { if m != nil { @@ -3151,14 +4742,45 @@ func (m *RawDeleteRangeRequest) GetCf() string { } type RawDeleteRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawDeleteRangeResponse) Reset() { *m = RawDeleteRangeResponse{} } +func (m *RawDeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*RawDeleteRangeResponse) ProtoMessage() {} +func (*RawDeleteRangeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{54} +} +func (m *RawDeleteRangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawDeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawDeleteRangeResponse.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 *RawDeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRangeResponse.Merge(m, src) +} +func (m *RawDeleteRangeResponse) XXX_Size() int { + return m.Size() +} +func (m *RawDeleteRangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawDeleteRangeResponse.DiscardUnknown(m) } -func (m *RawDeleteRangeResponse) Reset() { *m = RawDeleteRangeResponse{} } -func (m *RawDeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*RawDeleteRangeResponse) ProtoMessage() {} -func (*RawDeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{54} } +var xxx_messageInfo_RawDeleteRangeResponse proto.InternalMessageInfo func (m *RawDeleteRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3175,18 +4797,49 @@ func (m *RawDeleteRangeResponse) GetError() string { } type RawBatchScanRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` - EachLimit uint32 `protobuf:"varint,3,opt,name=each_limit,json=eachLimit,proto3" json:"each_limit,omitempty"` - KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` - Cf string `protobuf:"bytes,5,opt,name=cf,proto3" json:"cf,omitempty"` - Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` + EachLimit uint32 `protobuf:"varint,3,opt,name=each_limit,json=eachLimit,proto3" json:"each_limit,omitempty"` + KeyOnly bool `protobuf:"varint,4,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` + Cf string `protobuf:"bytes,5,opt,name=cf,proto3" json:"cf,omitempty"` + Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchScanRequest) Reset() { *m = RawBatchScanRequest{} } +func (m *RawBatchScanRequest) String() string { return proto.CompactTextString(m) } +func (*RawBatchScanRequest) ProtoMessage() {} +func (*RawBatchScanRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{55} +} +func (m *RawBatchScanRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchScanRequest.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 *RawBatchScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchScanRequest.Merge(m, src) +} +func (m *RawBatchScanRequest) XXX_Size() int { + return m.Size() +} +func (m *RawBatchScanRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchScanRequest.DiscardUnknown(m) } -func (m *RawBatchScanRequest) Reset() { *m = RawBatchScanRequest{} } -func (m *RawBatchScanRequest) String() string { return proto.CompactTextString(m) } -func (*RawBatchScanRequest) ProtoMessage() {} -func (*RawBatchScanRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{55} } +var xxx_messageInfo_RawBatchScanRequest proto.InternalMessageInfo func (m *RawBatchScanRequest) GetContext() *Context { if m != nil { @@ -3231,14 +4884,45 @@ func (m *RawBatchScanRequest) GetReverse() bool { } type RawBatchScanResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Kvs []*KvPair `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawBatchScanResponse) Reset() { *m = RawBatchScanResponse{} } +func (m *RawBatchScanResponse) String() string { return proto.CompactTextString(m) } +func (*RawBatchScanResponse) ProtoMessage() {} +func (*RawBatchScanResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{56} +} +func (m *RawBatchScanResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawBatchScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawBatchScanResponse.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 *RawBatchScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchScanResponse.Merge(m, src) +} +func (m *RawBatchScanResponse) XXX_Size() int { + return m.Size() +} +func (m *RawBatchScanResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawBatchScanResponse.DiscardUnknown(m) } -func (m *RawBatchScanResponse) Reset() { *m = RawBatchScanResponse{} } -func (m *RawBatchScanResponse) String() string { return proto.CompactTextString(m) } -func (*RawBatchScanResponse) ProtoMessage() {} -func (*RawBatchScanResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{56} } +var xxx_messageInfo_RawBatchScanResponse proto.InternalMessageInfo func (m *RawBatchScanResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3255,18 +4939,47 @@ func (m *RawBatchScanResponse) GetKvs() []*KvPair { } type UnsafeDestroyRangeRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UnsafeDestroyRangeRequest) Reset() { *m = UnsafeDestroyRangeRequest{} } func (m *UnsafeDestroyRangeRequest) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeRequest) ProtoMessage() {} func (*UnsafeDestroyRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{57} + return fileDescriptor_1afe832be69693c7, []int{57} +} +func (m *UnsafeDestroyRangeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeDestroyRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UnsafeDestroyRangeRequest.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 *UnsafeDestroyRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDestroyRangeRequest.Merge(m, src) +} +func (m *UnsafeDestroyRangeRequest) XXX_Size() int { + return m.Size() +} +func (m *UnsafeDestroyRangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeDestroyRangeRequest.DiscardUnknown(m) } +var xxx_messageInfo_UnsafeDestroyRangeRequest proto.InternalMessageInfo + func (m *UnsafeDestroyRangeRequest) GetContext() *Context { if m != nil { return m.Context @@ -3289,16 +5002,45 @@ func (m *UnsafeDestroyRangeRequest) GetEndKey() []byte { } type UnsafeDestroyRangeResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UnsafeDestroyRangeResponse) Reset() { *m = UnsafeDestroyRangeResponse{} } func (m *UnsafeDestroyRangeResponse) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeResponse) ProtoMessage() {} func (*UnsafeDestroyRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{58} + return fileDescriptor_1afe832be69693c7, []int{58} +} +func (m *UnsafeDestroyRangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnsafeDestroyRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UnsafeDestroyRangeResponse.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 *UnsafeDestroyRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDestroyRangeResponse.Merge(m, src) +} +func (m *UnsafeDestroyRangeResponse) XXX_Size() int { + return m.Size() } +func (m *UnsafeDestroyRangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UnsafeDestroyRangeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UnsafeDestroyRangeResponse proto.InternalMessageInfo func (m *UnsafeDestroyRangeResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3315,17 +5057,46 @@ func (m *UnsafeDestroyRangeResponse) GetError() string { } type RegisterLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegisterLockObserverRequest) Reset() { *m = RegisterLockObserverRequest{} } func (m *RegisterLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverRequest) ProtoMessage() {} func (*RegisterLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{59} + return fileDescriptor_1afe832be69693c7, []int{59} +} +func (m *RegisterLockObserverRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegisterLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegisterLockObserverRequest.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 *RegisterLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterLockObserverRequest.Merge(m, src) +} +func (m *RegisterLockObserverRequest) XXX_Size() int { + return m.Size() +} +func (m *RegisterLockObserverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterLockObserverRequest.DiscardUnknown(m) } +var xxx_messageInfo_RegisterLockObserverRequest proto.InternalMessageInfo + func (m *RegisterLockObserverRequest) GetContext() *Context { if m != nil { return m.Context @@ -3341,16 +5112,45 @@ func (m *RegisterLockObserverRequest) GetMaxTs() uint64 { } type RegisterLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegisterLockObserverResponse) Reset() { *m = RegisterLockObserverResponse{} } func (m *RegisterLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverResponse) ProtoMessage() {} func (*RegisterLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{60} + return fileDescriptor_1afe832be69693c7, []int{60} +} +func (m *RegisterLockObserverResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegisterLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegisterLockObserverResponse.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 *RegisterLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterLockObserverResponse.Merge(m, src) +} +func (m *RegisterLockObserverResponse) XXX_Size() int { + return m.Size() +} +func (m *RegisterLockObserverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterLockObserverResponse.DiscardUnknown(m) } +var xxx_messageInfo_RegisterLockObserverResponse proto.InternalMessageInfo + func (m *RegisterLockObserverResponse) GetError() string { if m != nil { return m.Error @@ -3359,16 +5159,45 @@ func (m *RegisterLockObserverResponse) GetError() string { } type CheckLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CheckLockObserverRequest) Reset() { *m = CheckLockObserverRequest{} } func (m *CheckLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverRequest) ProtoMessage() {} func (*CheckLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{61} + return fileDescriptor_1afe832be69693c7, []int{61} +} +func (m *CheckLockObserverRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *CheckLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckLockObserverRequest.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 *CheckLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLockObserverRequest.Merge(m, src) +} +func (m *CheckLockObserverRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckLockObserverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckLockObserverRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckLockObserverRequest proto.InternalMessageInfo func (m *CheckLockObserverRequest) GetContext() *Context { if m != nil { @@ -3385,17 +5214,46 @@ func (m *CheckLockObserverRequest) GetMaxTs() uint64 { } type CheckLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - IsClean bool `protobuf:"varint,2,opt,name=is_clean,json=isClean,proto3" json:"is_clean,omitempty"` - Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + IsClean bool `protobuf:"varint,2,opt,name=is_clean,json=isClean,proto3" json:"is_clean,omitempty"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CheckLockObserverResponse) Reset() { *m = CheckLockObserverResponse{} } func (m *CheckLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverResponse) ProtoMessage() {} func (*CheckLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{62} + return fileDescriptor_1afe832be69693c7, []int{62} } +func (m *CheckLockObserverResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckLockObserverResponse.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 *CheckLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLockObserverResponse.Merge(m, src) +} +func (m *CheckLockObserverResponse) XXX_Size() int { + return m.Size() +} +func (m *CheckLockObserverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckLockObserverResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckLockObserverResponse proto.InternalMessageInfo func (m *CheckLockObserverResponse) GetError() string { if m != nil { @@ -3419,17 +5277,46 @@ func (m *CheckLockObserverResponse) GetLocks() []*LockInfo { } type RemoveLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RemoveLockObserverRequest) Reset() { *m = RemoveLockObserverRequest{} } func (m *RemoveLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverRequest) ProtoMessage() {} func (*RemoveLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{63} + return fileDescriptor_1afe832be69693c7, []int{63} +} +func (m *RemoveLockObserverRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveLockObserverRequest.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 *RemoveLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveLockObserverRequest.Merge(m, src) +} +func (m *RemoveLockObserverRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveLockObserverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveLockObserverRequest.DiscardUnknown(m) } +var xxx_messageInfo_RemoveLockObserverRequest proto.InternalMessageInfo + func (m *RemoveLockObserverRequest) GetContext() *Context { if m != nil { return m.Context @@ -3445,15 +5332,44 @@ func (m *RemoveLockObserverRequest) GetMaxTs() uint64 { } type RemoveLockObserverResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RemoveLockObserverResponse) Reset() { *m = RemoveLockObserverResponse{} } func (m *RemoveLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverResponse) ProtoMessage() {} func (*RemoveLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{64} + return fileDescriptor_1afe832be69693c7, []int{64} +} +func (m *RemoveLockObserverResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveLockObserverResponse.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 *RemoveLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveLockObserverResponse.Merge(m, src) +} +func (m *RemoveLockObserverResponse) XXX_Size() int { + return m.Size() } +func (m *RemoveLockObserverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveLockObserverResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveLockObserverResponse proto.InternalMessageInfo func (m *RemoveLockObserverResponse) GetError() string { if m != nil { @@ -3463,16 +5379,47 @@ func (m *RemoveLockObserverResponse) GetError() string { } type PhysicalScanLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + MaxTs uint64 `protobuf:"varint,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PhysicalScanLockRequest) Reset() { *m = PhysicalScanLockRequest{} } +func (m *PhysicalScanLockRequest) String() string { return proto.CompactTextString(m) } +func (*PhysicalScanLockRequest) ProtoMessage() {} +func (*PhysicalScanLockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{65} +} +func (m *PhysicalScanLockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PhysicalScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PhysicalScanLockRequest.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 *PhysicalScanLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhysicalScanLockRequest.Merge(m, src) +} +func (m *PhysicalScanLockRequest) XXX_Size() int { + return m.Size() +} +func (m *PhysicalScanLockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PhysicalScanLockRequest.DiscardUnknown(m) } -func (m *PhysicalScanLockRequest) Reset() { *m = PhysicalScanLockRequest{} } -func (m *PhysicalScanLockRequest) String() string { return proto.CompactTextString(m) } -func (*PhysicalScanLockRequest) ProtoMessage() {} -func (*PhysicalScanLockRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{65} } +var xxx_messageInfo_PhysicalScanLockRequest proto.InternalMessageInfo func (m *PhysicalScanLockRequest) GetContext() *Context { if m != nil { @@ -3503,16 +5450,45 @@ func (m *PhysicalScanLockRequest) GetLimit() uint32 { } type PhysicalScanLockResponse struct { - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Locks []*LockInfo `protobuf:"bytes,2,rep,name=locks" json:"locks,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Locks []*LockInfo `protobuf:"bytes,2,rep,name=locks,proto3" json:"locks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PhysicalScanLockResponse) Reset() { *m = PhysicalScanLockResponse{} } func (m *PhysicalScanLockResponse) String() string { return proto.CompactTextString(m) } func (*PhysicalScanLockResponse) ProtoMessage() {} func (*PhysicalScanLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{66} + return fileDescriptor_1afe832be69693c7, []int{66} } +func (m *PhysicalScanLockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PhysicalScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PhysicalScanLockResponse.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 *PhysicalScanLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhysicalScanLockResponse.Merge(m, src) +} +func (m *PhysicalScanLockResponse) XXX_Size() int { + return m.Size() +} +func (m *PhysicalScanLockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PhysicalScanLockResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PhysicalScanLockResponse proto.InternalMessageInfo func (m *PhysicalScanLockResponse) GetError() string { if m != nil { @@ -3530,17 +5506,48 @@ func (m *PhysicalScanLockResponse) GetLocks() []*LockInfo { // Sent from PD to a TiKV node. type SplitRegionRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - SplitKey []byte `protobuf:"bytes,2,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"` - SplitKeys [][]byte `protobuf:"bytes,3,rep,name=split_keys,json=splitKeys" json:"split_keys,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + SplitKey []byte `protobuf:"bytes,2,opt,name=split_key,json=splitKey,proto3" json:"split_key,omitempty"` // Deprecated: Do not use. + SplitKeys [][]byte `protobuf:"bytes,3,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` // Once enabled, the split_key will not be encoded. - IsRawKv bool `protobuf:"varint,4,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` + IsRawKv bool `protobuf:"varint,4,opt,name=is_raw_kv,json=isRawKv,proto3" json:"is_raw_kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitRegionRequest) Reset() { *m = SplitRegionRequest{} } +func (m *SplitRegionRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRegionRequest) ProtoMessage() {} +func (*SplitRegionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{67} +} +func (m *SplitRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRegionRequest.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 *SplitRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionRequest.Merge(m, src) +} +func (m *SplitRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *SplitRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionRequest.DiscardUnknown(m) } -func (m *SplitRegionRequest) Reset() { *m = SplitRegionRequest{} } -func (m *SplitRegionRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRegionRequest) ProtoMessage() {} -func (*SplitRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{67} } +var xxx_messageInfo_SplitRegionRequest proto.InternalMessageInfo func (m *SplitRegionRequest) GetContext() *Context { if m != nil { @@ -3549,6 +5556,7 @@ func (m *SplitRegionRequest) GetContext() *Context { return nil } +// Deprecated: Do not use. func (m *SplitRegionRequest) GetSplitKey() []byte { if m != nil { return m.SplitKey @@ -3571,16 +5579,47 @@ func (m *SplitRegionRequest) GetIsRawKv() bool { } type SplitRegionResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Left *metapb.Region `protobuf:"bytes,2,opt,name=left" json:"left,omitempty"` - Right *metapb.Region `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"` - Regions []*metapb.Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Left *metapb.Region `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"` // Deprecated: Do not use. + Right *metapb.Region `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"` // Deprecated: Do not use. + Regions []*metapb.Region `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitRegionResponse) Reset() { *m = SplitRegionResponse{} } +func (m *SplitRegionResponse) String() string { return proto.CompactTextString(m) } +func (*SplitRegionResponse) ProtoMessage() {} +func (*SplitRegionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{68} +} +func (m *SplitRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRegionResponse.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 *SplitRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionResponse.Merge(m, src) +} +func (m *SplitRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *SplitRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionResponse.DiscardUnknown(m) } -func (m *SplitRegionResponse) Reset() { *m = SplitRegionResponse{} } -func (m *SplitRegionResponse) String() string { return proto.CompactTextString(m) } -func (*SplitRegionResponse) ProtoMessage() {} -func (*SplitRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{68} } +var xxx_messageInfo_SplitRegionResponse proto.InternalMessageInfo func (m *SplitRegionResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3589,6 +5628,7 @@ func (m *SplitRegionResponse) GetRegionError() *errorpb.Error { return nil } +// Deprecated: Do not use. func (m *SplitRegionResponse) GetLeft() *metapb.Region { if m != nil { return m.Left @@ -3596,6 +5636,7 @@ func (m *SplitRegionResponse) GetLeft() *metapb.Region { return nil } +// Deprecated: Do not use. func (m *SplitRegionResponse) GetRight() *metapb.Region { if m != nil { return m.Right @@ -3612,17 +5653,48 @@ func (m *SplitRegionResponse) GetRegions() []*metapb.Region { // Sent from TiFlash to a TiKV node. type ReadIndexRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // TiKV checks the given range if there is any unapplied lock // blocking the read request. - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } +func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } +func (*ReadIndexRequest) ProtoMessage() {} +func (*ReadIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{69} +} +func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadIndexRequest.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 *ReadIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexRequest.Merge(m, src) +} +func (m *ReadIndexRequest) XXX_Size() int { + return m.Size() +} +func (m *ReadIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReadIndexRequest.DiscardUnknown(m) } -func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } -func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ReadIndexRequest) ProtoMessage() {} -func (*ReadIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{69} } +var xxx_messageInfo_ReadIndexRequest proto.InternalMessageInfo func (m *ReadIndexRequest) GetContext() *Context { if m != nil { @@ -3646,17 +5718,48 @@ func (m *ReadIndexRequest) GetRanges() []*KeyRange { } type ReadIndexResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` ReadIndex uint64 `protobuf:"varint,2,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` // If `locked` is set, this read request is blocked by a lock. // The lock should be returned to the client. - Locked *LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` + Locked *LockInfo `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } +func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } +func (*ReadIndexResponse) ProtoMessage() {} +func (*ReadIndexResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{70} +} +func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadIndexResponse.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 *ReadIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexResponse.Merge(m, src) +} +func (m *ReadIndexResponse) XXX_Size() int { + return m.Size() +} +func (m *ReadIndexResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReadIndexResponse.DiscardUnknown(m) } -func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } -func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ReadIndexResponse) ProtoMessage() {} -func (*ReadIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{70} } +var xxx_messageInfo_ReadIndexResponse proto.InternalMessageInfo func (m *ReadIndexResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3680,14 +5783,45 @@ func (m *ReadIndexResponse) GetLocked() *LockInfo { } type MvccGetByKeyRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccGetByKeyRequest) Reset() { *m = MvccGetByKeyRequest{} } +func (m *MvccGetByKeyRequest) String() string { return proto.CompactTextString(m) } +func (*MvccGetByKeyRequest) ProtoMessage() {} +func (*MvccGetByKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{71} +} +func (m *MvccGetByKeyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccGetByKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccGetByKeyRequest.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 *MvccGetByKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByKeyRequest.Merge(m, src) +} +func (m *MvccGetByKeyRequest) XXX_Size() int { + return m.Size() +} +func (m *MvccGetByKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MvccGetByKeyRequest.DiscardUnknown(m) } -func (m *MvccGetByKeyRequest) Reset() { *m = MvccGetByKeyRequest{} } -func (m *MvccGetByKeyRequest) String() string { return proto.CompactTextString(m) } -func (*MvccGetByKeyRequest) ProtoMessage() {} -func (*MvccGetByKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{71} } +var xxx_messageInfo_MvccGetByKeyRequest proto.InternalMessageInfo func (m *MvccGetByKeyRequest) GetContext() *Context { if m != nil { @@ -3704,15 +5838,46 @@ func (m *MvccGetByKeyRequest) GetKey() []byte { } type MvccGetByKeyResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Info *MvccInfo `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Info *MvccInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccGetByKeyResponse) Reset() { *m = MvccGetByKeyResponse{} } +func (m *MvccGetByKeyResponse) String() string { return proto.CompactTextString(m) } +func (*MvccGetByKeyResponse) ProtoMessage() {} +func (*MvccGetByKeyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{72} +} +func (m *MvccGetByKeyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccGetByKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccGetByKeyResponse.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 *MvccGetByKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByKeyResponse.Merge(m, src) +} +func (m *MvccGetByKeyResponse) XXX_Size() int { + return m.Size() +} +func (m *MvccGetByKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MvccGetByKeyResponse.DiscardUnknown(m) } -func (m *MvccGetByKeyResponse) Reset() { *m = MvccGetByKeyResponse{} } -func (m *MvccGetByKeyResponse) String() string { return proto.CompactTextString(m) } -func (*MvccGetByKeyResponse) ProtoMessage() {} -func (*MvccGetByKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{72} } +var xxx_messageInfo_MvccGetByKeyResponse proto.InternalMessageInfo func (m *MvccGetByKeyResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3736,14 +5901,45 @@ func (m *MvccGetByKeyResponse) GetInfo() *MvccInfo { } type MvccGetByStartTsRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccGetByStartTsRequest) Reset() { *m = MvccGetByStartTsRequest{} } +func (m *MvccGetByStartTsRequest) String() string { return proto.CompactTextString(m) } +func (*MvccGetByStartTsRequest) ProtoMessage() {} +func (*MvccGetByStartTsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{73} +} +func (m *MvccGetByStartTsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccGetByStartTsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccGetByStartTsRequest.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 *MvccGetByStartTsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByStartTsRequest.Merge(m, src) +} +func (m *MvccGetByStartTsRequest) XXX_Size() int { + return m.Size() +} +func (m *MvccGetByStartTsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MvccGetByStartTsRequest.DiscardUnknown(m) } -func (m *MvccGetByStartTsRequest) Reset() { *m = MvccGetByStartTsRequest{} } -func (m *MvccGetByStartTsRequest) String() string { return proto.CompactTextString(m) } -func (*MvccGetByStartTsRequest) ProtoMessage() {} -func (*MvccGetByStartTsRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{73} } +var xxx_messageInfo_MvccGetByStartTsRequest proto.InternalMessageInfo func (m *MvccGetByStartTsRequest) GetContext() *Context { if m != nil { @@ -3760,18 +5956,47 @@ func (m *MvccGetByStartTsRequest) GetStartTs() uint64 { } type MvccGetByStartTsResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Info *MvccInfo `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Info *MvccInfo `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MvccGetByStartTsResponse) Reset() { *m = MvccGetByStartTsResponse{} } func (m *MvccGetByStartTsResponse) String() string { return proto.CompactTextString(m) } func (*MvccGetByStartTsResponse) ProtoMessage() {} func (*MvccGetByStartTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{74} + return fileDescriptor_1afe832be69693c7, []int{74} } +func (m *MvccGetByStartTsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccGetByStartTsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccGetByStartTsResponse.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 *MvccGetByStartTsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByStartTsResponse.Merge(m, src) +} +func (m *MvccGetByStartTsResponse) XXX_Size() int { + return m.Size() +} +func (m *MvccGetByStartTsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MvccGetByStartTsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MvccGetByStartTsResponse proto.InternalMessageInfo func (m *MvccGetByStartTsResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -3804,8 +6029,8 @@ func (m *MvccGetByStartTsResponse) GetInfo() *MvccInfo { // Miscellaneous metadata attached to most requests. type Context struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer" json:"peer,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` Term uint64 `protobuf:"varint,5,opt,name=term,proto3" json:"term,omitempty"` Priority CommandPri `protobuf:"varint,6,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` IsolationLevel IsolationLevel `protobuf:"varint,7,opt,name=isolation_level,json=isolationLevel,proto3,enum=kvrpcpb.IsolationLevel" json:"isolation_level,omitempty"` @@ -3818,7 +6043,7 @@ type Context struct { ReplicaRead bool `protobuf:"varint,12,opt,name=replica_read,json=replicaRead,proto3" json:"replica_read,omitempty"` // Read requests can ignore locks belonging to these transactions because either // these transactions are rolled back or theirs commit_ts > read request's start_ts. - ResolvedLocks []uint64 `protobuf:"varint,13,rep,packed,name=resolved_locks,json=resolvedLocks" json:"resolved_locks,omitempty"` + ResolvedLocks []uint64 `protobuf:"varint,13,rep,packed,name=resolved_locks,json=resolvedLocks,proto3" json:"resolved_locks,omitempty"` MaxExecutionDurationMs uint64 `protobuf:"varint,14,opt,name=max_execution_duration_ms,json=maxExecutionDurationMs,proto3" json:"max_execution_duration_ms,omitempty"` // After a region applies to `applied_index`, we can get a // snapshot for the region even if the peer is a follower. @@ -3839,9 +6064,9 @@ type Context struct { ApiVersion APIVersion `protobuf:"varint,21,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // Read request should read through locks belonging to these transactions because these // transactions are committed and theirs commit_ts <= read request's start_ts. - CommittedLocks []uint64 `protobuf:"varint,22,rep,packed,name=committed_locks,json=committedLocks" json:"committed_locks,omitempty"` + CommittedLocks []uint64 `protobuf:"varint,22,rep,packed,name=committed_locks,json=committedLocks,proto3" json:"committed_locks,omitempty"` // The informantion to trace a request sent to TiKV. - TraceContext *tracepb.TraceContext `protobuf:"bytes,23,opt,name=trace_context,json=traceContext" json:"trace_context,omitempty"` + TraceContext *tracepb.TraceContext `protobuf:"bytes,23,opt,name=trace_context,json=traceContext,proto3" json:"trace_context,omitempty"` // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. RequestSource string `protobuf:"bytes,24,opt,name=request_source,json=requestSource,proto3" json:"request_source,omitempty"` @@ -3851,7 +6076,7 @@ type Context struct { // error before processing if the estimated waiting duration exceeds the threshold. BusyThresholdMs uint32 `protobuf:"varint,27,opt,name=busy_threshold_ms,json=busyThresholdMs,proto3" json:"busy_threshold_ms,omitempty"` // Some information used for resource control. - ResourceControlContext *ResourceControlContext `protobuf:"bytes,28,opt,name=resource_control_context,json=resourceControlContext" json:"resource_control_context,omitempty"` + ResourceControlContext *ResourceControlContext `protobuf:"bytes,28,opt,name=resource_control_context,json=resourceControlContext,proto3" json:"resource_control_context,omitempty"` // The keyspace that the request is sent to. // NOTE: This field is only meaningful while the api_version is V2. KeyspaceId uint32 `protobuf:"varint,32,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` @@ -3860,13 +6085,44 @@ type Context struct { BucketsVersion uint64 `protobuf:"varint,33,opt,name=buckets_version,json=bucketsVersion,proto3" json:"buckets_version,omitempty"` // It tells us where the request comes from in TiDB. If it isn't from TiDB, leave it blank. // This is for tests only and thus can be safely changed/removed without affecting compatibility. - SourceStmt *SourceStmt `protobuf:"bytes,34,opt,name=source_stmt,json=sourceStmt" json:"source_stmt,omitempty"` + SourceStmt *SourceStmt `protobuf:"bytes,34,opt,name=source_stmt,json=sourceStmt,proto3" json:"source_stmt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Context) Reset() { *m = Context{} } +func (m *Context) String() string { return proto.CompactTextString(m) } +func (*Context) ProtoMessage() {} +func (*Context) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{75} +} +func (m *Context) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Context.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 *Context) XXX_Merge(src proto.Message) { + xxx_messageInfo_Context.Merge(m, src) +} +func (m *Context) XXX_Size() int { + return m.Size() +} +func (m *Context) XXX_DiscardUnknown() { + xxx_messageInfo_Context.DiscardUnknown(m) } -func (m *Context) Reset() { *m = Context{} } -func (m *Context) String() string { return proto.CompactTextString(m) } -func (*Context) ProtoMessage() {} -func (*Context) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{75} } +var xxx_messageInfo_Context proto.InternalMessageInfo func (m *Context) GetRegionId() uint64 { if m != nil { @@ -4076,16 +6332,47 @@ type ResourceControlContext struct { ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` // The resource consumption of the resource group that have completed at all TiKVs between the previous request to this TiKV and current request. // It's used as penalty to make the local resource scheduling on one TiKV takes the gloabl resource consumption into consideration. - Penalty *resource_manager.Consumption `protobuf:"bytes,2,opt,name=penalty" json:"penalty,omitempty"` + Penalty *resource_manager.Consumption `protobuf:"bytes,2,opt,name=penalty,proto3" json:"penalty,omitempty"` // This priority would override the original priority of the resource group for the request. // Used to deprioritize the runaway queries. - OverridePriority uint64 `protobuf:"varint,3,opt,name=override_priority,json=overridePriority,proto3" json:"override_priority,omitempty"` + OverridePriority uint64 `protobuf:"varint,3,opt,name=override_priority,json=overridePriority,proto3" json:"override_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceControlContext) Reset() { *m = ResourceControlContext{} } +func (m *ResourceControlContext) String() string { return proto.CompactTextString(m) } +func (*ResourceControlContext) ProtoMessage() {} +func (*ResourceControlContext) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{76} +} +func (m *ResourceControlContext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceControlContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResourceControlContext.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 *ResourceControlContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceControlContext.Merge(m, src) +} +func (m *ResourceControlContext) XXX_Size() int { + return m.Size() +} +func (m *ResourceControlContext) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceControlContext.DiscardUnknown(m) } -func (m *ResourceControlContext) Reset() { *m = ResourceControlContext{} } -func (m *ResourceControlContext) String() string { return proto.CompactTextString(m) } -func (*ResourceControlContext) ProtoMessage() {} -func (*ResourceControlContext) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{76} } +var xxx_messageInfo_ResourceControlContext proto.InternalMessageInfo func (m *ResourceControlContext) GetResourceGroupName() string { if m != nil { @@ -4113,13 +6400,44 @@ type SourceStmt struct { ConnectionId uint64 `protobuf:"varint,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` StmtId uint64 `protobuf:"varint,3,opt,name=stmt_id,json=stmtId,proto3" json:"stmt_id,omitempty"` // session alias set by user - SessionAlias string `protobuf:"bytes,4,opt,name=session_alias,json=sessionAlias,proto3" json:"session_alias,omitempty"` + SessionAlias string `protobuf:"bytes,4,opt,name=session_alias,json=sessionAlias,proto3" json:"session_alias,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourceStmt) Reset() { *m = SourceStmt{} } +func (m *SourceStmt) String() string { return proto.CompactTextString(m) } +func (*SourceStmt) ProtoMessage() {} +func (*SourceStmt) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{77} +} +func (m *SourceStmt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SourceStmt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SourceStmt.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 *SourceStmt) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceStmt.Merge(m, src) +} +func (m *SourceStmt) XXX_Size() int { + return m.Size() +} +func (m *SourceStmt) XXX_DiscardUnknown() { + xxx_messageInfo_SourceStmt.DiscardUnknown(m) } -func (m *SourceStmt) Reset() { *m = SourceStmt{} } -func (m *SourceStmt) String() string { return proto.CompactTextString(m) } -func (*SourceStmt) ProtoMessage() {} -func (*SourceStmt) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{77} } +var xxx_messageInfo_SourceStmt proto.InternalMessageInfo func (m *SourceStmt) GetStartTs() uint64 { if m != nil { @@ -4161,17 +6479,48 @@ type LockInfo struct { // Fields for transactions that are using Async Commit. UseAsyncCommit bool `protobuf:"varint,8,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` MinCommitTs uint64 `protobuf:"varint,9,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` - Secondaries [][]byte `protobuf:"bytes,10,rep,name=secondaries" json:"secondaries,omitempty"` + Secondaries [][]byte `protobuf:"bytes,10,rep,name=secondaries,proto3" json:"secondaries,omitempty"` // The time elapsed since last update of lock wait info when waiting. // It's used in timeout errors. 0 means unknown or not applicable. // It can be used to help the client decide whether to try resolving the lock. - DurationToLastUpdateMs uint64 `protobuf:"varint,11,opt,name=duration_to_last_update_ms,json=durationToLastUpdateMs,proto3" json:"duration_to_last_update_ms,omitempty"` + DurationToLastUpdateMs uint64 `protobuf:"varint,11,opt,name=duration_to_last_update_ms,json=durationToLastUpdateMs,proto3" json:"duration_to_last_update_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LockInfo) Reset() { *m = LockInfo{} } +func (m *LockInfo) String() string { return proto.CompactTextString(m) } +func (*LockInfo) ProtoMessage() {} +func (*LockInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{78} +} +func (m *LockInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LockInfo.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 *LockInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LockInfo.Merge(m, src) +} +func (m *LockInfo) XXX_Size() int { + return m.Size() +} +func (m *LockInfo) XXX_DiscardUnknown() { + xxx_messageInfo_LockInfo.DiscardUnknown(m) } -func (m *LockInfo) Reset() { *m = LockInfo{} } -func (m *LockInfo) String() string { return proto.CompactTextString(m) } -func (*LockInfo) ProtoMessage() {} -func (*LockInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{78} } +var xxx_messageInfo_LockInfo proto.InternalMessageInfo func (m *LockInfo) GetPrimaryLock() []byte { if m != nil { @@ -4251,23 +6600,54 @@ func (m *LockInfo) GetDurationToLastUpdateMs() uint64 { } type KeyError struct { - Locked *LockInfo `protobuf:"bytes,1,opt,name=locked" json:"locked,omitempty"` - Retryable string `protobuf:"bytes,2,opt,name=retryable,proto3" json:"retryable,omitempty"` - Abort string `protobuf:"bytes,3,opt,name=abort,proto3" json:"abort,omitempty"` - Conflict *WriteConflict `protobuf:"bytes,4,opt,name=conflict" json:"conflict,omitempty"` - AlreadyExist *AlreadyExist `protobuf:"bytes,5,opt,name=already_exist,json=alreadyExist" json:"already_exist,omitempty"` - Deadlock *Deadlock `protobuf:"bytes,6,opt,name=deadlock" json:"deadlock,omitempty"` - CommitTsExpired *CommitTsExpired `protobuf:"bytes,7,opt,name=commit_ts_expired,json=commitTsExpired" json:"commit_ts_expired,omitempty"` - TxnNotFound *TxnNotFound `protobuf:"bytes,8,opt,name=txn_not_found,json=txnNotFound" json:"txn_not_found,omitempty"` - CommitTsTooLarge *CommitTsTooLarge `protobuf:"bytes,9,opt,name=commit_ts_too_large,json=commitTsTooLarge" json:"commit_ts_too_large,omitempty"` - AssertionFailed *AssertionFailed `protobuf:"bytes,10,opt,name=assertion_failed,json=assertionFailed" json:"assertion_failed,omitempty"` - PrimaryMismatch *PrimaryMismatch `protobuf:"bytes,11,opt,name=primary_mismatch,json=primaryMismatch" json:"primary_mismatch,omitempty"` -} - -func (m *KeyError) Reset() { *m = KeyError{} } -func (m *KeyError) String() string { return proto.CompactTextString(m) } -func (*KeyError) ProtoMessage() {} -func (*KeyError) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{79} } + Locked *LockInfo `protobuf:"bytes,1,opt,name=locked,proto3" json:"locked,omitempty"` + Retryable string `protobuf:"bytes,2,opt,name=retryable,proto3" json:"retryable,omitempty"` + Abort string `protobuf:"bytes,3,opt,name=abort,proto3" json:"abort,omitempty"` + Conflict *WriteConflict `protobuf:"bytes,4,opt,name=conflict,proto3" json:"conflict,omitempty"` + AlreadyExist *AlreadyExist `protobuf:"bytes,5,opt,name=already_exist,json=alreadyExist,proto3" json:"already_exist,omitempty"` + Deadlock *Deadlock `protobuf:"bytes,6,opt,name=deadlock,proto3" json:"deadlock,omitempty"` + CommitTsExpired *CommitTsExpired `protobuf:"bytes,7,opt,name=commit_ts_expired,json=commitTsExpired,proto3" json:"commit_ts_expired,omitempty"` + TxnNotFound *TxnNotFound `protobuf:"bytes,8,opt,name=txn_not_found,json=txnNotFound,proto3" json:"txn_not_found,omitempty"` + CommitTsTooLarge *CommitTsTooLarge `protobuf:"bytes,9,opt,name=commit_ts_too_large,json=commitTsTooLarge,proto3" json:"commit_ts_too_large,omitempty"` + AssertionFailed *AssertionFailed `protobuf:"bytes,10,opt,name=assertion_failed,json=assertionFailed,proto3" json:"assertion_failed,omitempty"` + PrimaryMismatch *PrimaryMismatch `protobuf:"bytes,11,opt,name=primary_mismatch,json=primaryMismatch,proto3" json:"primary_mismatch,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyError) Reset() { *m = KeyError{} } +func (m *KeyError) String() string { return proto.CompactTextString(m) } +func (*KeyError) ProtoMessage() {} +func (*KeyError) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{79} +} +func (m *KeyError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyError.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 *KeyError) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyError.Merge(m, src) +} +func (m *KeyError) XXX_Size() int { + return m.Size() +} +func (m *KeyError) XXX_DiscardUnknown() { + xxx_messageInfo_KeyError.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyError proto.InternalMessageInfo func (m *KeyError) GetLocked() *LockInfo { if m != nil { @@ -4347,18 +6727,49 @@ func (m *KeyError) GetPrimaryMismatch() *PrimaryMismatch { } type WriteConflict struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - ConflictTs uint64 `protobuf:"varint,2,opt,name=conflict_ts,json=conflictTs,proto3" json:"conflict_ts,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Primary []byte `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` - ConflictCommitTs uint64 `protobuf:"varint,5,opt,name=conflict_commit_ts,json=conflictCommitTs,proto3" json:"conflict_commit_ts,omitempty"` - Reason WriteConflict_Reason `protobuf:"varint,6,opt,name=reason,proto3,enum=kvrpcpb.WriteConflict_Reason" json:"reason,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + ConflictTs uint64 `protobuf:"varint,2,opt,name=conflict_ts,json=conflictTs,proto3" json:"conflict_ts,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + Primary []byte `protobuf:"bytes,4,opt,name=primary,proto3" json:"primary,omitempty"` + ConflictCommitTs uint64 `protobuf:"varint,5,opt,name=conflict_commit_ts,json=conflictCommitTs,proto3" json:"conflict_commit_ts,omitempty"` + Reason WriteConflict_Reason `protobuf:"varint,6,opt,name=reason,proto3,enum=kvrpcpb.WriteConflict_Reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteConflict) Reset() { *m = WriteConflict{} } +func (m *WriteConflict) String() string { return proto.CompactTextString(m) } +func (*WriteConflict) ProtoMessage() {} +func (*WriteConflict) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{80} +} +func (m *WriteConflict) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteConflict.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 *WriteConflict) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteConflict.Merge(m, src) +} +func (m *WriteConflict) XXX_Size() int { + return m.Size() +} +func (m *WriteConflict) XXX_DiscardUnknown() { + xxx_messageInfo_WriteConflict.DiscardUnknown(m) } -func (m *WriteConflict) Reset() { *m = WriteConflict{} } -func (m *WriteConflict) String() string { return proto.CompactTextString(m) } -func (*WriteConflict) ProtoMessage() {} -func (*WriteConflict) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{80} } +var xxx_messageInfo_WriteConflict proto.InternalMessageInfo func (m *WriteConflict) GetStartTs() uint64 { if m != nil { @@ -4403,13 +6814,44 @@ func (m *WriteConflict) GetReason() WriteConflict_Reason { } type AlreadyExist struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlreadyExist) Reset() { *m = AlreadyExist{} } +func (m *AlreadyExist) String() string { return proto.CompactTextString(m) } +func (*AlreadyExist) ProtoMessage() {} +func (*AlreadyExist) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{81} +} +func (m *AlreadyExist) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlreadyExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AlreadyExist.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 *AlreadyExist) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlreadyExist.Merge(m, src) +} +func (m *AlreadyExist) XXX_Size() int { + return m.Size() +} +func (m *AlreadyExist) XXX_DiscardUnknown() { + xxx_messageInfo_AlreadyExist.DiscardUnknown(m) } -func (m *AlreadyExist) Reset() { *m = AlreadyExist{} } -func (m *AlreadyExist) String() string { return proto.CompactTextString(m) } -func (*AlreadyExist) ProtoMessage() {} -func (*AlreadyExist) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{81} } +var xxx_messageInfo_AlreadyExist proto.InternalMessageInfo func (m *AlreadyExist) GetKey() []byte { if m != nil { @@ -4419,16 +6861,47 @@ func (m *AlreadyExist) GetKey() []byte { } type Deadlock struct { - LockTs uint64 `protobuf:"varint,1,opt,name=lock_ts,json=lockTs,proto3" json:"lock_ts,omitempty"` - LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` - DeadlockKeyHash uint64 `protobuf:"varint,3,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` - WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` + LockTs uint64 `protobuf:"varint,1,opt,name=lock_ts,json=lockTs,proto3" json:"lock_ts,omitempty"` + LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` + DeadlockKeyHash uint64 `protobuf:"varint,3,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` + WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Deadlock) Reset() { *m = Deadlock{} } +func (m *Deadlock) String() string { return proto.CompactTextString(m) } +func (*Deadlock) ProtoMessage() {} +func (*Deadlock) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{82} +} +func (m *Deadlock) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Deadlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Deadlock.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 *Deadlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_Deadlock.Merge(m, src) +} +func (m *Deadlock) XXX_Size() int { + return m.Size() +} +func (m *Deadlock) XXX_DiscardUnknown() { + xxx_messageInfo_Deadlock.DiscardUnknown(m) } -func (m *Deadlock) Reset() { *m = Deadlock{} } -func (m *Deadlock) String() string { return proto.CompactTextString(m) } -func (*Deadlock) ProtoMessage() {} -func (*Deadlock) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{82} } +var xxx_messageInfo_Deadlock proto.InternalMessageInfo func (m *Deadlock) GetLockTs() uint64 { if m != nil { @@ -4459,16 +6932,47 @@ func (m *Deadlock) GetWaitChain() []*deadlock.WaitForEntry { } type CommitTsExpired struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - AttemptedCommitTs uint64 `protobuf:"varint,2,opt,name=attempted_commit_ts,json=attemptedCommitTs,proto3" json:"attempted_commit_ts,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - MinCommitTs uint64 `protobuf:"varint,4,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + AttemptedCommitTs uint64 `protobuf:"varint,2,opt,name=attempted_commit_ts,json=attemptedCommitTs,proto3" json:"attempted_commit_ts,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + MinCommitTs uint64 `protobuf:"varint,4,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitTsExpired) Reset() { *m = CommitTsExpired{} } +func (m *CommitTsExpired) String() string { return proto.CompactTextString(m) } +func (*CommitTsExpired) ProtoMessage() {} +func (*CommitTsExpired) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{83} +} +func (m *CommitTsExpired) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitTsExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitTsExpired.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 *CommitTsExpired) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitTsExpired.Merge(m, src) +} +func (m *CommitTsExpired) XXX_Size() int { + return m.Size() +} +func (m *CommitTsExpired) XXX_DiscardUnknown() { + xxx_messageInfo_CommitTsExpired.DiscardUnknown(m) } -func (m *CommitTsExpired) Reset() { *m = CommitTsExpired{} } -func (m *CommitTsExpired) String() string { return proto.CompactTextString(m) } -func (*CommitTsExpired) ProtoMessage() {} -func (*CommitTsExpired) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{83} } +var xxx_messageInfo_CommitTsExpired proto.InternalMessageInfo func (m *CommitTsExpired) GetStartTs() uint64 { if m != nil { @@ -4499,14 +7003,45 @@ func (m *CommitTsExpired) GetMinCommitTs() uint64 { } type TxnNotFound struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + PrimaryKey []byte `protobuf:"bytes,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnNotFound) Reset() { *m = TxnNotFound{} } +func (m *TxnNotFound) String() string { return proto.CompactTextString(m) } +func (*TxnNotFound) ProtoMessage() {} +func (*TxnNotFound) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{84} +} +func (m *TxnNotFound) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnNotFound.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 *TxnNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnNotFound.Merge(m, src) +} +func (m *TxnNotFound) XXX_Size() int { + return m.Size() +} +func (m *TxnNotFound) XXX_DiscardUnknown() { + xxx_messageInfo_TxnNotFound.DiscardUnknown(m) } -func (m *TxnNotFound) Reset() { *m = TxnNotFound{} } -func (m *TxnNotFound) String() string { return proto.CompactTextString(m) } -func (*TxnNotFound) ProtoMessage() {} -func (*TxnNotFound) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{84} } +var xxx_messageInfo_TxnNotFound proto.InternalMessageInfo func (m *TxnNotFound) GetStartTs() uint64 { if m != nil { @@ -4523,13 +7058,44 @@ func (m *TxnNotFound) GetPrimaryKey() []byte { } type CommitTsTooLarge struct { - CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,1,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitTsTooLarge) Reset() { *m = CommitTsTooLarge{} } +func (m *CommitTsTooLarge) String() string { return proto.CompactTextString(m) } +func (*CommitTsTooLarge) ProtoMessage() {} +func (*CommitTsTooLarge) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{85} +} +func (m *CommitTsTooLarge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitTsTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitTsTooLarge.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 *CommitTsTooLarge) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitTsTooLarge.Merge(m, src) +} +func (m *CommitTsTooLarge) XXX_Size() int { + return m.Size() +} +func (m *CommitTsTooLarge) XXX_DiscardUnknown() { + xxx_messageInfo_CommitTsTooLarge.DiscardUnknown(m) } -func (m *CommitTsTooLarge) Reset() { *m = CommitTsTooLarge{} } -func (m *CommitTsTooLarge) String() string { return proto.CompactTextString(m) } -func (*CommitTsTooLarge) ProtoMessage() {} -func (*CommitTsTooLarge) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{85} } +var xxx_messageInfo_CommitTsTooLarge proto.InternalMessageInfo func (m *CommitTsTooLarge) GetCommitTs() uint64 { if m != nil { @@ -4539,17 +7105,48 @@ func (m *CommitTsTooLarge) GetCommitTs() uint64 { } type AssertionFailed struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Assertion Assertion `protobuf:"varint,3,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` - ExistingStartTs uint64 `protobuf:"varint,4,opt,name=existing_start_ts,json=existingStartTs,proto3" json:"existing_start_ts,omitempty"` - ExistingCommitTs uint64 `protobuf:"varint,5,opt,name=existing_commit_ts,json=existingCommitTs,proto3" json:"existing_commit_ts,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Assertion Assertion `protobuf:"varint,3,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` + ExistingStartTs uint64 `protobuf:"varint,4,opt,name=existing_start_ts,json=existingStartTs,proto3" json:"existing_start_ts,omitempty"` + ExistingCommitTs uint64 `protobuf:"varint,5,opt,name=existing_commit_ts,json=existingCommitTs,proto3" json:"existing_commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AssertionFailed) Reset() { *m = AssertionFailed{} } +func (m *AssertionFailed) String() string { return proto.CompactTextString(m) } +func (*AssertionFailed) ProtoMessage() {} +func (*AssertionFailed) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{86} +} +func (m *AssertionFailed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssertionFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssertionFailed.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 *AssertionFailed) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssertionFailed.Merge(m, src) +} +func (m *AssertionFailed) XXX_Size() int { + return m.Size() +} +func (m *AssertionFailed) XXX_DiscardUnknown() { + xxx_messageInfo_AssertionFailed.DiscardUnknown(m) } -func (m *AssertionFailed) Reset() { *m = AssertionFailed{} } -func (m *AssertionFailed) String() string { return proto.CompactTextString(m) } -func (*AssertionFailed) ProtoMessage() {} -func (*AssertionFailed) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{86} } +var xxx_messageInfo_AssertionFailed proto.InternalMessageInfo func (m *AssertionFailed) GetStartTs() uint64 { if m != nil { @@ -4587,13 +7184,44 @@ func (m *AssertionFailed) GetExistingCommitTs() uint64 { } type PrimaryMismatch struct { - LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo" json:"lock_info,omitempty"` + LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo,proto3" json:"lock_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrimaryMismatch) Reset() { *m = PrimaryMismatch{} } +func (m *PrimaryMismatch) String() string { return proto.CompactTextString(m) } +func (*PrimaryMismatch) ProtoMessage() {} +func (*PrimaryMismatch) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{87} +} +func (m *PrimaryMismatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrimaryMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrimaryMismatch.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 *PrimaryMismatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrimaryMismatch.Merge(m, src) +} +func (m *PrimaryMismatch) XXX_Size() int { + return m.Size() +} +func (m *PrimaryMismatch) XXX_DiscardUnknown() { + xxx_messageInfo_PrimaryMismatch.DiscardUnknown(m) } -func (m *PrimaryMismatch) Reset() { *m = PrimaryMismatch{} } -func (m *PrimaryMismatch) String() string { return proto.CompactTextString(m) } -func (*PrimaryMismatch) ProtoMessage() {} -func (*PrimaryMismatch) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{87} } +var xxx_messageInfo_PrimaryMismatch proto.InternalMessageInfo func (m *PrimaryMismatch) GetLockInfo() *LockInfo { if m != nil { @@ -4615,13 +7243,44 @@ type TimeDetail struct { // KV read wall Time means the time used in key/value scan and get. KvReadWallTimeMs uint64 `protobuf:"varint,3,opt,name=kv_read_wall_time_ms,json=kvReadWallTimeMs,proto3" json:"kv_read_wall_time_ms,omitempty"` // Total wall clock time spent on this RPC in TiKV . - TotalRpcWallTimeNs uint64 `protobuf:"varint,4,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` + TotalRpcWallTimeNs uint64 `protobuf:"varint,4,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TimeDetail) Reset() { *m = TimeDetail{} } +func (m *TimeDetail) String() string { return proto.CompactTextString(m) } +func (*TimeDetail) ProtoMessage() {} +func (*TimeDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{88} +} +func (m *TimeDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TimeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TimeDetail.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 *TimeDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeDetail.Merge(m, src) +} +func (m *TimeDetail) XXX_Size() int { + return m.Size() +} +func (m *TimeDetail) XXX_DiscardUnknown() { + xxx_messageInfo_TimeDetail.DiscardUnknown(m) } -func (m *TimeDetail) Reset() { *m = TimeDetail{} } -func (m *TimeDetail) String() string { return proto.CompactTextString(m) } -func (*TimeDetail) ProtoMessage() {} -func (*TimeDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{88} } +var xxx_messageInfo_TimeDetail proto.InternalMessageInfo func (m *TimeDetail) GetWaitWallTimeMs() uint64 { if m != nil { @@ -4666,13 +7325,44 @@ type TimeDetailV2 struct { // KV read wall Time means the time used in key/value scan and get. KvReadWallTimeNs uint64 `protobuf:"varint,4,opt,name=kv_read_wall_time_ns,json=kvReadWallTimeNs,proto3" json:"kv_read_wall_time_ns,omitempty"` // Total wall clock time spent on this RPC in TiKV . - TotalRpcWallTimeNs uint64 `protobuf:"varint,5,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` + TotalRpcWallTimeNs uint64 `protobuf:"varint,5,opt,name=total_rpc_wall_time_ns,json=totalRpcWallTimeNs,proto3" json:"total_rpc_wall_time_ns,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TimeDetailV2) Reset() { *m = TimeDetailV2{} } +func (m *TimeDetailV2) String() string { return proto.CompactTextString(m) } +func (*TimeDetailV2) ProtoMessage() {} +func (*TimeDetailV2) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{89} +} +func (m *TimeDetailV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TimeDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TimeDetailV2.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 *TimeDetailV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeDetailV2.Merge(m, src) +} +func (m *TimeDetailV2) XXX_Size() int { + return m.Size() +} +func (m *TimeDetailV2) XXX_DiscardUnknown() { + xxx_messageInfo_TimeDetailV2.DiscardUnknown(m) } -func (m *TimeDetailV2) Reset() { *m = TimeDetailV2{} } -func (m *TimeDetailV2) String() string { return proto.CompactTextString(m) } -func (*TimeDetailV2) ProtoMessage() {} -func (*TimeDetailV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{89} } +var xxx_messageInfo_TimeDetailV2 proto.InternalMessageInfo func (m *TimeDetailV2) GetWaitWallTimeNs() uint64 { if m != nil { @@ -4710,15 +7400,46 @@ func (m *TimeDetailV2) GetTotalRpcWallTimeNs() uint64 { } type ScanInfo struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Processed int64 `protobuf:"varint,2,opt,name=processed,proto3" json:"processed,omitempty"` - ReadBytes int64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Processed int64 `protobuf:"varint,2,opt,name=processed,proto3" json:"processed,omitempty"` + ReadBytes int64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanInfo) Reset() { *m = ScanInfo{} } +func (m *ScanInfo) String() string { return proto.CompactTextString(m) } +func (*ScanInfo) ProtoMessage() {} +func (*ScanInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{90} +} +func (m *ScanInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanInfo.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 *ScanInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanInfo.Merge(m, src) +} +func (m *ScanInfo) XXX_Size() int { + return m.Size() +} +func (m *ScanInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ScanInfo.DiscardUnknown(m) } -func (m *ScanInfo) Reset() { *m = ScanInfo{} } -func (m *ScanInfo) String() string { return proto.CompactTextString(m) } -func (*ScanInfo) ProtoMessage() {} -func (*ScanInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{90} } +var xxx_messageInfo_ScanInfo proto.InternalMessageInfo func (m *ScanInfo) GetTotal() int64 { if m != nil { @@ -4743,15 +7464,46 @@ func (m *ScanInfo) GetReadBytes() int64 { // Only reserved for compatibility. type ScanDetail struct { - Write *ScanInfo `protobuf:"bytes,1,opt,name=write" json:"write,omitempty"` - Lock *ScanInfo `protobuf:"bytes,2,opt,name=lock" json:"lock,omitempty"` - Data *ScanInfo `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` + Write *ScanInfo `protobuf:"bytes,1,opt,name=write,proto3" json:"write,omitempty"` + Lock *ScanInfo `protobuf:"bytes,2,opt,name=lock,proto3" json:"lock,omitempty"` + Data *ScanInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanDetail) Reset() { *m = ScanDetail{} } +func (m *ScanDetail) String() string { return proto.CompactTextString(m) } +func (*ScanDetail) ProtoMessage() {} +func (*ScanDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{91} +} +func (m *ScanDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanDetail.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 *ScanDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanDetail.Merge(m, src) +} +func (m *ScanDetail) XXX_Size() int { + return m.Size() +} +func (m *ScanDetail) XXX_DiscardUnknown() { + xxx_messageInfo_ScanDetail.DiscardUnknown(m) } -func (m *ScanDetail) Reset() { *m = ScanDetail{} } -func (m *ScanDetail) String() string { return proto.CompactTextString(m) } -func (*ScanDetail) ProtoMessage() {} -func (*ScanDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{91} } +var xxx_messageInfo_ScanDetail proto.InternalMessageInfo func (m *ScanDetail) GetWrite() *ScanInfo { if m != nil { @@ -4810,13 +7562,44 @@ type ScanDetailV2 struct { // Time used for leader confirmation, equals 0 when performing lease read. ReadIndexConfirmWaitNanos uint64 `protobuf:"varint,12,opt,name=read_index_confirm_wait_nanos,json=readIndexConfirmWaitNanos,proto3" json:"read_index_confirm_wait_nanos,omitempty"` // Time used for read pool scheduling. - ReadPoolScheduleWaitNanos uint64 `protobuf:"varint,13,opt,name=read_pool_schedule_wait_nanos,json=readPoolScheduleWaitNanos,proto3" json:"read_pool_schedule_wait_nanos,omitempty"` + ReadPoolScheduleWaitNanos uint64 `protobuf:"varint,13,opt,name=read_pool_schedule_wait_nanos,json=readPoolScheduleWaitNanos,proto3" json:"read_pool_schedule_wait_nanos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanDetailV2) Reset() { *m = ScanDetailV2{} } +func (m *ScanDetailV2) String() string { return proto.CompactTextString(m) } +func (*ScanDetailV2) ProtoMessage() {} +func (*ScanDetailV2) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{92} +} +func (m *ScanDetailV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanDetailV2.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 *ScanDetailV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanDetailV2.Merge(m, src) +} +func (m *ScanDetailV2) XXX_Size() int { + return m.Size() +} +func (m *ScanDetailV2) XXX_DiscardUnknown() { + xxx_messageInfo_ScanDetailV2.DiscardUnknown(m) } -func (m *ScanDetailV2) Reset() { *m = ScanDetailV2{} } -func (m *ScanDetailV2) String() string { return proto.CompactTextString(m) } -func (*ScanDetailV2) ProtoMessage() {} -func (*ScanDetailV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{92} } +var xxx_messageInfo_ScanDetailV2 proto.InternalMessageInfo func (m *ScanDetailV2) GetProcessedVersions() uint64 { if m != nil { @@ -4911,15 +7694,46 @@ func (m *ScanDetailV2) GetReadPoolScheduleWaitNanos() uint64 { type ExecDetails struct { // Available when ctx.record_time_stat = true or meet slow query. - TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail" json:"time_detail,omitempty"` + TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail,proto3" json:"time_detail,omitempty"` // Available when ctx.record_scan_stat = true or meet slow query. - ScanDetail *ScanDetail `protobuf:"bytes,2,opt,name=scan_detail,json=scanDetail" json:"scan_detail,omitempty"` + ScanDetail *ScanDetail `protobuf:"bytes,2,opt,name=scan_detail,json=scanDetail,proto3" json:"scan_detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecDetails) Reset() { *m = ExecDetails{} } +func (m *ExecDetails) String() string { return proto.CompactTextString(m) } +func (*ExecDetails) ProtoMessage() {} +func (*ExecDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{93} +} +func (m *ExecDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecDetails.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 *ExecDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDetails.Merge(m, src) +} +func (m *ExecDetails) XXX_Size() int { + return m.Size() +} +func (m *ExecDetails) XXX_DiscardUnknown() { + xxx_messageInfo_ExecDetails.DiscardUnknown(m) } -func (m *ExecDetails) Reset() { *m = ExecDetails{} } -func (m *ExecDetails) String() string { return proto.CompactTextString(m) } -func (*ExecDetails) ProtoMessage() {} -func (*ExecDetails) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{93} } +var xxx_messageInfo_ExecDetails proto.InternalMessageInfo func (m *ExecDetails) GetTimeDetail() *TimeDetail { if m != nil { @@ -4938,19 +7752,50 @@ func (m *ExecDetails) GetScanDetail() *ScanDetail { type ExecDetailsV2 struct { // Available when ctx.record_time_stat = true or meet slow query. // deprecated. Should use `time_detail_v2` instead. - TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail" json:"time_detail,omitempty"` + TimeDetail *TimeDetail `protobuf:"bytes,1,opt,name=time_detail,json=timeDetail,proto3" json:"time_detail,omitempty"` // Available when ctx.record_scan_stat = true or meet slow query. - ScanDetailV2 *ScanDetailV2 `protobuf:"bytes,2,opt,name=scan_detail_v2,json=scanDetailV2" json:"scan_detail_v2,omitempty"` + ScanDetailV2 *ScanDetailV2 `protobuf:"bytes,2,opt,name=scan_detail_v2,json=scanDetailV2,proto3" json:"scan_detail_v2,omitempty"` // Raftstore writing durations of the request. Only available for some write requests. - WriteDetail *WriteDetail `protobuf:"bytes,3,opt,name=write_detail,json=writeDetail" json:"write_detail,omitempty"` + WriteDetail *WriteDetail `protobuf:"bytes,3,opt,name=write_detail,json=writeDetail,proto3" json:"write_detail,omitempty"` // Available when ctx.record_time_stat = true or meet slow query. - TimeDetailV2 *TimeDetailV2 `protobuf:"bytes,4,opt,name=time_detail_v2,json=timeDetailV2" json:"time_detail_v2,omitempty"` + TimeDetailV2 *TimeDetailV2 `protobuf:"bytes,4,opt,name=time_detail_v2,json=timeDetailV2,proto3" json:"time_detail_v2,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecDetailsV2) Reset() { *m = ExecDetailsV2{} } +func (m *ExecDetailsV2) String() string { return proto.CompactTextString(m) } +func (*ExecDetailsV2) ProtoMessage() {} +func (*ExecDetailsV2) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{94} +} +func (m *ExecDetailsV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecDetailsV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecDetailsV2.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 *ExecDetailsV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDetailsV2.Merge(m, src) +} +func (m *ExecDetailsV2) XXX_Size() int { + return m.Size() +} +func (m *ExecDetailsV2) XXX_DiscardUnknown() { + xxx_messageInfo_ExecDetailsV2.DiscardUnknown(m) } -func (m *ExecDetailsV2) Reset() { *m = ExecDetailsV2{} } -func (m *ExecDetailsV2) String() string { return proto.CompactTextString(m) } -func (*ExecDetailsV2) ProtoMessage() {} -func (*ExecDetailsV2) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{94} } +var xxx_messageInfo_ExecDetailsV2 proto.InternalMessageInfo func (m *ExecDetailsV2) GetTimeDetail() *TimeDetail { if m != nil { @@ -5014,13 +7859,44 @@ type WriteDetail struct { // Wait time because of the scheduler flow control or quota limiter throttling. ThrottleNanos uint64 `protobuf:"varint,16,opt,name=throttle_nanos,json=throttleNanos,proto3" json:"throttle_nanos,omitempty"` // Wait time in the waiter manager for pessimistic locking. - PessimisticLockWaitNanos uint64 `protobuf:"varint,17,opt,name=pessimistic_lock_wait_nanos,json=pessimisticLockWaitNanos,proto3" json:"pessimistic_lock_wait_nanos,omitempty"` + PessimisticLockWaitNanos uint64 `protobuf:"varint,17,opt,name=pessimistic_lock_wait_nanos,json=pessimisticLockWaitNanos,proto3" json:"pessimistic_lock_wait_nanos,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WriteDetail) Reset() { *m = WriteDetail{} } +func (m *WriteDetail) String() string { return proto.CompactTextString(m) } +func (*WriteDetail) ProtoMessage() {} +func (*WriteDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{95} +} +func (m *WriteDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WriteDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WriteDetail.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 *WriteDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteDetail.Merge(m, src) +} +func (m *WriteDetail) XXX_Size() int { + return m.Size() +} +func (m *WriteDetail) XXX_DiscardUnknown() { + xxx_messageInfo_WriteDetail.DiscardUnknown(m) } -func (m *WriteDetail) Reset() { *m = WriteDetail{} } -func (m *WriteDetail) String() string { return proto.CompactTextString(m) } -func (*WriteDetail) ProtoMessage() {} -func (*WriteDetail) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{95} } +var xxx_messageInfo_WriteDetail proto.InternalMessageInfo func (m *WriteDetail) GetStoreBatchWaitNanos() uint64 { if m != nil { @@ -5142,15 +8018,46 @@ func (m *WriteDetail) GetPessimisticLockWaitNanos() uint64 { } type KvPair struct { - Error *KeyError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Error *KeyError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KvPair) Reset() { *m = KvPair{} } +func (m *KvPair) String() string { return proto.CompactTextString(m) } +func (*KvPair) ProtoMessage() {} +func (*KvPair) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{96} +} +func (m *KvPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KvPair.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 *KvPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KvPair.Merge(m, src) +} +func (m *KvPair) XXX_Size() int { + return m.Size() +} +func (m *KvPair) XXX_DiscardUnknown() { + xxx_messageInfo_KvPair.DiscardUnknown(m) } -func (m *KvPair) Reset() { *m = KvPair{} } -func (m *KvPair) String() string { return proto.CompactTextString(m) } -func (*KvPair) ProtoMessage() {} -func (*KvPair) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{96} } +var xxx_messageInfo_KvPair proto.InternalMessageInfo func (m *KvPair) GetError() *KeyError { if m != nil { @@ -5174,16 +8081,47 @@ func (m *KvPair) GetValue() []byte { } type Mutation struct { - Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=kvrpcpb.Op" json:"op,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Assertion Assertion `protobuf:"varint,4,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` + Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=kvrpcpb.Op" json:"op,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Assertion Assertion `protobuf:"varint,4,opt,name=assertion,proto3,enum=kvrpcpb.Assertion" json:"assertion,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mutation) Reset() { *m = Mutation{} } +func (m *Mutation) String() string { return proto.CompactTextString(m) } +func (*Mutation) ProtoMessage() {} +func (*Mutation) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{97} +} +func (m *Mutation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mutation.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 *Mutation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mutation.Merge(m, src) +} +func (m *Mutation) XXX_Size() int { + return m.Size() +} +func (m *Mutation) XXX_DiscardUnknown() { + xxx_messageInfo_Mutation.DiscardUnknown(m) } -func (m *Mutation) Reset() { *m = Mutation{} } -func (m *Mutation) String() string { return proto.CompactTextString(m) } -func (*Mutation) ProtoMessage() {} -func (*Mutation) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{97} } +var xxx_messageInfo_Mutation proto.InternalMessageInfo func (m *Mutation) GetOp() Op { if m != nil { @@ -5214,21 +8152,52 @@ func (m *Mutation) GetAssertion() Assertion { } type MvccWrite struct { - Type Op `protobuf:"varint,1,opt,name=type,proto3,enum=kvrpcpb.Op" json:"type,omitempty"` - StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` - ShortValue []byte `protobuf:"bytes,4,opt,name=short_value,json=shortValue,proto3" json:"short_value,omitempty"` - HasOverlappedRollback bool `protobuf:"varint,5,opt,name=has_overlapped_rollback,json=hasOverlappedRollback,proto3" json:"has_overlapped_rollback,omitempty"` - HasGcFence bool `protobuf:"varint,6,opt,name=has_gc_fence,json=hasGcFence,proto3" json:"has_gc_fence,omitempty"` - GcFence uint64 `protobuf:"varint,7,opt,name=gc_fence,json=gcFence,proto3" json:"gc_fence,omitempty"` - LastChangeTs uint64 `protobuf:"varint,8,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` - VersionsToLastChange uint64 `protobuf:"varint,9,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` -} - -func (m *MvccWrite) Reset() { *m = MvccWrite{} } -func (m *MvccWrite) String() string { return proto.CompactTextString(m) } -func (*MvccWrite) ProtoMessage() {} -func (*MvccWrite) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{98} } + Type Op `protobuf:"varint,1,opt,name=type,proto3,enum=kvrpcpb.Op" json:"type,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + ShortValue []byte `protobuf:"bytes,4,opt,name=short_value,json=shortValue,proto3" json:"short_value,omitempty"` + HasOverlappedRollback bool `protobuf:"varint,5,opt,name=has_overlapped_rollback,json=hasOverlappedRollback,proto3" json:"has_overlapped_rollback,omitempty"` + HasGcFence bool `protobuf:"varint,6,opt,name=has_gc_fence,json=hasGcFence,proto3" json:"has_gc_fence,omitempty"` + GcFence uint64 `protobuf:"varint,7,opt,name=gc_fence,json=gcFence,proto3" json:"gc_fence,omitempty"` + LastChangeTs uint64 `protobuf:"varint,8,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` + VersionsToLastChange uint64 `protobuf:"varint,9,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccWrite) Reset() { *m = MvccWrite{} } +func (m *MvccWrite) String() string { return proto.CompactTextString(m) } +func (*MvccWrite) ProtoMessage() {} +func (*MvccWrite) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{98} +} +func (m *MvccWrite) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccWrite.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 *MvccWrite) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccWrite.Merge(m, src) +} +func (m *MvccWrite) XXX_Size() int { + return m.Size() +} +func (m *MvccWrite) XXX_DiscardUnknown() { + xxx_messageInfo_MvccWrite.DiscardUnknown(m) +} + +var xxx_messageInfo_MvccWrite proto.InternalMessageInfo func (m *MvccWrite) GetType() Op { if m != nil { @@ -5294,14 +8263,45 @@ func (m *MvccWrite) GetVersionsToLastChange() uint64 { } type MvccValue struct { - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccValue) Reset() { *m = MvccValue{} } +func (m *MvccValue) String() string { return proto.CompactTextString(m) } +func (*MvccValue) ProtoMessage() {} +func (*MvccValue) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{99} +} +func (m *MvccValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccValue.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 *MvccValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccValue.Merge(m, src) +} +func (m *MvccValue) XXX_Size() int { + return m.Size() +} +func (m *MvccValue) XXX_DiscardUnknown() { + xxx_messageInfo_MvccValue.DiscardUnknown(m) } -func (m *MvccValue) Reset() { *m = MvccValue{} } -func (m *MvccValue) String() string { return proto.CompactTextString(m) } -func (*MvccValue) ProtoMessage() {} -func (*MvccValue) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{99} } +var xxx_messageInfo_MvccValue proto.InternalMessageInfo func (m *MvccValue) GetStartTs() uint64 { if m != nil { @@ -5326,16 +8326,47 @@ type MvccLock struct { ForUpdateTs uint64 `protobuf:"varint,6,opt,name=for_update_ts,json=forUpdateTs,proto3" json:"for_update_ts,omitempty"` TxnSize uint64 `protobuf:"varint,7,opt,name=txn_size,json=txnSize,proto3" json:"txn_size,omitempty"` UseAsyncCommit bool `protobuf:"varint,8,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` - Secondaries [][]byte `protobuf:"bytes,9,rep,name=secondaries" json:"secondaries,omitempty"` - RollbackTs []uint64 `protobuf:"varint,10,rep,packed,name=rollback_ts,json=rollbackTs" json:"rollback_ts,omitempty"` + Secondaries [][]byte `protobuf:"bytes,9,rep,name=secondaries,proto3" json:"secondaries,omitempty"` + RollbackTs []uint64 `protobuf:"varint,10,rep,packed,name=rollback_ts,json=rollbackTs,proto3" json:"rollback_ts,omitempty"` LastChangeTs uint64 `protobuf:"varint,11,opt,name=last_change_ts,json=lastChangeTs,proto3" json:"last_change_ts,omitempty"` VersionsToLastChange uint64 `protobuf:"varint,12,opt,name=versions_to_last_change,json=versionsToLastChange,proto3" json:"versions_to_last_change,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccLock) Reset() { *m = MvccLock{} } +func (m *MvccLock) String() string { return proto.CompactTextString(m) } +func (*MvccLock) ProtoMessage() {} +func (*MvccLock) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{100} +} +func (m *MvccLock) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccLock.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 *MvccLock) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccLock.Merge(m, src) +} +func (m *MvccLock) XXX_Size() int { + return m.Size() +} +func (m *MvccLock) XXX_DiscardUnknown() { + xxx_messageInfo_MvccLock.DiscardUnknown(m) } -func (m *MvccLock) Reset() { *m = MvccLock{} } -func (m *MvccLock) String() string { return proto.CompactTextString(m) } -func (*MvccLock) ProtoMessage() {} -func (*MvccLock) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{100} } +var xxx_messageInfo_MvccLock proto.InternalMessageInfo func (m *MvccLock) GetType() Op { if m != nil { @@ -5422,15 +8453,46 @@ func (m *MvccLock) GetVersionsToLastChange() uint64 { } type MvccInfo struct { - Lock *MvccLock `protobuf:"bytes,1,opt,name=lock" json:"lock,omitempty"` - Writes []*MvccWrite `protobuf:"bytes,2,rep,name=writes" json:"writes,omitempty"` - Values []*MvccValue `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` + Lock *MvccLock `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"` + Writes []*MvccWrite `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"` + Values []*MvccValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MvccInfo) Reset() { *m = MvccInfo{} } +func (m *MvccInfo) String() string { return proto.CompactTextString(m) } +func (*MvccInfo) ProtoMessage() {} +func (*MvccInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{101} +} +func (m *MvccInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MvccInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MvccInfo.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 *MvccInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccInfo.Merge(m, src) +} +func (m *MvccInfo) XXX_Size() int { + return m.Size() +} +func (m *MvccInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MvccInfo.DiscardUnknown(m) } -func (m *MvccInfo) Reset() { *m = MvccInfo{} } -func (m *MvccInfo) String() string { return proto.CompactTextString(m) } -func (*MvccInfo) ProtoMessage() {} -func (*MvccInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{101} } +var xxx_messageInfo_MvccInfo proto.InternalMessageInfo func (m *MvccInfo) GetLock() *MvccLock { if m != nil { @@ -5454,14 +8516,45 @@ func (m *MvccInfo) GetValues() []*MvccValue { } type TxnInfo struct { - Txn uint64 `protobuf:"varint,1,opt,name=txn,proto3" json:"txn,omitempty"` - Status uint64 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` + Txn uint64 `protobuf:"varint,1,opt,name=txn,proto3" json:"txn,omitempty"` + Status uint64 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnInfo) Reset() { *m = TxnInfo{} } +func (m *TxnInfo) String() string { return proto.CompactTextString(m) } +func (*TxnInfo) ProtoMessage() {} +func (*TxnInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{102} +} +func (m *TxnInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnInfo.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 *TxnInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnInfo.Merge(m, src) +} +func (m *TxnInfo) XXX_Size() int { + return m.Size() +} +func (m *TxnInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TxnInfo.DiscardUnknown(m) } -func (m *TxnInfo) Reset() { *m = TxnInfo{} } -func (m *TxnInfo) String() string { return proto.CompactTextString(m) } -func (*TxnInfo) ProtoMessage() {} -func (*TxnInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{102} } +var xxx_messageInfo_TxnInfo proto.InternalMessageInfo func (m *TxnInfo) GetTxn() uint64 { if m != nil { @@ -5478,14 +8571,45 @@ func (m *TxnInfo) GetStatus() uint64 { } type KeyRange struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyRange) Reset() { *m = KeyRange{} } +func (m *KeyRange) String() string { return proto.CompactTextString(m) } +func (*KeyRange) ProtoMessage() {} +func (*KeyRange) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{103} +} +func (m *KeyRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyRange.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 *KeyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyRange.Merge(m, src) +} +func (m *KeyRange) XXX_Size() int { + return m.Size() +} +func (m *KeyRange) XXX_DiscardUnknown() { + xxx_messageInfo_KeyRange.DiscardUnknown(m) } -func (m *KeyRange) Reset() { *m = KeyRange{} } -func (m *KeyRange) String() string { return proto.CompactTextString(m) } -func (*KeyRange) ProtoMessage() {} -func (*KeyRange) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{103} } +var xxx_messageInfo_KeyRange proto.InternalMessageInfo func (m *KeyRange) GetStartKey() []byte { if m != nil { @@ -5502,17 +8626,48 @@ func (m *KeyRange) GetEndKey() []byte { } type LeaderInfo struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - ReadState *ReadState `protobuf:"bytes,5,opt,name=read_state,json=readState" json:"read_state,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + Term uint64 `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + ReadState *ReadState `protobuf:"bytes,5,opt,name=read_state,json=readState,proto3" json:"read_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LeaderInfo) Reset() { *m = LeaderInfo{} } +func (m *LeaderInfo) String() string { return proto.CompactTextString(m) } +func (*LeaderInfo) ProtoMessage() {} +func (*LeaderInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{104} +} +func (m *LeaderInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LeaderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LeaderInfo.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 *LeaderInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LeaderInfo.Merge(m, src) +} +func (m *LeaderInfo) XXX_Size() int { + return m.Size() +} +func (m *LeaderInfo) XXX_DiscardUnknown() { + xxx_messageInfo_LeaderInfo.DiscardUnknown(m) } -func (m *LeaderInfo) Reset() { *m = LeaderInfo{} } -func (m *LeaderInfo) String() string { return proto.CompactTextString(m) } -func (*LeaderInfo) ProtoMessage() {} -func (*LeaderInfo) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{104} } +var xxx_messageInfo_LeaderInfo proto.InternalMessageInfo func (m *LeaderInfo) GetRegionId() uint64 { if m != nil { @@ -5550,14 +8705,45 @@ func (m *LeaderInfo) GetReadState() *ReadState { } type ReadState struct { - AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` - SafeTs uint64 `protobuf:"varint,2,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + SafeTs uint64 `protobuf:"varint,2,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadState) Reset() { *m = ReadState{} } +func (m *ReadState) String() string { return proto.CompactTextString(m) } +func (*ReadState) ProtoMessage() {} +func (*ReadState) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{105} +} +func (m *ReadState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadState.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 *ReadState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadState.Merge(m, src) +} +func (m *ReadState) XXX_Size() int { + return m.Size() +} +func (m *ReadState) XXX_DiscardUnknown() { + xxx_messageInfo_ReadState.DiscardUnknown(m) } -func (m *ReadState) Reset() { *m = ReadState{} } -func (m *ReadState) String() string { return proto.CompactTextString(m) } -func (*ReadState) ProtoMessage() {} -func (*ReadState) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{105} } +var xxx_messageInfo_ReadState proto.InternalMessageInfo func (m *ReadState) GetAppliedIndex() uint64 { if m != nil { @@ -5574,14 +8760,45 @@ func (m *ReadState) GetSafeTs() uint64 { } type CheckLeaderRequest struct { - Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckLeaderRequest) Reset() { *m = CheckLeaderRequest{} } +func (m *CheckLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*CheckLeaderRequest) ProtoMessage() {} +func (*CheckLeaderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{106} +} +func (m *CheckLeaderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckLeaderRequest.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 *CheckLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLeaderRequest.Merge(m, src) +} +func (m *CheckLeaderRequest) XXX_Size() int { + return m.Size() +} +func (m *CheckLeaderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CheckLeaderRequest.DiscardUnknown(m) } -func (m *CheckLeaderRequest) Reset() { *m = CheckLeaderRequest{} } -func (m *CheckLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*CheckLeaderRequest) ProtoMessage() {} -func (*CheckLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{106} } +var xxx_messageInfo_CheckLeaderRequest proto.InternalMessageInfo func (m *CheckLeaderRequest) GetRegions() []*LeaderInfo { if m != nil { @@ -5598,14 +8815,45 @@ func (m *CheckLeaderRequest) GetTs() uint64 { } type CheckLeaderResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` - Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` + Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckLeaderResponse) Reset() { *m = CheckLeaderResponse{} } +func (m *CheckLeaderResponse) String() string { return proto.CompactTextString(m) } +func (*CheckLeaderResponse) ProtoMessage() {} +func (*CheckLeaderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{107} +} +func (m *CheckLeaderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckLeaderResponse.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 *CheckLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLeaderResponse.Merge(m, src) +} +func (m *CheckLeaderResponse) XXX_Size() int { + return m.Size() +} +func (m *CheckLeaderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CheckLeaderResponse.DiscardUnknown(m) } -func (m *CheckLeaderResponse) Reset() { *m = CheckLeaderResponse{} } -func (m *CheckLeaderResponse) String() string { return proto.CompactTextString(m) } -func (*CheckLeaderResponse) ProtoMessage() {} -func (*CheckLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{107} } +var xxx_messageInfo_CheckLeaderResponse proto.InternalMessageInfo func (m *CheckLeaderResponse) GetRegions() []uint64 { if m != nil { @@ -5624,13 +8872,44 @@ func (m *CheckLeaderResponse) GetTs() uint64 { type StoreSafeTSRequest struct { // Get the minimal `safe_ts` from regions that overlap with the key range [`start_key`, `end_key`) // An empty key range means all regions in the store - KeyRange *KeyRange `protobuf:"bytes,1,opt,name=key_range,json=keyRange" json:"key_range,omitempty"` + KeyRange *KeyRange `protobuf:"bytes,1,opt,name=key_range,json=keyRange,proto3" json:"key_range,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreSafeTSRequest) Reset() { *m = StoreSafeTSRequest{} } +func (m *StoreSafeTSRequest) String() string { return proto.CompactTextString(m) } +func (*StoreSafeTSRequest) ProtoMessage() {} +func (*StoreSafeTSRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{108} +} +func (m *StoreSafeTSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreSafeTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreSafeTSRequest.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 *StoreSafeTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreSafeTSRequest.Merge(m, src) +} +func (m *StoreSafeTSRequest) XXX_Size() int { + return m.Size() +} +func (m *StoreSafeTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StoreSafeTSRequest.DiscardUnknown(m) } -func (m *StoreSafeTSRequest) Reset() { *m = StoreSafeTSRequest{} } -func (m *StoreSafeTSRequest) String() string { return proto.CompactTextString(m) } -func (*StoreSafeTSRequest) ProtoMessage() {} -func (*StoreSafeTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{108} } +var xxx_messageInfo_StoreSafeTSRequest proto.InternalMessageInfo func (m *StoreSafeTSRequest) GetKeyRange() *KeyRange { if m != nil { @@ -5640,13 +8919,44 @@ func (m *StoreSafeTSRequest) GetKeyRange() *KeyRange { } type StoreSafeTSResponse struct { - SafeTs uint64 `protobuf:"varint,1,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + SafeTs uint64 `protobuf:"varint,1,opt,name=safe_ts,json=safeTs,proto3" json:"safe_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreSafeTSResponse) Reset() { *m = StoreSafeTSResponse{} } +func (m *StoreSafeTSResponse) String() string { return proto.CompactTextString(m) } +func (*StoreSafeTSResponse) ProtoMessage() {} +func (*StoreSafeTSResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{109} +} +func (m *StoreSafeTSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreSafeTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreSafeTSResponse.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 *StoreSafeTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreSafeTSResponse.Merge(m, src) +} +func (m *StoreSafeTSResponse) XXX_Size() int { + return m.Size() +} +func (m *StoreSafeTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StoreSafeTSResponse.DiscardUnknown(m) } -func (m *StoreSafeTSResponse) Reset() { *m = StoreSafeTSResponse{} } -func (m *StoreSafeTSResponse) String() string { return proto.CompactTextString(m) } -func (*StoreSafeTSResponse) ProtoMessage() {} -func (*StoreSafeTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{109} } +var xxx_messageInfo_StoreSafeTSResponse proto.InternalMessageInfo func (m *StoreSafeTSResponse) GetSafeTs() uint64 { if m != nil { @@ -5656,15 +8966,46 @@ func (m *StoreSafeTSResponse) GetSafeTs() uint64 { } type RawGetKeyTTLRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawGetKeyTTLRequest) Reset() { *m = RawGetKeyTTLRequest{} } +func (m *RawGetKeyTTLRequest) String() string { return proto.CompactTextString(m) } +func (*RawGetKeyTTLRequest) ProtoMessage() {} +func (*RawGetKeyTTLRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{110} +} +func (m *RawGetKeyTTLRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawGetKeyTTLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawGetKeyTTLRequest.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 *RawGetKeyTTLRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetKeyTTLRequest.Merge(m, src) +} +func (m *RawGetKeyTTLRequest) XXX_Size() int { + return m.Size() +} +func (m *RawGetKeyTTLRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawGetKeyTTLRequest.DiscardUnknown(m) } -func (m *RawGetKeyTTLRequest) Reset() { *m = RawGetKeyTTLRequest{} } -func (m *RawGetKeyTTLRequest) String() string { return proto.CompactTextString(m) } -func (*RawGetKeyTTLRequest) ProtoMessage() {} -func (*RawGetKeyTTLRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{110} } +var xxx_messageInfo_RawGetKeyTTLRequest proto.InternalMessageInfo func (m *RawGetKeyTTLRequest) GetContext() *Context { if m != nil { @@ -5688,16 +9029,47 @@ func (m *RawGetKeyTTLRequest) GetCf() string { } type RawGetKeyTTLResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Ttl uint64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` - NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Ttl uint64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + NotFound bool `protobuf:"varint,4,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawGetKeyTTLResponse) Reset() { *m = RawGetKeyTTLResponse{} } +func (m *RawGetKeyTTLResponse) String() string { return proto.CompactTextString(m) } +func (*RawGetKeyTTLResponse) ProtoMessage() {} +func (*RawGetKeyTTLResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{111} +} +func (m *RawGetKeyTTLResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawGetKeyTTLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawGetKeyTTLResponse.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 *RawGetKeyTTLResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetKeyTTLResponse.Merge(m, src) +} +func (m *RawGetKeyTTLResponse) XXX_Size() int { + return m.Size() +} +func (m *RawGetKeyTTLResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawGetKeyTTLResponse.DiscardUnknown(m) } -func (m *RawGetKeyTTLResponse) Reset() { *m = RawGetKeyTTLResponse{} } -func (m *RawGetKeyTTLResponse) String() string { return proto.CompactTextString(m) } -func (*RawGetKeyTTLResponse) ProtoMessage() {} -func (*RawGetKeyTTLResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{111} } +var xxx_messageInfo_RawGetKeyTTLResponse proto.InternalMessageInfo func (m *RawGetKeyTTLResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5728,19 +9100,50 @@ func (m *RawGetKeyTTLResponse) GetNotFound() bool { } type RawCASRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` - PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` - Cf string `protobuf:"bytes,6,opt,name=cf,proto3" json:"cf,omitempty"` - Ttl uint64 `protobuf:"varint,7,opt,name=ttl,proto3" json:"ttl,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` + PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` + Cf string `protobuf:"bytes,6,opt,name=cf,proto3" json:"cf,omitempty"` + Ttl uint64 `protobuf:"varint,7,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawCASRequest) Reset() { *m = RawCASRequest{} } +func (m *RawCASRequest) String() string { return proto.CompactTextString(m) } +func (*RawCASRequest) ProtoMessage() {} +func (*RawCASRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{112} +} +func (m *RawCASRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawCASRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawCASRequest.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 *RawCASRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCASRequest.Merge(m, src) +} +func (m *RawCASRequest) XXX_Size() int { + return m.Size() +} +func (m *RawCASRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawCASRequest.DiscardUnknown(m) } -func (m *RawCASRequest) Reset() { *m = RawCASRequest{} } -func (m *RawCASRequest) String() string { return proto.CompactTextString(m) } -func (*RawCASRequest) ProtoMessage() {} -func (*RawCASRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{112} } +var xxx_messageInfo_RawCASRequest proto.InternalMessageInfo func (m *RawCASRequest) GetContext() *Context { if m != nil { @@ -5792,18 +9195,49 @@ func (m *RawCASRequest) GetTtl() uint64 { } type RawCASResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Succeed bool `protobuf:"varint,3,opt,name=succeed,proto3" json:"succeed,omitempty"` // The previous value regardless of whether the comparison is succeed. - PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` - PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` + PreviousNotExist bool `protobuf:"varint,4,opt,name=previous_not_exist,json=previousNotExist,proto3" json:"previous_not_exist,omitempty"` + PreviousValue []byte `protobuf:"bytes,5,opt,name=previous_value,json=previousValue,proto3" json:"previous_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawCASResponse) Reset() { *m = RawCASResponse{} } +func (m *RawCASResponse) String() string { return proto.CompactTextString(m) } +func (*RawCASResponse) ProtoMessage() {} +func (*RawCASResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{113} +} +func (m *RawCASResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawCASResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawCASResponse.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 *RawCASResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCASResponse.Merge(m, src) +} +func (m *RawCASResponse) XXX_Size() int { + return m.Size() +} +func (m *RawCASResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawCASResponse.DiscardUnknown(m) } -func (m *RawCASResponse) Reset() { *m = RawCASResponse{} } -func (m *RawCASResponse) String() string { return proto.CompactTextString(m) } -func (*RawCASResponse) ProtoMessage() {} -func (*RawCASResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{113} } +var xxx_messageInfo_RawCASResponse proto.InternalMessageInfo func (m *RawCASResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5841,13 +9275,44 @@ func (m *RawCASResponse) GetPreviousValue() []byte { } type GetLockWaitInfoRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetLockWaitInfoRequest) Reset() { *m = GetLockWaitInfoRequest{} } +func (m *GetLockWaitInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetLockWaitInfoRequest) ProtoMessage() {} +func (*GetLockWaitInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{114} +} +func (m *GetLockWaitInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLockWaitInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLockWaitInfoRequest.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 *GetLockWaitInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitInfoRequest.Merge(m, src) +} +func (m *GetLockWaitInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *GetLockWaitInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLockWaitInfoRequest.DiscardUnknown(m) } -func (m *GetLockWaitInfoRequest) Reset() { *m = GetLockWaitInfoRequest{} } -func (m *GetLockWaitInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetLockWaitInfoRequest) ProtoMessage() {} -func (*GetLockWaitInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{114} } +var xxx_messageInfo_GetLockWaitInfoRequest proto.InternalMessageInfo func (m *GetLockWaitInfoRequest) GetContext() *Context { if m != nil { @@ -5857,17 +9322,46 @@ func (m *GetLockWaitInfoRequest) GetContext() *Context { } type GetLockWaitInfoResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetLockWaitInfoResponse) Reset() { *m = GetLockWaitInfoResponse{} } func (m *GetLockWaitInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetLockWaitInfoResponse) ProtoMessage() {} func (*GetLockWaitInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{115} + return fileDescriptor_1afe832be69693c7, []int{115} +} +func (m *GetLockWaitInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLockWaitInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLockWaitInfoResponse.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 *GetLockWaitInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitInfoResponse.Merge(m, src) +} +func (m *GetLockWaitInfoResponse) XXX_Size() int { + return m.Size() } +func (m *GetLockWaitInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetLockWaitInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLockWaitInfoResponse proto.InternalMessageInfo func (m *GetLockWaitInfoResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5891,16 +9385,45 @@ func (m *GetLockWaitInfoResponse) GetEntries() []*deadlock.WaitForEntry { } type GetLockWaitHistoryRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetLockWaitHistoryRequest) Reset() { *m = GetLockWaitHistoryRequest{} } func (m *GetLockWaitHistoryRequest) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryRequest) ProtoMessage() {} func (*GetLockWaitHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{116} + return fileDescriptor_1afe832be69693c7, []int{116} +} +func (m *GetLockWaitHistoryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLockWaitHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLockWaitHistoryRequest.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 *GetLockWaitHistoryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitHistoryRequest.Merge(m, src) +} +func (m *GetLockWaitHistoryRequest) XXX_Size() int { + return m.Size() +} +func (m *GetLockWaitHistoryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLockWaitHistoryRequest.DiscardUnknown(m) } +var xxx_messageInfo_GetLockWaitHistoryRequest proto.InternalMessageInfo + func (m *GetLockWaitHistoryRequest) GetContext() *Context { if m != nil { return m.Context @@ -5909,17 +9432,46 @@ func (m *GetLockWaitHistoryRequest) GetContext() *Context { } type GetLockWaitHistoryResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetLockWaitHistoryResponse) Reset() { *m = GetLockWaitHistoryResponse{} } func (m *GetLockWaitHistoryResponse) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryResponse) ProtoMessage() {} func (*GetLockWaitHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{117} + return fileDescriptor_1afe832be69693c7, []int{117} +} +func (m *GetLockWaitHistoryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLockWaitHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLockWaitHistoryResponse.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 *GetLockWaitHistoryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitHistoryResponse.Merge(m, src) +} +func (m *GetLockWaitHistoryResponse) XXX_Size() int { + return m.Size() +} +func (m *GetLockWaitHistoryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetLockWaitHistoryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLockWaitHistoryResponse proto.InternalMessageInfo func (m *GetLockWaitHistoryResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -5943,18 +9495,49 @@ func (m *GetLockWaitHistoryResponse) GetEntries() []*deadlock.WaitForEntry { } type RawCoprocessorRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` CoprName string `protobuf:"bytes,2,opt,name=copr_name,json=coprName,proto3" json:"copr_name,omitempty"` // Coprorcessor version constraint following SEMVER definition. - CoprVersionReq string `protobuf:"bytes,3,opt,name=copr_version_req,json=coprVersionReq,proto3" json:"copr_version_req,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` - Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` + CoprVersionReq string `protobuf:"bytes,3,opt,name=copr_version_req,json=coprVersionReq,proto3" json:"copr_version_req,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawCoprocessorRequest) Reset() { *m = RawCoprocessorRequest{} } +func (m *RawCoprocessorRequest) String() string { return proto.CompactTextString(m) } +func (*RawCoprocessorRequest) ProtoMessage() {} +func (*RawCoprocessorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{118} +} +func (m *RawCoprocessorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawCoprocessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawCoprocessorRequest.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 *RawCoprocessorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCoprocessorRequest.Merge(m, src) +} +func (m *RawCoprocessorRequest) XXX_Size() int { + return m.Size() +} +func (m *RawCoprocessorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawCoprocessorRequest.DiscardUnknown(m) } -func (m *RawCoprocessorRequest) Reset() { *m = RawCoprocessorRequest{} } -func (m *RawCoprocessorRequest) String() string { return proto.CompactTextString(m) } -func (*RawCoprocessorRequest) ProtoMessage() {} -func (*RawCoprocessorRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{118} } +var xxx_messageInfo_RawCoprocessorRequest proto.InternalMessageInfo func (m *RawCoprocessorRequest) GetContext() *Context { if m != nil { @@ -5992,17 +9575,48 @@ func (m *RawCoprocessorRequest) GetData() []byte { } type RawCoprocessorResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` // Error message for cases like if no coprocessor with a matching name is found // or on a version mismatch between plugin_api and the coprocessor. - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawCoprocessorResponse) Reset() { *m = RawCoprocessorResponse{} } +func (m *RawCoprocessorResponse) String() string { return proto.CompactTextString(m) } +func (*RawCoprocessorResponse) ProtoMessage() {} +func (*RawCoprocessorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{119} +} +func (m *RawCoprocessorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawCoprocessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawCoprocessorResponse.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 *RawCoprocessorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCoprocessorResponse.Merge(m, src) +} +func (m *RawCoprocessorResponse) XXX_Size() int { + return m.Size() +} +func (m *RawCoprocessorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawCoprocessorResponse.DiscardUnknown(m) } -func (m *RawCoprocessorResponse) Reset() { *m = RawCoprocessorResponse{} } -func (m *RawCoprocessorResponse) String() string { return proto.CompactTextString(m) } -func (*RawCoprocessorResponse) ProtoMessage() {} -func (*RawCoprocessorResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{119} } +var xxx_messageInfo_RawCoprocessorResponse proto.InternalMessageInfo func (m *RawCoprocessorResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -6026,15 +9640,46 @@ func (m *RawCoprocessorResponse) GetData() []byte { } type RawChecksumRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - Algorithm ChecksumAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=kvrpcpb.ChecksumAlgorithm" json:"algorithm,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Algorithm ChecksumAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=kvrpcpb.ChecksumAlgorithm" json:"algorithm,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawChecksumRequest) Reset() { *m = RawChecksumRequest{} } +func (m *RawChecksumRequest) String() string { return proto.CompactTextString(m) } +func (*RawChecksumRequest) ProtoMessage() {} +func (*RawChecksumRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{120} +} +func (m *RawChecksumRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawChecksumRequest.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 *RawChecksumRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawChecksumRequest.Merge(m, src) +} +func (m *RawChecksumRequest) XXX_Size() int { + return m.Size() +} +func (m *RawChecksumRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RawChecksumRequest.DiscardUnknown(m) } -func (m *RawChecksumRequest) Reset() { *m = RawChecksumRequest{} } -func (m *RawChecksumRequest) String() string { return proto.CompactTextString(m) } -func (*RawChecksumRequest) ProtoMessage() {} -func (*RawChecksumRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{120} } +var xxx_messageInfo_RawChecksumRequest proto.InternalMessageInfo func (m *RawChecksumRequest) GetContext() *Context { if m != nil { @@ -6058,17 +9703,48 @@ func (m *RawChecksumRequest) GetRanges() []*KeyRange { } type RawChecksumResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Checksum uint64 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` - TotalKvs uint64 `protobuf:"varint,4,opt,name=total_kvs,json=totalKvs,proto3" json:"total_kvs,omitempty"` - TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Checksum uint64 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` + TotalKvs uint64 `protobuf:"varint,4,opt,name=total_kvs,json=totalKvs,proto3" json:"total_kvs,omitempty"` + TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawChecksumResponse) Reset() { *m = RawChecksumResponse{} } +func (m *RawChecksumResponse) String() string { return proto.CompactTextString(m) } +func (*RawChecksumResponse) ProtoMessage() {} +func (*RawChecksumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{121} +} +func (m *RawChecksumResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawChecksumResponse.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 *RawChecksumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawChecksumResponse.Merge(m, src) +} +func (m *RawChecksumResponse) XXX_Size() int { + return m.Size() +} +func (m *RawChecksumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RawChecksumResponse.DiscardUnknown(m) } -func (m *RawChecksumResponse) Reset() { *m = RawChecksumResponse{} } -func (m *RawChecksumResponse) String() string { return proto.CompactTextString(m) } -func (*RawChecksumResponse) ProtoMessage() {} -func (*RawChecksumResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{121} } +var xxx_messageInfo_RawChecksumResponse proto.InternalMessageInfo func (m *RawChecksumResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -6107,17 +9783,49 @@ func (m *RawChecksumResponse) GetTotalBytes() uint64 { type CompactError struct { // Types that are valid to be assigned to Error: + // // *CompactError_ErrInvalidStartKey // *CompactError_ErrPhysicalTableNotExist // *CompactError_ErrCompactInProgress // *CompactError_ErrTooManyPendingTasks - Error isCompactError_Error `protobuf_oneof:"error"` + Error isCompactError_Error `protobuf_oneof:"error"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactError) Reset() { *m = CompactError{} } +func (m *CompactError) String() string { return proto.CompactTextString(m) } +func (*CompactError) ProtoMessage() {} +func (*CompactError) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{122} +} +func (m *CompactError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactError.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 *CompactError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactError.Merge(m, src) +} +func (m *CompactError) XXX_Size() int { + return m.Size() +} +func (m *CompactError) XXX_DiscardUnknown() { + xxx_messageInfo_CompactError.DiscardUnknown(m) } -func (m *CompactError) Reset() { *m = CompactError{} } -func (m *CompactError) String() string { return proto.CompactTextString(m) } -func (*CompactError) ProtoMessage() {} -func (*CompactError) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{122} } +var xxx_messageInfo_CompactError proto.InternalMessageInfo type isCompactError_Error interface { isCompactError_Error() @@ -6126,16 +9834,16 @@ type isCompactError_Error interface { } type CompactError_ErrInvalidStartKey struct { - ErrInvalidStartKey *CompactErrorInvalidStartKey `protobuf:"bytes,1,opt,name=err_invalid_start_key,json=errInvalidStartKey,oneof"` + ErrInvalidStartKey *CompactErrorInvalidStartKey `protobuf:"bytes,1,opt,name=err_invalid_start_key,json=errInvalidStartKey,proto3,oneof" json:"err_invalid_start_key,omitempty"` } type CompactError_ErrPhysicalTableNotExist struct { - ErrPhysicalTableNotExist *CompactErrorPhysicalTableNotExist `protobuf:"bytes,2,opt,name=err_physical_table_not_exist,json=errPhysicalTableNotExist,oneof"` + ErrPhysicalTableNotExist *CompactErrorPhysicalTableNotExist `protobuf:"bytes,2,opt,name=err_physical_table_not_exist,json=errPhysicalTableNotExist,proto3,oneof" json:"err_physical_table_not_exist,omitempty"` } type CompactError_ErrCompactInProgress struct { - ErrCompactInProgress *CompactErrorCompactInProgress `protobuf:"bytes,3,opt,name=err_compact_in_progress,json=errCompactInProgress,oneof"` + ErrCompactInProgress *CompactErrorCompactInProgress `protobuf:"bytes,3,opt,name=err_compact_in_progress,json=errCompactInProgress,proto3,oneof" json:"err_compact_in_progress,omitempty"` } type CompactError_ErrTooManyPendingTasks struct { - ErrTooManyPendingTasks *CompactErrorTooManyPendingTasks `protobuf:"bytes,4,opt,name=err_too_many_pending_tasks,json=errTooManyPendingTasks,oneof"` + ErrTooManyPendingTasks *CompactErrorTooManyPendingTasks `protobuf:"bytes,4,opt,name=err_too_many_pending_tasks,json=errTooManyPendingTasks,proto3,oneof" json:"err_too_many_pending_tasks,omitempty"` } func (*CompactError_ErrInvalidStartKey) isCompactError_Error() {} @@ -6178,9 +9886,9 @@ func (m *CompactError) GetErrTooManyPendingTasks() *CompactErrorTooManyPendingTa return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*CompactError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _CompactError_OneofMarshaler, _CompactError_OneofUnmarshaler, _CompactError_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CompactError) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*CompactError_ErrInvalidStartKey)(nil), (*CompactError_ErrPhysicalTableNotExist)(nil), (*CompactError_ErrCompactInProgress)(nil), @@ -6188,147 +9896,161 @@ func (*CompactError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) } } -func _CompactError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*CompactError) - // error - switch x := m.Error.(type) { - case *CompactError_ErrInvalidStartKey: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrInvalidStartKey); err != nil { - return err - } - case *CompactError_ErrPhysicalTableNotExist: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrPhysicalTableNotExist); err != nil { - return err - } - case *CompactError_ErrCompactInProgress: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrCompactInProgress); err != nil { - return err - } - case *CompactError_ErrTooManyPendingTasks: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ErrTooManyPendingTasks); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("CompactError.Error has unexpected type %T", x) - } - return nil -} - -func _CompactError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*CompactError) - switch tag { - case 1: // error.err_invalid_start_key - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CompactErrorInvalidStartKey) - err := b.DecodeMessage(msg) - m.Error = &CompactError_ErrInvalidStartKey{msg} - return true, err - case 2: // error.err_physical_table_not_exist - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CompactErrorPhysicalTableNotExist) - err := b.DecodeMessage(msg) - m.Error = &CompactError_ErrPhysicalTableNotExist{msg} - return true, err - case 3: // error.err_compact_in_progress - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CompactErrorCompactInProgress) - err := b.DecodeMessage(msg) - m.Error = &CompactError_ErrCompactInProgress{msg} - return true, err - case 4: // error.err_too_many_pending_tasks - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CompactErrorTooManyPendingTasks) - err := b.DecodeMessage(msg) - m.Error = &CompactError_ErrTooManyPendingTasks{msg} - return true, err - default: - return false, nil - } -} - -func _CompactError_OneofSizer(msg proto.Message) (n int) { - m := msg.(*CompactError) - // error - switch x := m.Error.(type) { - case *CompactError_ErrInvalidStartKey: - s := proto.Size(x.ErrInvalidStartKey) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *CompactError_ErrPhysicalTableNotExist: - s := proto.Size(x.ErrPhysicalTableNotExist) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *CompactError_ErrCompactInProgress: - s := proto.Size(x.ErrCompactInProgress) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *CompactError_ErrTooManyPendingTasks: - s := proto.Size(x.ErrTooManyPendingTasks) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type CompactErrorInvalidStartKey struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactErrorInvalidStartKey) Reset() { *m = CompactErrorInvalidStartKey{} } func (m *CompactErrorInvalidStartKey) String() string { return proto.CompactTextString(m) } func (*CompactErrorInvalidStartKey) ProtoMessage() {} func (*CompactErrorInvalidStartKey) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{123} + return fileDescriptor_1afe832be69693c7, []int{123} +} +func (m *CompactErrorInvalidStartKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactErrorInvalidStartKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactErrorInvalidStartKey.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 *CompactErrorInvalidStartKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorInvalidStartKey.Merge(m, src) +} +func (m *CompactErrorInvalidStartKey) XXX_Size() int { + return m.Size() +} +func (m *CompactErrorInvalidStartKey) XXX_DiscardUnknown() { + xxx_messageInfo_CompactErrorInvalidStartKey.DiscardUnknown(m) } +var xxx_messageInfo_CompactErrorInvalidStartKey proto.InternalMessageInfo + type CompactErrorPhysicalTableNotExist struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactErrorPhysicalTableNotExist) Reset() { *m = CompactErrorPhysicalTableNotExist{} } func (m *CompactErrorPhysicalTableNotExist) String() string { return proto.CompactTextString(m) } func (*CompactErrorPhysicalTableNotExist) ProtoMessage() {} func (*CompactErrorPhysicalTableNotExist) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{124} + return fileDescriptor_1afe832be69693c7, []int{124} +} +func (m *CompactErrorPhysicalTableNotExist) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactErrorPhysicalTableNotExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactErrorPhysicalTableNotExist.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 *CompactErrorPhysicalTableNotExist) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorPhysicalTableNotExist.Merge(m, src) +} +func (m *CompactErrorPhysicalTableNotExist) XXX_Size() int { + return m.Size() } +func (m *CompactErrorPhysicalTableNotExist) XXX_DiscardUnknown() { + xxx_messageInfo_CompactErrorPhysicalTableNotExist.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactErrorPhysicalTableNotExist proto.InternalMessageInfo type CompactErrorCompactInProgress struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactErrorCompactInProgress) Reset() { *m = CompactErrorCompactInProgress{} } func (m *CompactErrorCompactInProgress) String() string { return proto.CompactTextString(m) } func (*CompactErrorCompactInProgress) ProtoMessage() {} func (*CompactErrorCompactInProgress) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{125} + return fileDescriptor_1afe832be69693c7, []int{125} +} +func (m *CompactErrorCompactInProgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactErrorCompactInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactErrorCompactInProgress.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 *CompactErrorCompactInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorCompactInProgress.Merge(m, src) +} +func (m *CompactErrorCompactInProgress) XXX_Size() int { + return m.Size() +} +func (m *CompactErrorCompactInProgress) XXX_DiscardUnknown() { + xxx_messageInfo_CompactErrorCompactInProgress.DiscardUnknown(m) } +var xxx_messageInfo_CompactErrorCompactInProgress proto.InternalMessageInfo + type CompactErrorTooManyPendingTasks struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CompactErrorTooManyPendingTasks) Reset() { *m = CompactErrorTooManyPendingTasks{} } func (m *CompactErrorTooManyPendingTasks) String() string { return proto.CompactTextString(m) } func (*CompactErrorTooManyPendingTasks) ProtoMessage() {} func (*CompactErrorTooManyPendingTasks) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{126} + return fileDescriptor_1afe832be69693c7, []int{126} +} +func (m *CompactErrorTooManyPendingTasks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactErrorTooManyPendingTasks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactErrorTooManyPendingTasks.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 *CompactErrorTooManyPendingTasks) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorTooManyPendingTasks.Merge(m, src) +} +func (m *CompactErrorTooManyPendingTasks) XXX_Size() int { + return m.Size() +} +func (m *CompactErrorTooManyPendingTasks) XXX_DiscardUnknown() { + xxx_messageInfo_CompactErrorTooManyPendingTasks.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactErrorTooManyPendingTasks proto.InternalMessageInfo type CompactRequest struct { // If specified, the compaction will start from this start key. @@ -6351,13 +10073,44 @@ type CompactRequest struct { // API version of the request ApiVersion APIVersion `protobuf:"varint,7,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` // Keyspace of the table located in. - KeyspaceId uint32 `protobuf:"varint,8,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + KeyspaceId uint32 `protobuf:"varint,8,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactRequest) Reset() { *m = CompactRequest{} } +func (m *CompactRequest) String() string { return proto.CompactTextString(m) } +func (*CompactRequest) ProtoMessage() {} +func (*CompactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{127} +} +func (m *CompactRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactRequest.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 *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(m, src) +} +func (m *CompactRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactRequest.DiscardUnknown(m) } -func (m *CompactRequest) Reset() { *m = CompactRequest{} } -func (m *CompactRequest) String() string { return proto.CompactTextString(m) } -func (*CompactRequest) ProtoMessage() {} -func (*CompactRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{127} } +var xxx_messageInfo_CompactRequest proto.InternalMessageInfo func (m *CompactRequest) GetStartKey() []byte { if m != nil { @@ -6395,18 +10148,49 @@ func (m *CompactRequest) GetKeyspaceId() uint32 { } type CompactResponse struct { - Error *CompactError `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *CompactError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // The compaction is done incrementally. If there are more data to compact, this field // will be set. The client can request to compact more data according to the `compacted_end_key`. - HasRemaining bool `protobuf:"varint,2,opt,name=has_remaining,json=hasRemaining,proto3" json:"has_remaining,omitempty"` - CompactedStartKey []byte `protobuf:"bytes,3,opt,name=compacted_start_key,json=compactedStartKey,proto3" json:"compacted_start_key,omitempty"` - CompactedEndKey []byte `protobuf:"bytes,4,opt,name=compacted_end_key,json=compactedEndKey,proto3" json:"compacted_end_key,omitempty"` + HasRemaining bool `protobuf:"varint,2,opt,name=has_remaining,json=hasRemaining,proto3" json:"has_remaining,omitempty"` + CompactedStartKey []byte `protobuf:"bytes,3,opt,name=compacted_start_key,json=compactedStartKey,proto3" json:"compacted_start_key,omitempty"` + CompactedEndKey []byte `protobuf:"bytes,4,opt,name=compacted_end_key,json=compactedEndKey,proto3" json:"compacted_end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactResponse) Reset() { *m = CompactResponse{} } +func (m *CompactResponse) String() string { return proto.CompactTextString(m) } +func (*CompactResponse) ProtoMessage() {} +func (*CompactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{128} +} +func (m *CompactResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactResponse.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 *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(m, src) +} +func (m *CompactResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactResponse.DiscardUnknown(m) } -func (m *CompactResponse) Reset() { *m = CompactResponse{} } -func (m *CompactResponse) String() string { return proto.CompactTextString(m) } -func (*CompactResponse) ProtoMessage() {} -func (*CompactResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{128} } +var xxx_messageInfo_CompactResponse proto.InternalMessageInfo func (m *CompactResponse) GetError() *CompactError { if m != nil { @@ -6437,16 +10221,45 @@ func (m *CompactResponse) GetCompactedEndKey() []byte { } type TiFlashSystemTableRequest struct { - Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` + Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TiFlashSystemTableRequest) Reset() { *m = TiFlashSystemTableRequest{} } func (m *TiFlashSystemTableRequest) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableRequest) ProtoMessage() {} func (*TiFlashSystemTableRequest) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{129} + return fileDescriptor_1afe832be69693c7, []int{129} +} +func (m *TiFlashSystemTableRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashSystemTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashSystemTableRequest.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 *TiFlashSystemTableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashSystemTableRequest.Merge(m, src) +} +func (m *TiFlashSystemTableRequest) XXX_Size() int { + return m.Size() +} +func (m *TiFlashSystemTableRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashSystemTableRequest.DiscardUnknown(m) } +var xxx_messageInfo_TiFlashSystemTableRequest proto.InternalMessageInfo + func (m *TiFlashSystemTableRequest) GetSql() string { if m != nil { return m.Sql @@ -6455,27 +10268,88 @@ func (m *TiFlashSystemTableRequest) GetSql() string { } type TiFlashSystemTableResponse struct { - Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + Data github_com_pingcap_kvproto_pkg_sharedbytes.SharedBytes `protobuf:"bytes,1,opt,name=data,proto3,customtype=github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes" json:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TiFlashSystemTableResponse) Reset() { *m = TiFlashSystemTableResponse{} } func (m *TiFlashSystemTableResponse) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableResponse) ProtoMessage() {} func (*TiFlashSystemTableResponse) Descriptor() ([]byte, []int) { - return fileDescriptorKvrpcpb, []int{130} + return fileDescriptor_1afe832be69693c7, []int{130} +} +func (m *TiFlashSystemTableResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TiFlashSystemTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TiFlashSystemTableResponse.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 *TiFlashSystemTableResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashSystemTableResponse.Merge(m, src) +} +func (m *TiFlashSystemTableResponse) XXX_Size() int { + return m.Size() } +func (m *TiFlashSystemTableResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TiFlashSystemTableResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TiFlashSystemTableResponse proto.InternalMessageInfo type TxnEntry struct { // Types that are valid to be assigned to Entry: + // // *TxnEntry_Prewrite_ // *TxnEntry_Commit_ - Entry isTxnEntry_Entry `protobuf_oneof:"entry"` + Entry isTxnEntry_Entry `protobuf_oneof:"entry"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnEntry) Reset() { *m = TxnEntry{} } +func (m *TxnEntry) String() string { return proto.CompactTextString(m) } +func (*TxnEntry) ProtoMessage() {} +func (*TxnEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{131} +} +func (m *TxnEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnEntry.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 *TxnEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnEntry.Merge(m, src) +} +func (m *TxnEntry) XXX_Size() int { + return m.Size() +} +func (m *TxnEntry) XXX_DiscardUnknown() { + xxx_messageInfo_TxnEntry.DiscardUnknown(m) } -func (m *TxnEntry) Reset() { *m = TxnEntry{} } -func (m *TxnEntry) String() string { return proto.CompactTextString(m) } -func (*TxnEntry) ProtoMessage() {} -func (*TxnEntry) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131} } +var xxx_messageInfo_TxnEntry proto.InternalMessageInfo type isTxnEntry_Entry interface { isTxnEntry_Entry() @@ -6484,10 +10358,10 @@ type isTxnEntry_Entry interface { } type TxnEntry_Prewrite_ struct { - Prewrite *TxnEntry_Prewrite `protobuf:"bytes,1,opt,name=prewrite,oneof"` + Prewrite *TxnEntry_Prewrite `protobuf:"bytes,1,opt,name=prewrite,proto3,oneof" json:"prewrite,omitempty"` } type TxnEntry_Commit_ struct { - Commit *TxnEntry_Commit `protobuf:"bytes,2,opt,name=commit,oneof"` + Commit *TxnEntry_Commit `protobuf:"bytes,2,opt,name=commit,proto3,oneof" json:"commit,omitempty"` } func (*TxnEntry_Prewrite_) isTxnEntry_Entry() {} @@ -6514,91 +10388,56 @@ func (m *TxnEntry) GetCommit() *TxnEntry_Commit { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TxnEntry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TxnEntry_OneofMarshaler, _TxnEntry_OneofUnmarshaler, _TxnEntry_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TxnEntry) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*TxnEntry_Prewrite_)(nil), (*TxnEntry_Commit_)(nil), } } -func _TxnEntry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TxnEntry) - // entry - switch x := m.Entry.(type) { - case *TxnEntry_Prewrite_: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Prewrite); err != nil { - return err - } - case *TxnEntry_Commit_: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Commit); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("TxnEntry.Entry has unexpected type %T", x) - } - return nil -} - -func _TxnEntry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TxnEntry) - switch tag { - case 1: // entry.prewrite - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TxnEntry_Prewrite) - err := b.DecodeMessage(msg) - m.Entry = &TxnEntry_Prewrite_{msg} - return true, err - case 2: // entry.commit - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TxnEntry_Commit) - err := b.DecodeMessage(msg) - m.Entry = &TxnEntry_Commit_{msg} - return true, err - default: - return false, nil - } -} - -func _TxnEntry_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TxnEntry) - // entry - switch x := m.Entry.(type) { - case *TxnEntry_Prewrite_: - s := proto.Size(x.Prewrite) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TxnEntry_Commit_: - s := proto.Size(x.Commit) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) +type TxnEntry_Prewrite struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + PrimaryKey []byte `protobuf:"bytes,4,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnEntry_Prewrite) Reset() { *m = TxnEntry_Prewrite{} } +func (m *TxnEntry_Prewrite) String() string { return proto.CompactTextString(m) } +func (*TxnEntry_Prewrite) ProtoMessage() {} +func (*TxnEntry_Prewrite) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{131, 0} +} +func (m *TxnEntry_Prewrite) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnEntry_Prewrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnEntry_Prewrite.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 n } - -type TxnEntry_Prewrite struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - PrimaryKey []byte `protobuf:"bytes,4,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` +func (m *TxnEntry_Prewrite) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnEntry_Prewrite.Merge(m, src) +} +func (m *TxnEntry_Prewrite) XXX_Size() int { + return m.Size() +} +func (m *TxnEntry_Prewrite) XXX_DiscardUnknown() { + xxx_messageInfo_TxnEntry_Prewrite.DiscardUnknown(m) } -func (m *TxnEntry_Prewrite) Reset() { *m = TxnEntry_Prewrite{} } -func (m *TxnEntry_Prewrite) String() string { return proto.CompactTextString(m) } -func (*TxnEntry_Prewrite) ProtoMessage() {} -func (*TxnEntry_Prewrite) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131, 0} } +var xxx_messageInfo_TxnEntry_Prewrite proto.InternalMessageInfo func (m *TxnEntry_Prewrite) GetKey() []byte { if m != nil { @@ -6629,16 +10468,47 @@ func (m *TxnEntry_Prewrite) GetPrimaryKey() []byte { } type TxnEntry_Commit struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxnEntry_Commit) Reset() { *m = TxnEntry_Commit{} } +func (m *TxnEntry_Commit) String() string { return proto.CompactTextString(m) } +func (*TxnEntry_Commit) ProtoMessage() {} +func (*TxnEntry_Commit) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{131, 1} +} +func (m *TxnEntry_Commit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxnEntry_Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxnEntry_Commit.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 *TxnEntry_Commit) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnEntry_Commit.Merge(m, src) +} +func (m *TxnEntry_Commit) XXX_Size() int { + return m.Size() +} +func (m *TxnEntry_Commit) XXX_DiscardUnknown() { + xxx_messageInfo_TxnEntry_Commit.DiscardUnknown(m) } -func (m *TxnEntry_Commit) Reset() { *m = TxnEntry_Commit{} } -func (m *TxnEntry_Commit) String() string { return proto.CompactTextString(m) } -func (*TxnEntry_Commit) ProtoMessage() {} -func (*TxnEntry_Commit) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131, 1} } +var xxx_messageInfo_TxnEntry_Commit proto.InternalMessageInfo func (m *TxnEntry_Commit) GetKey() []byte { if m != nil { @@ -6671,25 +10541,49 @@ func (m *TxnEntry_Commit) GetCommitTs() uint64 { // ScanTxnEntriesRequest is like ScanRequest, but retrieves transaction entries // instead of key-value pairs. type ScanTxnEntriesRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` - // start_key and end_key must be specified, however limit is optional. - // by default limit is 0, which means no limit. - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - KeyOnly bool `protobuf:"varint,5,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` - // entries will be filtered by commit_ts >= start_ts. - // uncommitted entries will be kept. - StartTs uint64 `protobuf:"varint,6,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - // only keeps specified versions at most for every key. - // default is 0, which means all versions will be kept. - VersionsPerKey uint32 `protobuf:"varint,7,opt,name=versions_per_key,json=versionsPerKey,proto3" json:"versions_per_key,omitempty"` -} - -func (m *ScanTxnEntriesRequest) Reset() { *m = ScanTxnEntriesRequest{} } -func (m *ScanTxnEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*ScanTxnEntriesRequest) ProtoMessage() {} -func (*ScanTxnEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{132} } + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + // `start_key` and `end_key` must be specified; `limit` is optional. + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + KeyOnly bool `protobuf:"varint,5,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanTxnEntriesRequest) Reset() { *m = ScanTxnEntriesRequest{} } +func (m *ScanTxnEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntriesRequest) ProtoMessage() {} +func (*ScanTxnEntriesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{132} +} +func (m *ScanTxnEntriesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanTxnEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanTxnEntriesRequest.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 *ScanTxnEntriesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanTxnEntriesRequest.Merge(m, src) +} +func (m *ScanTxnEntriesRequest) XXX_Size() int { + return m.Size() +} +func (m *ScanTxnEntriesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanTxnEntriesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ScanTxnEntriesRequest proto.InternalMessageInfo func (m *ScanTxnEntriesRequest) GetContext() *Context { if m != nil { @@ -6726,29 +10620,46 @@ func (m *ScanTxnEntriesRequest) GetKeyOnly() bool { return false } -func (m *ScanTxnEntriesRequest) GetStartTs() uint64 { - if m != nil { - return m.StartTs +type ScanTxnEntriesResponse struct { + RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` + Entries []*TxnEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanTxnEntriesResponse) Reset() { *m = ScanTxnEntriesResponse{} } +func (m *ScanTxnEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntriesResponse) ProtoMessage() {} +func (*ScanTxnEntriesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1afe832be69693c7, []int{133} +} +func (m *ScanTxnEntriesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanTxnEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanTxnEntriesResponse.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 0 } - -func (m *ScanTxnEntriesRequest) GetVersionsPerKey() uint32 { - if m != nil { - return m.VersionsPerKey - } - return 0 +func (m *ScanTxnEntriesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanTxnEntriesResponse.Merge(m, src) } - -type ScanTxnEntriesResponse struct { - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError" json:"region_error,omitempty"` - Entries []*TxnEntry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` +func (m *ScanTxnEntriesResponse) XXX_Size() int { + return m.Size() +} +func (m *ScanTxnEntriesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanTxnEntriesResponse.DiscardUnknown(m) } -func (m *ScanTxnEntriesResponse) Reset() { *m = ScanTxnEntriesResponse{} } -func (m *ScanTxnEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*ScanTxnEntriesResponse) ProtoMessage() {} -func (*ScanTxnEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{133} } +var xxx_messageInfo_ScanTxnEntriesResponse proto.InternalMessageInfo func (m *ScanTxnEntriesResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -6765,6 +10676,20 @@ func (m *ScanTxnEntriesResponse) GetEntries() []*TxnEntry { } func init() { + proto.RegisterEnum("kvrpcpb.PessimisticLockWakeUpMode", PessimisticLockWakeUpMode_name, PessimisticLockWakeUpMode_value) + proto.RegisterEnum("kvrpcpb.PessimisticLockKeyResultType", PessimisticLockKeyResultType_name, PessimisticLockKeyResultType_value) + proto.RegisterEnum("kvrpcpb.APIVersion", APIVersion_name, APIVersion_value) + proto.RegisterEnum("kvrpcpb.CommandPri", CommandPri_name, CommandPri_value) + proto.RegisterEnum("kvrpcpb.IsolationLevel", IsolationLevel_name, IsolationLevel_value) + proto.RegisterEnum("kvrpcpb.DiskFullOpt", DiskFullOpt_name, DiskFullOpt_value) + proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value) + proto.RegisterEnum("kvrpcpb.Assertion", Assertion_name, Assertion_value) + proto.RegisterEnum("kvrpcpb.AssertionLevel", AssertionLevel_name, AssertionLevel_value) + proto.RegisterEnum("kvrpcpb.Action", Action_name, Action_value) + proto.RegisterEnum("kvrpcpb.ExtraOp", ExtraOp_name, ExtraOp_value) + proto.RegisterEnum("kvrpcpb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) + proto.RegisterEnum("kvrpcpb.PrewriteRequest_PessimisticAction", PrewriteRequest_PessimisticAction_name, PrewriteRequest_PessimisticAction_value) + proto.RegisterEnum("kvrpcpb.WriteConflict_Reason", WriteConflict_Reason_name, WriteConflict_Reason_value) proto.RegisterType((*GetRequest)(nil), "kvrpcpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "kvrpcpb.GetResponse") proto.RegisterType((*ScanRequest)(nil), "kvrpcpb.ScanRequest") @@ -6902,25 +10827,458 @@ func init() { proto.RegisterType((*TxnEntry_Commit)(nil), "kvrpcpb.TxnEntry.Commit") proto.RegisterType((*ScanTxnEntriesRequest)(nil), "kvrpcpb.ScanTxnEntriesRequest") proto.RegisterType((*ScanTxnEntriesResponse)(nil), "kvrpcpb.ScanTxnEntriesResponse") - proto.RegisterEnum("kvrpcpb.PessimisticLockWakeUpMode", PessimisticLockWakeUpMode_name, PessimisticLockWakeUpMode_value) - proto.RegisterEnum("kvrpcpb.PessimisticLockKeyResultType", PessimisticLockKeyResultType_name, PessimisticLockKeyResultType_value) - proto.RegisterEnum("kvrpcpb.APIVersion", APIVersion_name, APIVersion_value) - proto.RegisterEnum("kvrpcpb.CommandPri", CommandPri_name, CommandPri_value) - proto.RegisterEnum("kvrpcpb.IsolationLevel", IsolationLevel_name, IsolationLevel_value) - proto.RegisterEnum("kvrpcpb.DiskFullOpt", DiskFullOpt_name, DiskFullOpt_value) - proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value) - proto.RegisterEnum("kvrpcpb.Assertion", Assertion_name, Assertion_value) - proto.RegisterEnum("kvrpcpb.AssertionLevel", AssertionLevel_name, AssertionLevel_value) - proto.RegisterEnum("kvrpcpb.Action", Action_name, Action_value) - proto.RegisterEnum("kvrpcpb.ExtraOp", ExtraOp_name, ExtraOp_value) - proto.RegisterEnum("kvrpcpb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) - proto.RegisterEnum("kvrpcpb.PrewriteRequest_PessimisticAction", PrewriteRequest_PessimisticAction_name, PrewriteRequest_PessimisticAction_value) - proto.RegisterEnum("kvrpcpb.WriteConflict_Reason", WriteConflict_Reason_name, WriteConflict_Reason_value) } + +func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } + +var fileDescriptor_1afe832be69693c7 = []byte{ + // 7030 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x5b, 0x6c, 0x24, 0xc9, + 0x71, 0x20, 0xab, 0xbb, 0xc9, 0x6e, 0x46, 0x93, 0xcd, 0x62, 0xf2, 0xd5, 0xe4, 0xcc, 0xec, 0xcc, + 0xd4, 0x6a, 0x76, 0x47, 0x5c, 0x2d, 0x47, 0x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0x50, 0x1d, 0xe6, 0x6f, 0x6e, 0x8d, 0xc0, 0x18, + 0x68, 0x09, 0xe6, 0x6e, 0x6e, 0x39, 0x1b, 0x5b, 0x0f, 0x1b, 0x4d, 0xfb, 0xfa, 0xe6, 0xc3, 0xa6, + 0x42, 0x14, 0xac, 0x7f, 0x34, 0xc0, 0x4c, 0x25, 0x71, 0x7a, 0x17, 0xf3, 0x49, 0x98, 0x10, 0xd8, + 0xe1, 0xf1, 0x9c, 0x38, 0x0f, 0x45, 0x30, 0x6c, 0x99, 0xc5, 0x61, 0xcb, 0x7c, 0x19, 0x4c, 0x69, + 0x49, 0x19, 0x32, 0x39, 0xa0, 0xa7, 0x43, 0x6e, 0x50, 0x09, 0xe1, 0x88, 0xc9, 0x65, 0xfc, 0x09, + 0x26, 0x17, 0xeb, 0xc7, 0x25, 0x58, 0xcc, 0x08, 0x99, 0xbb, 0x92, 0x7f, 0x2d, 0x1e, 0x6d, 0xc8, + 0x4b, 0x4c, 0x8c, 0xf4, 0x12, 0x1e, 0x75, 0x76, 0xbd, 0x98, 0x32, 0xc9, 0x47, 0x59, 0x0c, 0xdc, + 0xaa, 0x47, 0x6f, 0x73, 0x98, 0xe0, 0xe3, 0x32, 0x4c, 0x1d, 0x60, 0xae, 0x02, 0xaf, 0x4b, 0xc2, + 0x1e, 0x13, 0xce, 0xa8, 0x68, 0x57, 0x39, 0xac, 0x29, 0x41, 0xa8, 0x0e, 0xe3, 0xbb, 0x61, 0xec, + 0x12, 0xe1, 0x88, 0x2a, 0x37, 0x0a, 0x75, 0xc3, 0x96, 0x00, 0xde, 0x89, 0x98, 0xb0, 0x5e, 0x1c, + 0x38, 0x22, 0x52, 0x90, 0x6e, 0xa8, 0x62, 0x4f, 0x49, 0xe0, 0x23, 0x01, 0x1b, 0xb6, 0x88, 0xea, + 0x28, 0x8b, 0x98, 0x11, 0xfe, 0xd8, 0x21, 0x87, 0x1e, 0x65, 0x24, 0x70, 0x49, 0x7d, 0x4a, 0xba, + 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d, 0xe6, 0xcc, 0xf5, + 0x21, 0xee, 0x12, 0xf4, 0x19, 0x28, 0x47, 0x24, 0xc0, 0x3e, 0xeb, 0x2b, 0x87, 0x79, 0x61, 0x6d, + 0xe8, 0xd6, 0xdd, 0x46, 0x18, 0xd0, 0x5e, 0x37, 0x12, 0xb9, 0x22, 0x9a, 0x1a, 0xbd, 0x02, 0xb3, + 0xe1, 0x3e, 0x89, 0x63, 0xaf, 0x45, 0x9c, 0xc4, 0x13, 0xca, 0x13, 0x41, 0x53, 0x23, 0xb6, 0x15, + 0xdc, 0xfa, 0xef, 0x06, 0x40, 0xda, 0xc9, 0xdc, 0x6c, 0x64, 0xe4, 0x63, 0x91, 0x17, 0x61, 0xda, + 0x0d, 0x83, 0x80, 0x88, 0x44, 0x32, 0x2e, 0x75, 0x75, 0x14, 0x99, 0x02, 0x37, 0x5b, 0x7c, 0x28, + 0x73, 0x39, 0x72, 0xb4, 0x4a, 0x35, 0xe4, 0x9f, 0x9b, 0x2d, 0x71, 0x90, 0x49, 0x28, 0x17, 0xb9, + 0x83, 0x7d, 0x4f, 0xed, 0x25, 0x4d, 0xda, 0x53, 0x0a, 0x78, 0x9d, 0xc3, 0xac, 0xef, 0x15, 0xa1, + 0xa2, 0xa3, 0x88, 0xa1, 0xe4, 0x52, 0x63, 0x38, 0xb9, 0xf4, 0x32, 0x4c, 0x89, 0x6c, 0xb6, 0xfc, + 0x79, 0x45, 0x95, 0xc3, 0xb4, 0x7e, 0x87, 0x67, 0xb7, 0x6c, 0xb6, 0x5d, 0x29, 0x9f, 0x6d, 0x97, + 0xbd, 0x82, 0x34, 0x9e, 0xbf, 0x82, 0x74, 0x55, 0x25, 0xce, 0x89, 0xc4, 0x76, 0x39, 0xad, 0x54, + 0x13, 0x2b, 0xd9, 0x8a, 0x64, 0xca, 0x5c, 0xb3, 0x1f, 0x11, 0xf4, 0x0a, 0x20, 0x41, 0x99, 0xcf, + 0x29, 0x2e, 0x8b, 0xea, 0x66, 0x38, 0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+ 0x3a, 0xf4, 0x90, 0xa2, 0xb7, 0xe1, 0xbc, 0x2e, 0x40, 0x7b, 0x34, 0x22, 0x41, 0x2b, 0x5f, 0x50, + 0x76, 0xac, 0xae, 0x68, 0x1a, 0x92, 0x24, 0x53, 0x7e, 0xa4, 0x40, 0x92, 0xee, 0x0d, 0x08, 0xe4, + 0xe1, 0x71, 0x02, 0x19, 0x3f, 0x52, 0x20, 0x5f, 0x86, 0x0a, 0x5f, 0xda, 0x8a, 0xd0, 0x70, 0x1e, + 0xc6, 0x05, 0x85, 0xe8, 0x7f, 0xd1, 0x96, 0x1f, 0x3c, 0xce, 0x50, 0x1c, 0x12, 0x19, 0x9c, 0x16, + 0xed, 0x14, 0x90, 0x6c, 0x6b, 0xed, 0xf4, 0x19, 0x91, 0x3d, 0x2a, 0xca, 0x6d, 0xad, 0x1b, 0x1c, + 0x60, 0xfd, 0x67, 0x1e, 0x07, 0xbb, 0x38, 0x50, 0xe6, 0xf3, 0x32, 0x8c, 0x8b, 0x2b, 0xc2, 0x43, + 0x96, 0xa7, 0x79, 0xb0, 0x25, 0x1e, 0x5d, 0x81, 0x52, 0x72, 0xf5, 0x69, 0x24, 0x9d, 0x40, 0x73, + 0xb2, 0x16, 0x66, 0x78, 0x68, 0x4f, 0x29, 0x25, 0xe3, 0x68, 0xeb, 0xef, 0xc7, 0xe5, 0xe3, 0x07, + 0x89, 0xd6, 0x5f, 0x05, 0x94, 0x74, 0x41, 0x87, 0xb9, 0x5a, 0xed, 0xb3, 0x09, 0x46, 0x05, 0xbb, + 0x14, 0xbd, 0x05, 0x4b, 0xc3, 0xe4, 0xd9, 0x2b, 0xf5, 0x0b, 0x43, 0x65, 0x44, 0x74, 0x7b, 0x05, + 0x6a, 0x52, 0x21, 0x49, 0x13, 0x2a, 0xb9, 0x5c, 0x40, 0x93, 0xea, 0xbf, 0x04, 0xe7, 0x63, 0xbe, + 0x10, 0x6d, 0xed, 0x38, 0x2d, 0x71, 0x9c, 0xe7, 0xd0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29, 0x4b, 0x69, + 0xb9, 0x21, 0x69, 0xfb, 0x83, 0xd2, 0x93, 0x9b, 0xd5, 0x35, 0x3f, 0x2f, 0xb8, 0x17, 0x61, 0x5a, + 0x87, 0x3f, 0x92, 0x4c, 0x6d, 0x52, 0x2b, 0xa0, 0x24, 0xe2, 0x53, 0x64, 0x27, 0x0e, 0x19, 0x4b, + 0xda, 0x37, 0xd5, 0x14, 0xa9, 0xa0, 0x92, 0xec, 0xdf, 0xc0, 0xb9, 0xc1, 0x2b, 0xaa, 0x59, 0x06, + 0x66, 0x55, 0x24, 0x35, 0xf8, 0xc8, 0x82, 0x76, 0x83, 0x1f, 0xc0, 0x84, 0x4c, 0xcb, 0x48, 0xb3, + 0xc3, 0x8d, 0xc7, 0xe4, 0xc7, 0x9f, 0x30, 0x7b, 0xd1, 0xfa, 0xba, 0x01, 0x15, 0x7d, 0xb1, 0x0c, + 0x9d, 0x83, 0x42, 0x18, 0xa9, 0x07, 0x1a, 0x72, 0xfb, 0x58, 0x85, 0x30, 0x3a, 0x71, 0x3e, 0x64, + 0x6e, 0x05, 0x51, 0x3a, 0xc1, 0x0a, 0xc2, 0xfa, 0x79, 0x01, 0x26, 0x1f, 0xec, 0xbb, 0xae, 0x50, + 0x17, 0xba, 0x98, 0x7b, 0x27, 0x22, 0xc7, 0x86, 0x7c, 0x0d, 0xe2, 0x98, 0x93, 0xd1, 0x73, 0x43, + 0x6f, 0x22, 0x64, 0xee, 0x4b, 0x5e, 0x84, 0x2a, 0xed, 0x84, 0x31, 0x73, 0x32, 0xaf, 0x22, 0xd8, + 0x20, 0x40, 0xe2, 0x05, 0x0e, 0x1e, 0x27, 0x75, 0x30, 0x75, 0xc2, 0x7d, 0x12, 0xfb, 0x58, 0x84, + 0x20, 0xfa, 0x8e, 0xb2, 0xca, 0x59, 0x5c, 0xe8, 0x60, 0xba, 0x95, 0x60, 0xf5, 0xe5, 0x1f, 0x74, + 0x09, 0xa6, 0x78, 0xb9, 0xb6, 0xeb,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38, 0x82, 0x56, 0xa8, + 0x47, 0xbf, 0x1c, 0x62, 0xbd, 0x0e, 0x65, 0x75, 0x57, 0x48, 0x68, 0xec, 0x30, 0x50, 0x16, 0xc6, + 0xff, 0xa2, 0x45, 0x98, 0xa0, 0xe2, 0xde, 0xbc, 0xb2, 0x0b, 0xf5, 0x65, 0xbd, 0x23, 0x76, 0x8e, + 0x45, 0xc2, 0x42, 0x3e, 0x47, 0xc6, 0x38, 0x3a, 0x43, 0xac, 0x90, 0xcb, 0x10, 0xfb, 0x23, 0x03, + 0x40, 0xce, 0x28, 0xa2, 0xe9, 0x63, 0xcf, 0x9b, 0x97, 0xa0, 0x1c, 0x11, 0x12, 0xa7, 0x67, 0x14, + 0x13, 0xfc, 0x73, 0xb3, 0x95, 0x1c, 0x17, 0x17, 0x33, 0xc7, 0xc5, 0x83, 0x87, 0xd3, 0xa5, 0x13, + 0x1e, 0x4e, 0xbf, 0xa6, 0xd6, 0x93, 0xbc, 0x87, 0x44, 0x6d, 0x35, 0xa3, 0xcc, 0x79, 0x16, 0x6e, + 0x35, 0x38, 0x46, 0xae, 0x31, 0xc5, 0x5f, 0x6b, 0x13, 0x26, 0x13, 0xf8, 0xf0, 0xc9, 0xa8, 0x31, + 0xfa, 0x64, 0x54, 0x5c, 0x41, 0x62, 0xa9, 0x40, 0xf1, 0x2e, 0x69, 0x52, 0xab, 0x01, 0x48, 0xa6, + 0x74, 0x09, 0x91, 0xe8, 0xe3, 0xc7, 0x57, 0xd3, 0xa4, 0x15, 0x79, 0xa5, 0x38, 0x0d, 0x53, 0x53, + 0xd9, 0x25, 0x99, 0x2b, 0xa8, 0x06, 0x85, 0xa4, 0xe2, 0x02, 0xa3, 0xd6, 0x97, 0x60, 0x2e, 0x57, + 0xa9, 0xca, 0x34, 0xa8, 0xe7, 0x6b, 0x2d, 0x1d, 0x5d, 0xc1, 0x4d, 0x40, 0x0d, 0x1e, 0x13, 0x36, + 0x38, 0x93, 0x0d, 0xcd, 0xd5, 0x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0x05, 0x12, 0xc7, 0x8e, 0x17, 0xec, 0x63, 0xdf, 0x6b, 0x39, 0xf9, 0x88, 0xab, + 0xba, 0xfe, 0x89, 0xec, 0x19, 0x71, 0x52, 0x6a, 0x53, 0x52, 0x37, 0x54, 0x34, 0x76, 0x77, 0xcc, + 0x46, 0x24, 0x1e, 0x84, 0x22, 0x1f, 0xce, 0xf3, 0xaa, 0x23, 0x95, 0xb5, 0xec, 0xa8, 0x35, 0x79, + 0xe2, 0x30, 0xe5, 0x46, 0xd7, 0xea, 0xc8, 0x16, 0x74, 0xaa, 0x73, 0x53, 0xac, 0xd3, 0x95, 0x2b, + 0xbd, 0x3b, 0x66, 0xd7, 0x49, 0x3c, 0x1a, 0x87, 0x1c, 0x58, 0xe2, 0xad, 0xb9, 0xb2, 0x12, 0xc7, + 0x0b, 0x9c, 0x28, 0x0e, 0xdb, 0x31, 0xa1, 0x54, 0x6d, 0x8b, 0xbd, 0x34, 0xb2, 0x21, 0xf5, 0x7f, + 0x33, 0xd8, 0x56, 0xd4, 0x77, 0xc7, 0xec, 0x79, 0x12, 0x0f, 0xc3, 0xd1, 0x2e, 0xac, 0xf0, 0x06, + 0x58, 0x18, 0x3a, 0x5d, 0x1c, 0xf4, 0x9d, 0x88, 0x04, 0x2d, 0x2f, 0x68, 0x3b, 0x0c, 0xd3, 0x3d, + 0xaa, 0xc2, 0xc1, 0xab, 0x23, 0xdb, 0x68, 0x86, 0xe1, 0x03, 0x1c, 0xf4, 0xb7, 0x65, 0x81, 0x26, + 0xa7, 0xbf, 0x3b, 0x66, 0x2f, 0x92, 0x78, 0x14, 0xe6, 0x46, 0x59, 0x99, 0x84, 0x75, 0x01, 0xce, + 0x1d, 0x23, 0x74, 0xeb, 0x45, 0xb8, 0xfc, 0x58, 0x89, 0x59, 0x17, 0xe1, 0xc2, 0xb1, 0xbd, 0xb5, + 0x2e, 0xc3, 0xc5, 0xc7, 0xb0, 0xca, 0x23, 0x88, 0x9a, 0xa2, 0xd1, 0x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xcc, + 0x0c, 0x28, 0xc2, 0x1c, 0x47, 0x08, 0x6a, 0x82, 0x6b, 0x3d, 0x07, 0x52, 0x73, 0x62, 0x75, 0x0d, + 0x26, 0x93, 0x7d, 0x66, 0x5e, 0xf3, 0xc3, 0x30, 0x20, 0x52, 0x88, 0x82, 0xc4, 0x34, 0x78, 0x23, + 0xba, 0x80, 0x94, 0x4e, 0xfe, 0x49, 0x75, 0xce, 0xd7, 0xd6, 0xee, 0xae, 0x39, 0xc6, 0x4b, 0xdf, + 0xc6, 0xa2, 0x08, 0xc0, 0x44, 0x83, 0xc5, 0x5c, 0x75, 0x85, 0xd5, 0xef, 0x19, 0x30, 0xa1, 0x1e, + 0x22, 0x17, 0x35, 0xc9, 0xff, 0xe6, 0x18, 0x5a, 0x80, 0xd9, 0x66, 0xf3, 0xbe, 0xcc, 0x44, 0x4a, + 0x7a, 0x21, 0xe4, 0x21, 0xce, 0x4c, 0x54, 0x93, 0x09, 0xa6, 0xc0, 0x0b, 0x3c, 0x48, 0x52, 0x87, + 0x1a, 0xdb, 0x3d, 0xda, 0x21, 0x2d, 0xb3, 0xc8, 0xad, 0x27, 0xa9, 0x67, 0xc4, 0x63, 0xb2, 0x66, + 0x09, 0x2d, 0xc3, 0x42, 0xb6, 0xca, 0x9b, 0xe1, 0xc3, 0x90, 0x75, 0xbc, 0xa0, 0x6d, 0x8e, 0xaf, + 0x5e, 0x81, 0xf2, 0xad, 0x43, 0x16, 0xe3, 0xad, 0x48, 0x76, 0x3e, 0x8c, 0xcc, 0x31, 0x64, 0xc2, + 0x94, 0x4d, 0x70, 0x6b, 0xcb, 0x6f, 0x89, 0x05, 0xa8, 0x69, 0xac, 0x5a, 0x30, 0x3b, 0x14, 0x22, + 0x73, 0x33, 0xd8, 0x88, 0xdd, 0xb7, 0xde, 0x70, 0xfe, 0x6d, 0x18, 0x9b, 0x63, 0x37, 0x5e, 0xfa, + 0x8b, 0xff, 0x5f, 0x31, 0x3e, 0xfa, 0xf8, 0x05, 0xe3, 0x67, 0x1f, 0xbf, 0x60, 0xfc, 0xd5, 0xc7, + 0x2f, 0x18, 0xff, 0xe7, 0xaf, 0x5f, 0x18, 0x03, 0x33, 0x8c, 0xdb, 0x6b, 0xcc, 0xdb, 0xdb, 0x5f, + 0x53, 0xd3, 0xc2, 0xce, 0x84, 0xf8, 0x79, 0xfd, 0x9f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x6d, + 0x8b, 0x91, 0x7d, 0x64, 0x00, 0x00, +} + func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -6928,38 +11286,50 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n1, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Version != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x18 } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 } - if m.Version != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -6967,63 +11337,79 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n2, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n3, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n3 - } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x32 } if m.NotFound { - dAtA[i] = 0x20 - i++ + i-- if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n4, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7031,74 +11417,87 @@ func (m *ScanRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n5, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Limit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + if m.SampleStep != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SampleStep)) + i-- + dAtA[i] = 0x40 } - if m.Version != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x3a } - if m.KeyOnly { - dAtA[i] = 0x28 - i++ - if m.KeyOnly { + if m.Reverse { + i-- + if m.Reverse { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Reverse { + i-- dAtA[i] = 0x30 - i++ - if m.Reverse { + } + if m.KeyOnly { + i-- + if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.Version != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x20 } - if m.SampleStep != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SampleStep)) + if m.Limit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7106,49 +11505,64 @@ func (m *ScanResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n6, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - if m.Error != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n7, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7156,149 +11570,167 @@ func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { } func (m *PrewriteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrewriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n8, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Mutations) > 0 { - for _, msg := range m.Mutations { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.ForUpdateTsConstraints) > 0 { + for iNdEx := len(m.ForUpdateTsConstraints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForUpdateTsConstraints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } } - if len(m.PrimaryLock) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i += copy(dAtA[i:], m.PrimaryLock) - } - if m.StartVersion != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + if m.AssertionLevel != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) + i-- + dAtA[i] = 0x78 } - if m.LockTtl != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + if m.MaxCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) + i-- + dAtA[i] = 0x70 } - if m.SkipConstraintCheck { - dAtA[i] = 0x30 - i++ - if m.SkipConstraintCheck { + if m.TryOnePc { + i-- + if m.TryOnePc { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x68 } - if len(m.PessimisticActions) > 0 { - dAtA10 := make([]byte, len(m.PessimisticActions)*10) - var j9 int - for _, num := range m.PessimisticActions { - for num >= 1<<7 { - dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j9++ - } - dAtA10[j9] = uint8(num) - j9++ + if len(m.Secondaries) > 0 { + for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Secondaries[iNdEx]) + copy(dAtA[i:], m.Secondaries[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) + i-- + dAtA[i] = 0x62 } - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(j9)) - i += copy(dAtA[i:], dAtA10[:j9]) - } - if m.TxnSize != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) - } - if m.ForUpdateTs != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - } - if m.MinCommitTs != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } if m.UseAsyncCommit { - dAtA[i] = 0x58 - i++ + i-- if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x58 } - if len(m.Secondaries) > 0 { - for _, b := range m.Secondaries { - dAtA[i] = 0x62 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if m.MinCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x50 + } + if m.ForUpdateTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + i-- + dAtA[i] = 0x48 + } + if m.TxnSize != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + i-- + dAtA[i] = 0x40 + } + if len(m.PessimisticActions) > 0 { + dAtA9 := make([]byte, len(m.PessimisticActions)*10) + var j8 int + for _, num := range m.PessimisticActions { + for num >= 1<<7 { + dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j8++ + } + dAtA9[j8] = uint8(num) + j8++ } + i -= j8 + copy(dAtA[i:], dAtA9[:j8]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(j8)) + i-- + dAtA[i] = 0x3a } - if m.TryOnePc { - dAtA[i] = 0x68 - i++ - if m.TryOnePc { + if m.SkipConstraintCheck { + i-- + if m.SkipConstraintCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 } - if m.MaxCommitTs != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) + if m.LockTtl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + i-- + dAtA[i] = 0x28 } - if m.AssertionLevel != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x20 } - if len(m.ForUpdateTsConstraints) > 0 { - for _, msg := range m.ForUpdateTsConstraints { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.PrimaryLock) > 0 { + i -= len(m.PrimaryLock) + copy(dAtA[i:], m.PrimaryLock) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i-- + dAtA[i] = 0x1a + } + if len(m.Mutations) > 0 { + for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrewriteRequest_ForUpdateTSConstraint) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7306,27 +11738,36 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Marshal() (dAtA []byte, err erro } func (m *PrewriteRequest_ForUpdateTSConstraint) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrewriteRequest_ForUpdateTSConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Index != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Index)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ExpectedForUpdateTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExpectedForUpdateTs)) + i-- + dAtA[i] = 0x10 + } + if m.Index != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7334,59 +11775,74 @@ func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { } func (m *PrewriteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrewriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n11, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Errors) > 0 { - for _, msg := range m.Errors { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a + } + if m.OnePcCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OnePcCommitTs)) + i-- + dAtA[i] = 0x20 } if m.MinCommitTs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x18 } - if m.OnePcCommitTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OnePcCommitTs)) + if len(m.Errors) > 0 { + for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n12, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PessimisticLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7394,125 +11850,139 @@ func (m *PessimisticLockRequest) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PessimisticLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n13, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - if len(m.Mutations) > 0 { - for _, msg := range m.Mutations { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PrimaryLock) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i += copy(dAtA[i:], m.PrimaryLock) - } - if m.StartVersion != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - } - if m.LockTtl != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ForUpdateTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + if m.WakeUpMode != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WakeUpMode)) + i-- + dAtA[i] = 0x70 } - if m.IsFirstLock { - dAtA[i] = 0x38 - i++ - if m.IsFirstLock { + if m.LockOnlyIfExists { + i-- + if m.LockOnlyIfExists { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.WaitTimeout != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitTimeout)) + i-- + dAtA[i] = 0x68 } - if m.Force { - dAtA[i] = 0x48 - i++ - if m.Force { + if m.CheckExistence { + i-- + if m.CheckExistence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x60 + } + if m.MinCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x58 } if m.ReturnValues { - dAtA[i] = 0x50 - i++ + i-- if m.ReturnValues { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.MinCommitTs != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x50 } - if m.CheckExistence { - dAtA[i] = 0x60 - i++ - if m.CheckExistence { + if m.Force { + i-- + if m.Force { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x48 } - if m.LockOnlyIfExists { - dAtA[i] = 0x68 - i++ - if m.LockOnlyIfExists { + if m.WaitTimeout != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitTimeout)) + i-- + dAtA[i] = 0x40 + } + if m.IsFirstLock { + i-- + if m.IsFirstLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if m.WakeUpMode != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WakeUpMode)) + if m.ForUpdateTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + i-- + dAtA[i] = 0x30 + } + if m.LockTtl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + i-- + dAtA[i] = 0x28 + } + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x20 } - return i, nil + if len(m.PrimaryLock) > 0 { + i -= len(m.PrimaryLock) + copy(dAtA[i:], m.PrimaryLock) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i-- + dAtA[i] = 0x1a + } + if len(m.Mutations) > 0 { + for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PessimisticLockKeyResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7520,53 +11990,63 @@ func (m *PessimisticLockKeyResult) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockKeyResult) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PessimisticLockKeyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Existence { - dAtA[i] = 0x18 - i++ - if m.Existence { + if m.SkipResolvingLock { + i-- + if m.SkipResolvingLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x58 } if m.LockedWithConflictTs != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockedWithConflictTs)) + i-- + dAtA[i] = 0x20 } - if m.SkipResolvingLock { - dAtA[i] = 0x58 - i++ - if m.SkipResolvingLock { + if m.Existence { + i-- + if m.Existence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PessimisticLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7574,93 +12054,112 @@ func (m *PessimisticLockResponse) Marshal() (dAtA []byte, err error) { } func (m *PessimisticLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PessimisticLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n14, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Results) > 0 { + for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 } - i += n14 } - if len(m.Errors) > 0 { - for _, msg := range m.Errors { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - if m.CommitTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - } - if len(m.Value) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if len(m.Values) > 0 { - for _, b := range m.Values { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x3a } if len(m.NotFounds) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.NotFounds))) - for _, b := range m.NotFounds { - if b { + for iNdEx := len(m.NotFounds) - 1; iNdEx >= 0; iNdEx-- { + i-- + if m.NotFounds[iNdEx] { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ } + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.NotFounds))) + i-- + dAtA[i] = 0x32 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n15, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Values[iNdEx]) + copy(dAtA[i:], m.Values[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Values[iNdEx]))) + i-- + dAtA[i] = 0x2a } - i += n15 } - if len(m.Results) > 0 { - for _, msg := range m.Results { - dAtA[i] = 0x42 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x22 + } + if m.CommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x18 + } + if len(m.Errors) > 0 { + for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PessimisticRollbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7668,45 +12167,57 @@ func (m *PessimisticRollbackRequest) Marshal() (dAtA []byte, err error) { } func (m *PessimisticRollbackRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PessimisticRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n16, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StartVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } if m.ForUpdateTs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + i-- + dAtA[i] = 0x18 } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PessimisticRollbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7714,49 +12225,64 @@ func (m *PessimisticRollbackResponse) Marshal() (dAtA []byte, err error) { } func (m *PessimisticRollbackResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PessimisticRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n17, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x1a } if len(m.Errors) > 0 { - for _, msg := range m.Errors { + for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n18, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - return i, nil + return len(dAtA) - i, nil } func (m *TxnHeartBeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7764,43 +12290,55 @@ func (m *TxnHeartBeatRequest) Marshal() (dAtA []byte, err error) { } func (m *TxnHeartBeatRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnHeartBeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n19, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.PrimaryLock) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i += copy(dAtA[i:], m.PrimaryLock) + if m.AdviseLockTtl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AdviseLockTtl)) + i-- + dAtA[i] = 0x20 } if m.StartVersion != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x18 } - if m.AdviseLockTtl != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AdviseLockTtl)) + if len(m.PrimaryLock) > 0 { + i -= len(m.PrimaryLock) + copy(dAtA[i:], m.PrimaryLock) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TxnHeartBeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7808,52 +12346,67 @@ func (m *TxnHeartBeatResponse) Marshal() (dAtA []byte, err error) { } func (m *TxnHeartBeatResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnHeartBeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n20, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n21, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0x22 } if m.LockTtl != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + i-- + dAtA[i] = 0x18 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n22, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckTxnStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7861,88 +12414,100 @@ func (m *CheckTxnStatusRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckTxnStatusRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckTxnStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n23, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if len(m.PrimaryKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) - i += copy(dAtA[i:], m.PrimaryKey) - } - if m.LockTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) - } - if m.CallerStartTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CallerStartTs)) - } - if m.CurrentTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RollbackIfNotExist { - dAtA[i] = 0x30 - i++ - if m.RollbackIfNotExist { + if m.VerifyIsPrimary { + i-- + if m.VerifyIsPrimary { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x48 } - if m.ForceSyncCommit { - dAtA[i] = 0x38 - i++ - if m.ForceSyncCommit { + if m.ResolvingPessimisticLock { + i-- + if m.ResolvingPessimisticLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.ResolvingPessimisticLock { + i-- dAtA[i] = 0x40 - i++ - if m.ResolvingPessimisticLock { + } + if m.ForceSyncCommit { + i-- + if m.ForceSyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if m.VerifyIsPrimary { - dAtA[i] = 0x48 - i++ - if m.VerifyIsPrimary { + if m.RollbackIfNotExist { + i-- + if m.RollbackIfNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 + } + if m.CurrentTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) + i-- + dAtA[i] = 0x28 + } + if m.CallerStartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CallerStartTs)) + i-- + dAtA[i] = 0x20 + } + if m.LockTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) + i-- + dAtA[i] = 0x18 + } + if len(m.PrimaryKey) > 0 { + i -= len(m.PrimaryKey) + copy(dAtA[i:], m.PrimaryKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckTxnStatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -7950,72 +12515,89 @@ func (m *CheckTxnStatusResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckTxnStatusResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckTxnStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n24, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n24 + i-- + dAtA[i] = 0x3a } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n25, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.LockInfo != nil { + { + size, err := m.LockInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n25 + i-- + dAtA[i] = 0x32 } - if m.LockTtl != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + if m.Action != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Action)) + i-- + dAtA[i] = 0x28 } if m.CommitVersion != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x20 } - if m.Action != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Action)) + if m.LockTtl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + i-- + dAtA[i] = 0x18 } - if m.LockInfo != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockInfo.Size())) - n26, err := m.LockInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n26 + i-- + dAtA[i] = 0x12 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n27, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n27 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckSecondaryLocksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8023,40 +12605,52 @@ func (m *CheckSecondaryLocksRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckSecondaryLocksRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckSecondaryLocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n28, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x18 } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if m.StartVersion != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckSecondaryLocksResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8064,64 +12658,81 @@ func (m *CheckSecondaryLocksResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckSecondaryLocksResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckSecondaryLocksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n29, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n30, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n30 + i-- + dAtA[i] = 0x2a + } + if m.CommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x20 } if len(m.Locks) > 0 { - for _, msg := range m.Locks { + for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.CommitTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n31, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n31 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8129,45 +12740,57 @@ func (m *CommitRequest) Marshal() (dAtA []byte, err error) { } func (m *CommitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n32, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StartVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + if m.CommitVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x20 } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if m.CommitVersion != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8175,52 +12798,67 @@ func (m *CommitResponse) Marshal() (dAtA []byte, err error) { } func (m *CommitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n33, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n34, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n34 + i-- + dAtA[i] = 0x22 } if m.CommitVersion != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x18 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n35, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n35 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ImportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8228,34 +12866,45 @@ func (m *ImportRequest) Marshal() (dAtA []byte, err error) { } func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Mutations) > 0 { - for _, msg := range m.Mutations { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.CommitVersion != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x10 + } + if len(m.Mutations) > 0 { + for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *ImportResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8263,33 +12912,45 @@ func (m *ImportResponse) Marshal() (dAtA []byte, err error) { } func (m *ImportResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ImportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n36, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n36 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8297,43 +12958,55 @@ func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n37, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n37 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.CurrentTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) + i-- + dAtA[i] = 0x20 } if m.StartVersion != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x18 } - if m.CurrentTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8341,42 +13014,55 @@ func (m *CleanupResponse) Marshal() (dAtA []byte, err error) { } func (m *CleanupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CleanupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n38, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n38 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CommitVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x18 } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n39, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n39 + i-- + dAtA[i] = 0x12 } - if m.CommitVersion != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8384,40 +13070,52 @@ func (m *BatchGetRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchGetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n40, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n40 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Version != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x18 } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if m.Version != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8425,59 +13123,76 @@ func (m *BatchGetResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchGetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n41, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n41 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n42, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.Pairs) > 0 { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i += n42 } - if m.Error != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n43, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n43 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchRollbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8485,40 +13200,52 @@ func (m *BatchRollbackRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchRollbackRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n44, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x1a } - i += n44 } if m.StartVersion != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x10 } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchRollbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8526,47 +13253,62 @@ func (m *BatchRollbackResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchRollbackResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n45, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n45 + i-- + dAtA[i] = 0x1a } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n46, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n46 + i-- + dAtA[i] = 0x12 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n47, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n47 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8574,49 +13316,62 @@ func (m *ScanLockRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n48, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n48 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.MaxVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxVersion)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x2a + } + if m.Limit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 } if len(m.StartKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x1a } - if m.Limit != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + if m.MaxVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxVersion)) + i-- + dAtA[i] = 0x10 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8624,59 +13379,76 @@ func (m *ScanLockResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n49, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n49 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n50, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n50 + i-- + dAtA[i] = 0x22 } if len(m.Locks) > 0 { - for _, msg := range m.Locks { + for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n51, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n51 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ResolveLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8684,57 +13456,71 @@ func (m *ResolveLockRequest) Marshal() (dAtA []byte, err error) { } func (m *ResolveLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResolveLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n52, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x2a } - i += n52 } - if m.StartVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + if len(m.TxnInfos) > 0 { + for iNdEx := len(m.TxnInfos) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TxnInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } if m.CommitVersion != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) + i-- + dAtA[i] = 0x18 } - if len(m.TxnInfos) > 0 { - for _, msg := range m.TxnInfos { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.StartVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ResolveLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8742,47 +13528,62 @@ func (m *ResolveLockResponse) Marshal() (dAtA []byte, err error) { } func (m *ResolveLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResolveLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n53, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExecDetailsV2 != nil { + { + size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n53 + i-- + dAtA[i] = 0x1a } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n54, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n54 + i-- + dAtA[i] = 0x12 } - if m.ExecDetailsV2 != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExecDetailsV2.Size())) - n55, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n55 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8790,32 +13591,43 @@ func (m *GCRequest) Marshal() (dAtA []byte, err error) { } func (m *GCRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n56, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n56 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GCResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8823,37 +13635,50 @@ func (m *GCResponse) Marshal() (dAtA []byte, err error) { } func (m *GCResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n57, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n57 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n58, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n58 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8861,49 +13686,62 @@ func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n59, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n59 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) - } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.NotifyOnly { - dAtA[i] = 0x20 - i++ + i-- if m.NotifyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8911,33 +13749,45 @@ func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n60, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n60 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil -} - + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *PrepareFlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8945,49 +13795,62 @@ func (m *PrepareFlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareFlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n61, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n61 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.Version != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x28 + } + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x20 } if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x1a } - if m.StartTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 } - if m.Version != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrepareFlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -8995,33 +13858,45 @@ func (m *PrepareFlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareFlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n62, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n62 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9029,54 +13904,67 @@ func (m *FlashbackToVersionRequest) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackToVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n63, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n63 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + if m.CommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x30 } - if len(m.StartKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x28 } if len(m.EndKey) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x22 } - if m.StartTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x1a } - if m.CommitTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + if m.Version != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9084,33 +13972,45 @@ func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n64, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n64 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RawGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9118,39 +14018,52 @@ func (m *RawGetRequest) Marshal() (dAtA []byte, err error) { } func (m *RawGetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n65, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n65 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9158,49 +14071,62 @@ func (m *RawGetResponse) Marshal() (dAtA []byte, err error) { } func (m *RawGetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n66, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n66 - } - if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) - } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.NotFound { - dAtA[i] = 0x20 - i++ + i-- if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + } + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9208,41 +14134,54 @@ func (m *RawBatchGetRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchGetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n67, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n67 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9250,39 +14189,52 @@ func (m *RawBatchGetResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchGetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n68, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n68 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9290,60 +14242,74 @@ func (m *RawPutRequest) Marshal() (dAtA []byte, err error) { } func (m *RawPutRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawPutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n69, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n69 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.ForCas { + i-- + if m.ForCas { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.Ttl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x28 } if len(m.Cf) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0x22 } - if m.Ttl != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a } - if m.ForCas { - dAtA[i] = 0x30 - i++ - if m.ForCas { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9351,33 +14317,45 @@ func (m *RawPutResponse) Marshal() (dAtA []byte, err error) { } func (m *RawPutResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawPutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n70, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n70 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchPutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9385,77 +14363,92 @@ func (m *RawBatchPutRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchPutRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchPutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n71, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n71 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Pairs) > 0 { - for _, msg := range m.Pairs { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Ttls) > 0 { + dAtA72 := make([]byte, len(m.Ttls)*10) + var j71 int + for _, num := range m.Ttls { + for num >= 1<<7 { + dAtA72[j71] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j71++ } - i += n + dAtA72[j71] = uint8(num) + j71++ } - } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if m.Ttl != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i -= j71 + copy(dAtA[i:], dAtA72[:j71]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(j71)) + i-- + dAtA[i] = 0x32 } if m.ForCas { - dAtA[i] = 0x28 - i++ + i-- if m.ForCas { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if len(m.Ttls) > 0 { - dAtA73 := make([]byte, len(m.Ttls)*10) - var j72 int - for _, num := range m.Ttls { - for num >= 1<<7 { - dAtA73[j72] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j72++ + if m.Ttl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x20 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a + } + if len(m.Pairs) > 0 { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - dAtA73[j72] = uint8(num) - j72++ + i-- + dAtA[i] = 0x12 } - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(j72)) - i += copy(dAtA[i:], dAtA73[:j72]) } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RawBatchPutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9463,33 +14456,45 @@ func (m *RawBatchPutResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchPutResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchPutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n74, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n74 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9497,49 +14502,62 @@ func (m *RawDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n75, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n75 - } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ForCas { - dAtA[i] = 0x20 - i++ + i-- if m.ForCas { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9547,33 +14565,45 @@ func (m *RawDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n76, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n76 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchDeleteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9581,51 +14611,64 @@ func (m *RawBatchDeleteRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n77, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n77 - } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ForCas { - dAtA[i] = 0x20 - i++ + i-- if m.ForCas { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchDeleteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9633,33 +14676,45 @@ func (m *RawBatchDeleteResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n78, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n78 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RawScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9667,70 +14722,84 @@ func (m *RawScanRequest) Marshal() (dAtA []byte, err error) { } func (m *RawScanRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n79, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n79 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Limit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x3a } - if m.KeyOnly { - dAtA[i] = 0x20 - i++ - if m.KeyOnly { + if m.Reverse { + i-- + if m.Reverse { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 } if len(m.Cf) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0x2a } - if m.Reverse { - dAtA[i] = 0x30 - i++ - if m.Reverse { + if m.KeyOnly { + i-- + if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.Limit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9738,39 +14807,52 @@ func (m *RawScanResponse) Marshal() (dAtA []byte, err error) { } func (m *RawScanResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n80, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n80 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Kvs) > 0 { - for _, msg := range m.Kvs { + for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawDeleteRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9778,45 +14860,59 @@ func (m *RawDeleteRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawDeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n81, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n81 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x22 } if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x1a } - if len(m.Cf) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RawDeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9824,33 +14920,45 @@ func (m *RawDeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *RawDeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawDeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n82, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n82 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RawBatchScanRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9858,70 +14966,84 @@ func (m *RawBatchScanRequest) Marshal() (dAtA []byte, err error) { } func (m *RawBatchScanRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n83, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n83 - } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.EachLimit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.EachLimit)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.KeyOnly { - dAtA[i] = 0x20 - i++ - if m.KeyOnly { + if m.Reverse { + i-- + if m.Reverse { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 } if len(m.Cf) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0x2a } - if m.Reverse { - dAtA[i] = 0x30 - i++ - if m.Reverse { + if m.KeyOnly { + i-- + if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if m.EachLimit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.EachLimit)) + i-- + dAtA[i] = 0x18 + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawBatchScanResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9929,39 +15051,52 @@ func (m *RawBatchScanResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchScanResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawBatchScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n84, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n84 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Kvs) > 0 { - for _, msg := range m.Kvs { + for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UnsafeDestroyRangeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -9969,39 +15104,52 @@ func (m *UnsafeDestroyRangeRequest) Marshal() (dAtA []byte, err error) { } func (m *UnsafeDestroyRangeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnsafeDestroyRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n85, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n85 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a } if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x12 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UnsafeDestroyRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10009,33 +15157,45 @@ func (m *UnsafeDestroyRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *UnsafeDestroyRangeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnsafeDestroyRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n86, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n86 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RegisterLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10043,32 +15203,43 @@ func (m *RegisterLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *RegisterLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegisterLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n87, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n87 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.MaxTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegisterLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10076,23 +15247,33 @@ func (m *RegisterLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *RegisterLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegisterLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Error) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10100,32 +15281,43 @@ func (m *CheckLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n88, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n88 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.MaxTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10133,45 +15325,57 @@ func (m *CheckLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Error) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Locks) > 0 { + for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } if m.IsClean { - dAtA[i] = 0x10 - i++ + i-- if m.IsClean { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - if len(m.Locks) > 0 { - for _, msg := range m.Locks { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RemoveLockObserverRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10179,32 +15383,43 @@ func (m *RemoveLockObserverRequest) Marshal() (dAtA []byte, err error) { } func (m *RemoveLockObserverRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveLockObserverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n89, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n89 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.MaxTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RemoveLockObserverResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10212,23 +15427,33 @@ func (m *RemoveLockObserverResponse) Marshal() (dAtA []byte, err error) { } func (m *RemoveLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveLockObserverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Error) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PhysicalScanLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10236,43 +15461,55 @@ func (m *PhysicalScanLockRequest) Marshal() (dAtA []byte, err error) { } func (m *PhysicalScanLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PhysicalScanLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n90, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n90 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.MaxTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) + if m.Limit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 } if len(m.StartKey) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x1a } - if m.Limit != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + if m.MaxTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxTs)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PhysicalScanLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10280,35 +15517,47 @@ func (m *PhysicalScanLockResponse) Marshal() (dAtA []byte, err error) { } func (m *PhysicalScanLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PhysicalScanLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Error) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Locks) > 0 { - for _, msg := range m.Locks { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SplitRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10316,51 +15565,64 @@ func (m *SplitRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n91, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n91 - } - if len(m.SplitKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKey))) - i += copy(dAtA[i:], m.SplitKey) - } - if len(m.SplitKeys) > 0 { - for _, b := range m.SplitKeys { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.IsRawKv { - dAtA[i] = 0x20 - i++ + i-- if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.SplitKey) > 0 { + i -= len(m.SplitKey) + copy(dAtA[i:], m.SplitKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKey))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SplitRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10368,59 +15630,76 @@ func (m *SplitRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n92, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n92 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Left != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Left.Size())) - n93, err := m.Left.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i += n93 } if m.Right != nil { + { + size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Right.Size())) - n94, err := m.Right.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Left != nil { + { + size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n94 + i-- + dAtA[i] = 0x12 } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10428,44 +15707,57 @@ func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n95, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n95 } if m.StartTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x10 } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10473,42 +15765,55 @@ func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n96, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Locked != nil { + { + size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n96 + i-- + dAtA[i] = 0x1a } if m.ReadIndex != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndex)) + i-- + dAtA[i] = 0x10 } - if m.Locked != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Locked.Size())) - n97, err := m.Locked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n97 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MvccGetByKeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10516,33 +15821,45 @@ func (m *MvccGetByKeyRequest) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByKeyRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccGetByKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n98, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n98 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MvccGetByKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10550,43 +15867,57 @@ func (m *MvccGetByKeyResponse) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByKeyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccGetByKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n99, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Info != nil { + { + size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n99 + i-- + dAtA[i] = 0x1a } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - if m.Info != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Info.Size())) - n100, err := m.Info.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n100 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MvccGetByStartTsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10594,32 +15925,43 @@ func (m *MvccGetByStartTsRequest) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByStartTsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccGetByStartTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n101, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n101 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StartTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x10 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MvccGetByStartTsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10627,49 +15969,64 @@ func (m *MvccGetByStartTsResponse) Marshal() (dAtA []byte, err error) { } func (m *MvccGetByStartTsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccGetByStartTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n102, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n102 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if m.Info != nil { + { + size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if len(m.Key) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x1a } - if m.Info != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Info.Size())) - n103, err := m.Info.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n103 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Context) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10677,278 +16034,301 @@ func (m *Context) Marshal() (dAtA []byte, err error) { } func (m *Context) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Context) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RegionEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n104, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SourceStmt != nil { + { + size, err := m.SourceStmt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n104 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 } - if m.Peer != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Peer.Size())) - n105, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.BucketsVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BucketsVersion)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x88 + } + if m.KeyspaceId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 + } + if m.ResourceControlContext != nil { + { + size, err := m.ResourceControlContext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n105 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 } - if m.Term != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) + if m.BusyThresholdMs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd8 } - if m.Priority != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) + if m.TxnSource != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 } - if m.IsolationLevel != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) + if len(m.RequestSource) > 0 { + i -= len(m.RequestSource) + copy(dAtA[i:], m.RequestSource) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.RequestSource))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 } - if m.NotFillCache { - dAtA[i] = 0x40 - i++ - if m.NotFillCache { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.TraceContext != nil { + { + size, err := m.TraceContext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba } - if m.SyncLog { - dAtA[i] = 0x48 - i++ - if m.SyncLog { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.CommittedLocks) > 0 { + dAtA108 := make([]byte, len(m.CommittedLocks)*10) + var j107 int + for _, num := range m.CommittedLocks { + for num >= 1<<7 { + dAtA108[j107] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j107++ + } + dAtA108[j107] = uint8(num) + j107++ } - i++ + i -= j107 + copy(dAtA[i:], dAtA108[:j107]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(j107)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 } - if m.RecordTimeStat { - dAtA[i] = 0x50 - i++ - if m.RecordTimeStat { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.ApiVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 } - if m.RecordScanStat { - dAtA[i] = 0x58 - i++ - if m.RecordScanStat { + if m.IsRetryRequest { + i-- + if m.IsRetryRequest { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 } - if m.ReplicaRead { - dAtA[i] = 0x60 - i++ - if m.ReplicaRead { + if m.DiskFullOpt != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DiskFullOpt)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if len(m.ResourceGroupTag) > 0 { + i -= len(m.ResourceGroupTag) + copy(dAtA[i:], m.ResourceGroupTag) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupTag))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if m.StaleRead { + i-- + if m.StaleRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.TaskId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.AppliedIndex != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x78 + } + if m.MaxExecutionDurationMs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxExecutionDurationMs)) + i-- + dAtA[i] = 0x70 } if len(m.ResolvedLocks) > 0 { - dAtA107 := make([]byte, len(m.ResolvedLocks)*10) - var j106 int + dAtA110 := make([]byte, len(m.ResolvedLocks)*10) + var j109 int for _, num := range m.ResolvedLocks { for num >= 1<<7 { - dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j106++ + j109++ } - dAtA107[j106] = uint8(num) - j106++ + dAtA110[j109] = uint8(num) + j109++ } + i -= j109 + copy(dAtA[i:], dAtA110[:j109]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(j109)) + i-- dAtA[i] = 0x6a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(j106)) - i += copy(dAtA[i:], dAtA107[:j106]) - } - if m.MaxExecutionDurationMs != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxExecutionDurationMs)) - } - if m.AppliedIndex != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) - } - if m.TaskId != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TaskId)) } - if m.StaleRead { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - if m.StaleRead { + if m.ReplicaRead { + i-- + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.ResourceGroupTag) > 0 { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupTag))) - i += copy(dAtA[i:], m.ResourceGroupTag) - } - if m.DiskFullOpt != 0 { - dAtA[i] = 0x98 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DiskFullOpt)) + i-- + dAtA[i] = 0x60 } - if m.IsRetryRequest { - dAtA[i] = 0xa0 - i++ - dAtA[i] = 0x1 - i++ - if m.IsRetryRequest { + if m.RecordScanStat { + i-- + if m.RecordScanStat { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x58 } - if m.ApiVersion != 0 { - dAtA[i] = 0xa8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) + if m.RecordTimeStat { + i-- + if m.RecordTimeStat { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 } - if len(m.CommittedLocks) > 0 { - dAtA109 := make([]byte, len(m.CommittedLocks)*10) - var j108 int - for _, num := range m.CommittedLocks { - for num >= 1<<7 { - dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j108++ - } - dAtA109[j108] = uint8(num) - j108++ + if m.SyncLog { + i-- + if m.SyncLog { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(j108)) - i += copy(dAtA[i:], dAtA109[:j108]) + i-- + dAtA[i] = 0x48 } - if m.TraceContext != nil { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TraceContext.Size())) - n110, err := m.TraceContext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.NotFillCache { + i-- + if m.NotFillCache { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n110 + i-- + dAtA[i] = 0x40 } - if len(m.RequestSource) > 0 { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.RequestSource))) - i += copy(dAtA[i:], m.RequestSource) + if m.IsolationLevel != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) + i-- + dAtA[i] = 0x38 } - if m.TxnSource != 0 { - dAtA[i] = 0xc8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) + if m.Priority != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) + i-- + dAtA[i] = 0x30 } - if m.BusyThresholdMs != 0 { - dAtA[i] = 0xd8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) + if m.Term != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x28 } - if m.ResourceControlContext != nil { - dAtA[i] = 0xe2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ResourceControlContext.Size())) - n111, err := m.ResourceControlContext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Peer != nil { + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n111 - } - if m.KeyspaceId != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) - } - if m.BucketsVersion != 0 { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BucketsVersion)) + i-- + dAtA[i] = 0x1a } - if m.SourceStmt != nil { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SourceStmt.Size())) - n112, err := m.SourceStmt.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n112 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ResourceControlContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10956,38 +16336,50 @@ func (m *ResourceControlContext) Marshal() (dAtA []byte, err error) { } func (m *ResourceControlContext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceControlContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OverridePriority != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OverridePriority)) + i-- + dAtA[i] = 0x18 } if m.Penalty != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Penalty.Size())) - n113, err := m.Penalty.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Penalty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n113 + i-- + dAtA[i] = 0x12 } - if m.OverridePriority != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.OverridePriority)) + if len(m.ResourceGroupName) > 0 { + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupName))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SourceStmt) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -10995,38 +16387,48 @@ func (m *SourceStmt) Marshal() (dAtA []byte, err error) { } func (m *SourceStmt) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SourceStmt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ConnectionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConnectionId)) + if len(m.SessionAlias) > 0 { + i -= len(m.SessionAlias) + copy(dAtA[i:], m.SessionAlias) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SessionAlias))) + i-- + dAtA[i] = 0x22 } if m.StmtId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StmtId)) + i-- + dAtA[i] = 0x18 } - if len(m.SessionAlias) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SessionAlias))) - i += copy(dAtA[i:], m.SessionAlias) + if m.ConnectionId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConnectionId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *LockInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11034,82 +16436,94 @@ func (m *LockInfo) Marshal() (dAtA []byte, err error) { } func (m *LockInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.PrimaryLock) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i += copy(dAtA[i:], m.PrimaryLock) - } - if m.LockVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockVersion)) - } - if len(m.Key) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if m.LockTtl != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TxnSize != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + if m.DurationToLastUpdateMs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) + i-- + dAtA[i] = 0x58 } - if m.LockType != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockType)) + if len(m.Secondaries) > 0 { + for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Secondaries[iNdEx]) + copy(dAtA[i:], m.Secondaries[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) + i-- + dAtA[i] = 0x52 + } } - if m.LockForUpdateTs != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockForUpdateTs)) + if m.MinCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x48 } if m.UseAsyncCommit { - dAtA[i] = 0x40 - i++ + i-- if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x40 } - if m.MinCommitTs != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + if m.LockForUpdateTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockForUpdateTs)) + i-- + dAtA[i] = 0x38 } - if len(m.Secondaries) > 0 { - for _, b := range m.Secondaries { - dAtA[i] = 0x52 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } + if m.LockType != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockType)) + i-- + dAtA[i] = 0x30 } - if m.DurationToLastUpdateMs != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) + if m.TxnSize != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + i-- + dAtA[i] = 0x28 + } + if m.LockTtl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + i-- + dAtA[i] = 0x20 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a + } + if m.LockVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockVersion)) + i-- + dAtA[i] = 0x10 + } + if len(m.PrimaryLock) > 0 { + i -= len(m.PrimaryLock) + copy(dAtA[i:], m.PrimaryLock) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *KeyError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11117,119 +16531,148 @@ func (m *KeyError) Marshal() (dAtA []byte, err error) { } func (m *KeyError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Locked != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Locked.Size())) - n114, err := m.Locked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n114 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Retryable) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Retryable))) - i += copy(dAtA[i:], m.Retryable) - } - if len(m.Abort) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Abort))) - i += copy(dAtA[i:], m.Abort) + if m.PrimaryMismatch != nil { + { + size, err := m.PrimaryMismatch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a } - if m.Conflict != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Conflict.Size())) - n115, err := m.Conflict.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.AssertionFailed != nil { + { + size, err := m.AssertionFailed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n115 + i-- + dAtA[i] = 0x52 } - if m.AlreadyExist != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AlreadyExist.Size())) - n116, err := m.AlreadyExist.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CommitTsTooLarge != nil { + { + size, err := m.CommitTsTooLarge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n116 + i-- + dAtA[i] = 0x4a } - if m.Deadlock != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Deadlock.Size())) - n117, err := m.Deadlock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TxnNotFound != nil { + { + size, err := m.TxnNotFound.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n117 + i-- + dAtA[i] = 0x42 } if m.CommitTsExpired != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTsExpired.Size())) - n118, err := m.CommitTsExpired.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CommitTsExpired.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n118 + i-- + dAtA[i] = 0x3a } - if m.TxnNotFound != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnNotFound.Size())) - n119, err := m.TxnNotFound.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Deadlock != nil { + { + size, err := m.Deadlock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n119 + i-- + dAtA[i] = 0x32 } - if m.CommitTsTooLarge != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTsTooLarge.Size())) - n120, err := m.CommitTsTooLarge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.AlreadyExist != nil { + { + size, err := m.AlreadyExist.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n120 + i-- + dAtA[i] = 0x2a } - if m.AssertionFailed != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionFailed.Size())) - n121, err := m.AssertionFailed.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Conflict != nil { + { + size, err := m.Conflict.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n121 + i-- + dAtA[i] = 0x22 } - if m.PrimaryMismatch != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PrimaryMismatch.Size())) - n122, err := m.PrimaryMismatch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Abort) > 0 { + i -= len(m.Abort) + copy(dAtA[i:], m.Abort) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Abort))) + i-- + dAtA[i] = 0x1a + } + if len(m.Retryable) > 0 { + i -= len(m.Retryable) + copy(dAtA[i:], m.Retryable) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Retryable))) + i-- + dAtA[i] = 0x12 + } + if m.Locked != nil { + { + size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n122 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteConflict) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11237,49 +16680,60 @@ func (m *WriteConflict) Marshal() (dAtA []byte, err error) { } func (m *WriteConflict) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteConflict) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ConflictTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictTs)) + if m.Reason != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Reason)) + i-- + dAtA[i] = 0x30 } - if len(m.Key) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.ConflictCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictCommitTs)) + i-- + dAtA[i] = 0x28 } if len(m.Primary) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.Primary) + copy(dAtA[i:], m.Primary) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) - i += copy(dAtA[i:], m.Primary) + i-- + dAtA[i] = 0x22 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a } - if m.ConflictCommitTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictCommitTs)) + if m.ConflictTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictTs)) + i-- + dAtA[i] = 0x10 } - if m.Reason != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Reason)) + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *AlreadyExist) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11287,23 +16741,33 @@ func (m *AlreadyExist) Marshal() (dAtA []byte, err error) { } func (m *AlreadyExist) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AlreadyExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Deadlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11311,45 +16775,57 @@ func (m *Deadlock) Marshal() (dAtA []byte, err error) { } func (m *Deadlock) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Deadlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.LockTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.LockKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) - i += copy(dAtA[i:], m.LockKey) + if len(m.WaitChain) > 0 { + for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } if m.DeadlockKeyHash != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DeadlockKeyHash)) + i-- + dAtA[i] = 0x18 } - if len(m.WaitChain) > 0 { - for _, msg := range m.WaitChain { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if len(m.LockKey) > 0 { + i -= len(m.LockKey) + copy(dAtA[i:], m.LockKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) + i-- + dAtA[i] = 0x12 + } + if m.LockTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CommitTsExpired) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11357,38 +16833,48 @@ func (m *CommitTsExpired) Marshal() (dAtA []byte, err error) { } func (m *CommitTsExpired) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitTsExpired) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.AttemptedCommitTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AttemptedCommitTs)) + if m.MinCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + i-- + dAtA[i] = 0x20 } if len(m.Key) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x1a } - if m.MinCommitTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) + if m.AttemptedCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AttemptedCommitTs)) + i-- + dAtA[i] = 0x10 + } + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TxnNotFound) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11396,28 +16882,38 @@ func (m *TxnNotFound) Marshal() (dAtA []byte, err error) { } func (m *TxnNotFound) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnNotFound) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.PrimaryKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.PrimaryKey) + copy(dAtA[i:], m.PrimaryKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) - i += copy(dAtA[i:], m.PrimaryKey) + i-- + dAtA[i] = 0x12 + } + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CommitTsTooLarge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11425,22 +16921,31 @@ func (m *CommitTsTooLarge) Marshal() (dAtA []byte, err error) { } func (m *CommitTsTooLarge) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitTsTooLarge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.CommitTs != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *AssertionFailed) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11448,43 +16953,53 @@ func (m *AssertionFailed) Marshal() (dAtA []byte, err error) { } func (m *AssertionFailed) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssertionFailed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.ExistingCommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingCommitTs)) + i-- + dAtA[i] = 0x28 + } + if m.ExistingStartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingStartTs)) + i-- + dAtA[i] = 0x20 } if m.Assertion != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) + i-- + dAtA[i] = 0x18 } - if m.ExistingStartTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingStartTs)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 } - if m.ExistingCommitTs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ExistingCommitTs)) + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PrimaryMismatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11492,27 +17007,38 @@ func (m *PrimaryMismatch) Marshal() (dAtA []byte, err error) { } func (m *PrimaryMismatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrimaryMismatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.LockInfo != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockInfo.Size())) - n123, err := m.LockInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.LockInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n123 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TimeDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11520,37 +17046,46 @@ func (m *TimeDetail) Marshal() (dAtA []byte, err error) { } func (m *TimeDetail) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TimeDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.WaitWallTimeMs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeMs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ProcessWallTimeMs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeMs)) + if m.TotalRpcWallTimeNs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) + i-- + dAtA[i] = 0x20 } if m.KvReadWallTimeMs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeMs)) + i-- + dAtA[i] = 0x18 } - if m.TotalRpcWallTimeNs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) + if m.ProcessWallTimeMs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeMs)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.WaitWallTimeMs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeMs)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *TimeDetailV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11558,42 +17093,51 @@ func (m *TimeDetailV2) Marshal() (dAtA []byte, err error) { } func (m *TimeDetailV2) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TimeDetailV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.WaitWallTimeNs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ProcessWallTimeNs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeNs)) + if m.TotalRpcWallTimeNs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) + i-- + dAtA[i] = 0x28 + } + if m.KvReadWallTimeNs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) + i-- + dAtA[i] = 0x20 } if m.ProcessSuspendWallTimeNs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessSuspendWallTimeNs)) + i-- + dAtA[i] = 0x18 } - if m.KvReadWallTimeNs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) + if m.ProcessWallTimeNs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeNs)) + i-- + dAtA[i] = 0x10 } - if m.TotalRpcWallTimeNs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) + if m.WaitWallTimeNs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ScanInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11601,32 +17145,41 @@ func (m *ScanInfo) Marshal() (dAtA []byte, err error) { } func (m *ScanInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Total != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Total)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReadBytes != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadBytes)) + i-- + dAtA[i] = 0x18 } if m.Processed != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Processed)) + i-- + dAtA[i] = 0x10 } - if m.ReadBytes != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadBytes)) + if m.Total != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ScanDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11634,47 +17187,62 @@ func (m *ScanDetail) Marshal() (dAtA []byte, err error) { } func (m *ScanDetail) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Write != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Write.Size())) - n124, err := m.Write.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n124 + i-- + dAtA[i] = 0x1a } if m.Lock != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Lock.Size())) - n125, err := m.Lock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n125 + i-- + dAtA[i] = 0x12 } - if m.Data != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) - n126, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Write != nil { + { + size, err := m.Write.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n126 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ScanDetailV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11682,82 +17250,91 @@ func (m *ScanDetailV2) Marshal() (dAtA []byte, err error) { } func (m *ScanDetailV2) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanDetailV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ProcessedVersions != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersions)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TotalVersions != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalVersions)) + if m.ReadPoolScheduleWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadPoolScheduleWaitNanos)) + i-- + dAtA[i] = 0x68 } - if m.RocksdbDeleteSkippedCount != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbDeleteSkippedCount)) + if m.ReadIndexConfirmWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexConfirmWaitNanos)) + i-- + dAtA[i] = 0x60 } - if m.RocksdbKeySkippedCount != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbKeySkippedCount)) + if m.ReadIndexProposeWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexProposeWaitNanos)) + i-- + dAtA[i] = 0x58 } - if m.RocksdbBlockCacheHitCount != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockCacheHitCount)) + if m.GetSnapshotNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GetSnapshotNanos)) + i-- + dAtA[i] = 0x50 } - if m.RocksdbBlockReadCount != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadCount)) + if m.RocksdbBlockReadNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadNanos)) + i-- + dAtA[i] = 0x48 + } + if m.ProcessedVersionsSize != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersionsSize)) + i-- + dAtA[i] = 0x40 } if m.RocksdbBlockReadByte != 0 { - dAtA[i] = 0x38 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadByte)) + i-- + dAtA[i] = 0x38 } - if m.ProcessedVersionsSize != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersionsSize)) + if m.RocksdbBlockReadCount != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadCount)) + i-- + dAtA[i] = 0x30 } - if m.RocksdbBlockReadNanos != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockReadNanos)) + if m.RocksdbBlockCacheHitCount != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbBlockCacheHitCount)) + i-- + dAtA[i] = 0x28 } - if m.GetSnapshotNanos != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GetSnapshotNanos)) + if m.RocksdbKeySkippedCount != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbKeySkippedCount)) + i-- + dAtA[i] = 0x20 } - if m.ReadIndexProposeWaitNanos != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexProposeWaitNanos)) + if m.RocksdbDeleteSkippedCount != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RocksdbDeleteSkippedCount)) + i-- + dAtA[i] = 0x18 } - if m.ReadIndexConfirmWaitNanos != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadIndexConfirmWaitNanos)) + if m.TotalVersions != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalVersions)) + i-- + dAtA[i] = 0x10 } - if m.ReadPoolScheduleWaitNanos != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadPoolScheduleWaitNanos)) + if m.ProcessedVersions != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessedVersions)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ExecDetails) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11765,37 +17342,50 @@ func (m *ExecDetails) Marshal() (dAtA []byte, err error) { } func (m *ExecDetails) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TimeDetail != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetail.Size())) - n127, err := m.TimeDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n127 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ScanDetail != nil { + { + size, err := m.ScanDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ScanDetail.Size())) - n128, err := m.ScanDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.TimeDetail != nil { + { + size, err := m.TimeDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n128 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExecDetailsV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11803,57 +17393,74 @@ func (m *ExecDetailsV2) Marshal() (dAtA []byte, err error) { } func (m *ExecDetailsV2) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecDetailsV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TimeDetail != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetail.Size())) - n129, err := m.TimeDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n129 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ScanDetailV2 != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ScanDetailV2.Size())) - n130, err := m.ScanDetailV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TimeDetailV2 != nil { + { + size, err := m.TimeDetailV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n130 + i-- + dAtA[i] = 0x22 } if m.WriteDetail != nil { + { + size, err := m.WriteDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WriteDetail.Size())) - n131, err := m.WriteDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.ScanDetailV2 != nil { + { + size, err := m.ScanDetailV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n131 + i-- + dAtA[i] = 0x12 } - if m.TimeDetailV2 != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TimeDetailV2.Size())) - n132, err := m.TimeDetailV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TimeDetail != nil { + { + size, err := m.TimeDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n132 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WriteDetail) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11861,106 +17468,115 @@ func (m *WriteDetail) Marshal() (dAtA []byte, err error) { } func (m *WriteDetail) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WriteDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StoreBatchWaitNanos != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreBatchWaitNanos)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ProposeSendWaitNanos != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProposeSendWaitNanos)) + if m.PessimisticLockWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PessimisticLockWaitNanos)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 } - if m.PersistLogNanos != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PersistLogNanos)) + if m.ThrottleNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ThrottleNanos)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } - if m.RaftDbWriteLeaderWaitNanos != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteLeaderWaitNanos)) + if m.ProcessNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessNanos)) + i-- + dAtA[i] = 0x78 } - if m.RaftDbSyncLogNanos != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbSyncLogNanos)) + if m.LatchWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LatchWaitNanos)) + i-- + dAtA[i] = 0x70 } - if m.RaftDbWriteMemtableNanos != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteMemtableNanos)) + if m.ApplyWriteMemtableNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteMemtableNanos)) + i-- + dAtA[i] = 0x68 } - if m.CommitLogNanos != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitLogNanos)) + if m.ApplyWriteWalNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteWalNanos)) + i-- + dAtA[i] = 0x60 } - if m.ApplyBatchWaitNanos != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyBatchWaitNanos)) + if m.ApplyWriteLeaderWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteLeaderWaitNanos)) + i-- + dAtA[i] = 0x58 + } + if m.ApplyMutexLockNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyMutexLockNanos)) + i-- + dAtA[i] = 0x50 } if m.ApplyLogNanos != 0 { - dAtA[i] = 0x48 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyLogNanos)) + i-- + dAtA[i] = 0x48 } - if m.ApplyMutexLockNanos != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyMutexLockNanos)) + if m.ApplyBatchWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyBatchWaitNanos)) + i-- + dAtA[i] = 0x40 } - if m.ApplyWriteLeaderWaitNanos != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteLeaderWaitNanos)) + if m.CommitLogNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitLogNanos)) + i-- + dAtA[i] = 0x38 } - if m.ApplyWriteWalNanos != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteWalNanos)) + if m.RaftDbWriteMemtableNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteMemtableNanos)) + i-- + dAtA[i] = 0x30 } - if m.ApplyWriteMemtableNanos != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApplyWriteMemtableNanos)) + if m.RaftDbSyncLogNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbSyncLogNanos)) + i-- + dAtA[i] = 0x28 } - if m.LatchWaitNanos != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LatchWaitNanos)) + if m.RaftDbWriteLeaderWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RaftDbWriteLeaderWaitNanos)) + i-- + dAtA[i] = 0x20 } - if m.ProcessNanos != 0 { - dAtA[i] = 0x78 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessNanos)) + if m.PersistLogNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PersistLogNanos)) + i-- + dAtA[i] = 0x18 } - if m.ThrottleNanos != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ThrottleNanos)) + if m.ProposeSendWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProposeSendWaitNanos)) + i-- + dAtA[i] = 0x10 } - if m.PessimisticLockWaitNanos != 0 { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PessimisticLockWaitNanos)) + if m.StoreBatchWaitNanos != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreBatchWaitNanos)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *KvPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -11968,39 +17584,52 @@ func (m *KvPair) Marshal() (dAtA []byte, err error) { } func (m *KvPair) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KvPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n133, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n133 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Mutation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12008,39 +17637,50 @@ func (m *Mutation) Marshal() (dAtA []byte, err error) { } func (m *Mutation) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Op)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Assertion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) + i-- + dAtA[i] = 0x20 } if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x1a } - if m.Assertion != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } + if m.Op != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MvccWrite) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12048,73 +17688,83 @@ func (m *MvccWrite) Marshal() (dAtA []byte, err error) { } func (m *MvccWrite) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccWrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StartTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.VersionsToLastChange != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) + i-- + dAtA[i] = 0x48 } - if m.CommitTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + if m.LastChangeTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) + i-- + dAtA[i] = 0x40 } - if len(m.ShortValue) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) - i += copy(dAtA[i:], m.ShortValue) + if m.GcFence != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GcFence)) + i-- + dAtA[i] = 0x38 } - if m.HasOverlappedRollback { - dAtA[i] = 0x28 - i++ - if m.HasOverlappedRollback { + if m.HasGcFence { + i-- + if m.HasGcFence { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.HasGcFence { + i-- dAtA[i] = 0x30 - i++ - if m.HasGcFence { + } + if m.HasOverlappedRollback { + i-- + if m.HasOverlappedRollback { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if m.GcFence != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GcFence)) + if len(m.ShortValue) > 0 { + i -= len(m.ShortValue) + copy(dAtA[i:], m.ShortValue) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) + i-- + dAtA[i] = 0x22 } - if m.LastChangeTs != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) + if m.CommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x18 } - if m.VersionsToLastChange != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Type != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *MvccValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12122,28 +17772,38 @@ func (m *MvccValue) Marshal() (dAtA []byte, err error) { } func (m *MvccValue) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MvccLock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12151,64 +17811,28 @@ func (m *MvccLock) Marshal() (dAtA []byte, err error) { } func (m *MvccLock) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - } - if m.StartTs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - } - if len(m.Primary) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) - i += copy(dAtA[i:], m.Primary) - } - if len(m.ShortValue) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) - i += copy(dAtA[i:], m.ShortValue) - } - if m.Ttl != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - } - if m.ForUpdateTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - } - if m.TxnSize != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.UseAsyncCommit { - dAtA[i] = 0x40 - i++ - if m.UseAsyncCommit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.VersionsToLastChange != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) + i-- + dAtA[i] = 0x60 } - if len(m.Secondaries) > 0 { - for _, b := range m.Secondaries { - dAtA[i] = 0x4a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } + if m.LastChangeTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) + i-- + dAtA[i] = 0x58 } if len(m.RollbackTs) > 0 { dAtA135 := make([]byte, len(m.RollbackTs)*10) @@ -12222,28 +17846,77 @@ func (m *MvccLock) MarshalTo(dAtA []byte) (int, error) { dAtA135[j134] = uint8(num) j134++ } - dAtA[i] = 0x52 - i++ + i -= j134 + copy(dAtA[i:], dAtA135[:j134]) i = encodeVarintKvrpcpb(dAtA, i, uint64(j134)) - i += copy(dAtA[i:], dAtA135[:j134]) + i-- + dAtA[i] = 0x52 } - if m.LastChangeTs != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) + if len(m.Secondaries) > 0 { + for iNdEx := len(m.Secondaries) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Secondaries[iNdEx]) + copy(dAtA[i:], m.Secondaries[iNdEx]) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Secondaries[iNdEx]))) + i-- + dAtA[i] = 0x4a + } } - if m.VersionsToLastChange != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) + if m.UseAsyncCommit { + i-- + if m.UseAsyncCommit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.TxnSize != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) + i-- + dAtA[i] = 0x38 + } + if m.ForUpdateTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) + i-- + dAtA[i] = 0x30 + } + if m.Ttl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x28 + } + if len(m.ShortValue) > 0 { + i -= len(m.ShortValue) + copy(dAtA[i:], m.ShortValue) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) + i-- + dAtA[i] = 0x22 + } + if len(m.Primary) > 0 { + i -= len(m.Primary) + copy(dAtA[i:], m.Primary) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Primary))) + i-- + dAtA[i] = 0x1a + } + if m.StartTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x10 + } + if m.Type != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MvccInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12251,51 +17924,66 @@ func (m *MvccInfo) Marshal() (dAtA []byte, err error) { } func (m *MvccInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MvccInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Lock != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Lock.Size())) - n136, err := m.Lock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n136 } if len(m.Writes) > 0 { - for _, msg := range m.Writes { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Writes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Writes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - if len(m.Values) > 0 { - for _, msg := range m.Values { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Lock != nil { + { + size, err := m.Lock.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TxnInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12303,27 +17991,36 @@ func (m *TxnInfo) Marshal() (dAtA []byte, err error) { } func (m *TxnInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Txn != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Txn)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Status != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x10 + } + if m.Txn != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Txn)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12331,29 +18028,40 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { } func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.EndKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x12 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *LeaderInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12361,52 +18069,65 @@ func (m *LeaderInfo) Marshal() (dAtA []byte, err error) { } func (m *LeaderInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LeaderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.PeerId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PeerId)) + if m.ReadState != nil { + { + size, err := m.ReadState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if m.Term != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x18 } - if m.RegionEpoch != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n137, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n137 + if m.PeerId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PeerId)) + i-- + dAtA[i] = 0x10 } - if m.ReadState != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ReadState.Size())) - n138, err := m.ReadState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n138 + if m.RegionId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ReadState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12414,27 +18135,36 @@ func (m *ReadState) Marshal() (dAtA []byte, err error) { } func (m *ReadState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.AppliedIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SafeTs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) + i-- + dAtA[i] = 0x10 + } + if m.AppliedIndex != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CheckLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12442,34 +18172,45 @@ func (m *CheckLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Ts != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *CheckLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12477,10 +18218,24 @@ func (m *CheckLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ts != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x10 + } if len(m.Regions) > 0 { dAtA140 := make([]byte, len(m.Regions)*10) var j139 int @@ -12493,23 +18248,19 @@ func (m *CheckLeaderResponse) MarshalTo(dAtA []byte) (int, error) { dAtA140[j139] = uint8(num) j139++ } - dAtA[i] = 0xa - i++ + i -= j139 + copy(dAtA[i:], dAtA140[:j139]) i = encodeVarintKvrpcpb(dAtA, i, uint64(j139)) - i += copy(dAtA[i:], dAtA140[:j139]) - } - if m.Ts != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StoreSafeTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12517,27 +18268,38 @@ func (m *StoreSafeTSRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreSafeTSRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreSafeTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.KeyRange != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyRange.Size())) - n141, err := m.KeyRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.KeyRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n141 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StoreSafeTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12545,22 +18307,31 @@ func (m *StoreSafeTSResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreSafeTSResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreSafeTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.SafeTs != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SafeTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RawGetKeyTTLRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12568,39 +18339,52 @@ func (m *RawGetKeyTTLRequest) Marshal() (dAtA []byte, err error) { } func (m *RawGetKeyTTLRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawGetKeyTTLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n142, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n142 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x1a } if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 } - if len(m.Cf) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawGetKeyTTLResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12608,48 +18392,60 @@ func (m *RawGetKeyTTLResponse) Marshal() (dAtA []byte, err error) { } func (m *RawGetKeyTTLResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawGetKeyTTLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n143, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n143 - } - if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) - } - if m.Ttl != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.NotFound { - dAtA[i] = 0x20 - i++ + i-- if m.NotFound { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if m.Ttl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x18 + } + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawCASRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12657,66 +18453,81 @@ func (m *RawCASRequest) Marshal() (dAtA []byte, err error) { } func (m *RawCASRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawCASRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n144, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n144 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Ttl != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x38 } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0x32 + } + if len(m.PreviousValue) > 0 { + i -= len(m.PreviousValue) + copy(dAtA[i:], m.PreviousValue) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) + i-- + dAtA[i] = 0x2a } if m.PreviousNotExist { - dAtA[i] = 0x20 - i++ + i-- if m.PreviousNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if len(m.PreviousValue) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) - i += copy(dAtA[i:], m.PreviousValue) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a } - if len(m.Cf) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 } - if m.Ttl != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawCASResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12724,59 +18535,72 @@ func (m *RawCASResponse) Marshal() (dAtA []byte, err error) { } func (m *RawCASResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawCASResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n145, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n145 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if len(m.PreviousValue) > 0 { + i -= len(m.PreviousValue) + copy(dAtA[i:], m.PreviousValue) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) + i-- + dAtA[i] = 0x2a } - if m.Succeed { - dAtA[i] = 0x18 - i++ - if m.Succeed { + if m.PreviousNotExist { + i-- + if m.PreviousNotExist { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.PreviousNotExist { + i-- dAtA[i] = 0x20 - i++ - if m.PreviousNotExist { + } + if m.Succeed { + i-- + if m.Succeed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if len(m.PreviousValue) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) - i += copy(dAtA[i:], m.PreviousValue) + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetLockWaitInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12784,27 +18608,38 @@ func (m *GetLockWaitInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLockWaitInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n146, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n146 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetLockWaitInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12812,45 +18647,59 @@ func (m *GetLockWaitInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLockWaitInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n147, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Entries) > 0 { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n147 } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetLockWaitHistoryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12858,73 +18707,98 @@ func (m *GetLockWaitHistoryRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLockWaitHistoryRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLockWaitHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n148, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n148 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetLockWaitHistoryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *GetLockWaitHistoryResponse) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *GetLockWaitHistoryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLockWaitHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n149, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Entries) > 0 { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n149 } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawCoprocessorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12932,57 +18806,73 @@ func (m *RawCoprocessorRequest) Marshal() (dAtA []byte, err error) { } func (m *RawCoprocessorRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawCoprocessorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n150, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n150 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.CoprName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprName))) - i += copy(dAtA[i:], m.CoprName) + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x2a + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } if len(m.CoprVersionReq) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.CoprVersionReq) + copy(dAtA[i:], m.CoprVersionReq) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprVersionReq))) - i += copy(dAtA[i:], m.CoprVersionReq) + i-- + dAtA[i] = 0x1a } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.CoprName) > 0 { + i -= len(m.CoprName) + copy(dAtA[i:], m.CoprName) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CoprName))) + i-- + dAtA[i] = 0x12 + } + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if len(m.Data) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } - return i, nil + return len(dAtA) - i, nil } func (m *RawCoprocessorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -12990,39 +18880,52 @@ func (m *RawCoprocessorResponse) Marshal() (dAtA []byte, err error) { } func (m *RawCoprocessorResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawCoprocessorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n151, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n151 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x1a } if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Error) + copy(dAtA[i:], m.Error) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + i-- + dAtA[i] = 0x12 } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawChecksumRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13030,44 +18933,57 @@ func (m *RawChecksumRequest) Marshal() (dAtA []byte, err error) { } func (m *RawChecksumRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawChecksumRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n152, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n152 } if m.Algorithm != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Algorithm)) + i-- + dAtA[i] = 0x10 } - if len(m.Ranges) > 0 { - for _, msg := range m.Ranges { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RawChecksumResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13075,48 +18991,60 @@ func (m *RawChecksumResponse) Marshal() (dAtA []byte, err error) { } func (m *RawChecksumResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawChecksumResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n153, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n153 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Error) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) - i += copy(dAtA[i:], m.Error) + if m.TotalBytes != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalBytes)) + i-- + dAtA[i] = 0x28 + } + if m.TotalKvs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalKvs)) + i-- + dAtA[i] = 0x20 } if m.Checksum != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Checksum)) + i-- + dAtA[i] = 0x18 } - if m.TotalKvs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalKvs)) + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x12 } - if m.TotalBytes != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalBytes)) + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13124,80 +19052,119 @@ func (m *CompactError) Marshal() (dAtA []byte, err error) { } func (m *CompactError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - nn154, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Error.Size() + i -= size + if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn154 } - return i, nil + return len(dAtA) - i, nil } func (m *CompactError_ErrInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactError_ErrInvalidStartKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrInvalidStartKey != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrInvalidStartKey.Size())) - n155, err := m.ErrInvalidStartKey.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrInvalidStartKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n155 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactError_ErrPhysicalTableNotExist) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactError_ErrPhysicalTableNotExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrPhysicalTableNotExist != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrPhysicalTableNotExist.Size())) - n156, err := m.ErrPhysicalTableNotExist.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrPhysicalTableNotExist.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n156 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *CompactError_ErrCompactInProgress) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactError_ErrCompactInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrCompactInProgress != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrCompactInProgress.Size())) - n157, err := m.ErrCompactInProgress.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrCompactInProgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n157 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *CompactError_ErrTooManyPendingTasks) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactError_ErrTooManyPendingTasks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ErrTooManyPendingTasks != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ErrTooManyPendingTasks.Size())) - n158, err := m.ErrTooManyPendingTasks.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ErrTooManyPendingTasks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n158 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *CompactErrorInvalidStartKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13205,17 +19172,26 @@ func (m *CompactErrorInvalidStartKey) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactErrorInvalidStartKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CompactErrorPhysicalTableNotExist) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13223,17 +19199,26 @@ func (m *CompactErrorPhysicalTableNotExist) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorPhysicalTableNotExist) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactErrorPhysicalTableNotExist) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CompactErrorCompactInProgress) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13241,17 +19226,26 @@ func (m *CompactErrorCompactInProgress) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorCompactInProgress) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactErrorCompactInProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CompactErrorTooManyPendingTasks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13259,17 +19253,26 @@ func (m *CompactErrorTooManyPendingTasks) Marshal() (dAtA []byte, err error) { } func (m *CompactErrorTooManyPendingTasks) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactErrorTooManyPendingTasks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CompactRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13277,43 +19280,53 @@ func (m *CompactRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.PhysicalTableId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PhysicalTableId)) + if m.KeyspaceId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x40 + } + if m.ApiVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x38 } if m.LogicalTableId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LogicalTableId)) + i-- + dAtA[i] = 0x18 } - if m.ApiVersion != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) + if m.PhysicalTableId != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.PhysicalTableId)) + i-- + dAtA[i] = 0x10 } - if m.KeyspaceId != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CompactResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13321,49 +19334,62 @@ func (m *CompactResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Error.Size())) - n159, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n159 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.CompactedEndKey) > 0 { + i -= len(m.CompactedEndKey) + copy(dAtA[i:], m.CompactedEndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) + i-- + dAtA[i] = 0x22 + } + if len(m.CompactedStartKey) > 0 { + i -= len(m.CompactedStartKey) + copy(dAtA[i:], m.CompactedStartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedStartKey))) + i-- + dAtA[i] = 0x1a } if m.HasRemaining { - dAtA[i] = 0x10 - i++ + i-- if m.HasRemaining { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.CompactedStartKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedStartKey))) - i += copy(dAtA[i:], m.CompactedStartKey) + i-- + dAtA[i] = 0x10 } - if len(m.CompactedEndKey) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) - i += copy(dAtA[i:], m.CompactedEndKey) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashSystemTableRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13371,23 +19397,33 @@ func (m *TiFlashSystemTableRequest) Marshal() (dAtA []byte, err error) { } func (m *TiFlashSystemTableRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashSystemTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Sql) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Sql) + copy(dAtA[i:], m.Sql) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Sql))) - i += copy(dAtA[i:], m.Sql) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13395,25 +19431,36 @@ func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { } func (m *TiFlashSystemTableResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TiFlashSystemTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) - n160, err := m.Data.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - i += n160 - return i, nil + { + size := m.Data.Size() + i -= size + if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *TxnEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13421,52 +19468,77 @@ func (m *TxnEntry) Marshal() (dAtA []byte, err error) { } func (m *TxnEntry) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Entry != nil { - nn161, err := m.Entry.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Entry.Size() + i -= size + if _, err := m.Entry.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn161 } - return i, nil + return len(dAtA) - i, nil } func (m *TxnEntry_Prewrite_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnEntry_Prewrite_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Prewrite != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Prewrite.Size())) - n162, err := m.Prewrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n162 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TxnEntry_Commit_) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnEntry_Commit_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Commit != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Commit.Size())) - n163, err := m.Commit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } - i += n163 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *TxnEntry_Prewrite) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13474,40 +19546,52 @@ func (m *TxnEntry_Prewrite) Marshal() (dAtA []byte, err error) { } func (m *TxnEntry_Prewrite) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnEntry_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if len(m.PrimaryKey) > 0 { + i -= len(m.PrimaryKey) + copy(dAtA[i:], m.PrimaryKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i-- + dAtA[i] = 0x22 } if m.StartTs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x18 } - if len(m.PrimaryKey) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) - i += copy(dAtA[i:], m.PrimaryKey) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *TxnEntry_Commit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13515,39 +19599,50 @@ func (m *TxnEntry_Commit) Marshal() (dAtA []byte, err error) { } func (m *TxnEntry_Commit) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxnEntry_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.CommitTs != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + i-- + dAtA[i] = 0x20 } if m.StartTs != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x18 } - if m.CommitTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ScanTxnEntriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13555,64 +19650,67 @@ func (m *ScanTxnEntriesRequest) Marshal() (dAtA []byte, err error) { } func (m *ScanTxnEntriesRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanTxnEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Context != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) - n164, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n164 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) - } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) - } - if m.Limit != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.KeyOnly { - dAtA[i] = 0x28 - i++ + i-- if m.KeyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if m.StartTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) + if m.Limit != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 } - if m.VersionsPerKey != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsPerKey)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ScanTxnEntriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -13620,45 +19718,63 @@ func (m *ScanTxnEntriesResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanTxnEntriesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanTxnEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionError != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) - n165, err := m.RegionError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n165 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Entries) > 0 { - for _, msg := range m.Entries { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionError != nil { + { + size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintKvrpcpb(dAtA []byte, offset int, v uint64) int { + offset -= sovKvrpcpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -13672,10 +19788,16 @@ func (m *GetRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -13697,10 +19819,16 @@ func (m *GetResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -13730,10 +19858,16 @@ func (m *ScanRequest) Size() (n int) { if m.SampleStep != 0 { n += 1 + sovKvrpcpb(uint64(m.SampleStep)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -13750,10 +19884,16 @@ func (m *ScanResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrewriteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -13819,10 +19959,16 @@ func (m *PrewriteRequest) Size() (n int) { n += 2 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Index != 0 { @@ -13831,10 +19977,16 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { if m.ExpectedForUpdateTs != 0 { n += 1 + sovKvrpcpb(uint64(m.ExpectedForUpdateTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrewriteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -13857,10 +20009,16 @@ func (m *PrewriteResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PessimisticLockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -13910,10 +20068,16 @@ func (m *PessimisticLockRequest) Size() (n int) { if m.WakeUpMode != 0 { n += 1 + sovKvrpcpb(uint64(m.WakeUpMode)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PessimisticLockKeyResult) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -13932,10 +20096,16 @@ func (m *PessimisticLockKeyResult) Size() (n int) { if m.SkipResolvingLock { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PessimisticLockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -13974,10 +20144,16 @@ func (m *PessimisticLockResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PessimisticRollbackRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -13996,10 +20172,16 @@ func (m *PessimisticRollbackRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PessimisticRollbackResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14016,10 +20198,16 @@ func (m *PessimisticRollbackResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnHeartBeatRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14036,10 +20224,16 @@ func (m *TxnHeartBeatRequest) Size() (n int) { if m.AdviseLockTtl != 0 { n += 1 + sovKvrpcpb(uint64(m.AdviseLockTtl)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnHeartBeatResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14057,10 +20251,16 @@ func (m *TxnHeartBeatResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckTxnStatusRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14092,10 +20292,16 @@ func (m *CheckTxnStatusRequest) Size() (n int) { if m.VerifyIsPrimary { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckTxnStatusResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14123,10 +20329,16 @@ func (m *CheckTxnStatusResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckSecondaryLocksRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14142,10 +20354,16 @@ func (m *CheckSecondaryLocksRequest) Size() (n int) { if m.StartVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.StartVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckSecondaryLocksResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14169,10 +20387,16 @@ func (m *CheckSecondaryLocksResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14191,10 +20415,16 @@ func (m *CommitRequest) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14212,10 +20442,16 @@ func (m *CommitResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ImportRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Mutations) > 0 { @@ -14227,10 +20463,16 @@ func (m *ImportRequest) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ImportResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14241,10 +20483,16 @@ func (m *ImportResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14261,10 +20509,16 @@ func (m *CleanupRequest) Size() (n int) { if m.CurrentTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CurrentTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CleanupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14278,10 +20532,16 @@ func (m *CleanupResponse) Size() (n int) { if m.CommitVersion != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchGetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14297,10 +20557,16 @@ func (m *BatchGetRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchGetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14321,10 +20587,16 @@ func (m *BatchGetResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchRollbackRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14340,10 +20612,16 @@ func (m *BatchRollbackRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchRollbackResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14358,10 +20636,16 @@ func (m *BatchRollbackResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanLockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14382,10 +20666,16 @@ func (m *ScanLockRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanLockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14406,10 +20696,16 @@ func (m *ScanLockResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResolveLockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14434,10 +20730,16 @@ func (m *ResolveLockRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResolveLockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14452,10 +20754,16 @@ func (m *ResolveLockResponse) Size() (n int) { l = m.ExecDetailsV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GCRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14465,10 +20773,16 @@ func (m *GCRequest) Size() (n int) { if m.SafePoint != 0 { n += 1 + sovKvrpcpb(uint64(m.SafePoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GCResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14479,10 +20793,16 @@ func (m *GCResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRangeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14500,10 +20820,16 @@ func (m *DeleteRangeRequest) Size() (n int) { if m.NotifyOnly { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRangeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14514,10 +20840,16 @@ func (m *DeleteRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareFlashbackToVersionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14538,10 +20870,16 @@ func (m *PrepareFlashbackToVersionRequest) Size() (n int) { if m.Version != 0 { n += 1 + sovKvrpcpb(uint64(m.Version)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareFlashbackToVersionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14552,10 +20890,16 @@ func (m *PrepareFlashbackToVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackToVersionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14579,10 +20923,16 @@ func (m *FlashbackToVersionRequest) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlashbackToVersionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14593,10 +20943,16 @@ func (m *FlashbackToVersionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawGetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14611,10 +20967,16 @@ func (m *RawGetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawGetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14632,10 +20994,16 @@ func (m *RawGetResponse) Size() (n int) { if m.NotFound { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchGetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14652,10 +21020,16 @@ func (m *RawBatchGetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchGetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14668,10 +21042,16 @@ func (m *RawBatchGetResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawPutRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14696,10 +21076,16 @@ func (m *RawPutRequest) Size() (n int) { if m.ForCas { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawPutResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14710,10 +21096,16 @@ func (m *RawPutResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchPutRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14743,10 +21135,16 @@ func (m *RawBatchPutRequest) Size() (n int) { } n += 1 + sovKvrpcpb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchPutResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14757,10 +21155,16 @@ func (m *RawBatchPutResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14778,10 +21182,16 @@ func (m *RawDeleteRequest) Size() (n int) { if m.ForCas { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawDeleteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14792,10 +21202,16 @@ func (m *RawDeleteResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14815,10 +21231,16 @@ func (m *RawBatchDeleteRequest) Size() (n int) { if m.ForCas { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchDeleteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14829,10 +21251,16 @@ func (m *RawBatchDeleteResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawScanRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14860,10 +21288,16 @@ func (m *RawScanRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawScanResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14876,10 +21310,16 @@ func (m *RawScanResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawDeleteRangeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14898,10 +21338,16 @@ func (m *RawDeleteRangeRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawDeleteRangeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14912,10 +21358,16 @@ func (m *RawDeleteRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchScanRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14941,10 +21393,16 @@ func (m *RawBatchScanRequest) Size() (n int) { if m.Reverse { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawBatchScanResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14957,10 +21415,16 @@ func (m *RawBatchScanResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UnsafeDestroyRangeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -14975,10 +21439,16 @@ func (m *UnsafeDestroyRangeRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UnsafeDestroyRangeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -14989,10 +21459,16 @@ func (m *UnsafeDestroyRangeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegisterLockObserverRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15002,20 +21478,32 @@ func (m *RegisterLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegisterLockObserverResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckLockObserverRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15025,10 +21513,16 @@ func (m *CheckLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckLockObserverResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Error) @@ -15044,10 +21538,16 @@ func (m *CheckLockObserverResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RemoveLockObserverRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15057,20 +21557,32 @@ func (m *RemoveLockObserverRequest) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MaxTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RemoveLockObserverResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Error) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PhysicalScanLockRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15087,10 +21599,16 @@ func (m *PhysicalScanLockRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovKvrpcpb(uint64(m.Limit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PhysicalScanLockResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Error) @@ -15103,10 +21621,16 @@ func (m *PhysicalScanLockResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SplitRegionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15126,10 +21650,16 @@ func (m *SplitRegionRequest) Size() (n int) { if m.IsRawKv { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SplitRegionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -15150,10 +21680,16 @@ func (m *SplitRegionResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadIndexRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15169,10 +21705,16 @@ func (m *ReadIndexRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadIndexResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -15186,10 +21728,16 @@ func (m *ReadIndexResponse) Size() (n int) { l = m.Locked.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccGetByKeyRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15200,10 +21748,16 @@ func (m *MvccGetByKeyRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccGetByKeyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -15218,10 +21772,16 @@ func (m *MvccGetByKeyResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccGetByStartTsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -15231,10 +21791,16 @@ func (m *MvccGetByStartTsRequest) Size() (n int) { if m.StartTs != 0 { n += 1 + sovKvrpcpb(uint64(m.StartTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccGetByStartTsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -15253,10 +21819,16 @@ func (m *MvccGetByStartTsResponse) Size() (n int) { l = m.Info.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Context) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -15361,10 +21933,16 @@ func (m *Context) Size() (n int) { l = m.SourceStmt.Size() n += 2 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResourceControlContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupName) @@ -15378,10 +21956,16 @@ func (m *ResourceControlContext) Size() (n int) { if m.OverridePriority != 0 { n += 1 + sovKvrpcpb(uint64(m.OverridePriority)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SourceStmt) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15397,10 +21981,16 @@ func (m *SourceStmt) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LockInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.PrimaryLock) @@ -15441,10 +22031,16 @@ func (m *LockInfo) Size() (n int) { if m.DurationToLastUpdateMs != 0 { n += 1 + sovKvrpcpb(uint64(m.DurationToLastUpdateMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Locked != nil { @@ -15491,10 +22087,16 @@ func (m *KeyError) Size() (n int) { l = m.PrimaryMismatch.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteConflict) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15517,20 +22119,32 @@ func (m *WriteConflict) Size() (n int) { if m.Reason != 0 { n += 1 + sovKvrpcpb(uint64(m.Reason)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AlreadyExist) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Deadlock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.LockTs != 0 { @@ -15549,10 +22163,16 @@ func (m *Deadlock) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitTsExpired) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15568,10 +22188,16 @@ func (m *CommitTsExpired) Size() (n int) { if m.MinCommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.MinCommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnNotFound) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15581,19 +22207,31 @@ func (m *TxnNotFound) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitTsTooLarge) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AssertionFailed) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15612,20 +22250,32 @@ func (m *AssertionFailed) Size() (n int) { if m.ExistingCommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.ExistingCommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrimaryMismatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.LockInfo != nil { l = m.LockInfo.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TimeDetail) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.WaitWallTimeMs != 0 { @@ -15640,10 +22290,16 @@ func (m *TimeDetail) Size() (n int) { if m.TotalRpcWallTimeNs != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalRpcWallTimeNs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TimeDetailV2) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.WaitWallTimeNs != 0 { @@ -15661,10 +22317,16 @@ func (m *TimeDetailV2) Size() (n int) { if m.TotalRpcWallTimeNs != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalRpcWallTimeNs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Total != 0 { @@ -15676,10 +22338,16 @@ func (m *ScanInfo) Size() (n int) { if m.ReadBytes != 0 { n += 1 + sovKvrpcpb(uint64(m.ReadBytes)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanDetail) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Write != nil { @@ -15694,10 +22362,16 @@ func (m *ScanDetail) Size() (n int) { l = m.Data.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanDetailV2) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ProcessedVersions != 0 { @@ -15739,10 +22413,16 @@ func (m *ScanDetailV2) Size() (n int) { if m.ReadPoolScheduleWaitNanos != 0 { n += 1 + sovKvrpcpb(uint64(m.ReadPoolScheduleWaitNanos)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExecDetails) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TimeDetail != nil { @@ -15753,10 +22433,16 @@ func (m *ExecDetails) Size() (n int) { l = m.ScanDetail.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExecDetailsV2) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TimeDetail != nil { @@ -15775,10 +22461,16 @@ func (m *ExecDetailsV2) Size() (n int) { l = m.TimeDetailV2.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WriteDetail) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StoreBatchWaitNanos != 0 { @@ -15832,10 +22524,16 @@ func (m *WriteDetail) Size() (n int) { if m.PessimisticLockWaitNanos != 0 { n += 2 + sovKvrpcpb(uint64(m.PessimisticLockWaitNanos)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KvPair) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -15850,10 +22548,16 @@ func (m *KvPair) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Mutation) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Op != 0 { @@ -15870,10 +22574,16 @@ func (m *Mutation) Size() (n int) { if m.Assertion != 0 { n += 1 + sovKvrpcpb(uint64(m.Assertion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccWrite) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -15904,10 +22614,16 @@ func (m *MvccWrite) Size() (n int) { if m.VersionsToLastChange != 0 { n += 1 + sovKvrpcpb(uint64(m.VersionsToLastChange)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -15917,10 +22633,16 @@ func (m *MvccValue) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -15968,10 +22690,16 @@ func (m *MvccLock) Size() (n int) { if m.VersionsToLastChange != 0 { n += 1 + sovKvrpcpb(uint64(m.VersionsToLastChange)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MvccInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Lock != nil { @@ -15990,10 +22718,16 @@ func (m *MvccInfo) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Txn != 0 { @@ -16002,10 +22736,16 @@ func (m *TxnInfo) Size() (n int) { if m.Status != 0 { n += 1 + sovKvrpcpb(uint64(m.Status)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -16016,10 +22756,16 @@ func (m *KeyRange) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *LeaderInfo) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -16039,10 +22785,16 @@ func (m *LeaderInfo) Size() (n int) { l = m.ReadState.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AppliedIndex != 0 { @@ -16051,10 +22803,16 @@ func (m *ReadState) Size() (n int) { if m.SafeTs != 0 { n += 1 + sovKvrpcpb(uint64(m.SafeTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckLeaderRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -16066,10 +22824,16 @@ func (m *CheckLeaderRequest) Size() (n int) { if m.Ts != 0 { n += 1 + sovKvrpcpb(uint64(m.Ts)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckLeaderResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -16082,29 +22846,47 @@ func (m *CheckLeaderResponse) Size() (n int) { if m.Ts != 0 { n += 1 + sovKvrpcpb(uint64(m.Ts)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreSafeTSRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.KeyRange != nil { l = m.KeyRange.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreSafeTSResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SafeTs != 0 { n += 1 + sovKvrpcpb(uint64(m.SafeTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawGetKeyTTLRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -16119,10 +22901,16 @@ func (m *RawGetKeyTTLRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawGetKeyTTLResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16139,10 +22927,16 @@ func (m *RawGetKeyTTLResponse) Size() (n int) { if m.NotFound { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawCASRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -16171,10 +22965,16 @@ func (m *RawCASRequest) Size() (n int) { if m.Ttl != 0 { n += 1 + sovKvrpcpb(uint64(m.Ttl)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawCASResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16195,20 +22995,32 @@ func (m *RawCASResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLockWaitInfoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { l = m.Context.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLockWaitInfoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16225,20 +23037,32 @@ func (m *GetLockWaitInfoResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLockWaitHistoryRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { l = m.Context.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLockWaitHistoryResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16255,10 +23079,16 @@ func (m *GetLockWaitHistoryResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawCoprocessorRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -16283,10 +23113,16 @@ func (m *RawCoprocessorRequest) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawCoprocessorResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16301,10 +23137,16 @@ func (m *RawCoprocessorResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawChecksumRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -16320,10 +23162,16 @@ func (m *RawChecksumRequest) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawChecksumResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16343,19 +23191,31 @@ func (m *RawChecksumResponse) Size() (n int) { if m.TotalBytes != 0 { n += 1 + sovKvrpcpb(uint64(m.TotalBytes)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactError) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { n += m.Error.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactError_ErrInvalidStartKey) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrInvalidStartKey != nil { @@ -16365,6 +23225,9 @@ func (m *CompactError_ErrInvalidStartKey) Size() (n int) { return n } func (m *CompactError_ErrPhysicalTableNotExist) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrPhysicalTableNotExist != nil { @@ -16374,6 +23237,9 @@ func (m *CompactError_ErrPhysicalTableNotExist) Size() (n int) { return n } func (m *CompactError_ErrCompactInProgress) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrCompactInProgress != nil { @@ -16383,6 +23249,9 @@ func (m *CompactError_ErrCompactInProgress) Size() (n int) { return n } func (m *CompactError_ErrTooManyPendingTasks) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ErrTooManyPendingTasks != nil { @@ -16392,30 +23261,57 @@ func (m *CompactError_ErrTooManyPendingTasks) Size() (n int) { return n } func (m *CompactErrorInvalidStartKey) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactErrorPhysicalTableNotExist) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactErrorCompactInProgress) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactErrorTooManyPendingTasks) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -16434,10 +23330,16 @@ func (m *CompactRequest) Size() (n int) { if m.KeyspaceId != 0 { n += 1 + sovKvrpcpb(uint64(m.KeyspaceId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -16455,37 +23357,61 @@ func (m *CompactResponse) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TiFlashSystemTableRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Sql) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TiFlashSystemTableResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Data.Size() n += 1 + l + sovKvrpcpb(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnEntry) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Entry != nil { n += m.Entry.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnEntry_Prewrite_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Prewrite != nil { @@ -16495,6 +23421,9 @@ func (m *TxnEntry_Prewrite_) Size() (n int) { return n } func (m *TxnEntry_Commit_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Commit != nil { @@ -16504,6 +23433,9 @@ func (m *TxnEntry_Commit_) Size() (n int) { return n } func (m *TxnEntry_Prewrite) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -16521,10 +23453,16 @@ func (m *TxnEntry_Prewrite) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TxnEntry_Commit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -16541,10 +23479,16 @@ func (m *TxnEntry_Commit) Size() (n int) { if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ScanTxnEntriesRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Context != nil { @@ -16565,16 +23509,16 @@ func (m *ScanTxnEntriesRequest) Size() (n int) { if m.KeyOnly { n += 2 } - if m.StartTs != 0 { - n += 1 + sovKvrpcpb(uint64(m.StartTs)) - } - if m.VersionsPerKey != 0 { - n += 1 + sovKvrpcpb(uint64(m.VersionsPerKey)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } return n } func (m *ScanTxnEntriesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionError != nil { @@ -16587,18 +23531,14 @@ func (m *ScanTxnEntriesResponse) Size() (n int) { n += 1 + l + sovKvrpcpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovKvrpcpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozKvrpcpb(x uint64) (n int) { return sovKvrpcpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -16618,7 +23558,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -16646,7 +23586,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16655,6 +23595,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16679,7 +23622,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16688,6 +23631,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16710,7 +23656,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -16721,12 +23667,13 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -16751,7 +23698,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -16779,7 +23726,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16788,6 +23735,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16812,7 +23762,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16821,6 +23771,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16845,7 +23798,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16854,6 +23807,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16876,7 +23832,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16896,7 +23852,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16905,6 +23861,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16921,12 +23880,13 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -16951,7 +23911,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -16979,7 +23939,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -16988,6 +23948,9 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17012,7 +23975,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17021,6 +23984,9 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17043,7 +24009,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -17062,7 +24028,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17081,7 +24047,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17101,7 +24067,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17121,7 +24087,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17130,6 +24096,9 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17152,7 +24121,7 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SampleStep |= (uint32(b) & 0x7F) << shift + m.SampleStep |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -17163,12 +24132,13 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -17193,7 +24163,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17221,7 +24191,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17230,6 +24200,9 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17254,7 +24227,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17263,6 +24236,9 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17285,7 +24261,7 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17294,6 +24270,9 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17310,12 +24289,13 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -17340,7 +24320,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17368,7 +24348,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17377,6 +24357,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17401,7 +24384,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17410,6 +24393,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17432,7 +24418,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17441,6 +24427,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17463,7 +24452,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17482,7 +24471,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= (uint64(b) & 0x7F) << shift + m.LockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17501,7 +24490,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17519,7 +24508,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (PrewriteRequest_PessimisticAction(b) & 0x7F) << shift + v |= PrewriteRequest_PessimisticAction(b&0x7F) << shift if b < 0x80 { break } @@ -17536,7 +24525,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17545,9 +24534,16 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + if elementCount != 0 && len(m.PessimisticActions) == 0 { + m.PessimisticActions = make([]PrewriteRequest_PessimisticAction, 0, elementCount) + } for iNdEx < postIndex { var v PrewriteRequest_PessimisticAction for shift := uint(0); ; shift += 7 { @@ -17559,7 +24555,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (PrewriteRequest_PessimisticAction(b) & 0x7F) << shift + v |= PrewriteRequest_PessimisticAction(b&0x7F) << shift if b < 0x80 { break } @@ -17583,7 +24579,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= (uint64(b) & 0x7F) << shift + m.TxnSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17602,7 +24598,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= (uint64(b) & 0x7F) << shift + m.ForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17621,7 +24617,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17640,7 +24636,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17660,7 +24656,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17669,6 +24665,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17689,7 +24688,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17709,7 +24708,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxCommitTs |= (uint64(b) & 0x7F) << shift + m.MaxCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17728,7 +24727,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AssertionLevel |= (AssertionLevel(b) & 0x7F) << shift + m.AssertionLevel |= AssertionLevel(b&0x7F) << shift if b < 0x80 { break } @@ -17747,7 +24746,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17756,6 +24755,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17770,12 +24772,13 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -17800,7 +24803,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17828,7 +24831,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint32(b) & 0x7F) << shift + m.Index |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -17847,7 +24850,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExpectedForUpdateTs |= (uint64(b) & 0x7F) << shift + m.ExpectedForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17858,12 +24861,13 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -17888,7 +24892,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17916,7 +24920,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17925,6 +24929,9 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17949,7 +24956,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -17958,6 +24965,9 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17980,7 +24990,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -17999,7 +25009,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OnePcCommitTs |= (uint64(b) & 0x7F) << shift + m.OnePcCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18018,7 +25028,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18027,6 +25037,9 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18043,12 +25056,13 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -18073,7 +25087,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18101,7 +25115,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18110,6 +25124,9 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18134,7 +25151,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18143,6 +25160,9 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18165,7 +25185,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18174,6 +25194,9 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18196,7 +25219,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18215,7 +25238,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= (uint64(b) & 0x7F) << shift + m.LockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18234,7 +25257,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= (uint64(b) & 0x7F) << shift + m.ForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18253,7 +25276,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18273,7 +25296,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitTimeout |= (int64(b) & 0x7F) << shift + m.WaitTimeout |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -18292,7 +25315,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18312,7 +25335,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18332,7 +25355,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18351,7 +25374,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18371,7 +25394,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18391,7 +25414,7 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WakeUpMode |= (PessimisticLockWakeUpMode(b) & 0x7F) << shift + m.WakeUpMode |= PessimisticLockWakeUpMode(b&0x7F) << shift if b < 0x80 { break } @@ -18402,12 +25425,13 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -18432,7 +25456,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18460,7 +25484,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (PessimisticLockKeyResultType(b) & 0x7F) << shift + m.Type |= PessimisticLockKeyResultType(b&0x7F) << shift if b < 0x80 { break } @@ -18479,7 +25503,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18488,6 +25512,9 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18510,7 +25537,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18530,7 +25557,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockedWithConflictTs |= (uint64(b) & 0x7F) << shift + m.LockedWithConflictTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18549,7 +25576,7 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18561,12 +25588,13 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -18591,7 +25619,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18619,7 +25647,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18628,6 +25656,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18652,7 +25683,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18661,6 +25692,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18683,7 +25717,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18702,7 +25736,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18711,6 +25745,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18733,7 +25770,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18742,6 +25779,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18760,7 +25800,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18777,7 +25817,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18786,9 +25826,17 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen + if elementCount != 0 && len(m.NotFounds) == 0 { + m.NotFounds = make([]bool, 0, elementCount) + } for iNdEx < postIndex { var v int for shift := uint(0); ; shift += 7 { @@ -18800,7 +25848,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18824,7 +25872,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18833,6 +25881,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18857,7 +25908,7 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18866,6 +25917,9 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18880,12 +25934,13 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -18910,7 +25965,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18938,7 +25993,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -18947,6 +26002,9 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18971,7 +26029,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18990,7 +26048,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= (uint64(b) & 0x7F) << shift + m.ForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19009,7 +26067,7 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19018,6 +26076,9 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19030,12 +26091,13 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -19060,7 +26122,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19088,7 +26150,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19097,6 +26159,9 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19121,7 +26186,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19130,6 +26195,9 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19152,7 +26220,7 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19161,6 +26229,9 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19177,12 +26248,13 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -19207,7 +26279,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19235,7 +26307,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19244,6 +26316,9 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19268,7 +26343,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19277,6 +26352,9 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19299,7 +26377,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19318,7 +26396,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AdviseLockTtl |= (uint64(b) & 0x7F) << shift + m.AdviseLockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19329,12 +26407,13 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -19359,7 +26438,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19387,7 +26466,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19396,6 +26475,9 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19420,7 +26502,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19429,6 +26511,9 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19453,7 +26538,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= (uint64(b) & 0x7F) << shift + m.LockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19472,7 +26557,7 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19481,6 +26566,9 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19497,12 +26585,13 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -19527,7 +26616,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19555,7 +26644,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19564,6 +26653,9 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19588,7 +26680,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19597,6 +26689,9 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19619,7 +26714,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTs |= (uint64(b) & 0x7F) << shift + m.LockTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19638,7 +26733,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CallerStartTs |= (uint64(b) & 0x7F) << shift + m.CallerStartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19657,7 +26752,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTs |= (uint64(b) & 0x7F) << shift + m.CurrentTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19676,7 +26771,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19696,7 +26791,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19716,7 +26811,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19736,7 +26831,7 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19748,12 +26843,13 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -19778,7 +26874,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19806,7 +26902,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19815,6 +26911,9 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19839,7 +26938,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19848,6 +26947,9 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19872,7 +26974,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= (uint64(b) & 0x7F) << shift + m.LockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19891,7 +26993,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -19910,7 +27012,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Action |= (Action(b) & 0x7F) << shift + m.Action |= Action(b&0x7F) << shift if b < 0x80 { break } @@ -19929,7 +27031,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19938,6 +27040,9 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19962,7 +27067,7 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -19971,6 +27076,9 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19987,12 +27095,13 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20017,7 +27126,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20045,7 +27154,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20054,6 +27163,9 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20078,7 +27190,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20087,6 +27199,9 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20107,7 +27222,7 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20118,12 +27233,13 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20148,7 +27264,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20176,7 +27292,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20185,6 +27301,9 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20209,7 +27328,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20218,6 +27337,9 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20242,7 +27364,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20251,6 +27373,9 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20273,7 +27398,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20292,7 +27417,7 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20301,6 +27426,9 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20317,12 +27445,13 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20347,7 +27476,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20375,7 +27504,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20384,6 +27513,9 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20408,7 +27540,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20427,7 +27559,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20436,6 +27568,9 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20456,7 +27591,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20467,12 +27602,13 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20497,7 +27633,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20525,7 +27661,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20534,6 +27670,9 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20558,7 +27697,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20567,6 +27706,9 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20591,7 +27733,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20610,7 +27752,7 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20619,6 +27761,9 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20635,12 +27780,13 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20665,7 +27811,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20693,7 +27839,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20702,6 +27848,9 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20724,7 +27873,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20735,12 +27884,13 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20765,7 +27915,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20793,7 +27943,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20802,6 +27952,9 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20826,7 +27979,7 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20836,6 +27989,9 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20847,12 +28003,13 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -20877,7 +28034,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20905,7 +28062,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20914,6 +28071,9 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20938,7 +28098,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -20947,6 +28107,9 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20969,7 +28132,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20988,7 +28151,7 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTs |= (uint64(b) & 0x7F) << shift + m.CurrentTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -20999,12 +28162,13 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21029,7 +28193,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21057,7 +28221,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21066,6 +28230,9 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21090,7 +28257,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21099,6 +28266,9 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21123,7 +28293,7 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21134,12 +28304,13 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21164,7 +28335,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21192,7 +28363,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21201,6 +28372,9 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21225,7 +28399,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21234,6 +28408,9 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21254,7 +28431,7 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21265,12 +28442,13 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21295,7 +28473,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21323,7 +28501,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21332,6 +28510,9 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21356,7 +28537,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21365,6 +28546,9 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21387,7 +28571,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21396,6 +28580,9 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21420,7 +28607,7 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21429,6 +28616,9 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21445,12 +28635,13 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21475,7 +28666,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21503,7 +28694,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21512,6 +28703,9 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21536,7 +28730,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21555,7 +28749,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21564,6 +28758,9 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21576,12 +28773,13 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21606,7 +28804,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21634,7 +28832,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21643,6 +28841,9 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21667,7 +28868,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21676,6 +28877,9 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21700,7 +28904,7 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21709,6 +28913,9 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21725,12 +28932,13 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21755,7 +28963,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21783,7 +28991,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21792,6 +29000,9 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21816,7 +29027,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxVersion |= (uint64(b) & 0x7F) << shift + m.MaxVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21835,7 +29046,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21844,6 +29055,9 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21866,7 +29080,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -21885,7 +29099,7 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21894,6 +29108,9 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21908,12 +29125,13 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -21938,7 +29156,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -21966,7 +29184,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -21975,6 +29193,9 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21999,7 +29220,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22008,6 +29229,9 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22032,7 +29256,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22041,6 +29265,9 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22063,7 +29290,7 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22072,6 +29299,9 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22088,12 +29318,13 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22118,7 +29349,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22146,7 +29377,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22155,6 +29386,9 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22179,7 +29413,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartVersion |= (uint64(b) & 0x7F) << shift + m.StartVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22198,7 +29432,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitVersion |= (uint64(b) & 0x7F) << shift + m.CommitVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22217,7 +29451,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22226,6 +29460,9 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22248,7 +29485,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22257,6 +29494,9 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22269,12 +29509,13 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22299,7 +29540,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22327,7 +29568,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22336,6 +29577,9 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22360,7 +29604,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22369,6 +29613,9 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22393,7 +29640,7 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22402,6 +29649,9 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22418,12 +29668,13 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22448,7 +29699,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22476,7 +29727,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22485,6 +29736,9 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22509,7 +29763,7 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= (uint64(b) & 0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22520,12 +29774,13 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22550,7 +29805,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22578,7 +29833,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22587,6 +29842,9 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22611,7 +29869,7 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22620,6 +29878,9 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22636,12 +29897,13 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22666,7 +29928,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22694,7 +29956,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22703,6 +29965,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22727,7 +29992,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22736,6 +30001,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22758,7 +30026,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22767,6 +30035,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22789,7 +30060,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22801,12 +30072,13 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22831,7 +30103,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22859,7 +30131,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22868,6 +30140,9 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22892,7 +30167,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22902,6 +30177,9 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22913,12 +30191,13 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -22943,7 +30222,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -22971,7 +30250,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -22980,6 +30259,9 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23004,7 +30286,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23013,6 +30295,9 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23035,7 +30320,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23044,6 +30329,9 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23066,7 +30354,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23085,7 +30373,7 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23096,12 +30384,13 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23126,7 +30415,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23154,7 +30443,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23163,6 +30452,9 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23187,7 +30479,7 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23197,6 +30489,9 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23208,12 +30503,13 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23238,7 +30534,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23266,7 +30562,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23275,6 +30571,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23299,7 +30598,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23318,7 +30617,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23327,6 +30626,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23349,7 +30651,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23358,6 +30660,9 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23380,7 +30685,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23399,7 +30704,7 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23410,12 +30715,13 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23440,7 +30746,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23468,7 +30774,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23477,6 +30783,9 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23501,7 +30810,7 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23511,6 +30820,9 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23522,12 +30834,13 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23552,7 +30865,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23580,7 +30893,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23589,6 +30902,9 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23613,7 +30929,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23622,6 +30938,9 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23644,7 +30963,7 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23654,6 +30973,9 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23665,12 +30987,13 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23695,7 +31018,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23723,7 +31046,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23732,6 +31055,9 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23756,7 +31082,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23766,6 +31092,9 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23785,7 +31114,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23794,6 +31123,9 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23816,7 +31148,7 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23828,12 +31160,13 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23858,7 +31191,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23886,7 +31219,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23895,6 +31228,9 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23919,7 +31255,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -23928,6 +31264,9 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23948,7 +31287,7 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -23958,6 +31297,9 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23969,12 +31311,13 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -23999,7 +31342,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24027,7 +31370,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24036,6 +31379,9 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24060,7 +31406,7 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24069,6 +31415,9 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24083,12 +31432,13 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24113,7 +31463,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24141,7 +31491,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24150,6 +31500,9 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24174,7 +31527,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24183,6 +31536,9 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24205,7 +31561,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24214,6 +31570,9 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24236,7 +31595,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24246,6 +31605,9 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24265,7 +31627,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24284,7 +31646,7 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24296,12 +31658,13 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24326,7 +31689,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24354,7 +31717,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24363,6 +31726,9 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24387,7 +31753,7 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24397,6 +31763,9 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24408,12 +31777,13 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24438,7 +31808,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24466,7 +31836,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24475,6 +31845,9 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24499,7 +31872,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24508,6 +31881,9 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24530,7 +31906,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24540,6 +31916,9 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24559,7 +31938,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24578,7 +31957,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24596,7 +31975,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24613,7 +31992,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24622,9 +32001,23 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } 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.Ttls) == 0 { + m.Ttls = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -24636,7 +32029,7 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24652,12 +32045,13 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24682,7 +32076,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24710,7 +32104,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24719,6 +32113,9 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24743,7 +32140,7 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24753,6 +32150,9 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24764,12 +32164,13 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24794,7 +32195,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24822,7 +32223,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24831,6 +32232,9 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24855,7 +32259,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24864,6 +32268,9 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24886,7 +32293,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24896,6 +32303,9 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24915,7 +32325,7 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24927,12 +32337,13 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -24957,7 +32368,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -24985,7 +32396,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -24994,6 +32405,9 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25018,7 +32432,7 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25028,6 +32442,9 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25039,12 +32456,13 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25069,7 +32487,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25097,7 +32515,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25106,6 +32524,9 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25130,7 +32551,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25139,6 +32560,9 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25159,7 +32583,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25169,6 +32593,9 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25188,7 +32615,7 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25200,12 +32627,13 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25230,7 +32658,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25258,7 +32686,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25267,6 +32695,9 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25291,7 +32722,7 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25301,6 +32732,9 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25312,12 +32746,13 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25342,7 +32777,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25370,7 +32805,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25379,6 +32814,9 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25403,7 +32841,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25412,6 +32850,9 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25434,7 +32875,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -25453,7 +32894,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25473,7 +32914,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25483,6 +32924,9 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25502,7 +32946,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25522,7 +32966,7 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25531,6 +32975,9 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25545,12 +32992,13 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25575,7 +33023,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25603,7 +33051,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25612,6 +33060,9 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25636,7 +33087,7 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25645,6 +33096,9 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25659,12 +33113,13 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25689,7 +33144,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25717,7 +33172,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25726,6 +33181,9 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25750,7 +33208,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25759,6 +33217,9 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25781,7 +33242,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25790,6 +33251,9 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25812,7 +33276,7 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25822,6 +33286,9 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25833,12 +33300,13 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25863,7 +33331,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25891,7 +33359,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -25900,6 +33368,9 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25924,7 +33395,7 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -25934,6 +33405,9 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25945,12 +33419,13 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -25975,7 +33450,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26003,7 +33478,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26012,6 +33487,9 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26036,7 +33514,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26045,6 +33523,9 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26067,7 +33548,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EachLimit |= (uint32(b) & 0x7F) << shift + m.EachLimit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -26086,7 +33567,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26106,7 +33587,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26116,6 +33597,9 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26135,7 +33619,7 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26147,12 +33631,13 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26177,7 +33662,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26205,7 +33690,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26214,6 +33699,9 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26238,7 +33726,7 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26247,6 +33735,9 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26261,12 +33752,13 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26291,7 +33783,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26319,7 +33811,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26328,6 +33820,9 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26352,7 +33847,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26361,6 +33856,9 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26383,7 +33881,7 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26392,6 +33890,9 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26406,12 +33907,13 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26436,7 +33938,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26464,7 +33966,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26473,6 +33975,9 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26497,7 +34002,7 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26507,6 +34012,9 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26518,12 +34026,13 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26548,7 +34057,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26576,7 +34085,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26585,6 +34094,9 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26609,7 +34121,7 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26620,12 +34132,13 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26650,7 +34163,7 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26678,7 +34191,7 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26688,6 +34201,9 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26699,12 +34215,13 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26729,7 +34246,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26757,7 +34274,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26766,6 +34283,9 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26790,7 +34310,7 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26801,12 +34321,13 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26831,7 +34352,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26859,7 +34380,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26869,6 +34390,9 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26888,7 +34412,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26908,7 +34432,7 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26917,6 +34441,9 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26931,12 +34458,13 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -26961,7 +34489,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -26989,7 +34517,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -26998,6 +34526,9 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27022,7 +34553,7 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27033,12 +34564,13 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27063,7 +34595,7 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27091,7 +34623,7 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27101,6 +34633,9 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27112,12 +34647,13 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27142,7 +34678,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27170,7 +34706,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27179,6 +34715,9 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27203,7 +34742,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxTs |= (uint64(b) & 0x7F) << shift + m.MaxTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27222,7 +34761,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27231,6 +34770,9 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27253,7 +34795,7 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -27264,12 +34806,13 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27294,7 +34837,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27322,7 +34865,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27332,6 +34875,9 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27351,7 +34897,7 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27360,6 +34906,9 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27374,12 +34923,13 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27404,7 +34954,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27432,7 +34982,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27441,6 +34991,9 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27465,7 +35018,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27474,6 +35027,9 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27496,7 +35052,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27505,6 +35061,9 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27525,7 +35084,7 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27537,12 +35096,13 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27567,7 +35127,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27595,7 +35155,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27604,6 +35164,9 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27628,7 +35191,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27637,6 +35200,9 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27661,7 +35227,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27670,6 +35236,9 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27694,7 +35263,7 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27703,6 +35272,9 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27717,12 +35289,13 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27747,7 +35320,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27775,7 +35348,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27784,6 +35357,9 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27808,7 +35384,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27827,7 +35403,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27836,6 +35412,9 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27850,12 +35429,13 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -27880,7 +35460,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27908,7 +35488,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27917,6 +35497,9 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27941,7 +35524,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndex |= (uint64(b) & 0x7F) << shift + m.ReadIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -27960,7 +35543,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -27969,6 +35552,9 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27985,12 +35571,13 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28015,7 +35602,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28043,7 +35630,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28052,6 +35639,9 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28076,7 +35666,7 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28085,6 +35675,9 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28099,12 +35692,13 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28129,7 +35723,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28157,7 +35751,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28166,6 +35760,9 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28190,7 +35787,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28200,6 +35797,9 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28219,7 +35819,7 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28228,6 +35828,9 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28244,12 +35847,13 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28274,7 +35878,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28302,7 +35906,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28311,6 +35915,9 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28335,7 +35942,7 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28346,12 +35953,13 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28376,7 +35984,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28404,7 +36012,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28413,6 +36021,9 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28437,7 +36048,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28447,6 +36058,9 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28466,7 +36080,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28475,6 +36089,9 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28497,7 +36114,7 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28506,6 +36123,9 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28522,12 +36142,13 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -28552,7 +36173,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28580,7 +36201,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28599,7 +36220,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28608,6 +36229,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28632,7 +36256,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28641,6 +36265,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28665,7 +36292,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28684,7 +36311,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= (CommandPri(b) & 0x7F) << shift + m.Priority |= CommandPri(b&0x7F) << shift if b < 0x80 { break } @@ -28703,7 +36330,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IsolationLevel |= (IsolationLevel(b) & 0x7F) << shift + m.IsolationLevel |= IsolationLevel(b&0x7F) << shift if b < 0x80 { break } @@ -28722,7 +36349,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28742,7 +36369,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28762,7 +36389,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28782,7 +36409,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28802,7 +36429,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28820,7 +36447,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28837,7 +36464,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28846,9 +36473,23 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } 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.ResolvedLocks) == 0 { + m.ResolvedLocks = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -28860,7 +36501,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28884,7 +36525,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxExecutionDurationMs |= (uint64(b) & 0x7F) << shift + m.MaxExecutionDurationMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28903,7 +36544,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28922,7 +36563,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= (uint64(b) & 0x7F) << shift + m.TaskId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -28941,7 +36582,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28961,7 +36602,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -28970,6 +36611,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28992,7 +36636,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DiskFullOpt |= (DiskFullOpt(b) & 0x7F) << shift + m.DiskFullOpt |= DiskFullOpt(b&0x7F) << shift if b < 0x80 { break } @@ -29011,7 +36655,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29031,7 +36675,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (APIVersion(b) & 0x7F) << shift + m.ApiVersion |= APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -29048,7 +36692,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29065,7 +36709,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29074,9 +36718,23 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } 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.CommittedLocks) == 0 { + m.CommittedLocks = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -29088,7 +36746,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29112,7 +36770,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29121,6 +36779,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29145,7 +36806,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29155,6 +36816,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29174,7 +36838,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSource |= (uint64(b) & 0x7F) << shift + m.TxnSource |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29193,7 +36857,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BusyThresholdMs |= (uint32(b) & 0x7F) << shift + m.BusyThresholdMs |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -29212,7 +36876,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29221,6 +36885,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29245,7 +36912,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -29264,7 +36931,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BucketsVersion |= (uint64(b) & 0x7F) << shift + m.BucketsVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29283,7 +36950,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29292,6 +36959,9 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29308,12 +36978,13 @@ func (m *Context) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29338,7 +37009,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29366,7 +37037,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29376,6 +37047,9 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29395,7 +37069,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29404,6 +37078,9 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29428,7 +37105,7 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OverridePriority |= (uint64(b) & 0x7F) << shift + m.OverridePriority |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29439,12 +37116,13 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29469,7 +37147,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29497,7 +37175,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29516,7 +37194,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= (uint64(b) & 0x7F) << shift + m.ConnectionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29535,7 +37213,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StmtId |= (uint64(b) & 0x7F) << shift + m.StmtId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29554,7 +37232,7 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29564,6 +37242,9 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29575,12 +37256,13 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29605,7 +37287,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29633,7 +37315,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29642,6 +37324,9 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29664,7 +37349,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockVersion |= (uint64(b) & 0x7F) << shift + m.LockVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29683,7 +37368,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29692,6 +37377,9 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29714,7 +37402,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= (uint64(b) & 0x7F) << shift + m.LockTtl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29733,7 +37421,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= (uint64(b) & 0x7F) << shift + m.TxnSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29752,7 +37440,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockType |= (Op(b) & 0x7F) << shift + m.LockType |= Op(b&0x7F) << shift if b < 0x80 { break } @@ -29771,7 +37459,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockForUpdateTs |= (uint64(b) & 0x7F) << shift + m.LockForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29790,7 +37478,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29810,7 +37498,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29829,7 +37517,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29838,6 +37526,9 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29858,7 +37549,7 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationToLastUpdateMs |= (uint64(b) & 0x7F) << shift + m.DurationToLastUpdateMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29869,12 +37560,13 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -29899,7 +37591,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29927,7 +37619,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -29936,6 +37628,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29960,7 +37655,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29970,6 +37665,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29989,7 +37687,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29999,6 +37697,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30018,7 +37719,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30027,6 +37728,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30051,7 +37755,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30060,6 +37764,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30084,7 +37791,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30093,6 +37800,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30117,7 +37827,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30126,6 +37836,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30150,7 +37863,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30159,6 +37872,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30183,7 +37899,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30192,6 +37908,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30216,7 +37935,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30225,6 +37944,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30249,7 +37971,7 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30258,6 +37980,9 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30274,12 +37999,13 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30304,7 +38030,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30332,7 +38058,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30351,7 +38077,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConflictTs |= (uint64(b) & 0x7F) << shift + m.ConflictTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30370,7 +38096,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30379,6 +38105,9 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30401,7 +38130,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30410,6 +38139,9 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30432,7 +38164,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConflictCommitTs |= (uint64(b) & 0x7F) << shift + m.ConflictCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30451,7 +38183,7 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Reason |= (WriteConflict_Reason(b) & 0x7F) << shift + m.Reason |= WriteConflict_Reason(b&0x7F) << shift if b < 0x80 { break } @@ -30462,12 +38194,13 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30492,7 +38225,7 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30520,7 +38253,7 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30529,6 +38262,9 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30543,12 +38279,13 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30573,7 +38310,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30601,7 +38338,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTs |= (uint64(b) & 0x7F) << shift + m.LockTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30620,7 +38357,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30629,6 +38366,9 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30651,7 +38391,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeadlockKeyHash |= (uint64(b) & 0x7F) << shift + m.DeadlockKeyHash |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30670,7 +38410,7 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30679,6 +38419,9 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30693,12 +38436,13 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30723,7 +38467,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30751,7 +38495,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30770,7 +38514,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AttemptedCommitTs |= (uint64(b) & 0x7F) << shift + m.AttemptedCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30789,7 +38533,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30798,6 +38542,9 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30820,7 +38567,7 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= (uint64(b) & 0x7F) << shift + m.MinCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30831,12 +38578,13 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30861,7 +38609,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30889,7 +38637,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30908,7 +38656,7 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -30917,6 +38665,9 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30931,12 +38682,13 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -30961,7 +38713,7 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30989,7 +38741,7 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31000,12 +38752,13 @@ func (m *CommitTsTooLarge) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31030,7 +38783,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31058,7 +38811,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31077,7 +38830,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -31086,6 +38839,9 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31108,7 +38864,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Assertion |= (Assertion(b) & 0x7F) << shift + m.Assertion |= Assertion(b&0x7F) << shift if b < 0x80 { break } @@ -31127,7 +38883,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExistingStartTs |= (uint64(b) & 0x7F) << shift + m.ExistingStartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31146,7 +38902,7 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExistingCommitTs |= (uint64(b) & 0x7F) << shift + m.ExistingCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31157,12 +38913,13 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31187,7 +38944,7 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31215,7 +38972,7 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -31224,6 +38981,9 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31240,12 +39000,13 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31270,7 +39031,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31298,7 +39059,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitWallTimeMs |= (uint64(b) & 0x7F) << shift + m.WaitWallTimeMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31317,7 +39078,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessWallTimeMs |= (uint64(b) & 0x7F) << shift + m.ProcessWallTimeMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31336,7 +39097,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvReadWallTimeMs |= (uint64(b) & 0x7F) << shift + m.KvReadWallTimeMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31355,7 +39116,7 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalRpcWallTimeNs |= (uint64(b) & 0x7F) << shift + m.TotalRpcWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31366,12 +39127,13 @@ func (m *TimeDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31396,7 +39158,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31424,7 +39186,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitWallTimeNs |= (uint64(b) & 0x7F) << shift + m.WaitWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31443,7 +39205,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessWallTimeNs |= (uint64(b) & 0x7F) << shift + m.ProcessWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31462,7 +39224,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessSuspendWallTimeNs |= (uint64(b) & 0x7F) << shift + m.ProcessSuspendWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31481,7 +39243,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvReadWallTimeNs |= (uint64(b) & 0x7F) << shift + m.KvReadWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31500,7 +39262,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalRpcWallTimeNs |= (uint64(b) & 0x7F) << shift + m.TotalRpcWallTimeNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31511,12 +39273,13 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31541,7 +39304,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31569,7 +39332,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Total |= (int64(b) & 0x7F) << shift + m.Total |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -31588,7 +39351,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Processed |= (int64(b) & 0x7F) << shift + m.Processed |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -31607,7 +39370,7 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadBytes |= (int64(b) & 0x7F) << shift + m.ReadBytes |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -31618,12 +39381,13 @@ func (m *ScanInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31648,7 +39412,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31676,7 +39440,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -31685,6 +39449,9 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31709,7 +39476,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -31718,6 +39485,9 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31742,7 +39512,7 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -31751,6 +39521,9 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31767,12 +39540,13 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -31797,7 +39571,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31825,7 +39599,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessedVersions |= (uint64(b) & 0x7F) << shift + m.ProcessedVersions |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31844,7 +39618,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalVersions |= (uint64(b) & 0x7F) << shift + m.TotalVersions |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31863,7 +39637,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbDeleteSkippedCount |= (uint64(b) & 0x7F) << shift + m.RocksdbDeleteSkippedCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31882,7 +39656,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbKeySkippedCount |= (uint64(b) & 0x7F) << shift + m.RocksdbKeySkippedCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31901,7 +39675,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockCacheHitCount |= (uint64(b) & 0x7F) << shift + m.RocksdbBlockCacheHitCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31920,7 +39694,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadCount |= (uint64(b) & 0x7F) << shift + m.RocksdbBlockReadCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31939,7 +39713,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadByte |= (uint64(b) & 0x7F) << shift + m.RocksdbBlockReadByte |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31958,7 +39732,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessedVersionsSize |= (uint64(b) & 0x7F) << shift + m.ProcessedVersionsSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31977,7 +39751,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RocksdbBlockReadNanos |= (uint64(b) & 0x7F) << shift + m.RocksdbBlockReadNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31996,7 +39770,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GetSnapshotNanos |= (uint64(b) & 0x7F) << shift + m.GetSnapshotNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32015,7 +39789,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndexProposeWaitNanos |= (uint64(b) & 0x7F) << shift + m.ReadIndexProposeWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32034,7 +39808,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndexConfirmWaitNanos |= (uint64(b) & 0x7F) << shift + m.ReadIndexConfirmWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32053,7 +39827,7 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadPoolScheduleWaitNanos |= (uint64(b) & 0x7F) << shift + m.ReadPoolScheduleWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32064,12 +39838,13 @@ func (m *ScanDetailV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32094,7 +39869,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32122,7 +39897,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32131,6 +39906,9 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32155,7 +39933,7 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32164,6 +39942,9 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32180,12 +39961,13 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32210,7 +39992,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32238,7 +40020,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32247,6 +40029,9 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32271,7 +40056,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32280,6 +40065,9 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32304,7 +40092,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32313,6 +40101,9 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32337,7 +40128,7 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32346,6 +40137,9 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32362,12 +40156,13 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32392,7 +40187,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32420,7 +40215,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreBatchWaitNanos |= (uint64(b) & 0x7F) << shift + m.StoreBatchWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32439,7 +40234,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProposeSendWaitNanos |= (uint64(b) & 0x7F) << shift + m.ProposeSendWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32458,7 +40253,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PersistLogNanos |= (uint64(b) & 0x7F) << shift + m.PersistLogNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32477,7 +40272,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbWriteLeaderWaitNanos |= (uint64(b) & 0x7F) << shift + m.RaftDbWriteLeaderWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32496,7 +40291,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbSyncLogNanos |= (uint64(b) & 0x7F) << shift + m.RaftDbSyncLogNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32515,7 +40310,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RaftDbWriteMemtableNanos |= (uint64(b) & 0x7F) << shift + m.RaftDbWriteMemtableNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32534,7 +40329,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitLogNanos |= (uint64(b) & 0x7F) << shift + m.CommitLogNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32553,7 +40348,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyBatchWaitNanos |= (uint64(b) & 0x7F) << shift + m.ApplyBatchWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32572,7 +40367,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyLogNanos |= (uint64(b) & 0x7F) << shift + m.ApplyLogNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32591,7 +40386,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyMutexLockNanos |= (uint64(b) & 0x7F) << shift + m.ApplyMutexLockNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32610,7 +40405,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteLeaderWaitNanos |= (uint64(b) & 0x7F) << shift + m.ApplyWriteLeaderWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32629,7 +40424,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteWalNanos |= (uint64(b) & 0x7F) << shift + m.ApplyWriteWalNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32648,7 +40443,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyWriteMemtableNanos |= (uint64(b) & 0x7F) << shift + m.ApplyWriteMemtableNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32667,7 +40462,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatchWaitNanos |= (uint64(b) & 0x7F) << shift + m.LatchWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32686,7 +40481,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessNanos |= (uint64(b) & 0x7F) << shift + m.ProcessNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32705,7 +40500,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ThrottleNanos |= (uint64(b) & 0x7F) << shift + m.ThrottleNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32724,7 +40519,7 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PessimisticLockWaitNanos |= (uint64(b) & 0x7F) << shift + m.PessimisticLockWaitNanos |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32735,12 +40530,13 @@ func (m *WriteDetail) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32765,7 +40561,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32793,7 +40589,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32802,6 +40598,9 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32826,7 +40625,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32835,6 +40634,9 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32857,7 +40659,7 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32866,6 +40668,9 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32880,12 +40685,13 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -32910,7 +40716,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -32938,7 +40744,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (Op(b) & 0x7F) << shift + m.Op |= Op(b&0x7F) << shift if b < 0x80 { break } @@ -32957,7 +40763,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32966,6 +40772,9 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32988,7 +40797,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -32997,6 +40806,9 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33019,7 +40831,7 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Assertion |= (Assertion(b) & 0x7F) << shift + m.Assertion |= Assertion(b&0x7F) << shift if b < 0x80 { break } @@ -33030,12 +40842,13 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33060,7 +40873,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33088,7 +40901,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (Op(b) & 0x7F) << shift + m.Type |= Op(b&0x7F) << shift if b < 0x80 { break } @@ -33107,7 +40920,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33126,7 +40939,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33145,7 +40958,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33154,6 +40967,9 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33176,7 +40992,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33196,7 +41012,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33216,7 +41032,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GcFence |= (uint64(b) & 0x7F) << shift + m.GcFence |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33235,7 +41051,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastChangeTs |= (uint64(b) & 0x7F) << shift + m.LastChangeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33254,7 +41070,7 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VersionsToLastChange |= (uint64(b) & 0x7F) << shift + m.VersionsToLastChange |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33265,12 +41081,13 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33295,7 +41112,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33323,7 +41140,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33342,7 +41159,7 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33351,6 +41168,9 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33365,12 +41185,13 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33395,7 +41216,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33423,7 +41244,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (Op(b) & 0x7F) << shift + m.Type |= Op(b&0x7F) << shift if b < 0x80 { break } @@ -33442,7 +41263,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33461,7 +41282,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33470,6 +41291,9 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33492,7 +41316,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33501,6 +41325,9 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33523,7 +41350,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33542,7 +41369,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ForUpdateTs |= (uint64(b) & 0x7F) << shift + m.ForUpdateTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33561,7 +41388,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TxnSize |= (uint64(b) & 0x7F) << shift + m.TxnSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33580,7 +41407,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33600,7 +41427,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33609,6 +41436,9 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33627,7 +41457,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33644,7 +41474,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33653,9 +41483,23 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } 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.RollbackTs) == 0 { + m.RollbackTs = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -33667,7 +41511,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33691,7 +41535,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastChangeTs |= (uint64(b) & 0x7F) << shift + m.LastChangeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33710,7 +41554,7 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VersionsToLastChange |= (uint64(b) & 0x7F) << shift + m.VersionsToLastChange |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33721,12 +41565,13 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33751,7 +41596,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33779,7 +41624,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33788,6 +41633,9 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33812,7 +41660,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33821,6 +41669,9 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33843,7 +41694,7 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -33852,6 +41703,9 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33866,12 +41720,13 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33896,7 +41751,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33924,7 +41779,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Txn |= (uint64(b) & 0x7F) << shift + m.Txn |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33943,7 +41798,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= (uint64(b) & 0x7F) << shift + m.Status |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33954,12 +41809,13 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -33984,7 +41840,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34012,7 +41868,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34021,6 +41877,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34043,7 +41902,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34052,6 +41911,9 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34066,12 +41928,13 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34096,7 +41959,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34124,7 +41987,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34143,7 +42006,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= (uint64(b) & 0x7F) << shift + m.PeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34162,7 +42025,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34181,7 +42044,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34190,6 +42053,9 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34214,7 +42080,7 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34223,6 +42089,9 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34239,12 +42108,13 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34269,7 +42139,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34297,7 +42167,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34316,7 +42186,7 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= (uint64(b) & 0x7F) << shift + m.SafeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34327,12 +42197,13 @@ func (m *ReadState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34357,7 +42228,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34385,7 +42256,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34394,6 +42265,9 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34416,7 +42290,7 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (uint64(b) & 0x7F) << shift + m.Ts |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34427,12 +42301,13 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34457,7 +42332,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34483,7 +42358,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34500,7 +42375,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34509,9 +42384,23 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } 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.Regions) == 0 { + m.Regions = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -34523,7 +42412,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34547,7 +42436,7 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (uint64(b) & 0x7F) << shift + m.Ts |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34558,12 +42447,13 @@ func (m *CheckLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34588,7 +42478,7 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34616,7 +42506,7 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34625,6 +42515,9 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34641,12 +42534,13 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34671,7 +42565,7 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34699,7 +42593,7 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafeTs |= (uint64(b) & 0x7F) << shift + m.SafeTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34710,12 +42604,13 @@ func (m *StoreSafeTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34740,7 +42635,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34768,7 +42663,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34777,6 +42672,9 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34801,7 +42699,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34810,6 +42708,9 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34832,7 +42733,7 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34842,6 +42743,9 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34853,12 +42757,13 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -34883,7 +42788,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34911,7 +42816,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -34920,6 +42825,9 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34944,7 +42852,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34954,6 +42862,9 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34973,7 +42884,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -34992,7 +42903,7 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35004,12 +42915,13 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35034,7 +42946,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35062,7 +42974,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35071,6 +42983,9 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35095,7 +43010,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35104,6 +43019,9 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35126,7 +43044,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35135,6 +43053,9 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35157,7 +43078,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35177,7 +43098,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35186,6 +43107,9 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35208,7 +43132,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35218,6 +43142,9 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35237,7 +43164,7 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ttl |= (uint64(b) & 0x7F) << shift + m.Ttl |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35248,12 +43175,13 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35278,7 +43206,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35306,7 +43234,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35315,6 +43243,9 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35339,7 +43270,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35349,6 +43280,9 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35368,7 +43302,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35388,7 +43322,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35408,7 +43342,7 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35417,6 +43351,9 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35431,12 +43368,13 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35461,7 +43399,7 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35489,7 +43427,7 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35498,6 +43436,9 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35514,12 +43455,13 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35544,7 +43486,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35572,7 +43514,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35581,6 +43523,9 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35605,7 +43550,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35615,6 +43560,9 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35634,7 +43582,7 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35643,6 +43591,9 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35657,12 +43608,13 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35687,7 +43639,7 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35715,7 +43667,7 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35724,6 +43676,9 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35740,12 +43695,13 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35770,7 +43726,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35798,7 +43754,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35807,6 +43763,9 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35831,7 +43790,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35841,6 +43800,9 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35860,7 +43822,7 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35869,6 +43831,9 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35883,12 +43848,13 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -35913,7 +43879,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35941,7 +43907,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -35950,6 +43916,9 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35974,7 +43943,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -35984,6 +43953,9 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36003,7 +43975,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36013,6 +43985,9 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36032,7 +44007,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36041,6 +44016,9 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36063,7 +44041,7 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36072,6 +44050,9 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36086,12 +44067,13 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36116,7 +44098,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36144,7 +44126,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36153,6 +44135,9 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36177,7 +44162,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36187,6 +44172,9 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36206,7 +44194,7 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36215,6 +44203,9 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36229,12 +44220,13 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36259,7 +44251,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36287,7 +44279,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36296,6 +44288,9 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36320,7 +44315,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Algorithm |= (ChecksumAlgorithm(b) & 0x7F) << shift + m.Algorithm |= ChecksumAlgorithm(b&0x7F) << shift if b < 0x80 { break } @@ -36339,7 +44334,7 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36348,6 +44343,9 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36362,12 +44360,13 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36392,7 +44391,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36420,7 +44419,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36429,6 +44428,9 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36453,7 +44455,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36463,6 +44465,9 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36482,7 +44487,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= (uint64(b) & 0x7F) << shift + m.Checksum |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36501,7 +44506,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalKvs |= (uint64(b) & 0x7F) << shift + m.TotalKvs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36520,7 +44525,7 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (uint64(b) & 0x7F) << shift + m.TotalBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36531,12 +44536,13 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36561,7 +44567,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36589,7 +44595,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36598,6 +44604,9 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36621,7 +44630,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36630,6 +44639,9 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36653,7 +44665,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36662,6 +44674,9 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36685,7 +44700,7 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36694,6 +44709,9 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36709,12 +44727,13 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36739,7 +44758,7 @@ func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36759,12 +44778,13 @@ func (m *CompactErrorInvalidStartKey) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36789,7 +44809,7 @@ func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36809,12 +44829,13 @@ func (m *CompactErrorPhysicalTableNotExist) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36839,7 +44860,7 @@ func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36859,12 +44880,13 @@ func (m *CompactErrorCompactInProgress) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36889,7 +44911,7 @@ func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36909,12 +44931,13 @@ func (m *CompactErrorTooManyPendingTasks) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -36939,7 +44962,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -36967,7 +44990,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -36976,6 +44999,9 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36998,7 +45024,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PhysicalTableId |= (int64(b) & 0x7F) << shift + m.PhysicalTableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -37017,7 +45043,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogicalTableId |= (int64(b) & 0x7F) << shift + m.LogicalTableId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -37036,7 +45062,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (APIVersion(b) & 0x7F) << shift + m.ApiVersion |= APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -37055,7 +45081,7 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -37066,12 +45092,13 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37096,7 +45123,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37124,7 +45151,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37133,6 +45160,9 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37157,7 +45187,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37177,7 +45207,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37186,6 +45216,9 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37208,7 +45241,7 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37217,6 +45250,9 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37231,12 +45267,13 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37261,7 +45298,7 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37289,7 +45326,7 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37299,6 +45336,9 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37310,12 +45350,13 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37340,7 +45381,7 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37368,7 +45409,7 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37377,6 +45418,9 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37390,12 +45434,13 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37420,7 +45465,7 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37448,7 +45493,7 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37457,6 +45502,9 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37480,7 +45528,7 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37489,6 +45537,9 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37504,12 +45555,13 @@ func (m *TxnEntry) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37534,7 +45586,7 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37562,7 +45614,7 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37571,6 +45623,9 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37593,7 +45648,7 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37602,6 +45657,9 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37624,7 +45682,7 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37643,7 +45701,7 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37652,6 +45710,9 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37666,12 +45727,13 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37696,7 +45758,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37724,7 +45786,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37733,6 +45795,9 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37755,7 +45820,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37764,6 +45829,9 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37786,7 +45854,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37805,7 +45873,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= (uint64(b) & 0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37816,12 +45884,13 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -37846,7 +45915,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -37874,7 +45943,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37883,6 +45952,9 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37907,7 +45979,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37916,6 +45988,9 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37938,7 +46013,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -37947,6 +46022,9 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37969,7 +46047,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (uint32(b) & 0x7F) << shift + m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -37988,62 +46066,25 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } m.KeyOnly = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) - } - m.StartTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionsPerKey", wireType) - } - m.VersionsPerKey = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VersionsPerKey |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38068,7 +46109,7 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -38096,7 +46137,7 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -38105,6 +46146,9 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38129,7 +46173,7 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -38138,6 +46182,9 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38152,12 +46199,13 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthKvrpcpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -38170,6 +46218,7 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { func skipKvrpcpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -38201,10 +46250,8 @@ func skipKvrpcpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -38221,500 +46268,34 @@ func skipKvrpcpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthKvrpcpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipKvrpcpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKvrpcpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthKvrpcpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthKvrpcpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowKvrpcpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthKvrpcpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKvrpcpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKvrpcpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptorKvrpcpb) } - -var fileDescriptorKvrpcpb = []byte{ - // 7048 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x59, 0x6c, 0x23, 0xc9, - 0x79, 0xb0, 0x9a, 0xa4, 0x44, 0xea, 0xa3, 0x44, 0xb5, 0x4a, 0x17, 0xa5, 0x99, 0xd9, 0x99, 0xe9, - 0xf5, 0xec, 0x8e, 0xb5, 0x5e, 0x8d, 0x57, 0x7b, 0xf8, 0xfc, 0xd7, 0x3b, 0xa3, 0xb9, 0xb4, 0x73, - 0x48, 0x68, 0x72, 0x67, 0xff, 0xc5, 0xff, 0xdb, 0xed, 0x52, 0xb3, 0x44, 0x36, 0xd4, 0xec, 0xee, - 0xed, 0x2a, 0x4a, 0xa2, 0x83, 0x00, 0x31, 0x72, 0x00, 0x0e, 0x12, 0x27, 0x36, 0x0c, 0x38, 0x80, - 0x8d, 0x00, 0x79, 0x30, 0x10, 0xe7, 0x21, 0x40, 0x90, 0x97, 0x1c, 0x0f, 0x41, 0x00, 0x3f, 0x6c, - 0x82, 0x18, 0x36, 0x10, 0x04, 0x0e, 0xec, 0xc0, 0x08, 0x36, 0x40, 0x5e, 0x93, 0x97, 0x20, 0x79, - 0x09, 0x12, 0xd4, 0xd5, 0x07, 0xc9, 0xd1, 0x68, 0x34, 0x9a, 0xb1, 0x93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1a, 0xf1, 0x81, 0x5e, 0x84, 0x71, 0x49, 0x5b, 0x10, 0xb4, 0xb3, 0x09, 0x63, 0x77, 0x48, - 0x5f, 0x92, 0x4b, 0x3c, 0x9a, 0x87, 0xf1, 0x7d, 0xec, 0xf7, 0x88, 0xe0, 0x61, 0xca, 0x96, 0x1f, - 0xe8, 0x0c, 0x4c, 0x06, 0x21, 0x73, 0x76, 0xc3, 0x5e, 0xd0, 0xaa, 0x97, 0x2e, 0x18, 0x97, 0x2b, - 0x76, 0x25, 0x08, 0xd9, 0x4d, 0xfe, 0x8d, 0xde, 0x84, 0x19, 0x72, 0x48, 0x5c, 0xa7, 0x45, 0x18, - 0xf6, 0x7c, 0xea, 0xec, 0xaf, 0xd7, 0x27, 0x44, 0x2b, 0x8b, 0x49, 0x2b, 0x37, 0x0e, 0x89, 0x7b, - 0x5d, 0xa2, 0x1f, 0xac, 0xdb, 0xd3, 0x24, 0xfb, 0xf9, 0x76, 0xa9, 0x32, 0x6e, 0x4e, 0x58, 0xff, - 0x66, 0x40, 0xb5, 0xe1, 0xe2, 0xe0, 0x24, 0xca, 0x3c, 0x03, 0x93, 0x94, 0xe1, 0x98, 0x39, 0xa9, - 0x4a, 0x2b, 0x02, 0x70, 0x87, 0xf4, 0xb9, 0x44, 0xbe, 0xd7, 0xf5, 0x98, 0x90, 0x68, 0xda, 0x96, - 0x1f, 0x59, 0x6d, 0x97, 0x72, 0xda, 0x46, 0xcb, 0x50, 0xd9, 0x23, 0x7d, 0x27, 0x0c, 0xfc, 0x7e, - 0x7d, 0x5c, 0x88, 0x5a, 0xde, 0x23, 0xfd, 0xad, 0xc0, 0x17, 0x26, 0x8a, 0x09, 0xa7, 0x23, 0x42, - 0xc2, 0x8a, 0xad, 0x3f, 0xd1, 0x12, 0x94, 0x49, 0xd0, 0x12, 0xed, 0x97, 0x45, 0xfb, 0x13, 0x24, - 0x68, 0xf1, 0xd6, 0xcf, 0x43, 0x95, 0xe2, 0x6e, 0xe4, 0x13, 0x87, 0x32, 0x12, 0xd5, 0x2b, 0x82, - 0x07, 0x90, 0xa0, 0x06, 0x23, 0x91, 0xf5, 0x35, 0x03, 0xa6, 0xa4, 0xdc, 0x27, 0xb7, 0xee, 0x25, - 0x18, 0x8f, 0xb0, 0x17, 0xd3, 0x7a, 0xe1, 0x42, 0xf1, 0x72, 0x75, 0x7d, 0x26, 0xb5, 0xee, 0xfe, - 0x36, 0xf6, 0x62, 0x5b, 0x62, 0x53, 0x27, 0x28, 0x1e, 0xed, 0x04, 0xd6, 0x07, 0x65, 0x98, 0xd9, - 0x8e, 0xc9, 0x41, 0xec, 0x31, 0x72, 0x12, 0x7b, 0x5c, 0x81, 0xc9, 0x6e, 0x8f, 0x61, 0xe6, 0x85, - 0x81, 0xe6, 0x29, 0x6d, 0xec, 0x9e, 0xc2, 0xd8, 0x29, 0x0d, 0xba, 0x08, 0x53, 0x51, 0xec, 0x75, - 0x71, 0xdc, 0x77, 0x78, 0x27, 0x54, 0xce, 0x57, 0x55, 0xb0, 0xbb, 0xa1, 0xbb, 0x87, 0x9e, 0x87, - 0x69, 0x69, 0xe3, 0xbc, 0xd9, 0xa6, 0x04, 0xf0, 0x41, 0x6a, 0x3b, 0x5e, 0xde, 0x61, 0xcc, 0x17, - 0xb6, 0x2b, 0xd9, 0x65, 0xfe, 0xdd, 0x64, 0x3e, 0x5a, 0x87, 0x05, 0xba, 0xe7, 0x45, 0x8e, 0x1b, - 0x06, 0x94, 0xc5, 0xd8, 0x0b, 0x98, 0xe3, 0x76, 0x88, 0xbb, 0xa7, 0x2c, 0x39, 0xc7, 0x91, 0x1b, - 0x09, 0x6e, 0x83, 0xa3, 0xd0, 0xff, 0x83, 0xb9, 0x88, 0x50, 0xea, 0x75, 0x3d, 0xca, 0x3c, 0xd7, - 0xc1, 0xae, 0x94, 0xa8, 0x7c, 0xa1, 0x78, 0xb9, 0xb6, 0xbe, 0x9a, 0x48, 0x34, 0xa0, 0xaa, 0xb5, - 0xed, 0xb4, 0xc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 0x3c, - 0xea, 0xec, 0x7a, 0x31, 0x65, 0x92, 0x8f, 0xb2, 0xe8, 0xb8, 0x55, 0x8f, 0xde, 0xe4, 0x30, 0xc1, - 0xc7, 0x45, 0x98, 0x3a, 0xc0, 0xdc, 0x04, 0x5e, 0x97, 0x84, 0x3d, 0x26, 0x82, 0x51, 0xd1, 0xae, - 0x72, 0x58, 0x53, 0x82, 0x50, 0x1d, 0xc6, 0x77, 0xc3, 0xd8, 0x25, 0x22, 0x10, 0x55, 0xae, 0x15, - 0xea, 0x86, 0x2d, 0x01, 0x5c, 0x88, 0x98, 0xb0, 0x5e, 0x1c, 0x38, 0x62, 0xa6, 0x20, 0xc3, 0x50, - 0xc5, 0x9e, 0x92, 0xc0, 0x07, 0x02, 0x36, 0xec, 0x11, 0xd5, 0x51, 0x1e, 0x31, 0x23, 0xe2, 0xb1, - 0x43, 0x0e, 0x3d, 0xca, 0x48, 0xe0, 0x92, 0xfa, 0x94, 0x0c, 0x55, 0x02, 0x7c, 0x43, 0x43, 0xd1, - 0xcb, 0x30, 0x27, 0x34, 0xc2, 0x07, 0x68, 0xc7, 0xdb, 0x95, 0xf4, 0x54, 0x45, 0x24, 0x93, 0xa3, - 0xf8, 0x58, 0xbd, 0xb9, 0x2b, 0x4a, 0x50, 0x74, 0x9d, 0x4b, 0xb7, 0x47, 0x9c, 0x5e, 0xe4, 0x74, - 0xc3, 0x16, 0x11, 0x81, 0xa9, 0xb6, 0x6e, 0xa5, 0x61, 0x22, 0xef, 0x1c, 0xef, 0xe2, 0x3d, 0xf2, - 0x4e, 0x74, 0x2f, 0x6c, 0x11, 0x1b, 0x0e, 0x92, 0xff, 0xd6, 0xbf, 0x1a, 0x50, 0x1f, 0xa0, 0xbc, - 0x43, 0xfa, 0x36, 0xa1, 0x3d, 0x9f, 0xa1, 0x4f, 0x41, 0x89, 0xf5, 0x23, 0x22, 0xbc, 0xa8, 0xb6, - 0x7e, 0xe9, 0x61, 0x55, 0x27, 0x05, 0x9a, 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 0x45, - 0xf1, 0xdf, 0xfa, 0x73, 0x03, 0xce, 0x8c, 0xe4, 0xf3, 0x99, 0x38, 0xc5, 0x08, 0x13, 0x15, 0x1f, - 0x67, 0x20, 0xf8, 0x23, 0x03, 0xe6, 0x9a, 0x87, 0xc1, 0x6d, 0x82, 0x63, 0x76, 0x8d, 0xe0, 0x13, - 0x2d, 0xda, 0x06, 0x83, 0x7a, 0xe1, 0x18, 0x41, 0xbd, 0x38, 0xc2, 0x02, 0x2f, 0xc0, 0x0c, 0x6e, - 0xed, 0x7b, 0x94, 0x38, 0x49, 0x6c, 0x57, 0x83, 0x9f, 0x04, 0xdf, 0x95, 0x11, 0xde, 0xfa, 0xbe, - 0x01, 0xf3, 0x79, 0x9e, 0x9f, 0xc1, 0x0a, 0x30, 0x3b, 0xe2, 0x14, 0xf3, 0x23, 0xce, 0x08, 0x1b, - 0x94, 0x1e, 0xc7, 0x06, 0xbf, 0x59, 0x84, 0x05, 0x31, 0xb3, 0x6e, 0x1e, 0x06, 0x0d, 0x86, 0x59, - 0x8f, 0x9e, 0xc4, 0x0a, 0xe7, 0x41, 0x6b, 0x3c, 0xb3, 0xde, 0x03, 0x05, 0xe2, 0x6b, 0xae, 0x25, - 0x28, 0x4b, 0x09, 0xb4, 0x6b, 0x4f, 0x08, 0x01, 0x28, 0xd7, 0xbb, 0x8b, 0x7d, 0x9f, 0xc4, 0x8e, - 0xb4, 0x51, 0x3a, 0xe9, 0x90, 0xe0, 0x06, 0x87, 0x36, 0x45, 0xb4, 0x70, 0x7b, 0x71, 0x4c, 0x02, - 0x41, 0x22, 0x87, 0xdd, 0x49, 0x05, 0x69, 0x52, 0xf4, 0x0a, 0x2c, 0xc4, 0xca, 0xf9, 0xf9, 0x00, - 0xc4, 0x03, 0x8b, 0x88, 0xce, 0x6a, 0x29, 0x81, 0x34, 0x72, 0x73, 0xf7, 0x7e, 0xc8, 0xc4, 0x30, - 0x84, 0x56, 0x61, 0x56, 0x8c, 0x97, 0x4e, 0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0x54, 0x75, 0xb5, 0x4e, 0x6a, 0x1c, 0xf1, 0x2e, 0xf6, 0x7d, 0x4e, 0x7e, 0x8f, 0xa2, - 0x2b, 0x30, 0x1f, 0xc5, 0xa1, 0x4b, 0x28, 0xcd, 0x53, 0x2b, 0x67, 0x51, 0xb8, 0x4c, 0x81, 0x35, - 0x98, 0xdf, 0xdb, 0x17, 0x6b, 0x92, 0x7c, 0x01, 0x35, 0xc7, 0xda, 0xdb, 0xe7, 0xab, 0x93, 0x0c, - 0xfd, 0x3a, 0x2c, 0xb2, 0x90, 0x61, 0xdf, 0x89, 0x23, 0x37, 0x53, 0x22, 0xd0, 0xca, 0x43, 0x02, - 0x6b, 0x47, 0xae, 0x2e, 0x73, 0x9f, 0x5a, 0x5f, 0x2d, 0xc0, 0x54, 0x2a, 0xce, 0x83, 0xf5, 0x11, - 0x02, 0x05, 0x23, 0x05, 0xba, 0xff, 0x10, 0x81, 0x82, 0x87, 0x09, 0x74, 0x9f, 0xa2, 0x37, 0xe1, - 0xac, 0x2e, 0x40, 0x7b, 0x34, 0x22, 0x41, 0x2b, 0x5f, 0x50, 0x0a, 0x56, 0x57, 0x34, 0x0d, 0x49, - 0x92, 0x29, 0x3f, 0x52, 0x21, 0x89, 0x78, 0x03, 0x0a, 0xb9, 0x7f, 0x94, 0x42, 0xc6, 0x1f, 0xaa, - 0x90, 0xcf, 0x43, 0x85, 0x2f, 0x6d, 0xc5, 0xd4, 0x70, 0x1e, 0xc6, 0x05, 0x85, 0x90, 0xbf, 0x68, - 0xcb, 0x0f, 0x3e, 0xcf, 0x50, 0x1c, 0x12, 0x39, 0x39, 0x2d, 0xda, 0x29, 0x20, 0xd9, 0xd6, 0xda, - 0xe9, 0x33, 0x22, 0x25, 0x2a, 0xca, 0x6d, 0xad, 0x6b, 0x1c, 0x60, 0xfd, 0x32, 0x9f, 0x07, 0xbb, - 0x38, 0x50, 0xee, 0xf3, 0x22, 0x8c, 0x8b, 0x2b, 0xc2, 0x43, 0x9e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3f, 0x01, 0x53, 0x22, 0xba, 0xe8, 0x36, 0x8b, - 0x03, 0xeb, 0x02, 0x31, 0xd1, 0x54, 0x8d, 0x56, 0x0f, 0xd2, 0x0f, 0xde, 0x6a, 0x86, 0xd7, 0x34, - 0x61, 0x79, 0x61, 0x04, 0xbb, 0xbc, 0x55, 0x96, 0xf9, 0xb2, 0xbe, 0x5c, 0x86, 0x6a, 0xa6, 0x66, - 0xf4, 0x2a, 0x2c, 0x52, 0x16, 0xc6, 0xc4, 0xd9, 0xe1, 0x03, 0x72, 0xd6, 0x9a, 0x32, 0xfe, 0xcc, - 0x09, 0xac, 0x38, 0xa1, 0x4e, 0x3d, 0xe1, 0x75, 0xd1, 0x59, 0x84, 0x0b, 0x52, 0x39, 0x8e, 0x24, - 0xa5, 0x64, 0x28, 0x9a, 0x57, 0xe8, 0x86, 0x18, 0x42, 0x74, 0xb1, 0x55, 0x98, 0x8d, 0x78, 0xdf, - 0x11, 0xd7, 0xf2, 0xdb, 0xaa, 0x80, 0x9a, 0x41, 0x2a, 0xc4, 0xdd, 0xb0, 0x2d, 0x69, 0x37, 0xe0, - 0x7c, 0x8c, 0x77, 0x99, 0xd3, 0xda, 0x71, 0xa4, 0x96, 0x7c, 0x82, 0x5b, 0x24, 0xce, 0x36, 0x25, - 0x43, 0xd0, 0x0a, 0x27, 0xbb, 0xbe, 0x23, 0x64, 0xba, 0x2b, 0x68, 0xd2, 0x06, 0xd7, 0x61, 0x51, - 0x57, 0xa2, 0x37, 0x65, 0x55, 0x59, 0x35, 0x04, 0xc9, 0xb2, 0x0d, 0xb9, 0x41, 0x2b, 0xcb, 0xbc, - 0x09, 0x67, 0xf3, 0x0d, 0x77, 0x49, 0x97, 0xf1, 0x45, 0xac, 0x2a, 0x29, 0x83, 0x4f, 0x3d, 0xd3, - 0xea, 0x3d, 0x45, 0x20, 0xcb, 0x5f, 0x06, 0xb5, 0xfe, 0xca, 0xb4, 0x26, 0x03, 0x8f, 0xda, 0xe8, - 0x4b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0xf9, 0x90, 0xb9, 0x15, 0x44, 0xe9, 0x18, 0x2b, - 0x08, 0xeb, 0x47, 0x05, 0x98, 0xbc, 0xb7, 0xef, 0xba, 0xc2, 0x5c, 0xe8, 0x7c, 0xee, 0x9d, 0x88, - 0x1c, 0x1b, 0xf2, 0x35, 0x88, 0x23, 0x4e, 0x46, 0xcf, 0x0c, 0xbd, 0x89, 0x90, 0xb9, 0x2f, 0x79, - 0x1e, 0xaa, 0xb4, 0x13, 0xc6, 0xcc, 0xc9, 0xbc, 0x8a, 0x60, 0x83, 0x00, 0x89, 0x17, 0x38, 0xf8, - 0x90, 0xde, 0xc1, 0xd4, 0x09, 0xf7, 0x49, 0xec, 0x63, 0x31, 0x75, 0xd1, 0x77, 0x94, 0x55, 0xce, - 0xe2, 0x42, 0x07, 0xd3, 0xad, 0x04, 0xab, 0x2f, 0xff, 0xa0, 0x0b, 0x30, 0xc5, 0xcb, 0xb5, 0x5d, - 0x67, 0x57, 0xbc, 0x45, 0x21, 0x73, 0x76, 0xa0, 0x83, 0xe9, 0x2d, 0xf7, 0xa6, 0x78, 0x8c, 0x62, - 0x19, 0x2a, 0x09, 0x56, 0xf6, 0xed, 0x72, 0x5b, 0xa1, 0x3e, 0x02, 0x35, 0xb1, 0xdf, 0xe6, 0x76, - 0x70, 0xd0, 0x16, 0x9b, 0x82, 0xb2, 0x33, 0x4f, 0x71, 0xe8, 0x86, 0x00, 0x8a, 0xed, 0x85, 0xa5, - 0x64, 0x8e, 0xa1, 0x77, 0xe8, 0x64, 0x09, 0xd5, 0x9b, 0xe7, 0x35, 0x5a, 0x6e, 0xcf, 0xc9, 0x82, - 0xd6, 0x67, 0xa5, 0x62, 0xa5, 0x78, 0x47, 0xac, 0x03, 0x47, 0x3e, 0xb0, 0x61, 0x7d, 0xbb, 0x08, - 0x15, 0x5e, 0x5c, 0xec, 0xaa, 0x3e, 0x89, 0x59, 0x32, 0x9b, 0x2c, 0xc5, 0xfc, 0x26, 0xcb, 0x23, - 0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a8, 0x49, 0xfe, 0x37, 0xc7, 0xd0, 0x02, 0xcc, 0x36, 0x9b, 0x77, 0x65, - 0x3a, 0x53, 0x22, 0x85, 0xd0, 0x87, 0x38, 0x78, 0x51, 0x4d, 0x26, 0x98, 0x02, 0x2f, 0x70, 0x2f, - 0xc9, 0x3f, 0x6a, 0x6c, 0xf7, 0x68, 0x87, 0xb4, 0xcc, 0x22, 0xf7, 0x9e, 0xa4, 0x9e, 0x11, 0x2f, - 0xd2, 0x9a, 0x25, 0xb4, 0x0c, 0x0b, 0xd9, 0x2a, 0xaf, 0x87, 0xf7, 0x43, 0xd6, 0xf1, 0x82, 0xb6, - 0x39, 0xbe, 0x7a, 0x09, 0xca, 0x37, 0x0e, 0x59, 0x8c, 0xb7, 0x22, 0x29, 0x7c, 0x18, 0x99, 0x63, - 0xc8, 0x84, 0x29, 0x9b, 0xe0, 0xd6, 0x96, 0xdf, 0x12, 0xab, 0x58, 0xd3, 0x58, 0xb5, 0x60, 0x76, - 0x68, 0x9e, 0xcd, 0xdd, 0x60, 0x23, 0x76, 0xdf, 0x78, 0xcd, 0xf9, 0xbf, 0x61, 0x6c, 0x8e, 0x5d, - 0x7b, 0xe1, 0xef, 0x7f, 0xbf, 0x62, 0x7c, 0xf0, 0xe1, 0x73, 0xc6, 0x0f, 0x3f, 0x7c, 0xce, 0xf8, - 0xc7, 0x0f, 0x9f, 0x33, 0x7e, 0xe7, 0x9f, 0x9e, 0x1b, 0x03, 0x33, 0x8c, 0xdb, 0x6b, 0xcc, 0xdb, - 0xdb, 0x5f, 0x53, 0x63, 0xcb, 0xce, 0x84, 0xf8, 0x79, 0xf5, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x4a, 0x81, 0x2e, 0xc1, 0xc2, 0x64, 0x00, 0x00, -} diff --git a/pkg/logbackuppb/logbackuppb.pb.go b/pkg/logbackuppb/logbackuppb.pb.go index 330f381de..2a7bd3212 100644 --- a/pkg/logbackuppb/logbackuppb.pb.go +++ b/pkg/logbackuppb/logbackuppb.pb.go @@ -1,38 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: logbackuppb.proto -/* -Package logbackup is a generated protocol buffer package. - -It is generated from these files: - - logbackuppb.proto - -It has these top-level messages: - - RegionIdentity - RegionCheckpoint - GetLastFlushTSOfRegionRequest - GetLastFlushTSOfRegionResponse - SubscribeFlushEventRequest - SubscribeFlushEventResponse - FlushEvent -*/ package logbackup import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - errorpb "github.com/pingcap/kvproto/pkg/errorpb" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -44,18 +27,49 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // The minimal information for identify a region. type RegionIdentity struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - EpochVersion uint64 `protobuf:"varint,2,opt,name=epoch_version,json=epochVersion,proto3" json:"epoch_version,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + EpochVersion uint64 `protobuf:"varint,2,opt,name=epoch_version,json=epochVersion,proto3" json:"epoch_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionIdentity) Reset() { *m = RegionIdentity{} } +func (m *RegionIdentity) String() string { return proto.CompactTextString(m) } +func (*RegionIdentity) ProtoMessage() {} +func (*RegionIdentity) Descriptor() ([]byte, []int) { + return fileDescriptor_9a556fe18b032662, []int{0} +} +func (m *RegionIdentity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionIdentity.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 *RegionIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionIdentity.Merge(m, src) +} +func (m *RegionIdentity) XXX_Size() int { + return m.Size() +} +func (m *RegionIdentity) XXX_DiscardUnknown() { + xxx_messageInfo_RegionIdentity.DiscardUnknown(m) } -func (m *RegionIdentity) Reset() { *m = RegionIdentity{} } -func (m *RegionIdentity) String() string { return proto.CompactTextString(m) } -func (*RegionIdentity) ProtoMessage() {} -func (*RegionIdentity) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{0} } +var xxx_messageInfo_RegionIdentity proto.InternalMessageInfo func (m *RegionIdentity) GetId() uint64 { if m != nil { @@ -73,15 +87,46 @@ func (m *RegionIdentity) GetEpochVersion() uint64 { // The last flush ts with region information. type RegionCheckpoint struct { - Err *errorpb.Error `protobuf:"bytes,1,opt,name=err" json:"err,omitempty"` - Region *RegionIdentity `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` - Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` + Err *errorpb.Error `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` + Region *RegionIdentity `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionCheckpoint) Reset() { *m = RegionCheckpoint{} } +func (m *RegionCheckpoint) String() string { return proto.CompactTextString(m) } +func (*RegionCheckpoint) ProtoMessage() {} +func (*RegionCheckpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_9a556fe18b032662, []int{1} +} +func (m *RegionCheckpoint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionCheckpoint.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 *RegionCheckpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionCheckpoint.Merge(m, src) +} +func (m *RegionCheckpoint) XXX_Size() int { + return m.Size() +} +func (m *RegionCheckpoint) XXX_DiscardUnknown() { + xxx_messageInfo_RegionCheckpoint.DiscardUnknown(m) } -func (m *RegionCheckpoint) Reset() { *m = RegionCheckpoint{} } -func (m *RegionCheckpoint) String() string { return proto.CompactTextString(m) } -func (*RegionCheckpoint) ProtoMessage() {} -func (*RegionCheckpoint) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{1} } +var xxx_messageInfo_RegionCheckpoint proto.InternalMessageInfo func (m *RegionCheckpoint) GetErr() *errorpb.Error { if m != nil { @@ -105,15 +150,44 @@ func (m *RegionCheckpoint) GetCheckpoint() uint64 { } type GetLastFlushTSOfRegionRequest struct { - Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` + Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetLastFlushTSOfRegionRequest) Reset() { *m = GetLastFlushTSOfRegionRequest{} } func (m *GetLastFlushTSOfRegionRequest) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionRequest) ProtoMessage() {} func (*GetLastFlushTSOfRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorLogbackuppb, []int{2} + return fileDescriptor_9a556fe18b032662, []int{2} } +func (m *GetLastFlushTSOfRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLastFlushTSOfRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLastFlushTSOfRegionRequest.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 *GetLastFlushTSOfRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLastFlushTSOfRegionRequest.Merge(m, src) +} +func (m *GetLastFlushTSOfRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *GetLastFlushTSOfRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLastFlushTSOfRegionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLastFlushTSOfRegionRequest proto.InternalMessageInfo func (m *GetLastFlushTSOfRegionRequest) GetRegions() []*RegionIdentity { if m != nil { @@ -123,15 +197,44 @@ func (m *GetLastFlushTSOfRegionRequest) GetRegions() []*RegionIdentity { } type GetLastFlushTSOfRegionResponse struct { - Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"` + Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetLastFlushTSOfRegionResponse) Reset() { *m = GetLastFlushTSOfRegionResponse{} } func (m *GetLastFlushTSOfRegionResponse) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionResponse) ProtoMessage() {} func (*GetLastFlushTSOfRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorLogbackuppb, []int{3} + return fileDescriptor_9a556fe18b032662, []int{3} } +func (m *GetLastFlushTSOfRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetLastFlushTSOfRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetLastFlushTSOfRegionResponse.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 *GetLastFlushTSOfRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLastFlushTSOfRegionResponse.Merge(m, src) +} +func (m *GetLastFlushTSOfRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *GetLastFlushTSOfRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetLastFlushTSOfRegionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLastFlushTSOfRegionResponse proto.InternalMessageInfo func (m *GetLastFlushTSOfRegionResponse) GetCheckpoints() []*RegionCheckpoint { if m != nil { @@ -141,15 +244,44 @@ func (m *GetLastFlushTSOfRegionResponse) GetCheckpoints() []*RegionCheckpoint { } type SubscribeFlushEventRequest struct { - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SubscribeFlushEventRequest) Reset() { *m = SubscribeFlushEventRequest{} } func (m *SubscribeFlushEventRequest) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventRequest) ProtoMessage() {} func (*SubscribeFlushEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptorLogbackuppb, []int{4} + return fileDescriptor_9a556fe18b032662, []int{4} } +func (m *SubscribeFlushEventRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscribeFlushEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscribeFlushEventRequest.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 *SubscribeFlushEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeFlushEventRequest.Merge(m, src) +} +func (m *SubscribeFlushEventRequest) XXX_Size() int { + return m.Size() +} +func (m *SubscribeFlushEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeFlushEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeFlushEventRequest proto.InternalMessageInfo func (m *SubscribeFlushEventRequest) GetClientId() string { if m != nil { @@ -159,15 +291,44 @@ func (m *SubscribeFlushEventRequest) GetClientId() string { } type SubscribeFlushEventResponse struct { - Events []*FlushEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` + Events []*FlushEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SubscribeFlushEventResponse) Reset() { *m = SubscribeFlushEventResponse{} } func (m *SubscribeFlushEventResponse) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventResponse) ProtoMessage() {} func (*SubscribeFlushEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptorLogbackuppb, []int{5} + return fileDescriptor_9a556fe18b032662, []int{5} } +func (m *SubscribeFlushEventResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscribeFlushEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscribeFlushEventResponse.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 *SubscribeFlushEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeFlushEventResponse.Merge(m, src) +} +func (m *SubscribeFlushEventResponse) XXX_Size() int { + return m.Size() +} +func (m *SubscribeFlushEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeFlushEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeFlushEventResponse proto.InternalMessageInfo func (m *SubscribeFlushEventResponse) GetEvents() []*FlushEvent { if m != nil { @@ -177,15 +338,46 @@ func (m *SubscribeFlushEventResponse) GetEvents() []*FlushEvent { } type FlushEvent struct { - StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` + StartKey []byte `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,2,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Checkpoint uint64 `protobuf:"varint,3,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlushEvent) Reset() { *m = FlushEvent{} } +func (m *FlushEvent) String() string { return proto.CompactTextString(m) } +func (*FlushEvent) ProtoMessage() {} +func (*FlushEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_9a556fe18b032662, []int{6} +} +func (m *FlushEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlushEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlushEvent.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 *FlushEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushEvent.Merge(m, src) +} +func (m *FlushEvent) XXX_Size() int { + return m.Size() +} +func (m *FlushEvent) XXX_DiscardUnknown() { + xxx_messageInfo_FlushEvent.DiscardUnknown(m) } -func (m *FlushEvent) Reset() { *m = FlushEvent{} } -func (m *FlushEvent) String() string { return proto.CompactTextString(m) } -func (*FlushEvent) ProtoMessage() {} -func (*FlushEvent) Descriptor() ([]byte, []int) { return fileDescriptorLogbackuppb, []int{6} } +var xxx_messageInfo_FlushEvent proto.InternalMessageInfo func (m *FlushEvent) GetStartKey() []byte { if m != nil { @@ -218,6 +410,42 @@ func init() { proto.RegisterType((*FlushEvent)(nil), "logbackup.FlushEvent") } +func init() { proto.RegisterFile("logbackuppb.proto", fileDescriptor_9a556fe18b032662) } + +var fileDescriptor_9a556fe18b032662 = []byte{ + // 474 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, + 0x18, 0xec, 0x26, 0x28, 0x4d, 0xbe, 0xb4, 0xa1, 0x2c, 0x7f, 0xc1, 0x11, 0x56, 0x64, 0x44, 0x55, + 0x0e, 0x18, 0x48, 0x4f, 0x1c, 0xb8, 0x14, 0x05, 0x54, 0x11, 0x09, 0xc9, 0xad, 0xb8, 0x46, 0xb1, + 0xfd, 0xe1, 0xac, 0x1c, 0xed, 0x9a, 0xdd, 0xb5, 0xa5, 0x3c, 0x01, 0xaf, 0xc0, 0x23, 0xf0, 0x28, + 0x1c, 0x39, 0x72, 0x44, 0x41, 0xe2, 0x39, 0x90, 0xd7, 0x76, 0x62, 0x44, 0xda, 0x70, 0xda, 0xd5, + 0xcc, 0xec, 0xcc, 0xf8, 0xfb, 0x64, 0xb8, 0xb5, 0x10, 0x91, 0x3f, 0x0b, 0xe2, 0x34, 0x49, 0x7c, + 0x37, 0x91, 0x42, 0x0b, 0xda, 0x59, 0x43, 0xd6, 0x9d, 0x48,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e2, 0x03, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -226,8 +454,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for LogBackup service - +// LogBackupClient is the client API for LogBackup service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type LogBackupClient interface { GetLastFlushTSOfRegion(ctx context.Context, in *GetLastFlushTSOfRegionRequest, opts ...grpc.CallOption) (*GetLastFlushTSOfRegionResponse, error) SubscribeFlushEvent(ctx context.Context, in *SubscribeFlushEventRequest, opts ...grpc.CallOption) (LogBackup_SubscribeFlushEventClient, error) @@ -243,7 +472,7 @@ func NewLogBackupClient(cc *grpc.ClientConn) LogBackupClient { func (c *logBackupClient) GetLastFlushTSOfRegion(ctx context.Context, in *GetLastFlushTSOfRegionRequest, opts ...grpc.CallOption) (*GetLastFlushTSOfRegionResponse, error) { out := new(GetLastFlushTSOfRegionResponse) - err := grpc.Invoke(ctx, "/logbackup.LogBackup/GetLastFlushTSOfRegion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/logbackup.LogBackup/GetLastFlushTSOfRegion", in, out, opts...) if err != nil { return nil, err } @@ -251,7 +480,7 @@ func (c *logBackupClient) GetLastFlushTSOfRegion(ctx context.Context, in *GetLas } func (c *logBackupClient) SubscribeFlushEvent(ctx context.Context, in *SubscribeFlushEventRequest, opts ...grpc.CallOption) (LogBackup_SubscribeFlushEventClient, error) { - stream, err := grpc.NewClientStream(ctx, &_LogBackup_serviceDesc.Streams[0], c.cc, "/logbackup.LogBackup/SubscribeFlushEvent", opts...) + stream, err := c.cc.NewStream(ctx, &_LogBackup_serviceDesc.Streams[0], "/logbackup.LogBackup/SubscribeFlushEvent", opts...) if err != nil { return nil, err } @@ -282,13 +511,23 @@ func (x *logBackupSubscribeFlushEventClient) Recv() (*SubscribeFlushEventRespons return m, nil } -// Server API for LogBackup service - +// LogBackupServer is the server API for LogBackup service. type LogBackupServer interface { GetLastFlushTSOfRegion(context.Context, *GetLastFlushTSOfRegionRequest) (*GetLastFlushTSOfRegionResponse, error) SubscribeFlushEvent(*SubscribeFlushEventRequest, LogBackup_SubscribeFlushEventServer) error } +// UnimplementedLogBackupServer can be embedded to have forward compatible implementations. +type UnimplementedLogBackupServer struct { +} + +func (*UnimplementedLogBackupServer) GetLastFlushTSOfRegion(ctx context.Context, req *GetLastFlushTSOfRegionRequest) (*GetLastFlushTSOfRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLastFlushTSOfRegion not implemented") +} +func (*UnimplementedLogBackupServer) SubscribeFlushEvent(req *SubscribeFlushEventRequest, srv LogBackup_SubscribeFlushEventServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeFlushEvent not implemented") +} + func RegisterLogBackupServer(s *grpc.Server, srv LogBackupServer) { s.RegisterService(&_LogBackup_serviceDesc, srv) } @@ -354,7 +593,7 @@ var _LogBackup_serviceDesc = grpc.ServiceDesc{ func (m *RegionIdentity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -362,27 +601,36 @@ func (m *RegionIdentity) Marshal() (dAtA []byte, err error) { } func (m *RegionIdentity) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.EpochVersion != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintLogbackuppb(dAtA, i, uint64(m.EpochVersion)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Id != 0 { + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RegionCheckpoint) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -390,42 +638,55 @@ func (m *RegionCheckpoint) Marshal() (dAtA []byte, err error) { } func (m *RegionCheckpoint) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Err != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Err.Size())) - n1, err := m.Err.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Checkpoint != 0 { + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) + i-- + dAtA[i] = 0x18 } if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Region.Size())) - n2, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0x12 } - if m.Checkpoint != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) + if m.Err != nil { + { + size, err := m.Err.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetLastFlushTSOfRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -433,29 +694,40 @@ func (m *GetLastFlushTSOfRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *GetLastFlushTSOfRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLastFlushTSOfRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0xa - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintLogbackuppb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *GetLastFlushTSOfRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -463,29 +735,40 @@ func (m *GetLastFlushTSOfRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *GetLastFlushTSOfRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetLastFlushTSOfRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Checkpoints) > 0 { - for _, msg := range m.Checkpoints { - dAtA[i] = 0xa - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Checkpoints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Checkpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogbackuppb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *SubscribeFlushEventRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -493,23 +776,33 @@ func (m *SubscribeFlushEventRequest) Marshal() (dAtA []byte, err error) { } func (m *SubscribeFlushEventRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscribeFlushEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.ClientId) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.ClientId) + copy(dAtA[i:], m.ClientId) i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.ClientId))) - i += copy(dAtA[i:], m.ClientId) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SubscribeFlushEventResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -517,29 +810,40 @@ func (m *SubscribeFlushEventResponse) Marshal() (dAtA []byte, err error) { } func (m *SubscribeFlushEventResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscribeFlushEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0xa - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintLogbackuppb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *FlushEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -547,40 +851,56 @@ func (m *FlushEvent) Marshal() (dAtA []byte, err error) { } func (m *FlushEvent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlushEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.StartKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Checkpoint != 0 { + i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) + i-- + dAtA[i] = 0x18 } if len(m.EndKey) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + i-- + dAtA[i] = 0x12 } - if m.Checkpoint != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintLogbackuppb(dAtA, i, uint64(m.Checkpoint)) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintLogbackuppb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintLogbackuppb(dAtA []byte, offset int, v uint64) int { + offset -= sovLogbackuppb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *RegionIdentity) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -589,10 +909,16 @@ func (m *RegionIdentity) Size() (n int) { if m.EpochVersion != 0 { n += 1 + sovLogbackuppb(uint64(m.EpochVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionCheckpoint) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Err != nil { @@ -606,10 +932,16 @@ func (m *RegionCheckpoint) Size() (n int) { if m.Checkpoint != 0 { n += 1 + sovLogbackuppb(uint64(m.Checkpoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -618,10 +950,16 @@ func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Checkpoints) > 0 { @@ -630,20 +968,32 @@ func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SubscribeFlushEventRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ClientId) if l > 0 { n += 1 + l + sovLogbackuppb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SubscribeFlushEventResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Events) > 0 { @@ -652,10 +1002,16 @@ func (m *SubscribeFlushEventResponse) Size() (n int) { n += 1 + l + sovLogbackuppb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlushEvent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StartKey) @@ -669,18 +1025,14 @@ func (m *FlushEvent) Size() (n int) { if m.Checkpoint != 0 { n += 1 + sovLogbackuppb(uint64(m.Checkpoint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovLogbackuppb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozLogbackuppb(x uint64) (n int) { return sovLogbackuppb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -700,7 +1052,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -728,7 +1080,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -747,7 +1099,7 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EpochVersion |= (uint64(b) & 0x7F) << shift + m.EpochVersion |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -758,12 +1110,13 @@ func (m *RegionIdentity) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -788,7 +1141,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -816,7 +1169,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -825,6 +1178,9 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -849,7 +1205,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -858,6 +1214,9 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -882,7 +1241,7 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checkpoint |= (uint64(b) & 0x7F) << shift + m.Checkpoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -893,12 +1252,13 @@ func (m *RegionCheckpoint) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -923,7 +1283,7 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -951,7 +1311,7 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -960,6 +1320,9 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -974,12 +1337,13 @@ func (m *GetLastFlushTSOfRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1004,7 +1368,7 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1032,7 +1396,7 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1041,6 +1405,9 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1055,12 +1422,13 @@ func (m *GetLastFlushTSOfRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1085,7 +1453,7 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1113,7 +1481,7 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1123,6 +1491,9 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1134,12 +1505,13 @@ func (m *SubscribeFlushEventRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1164,7 +1536,7 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1192,7 +1564,7 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1201,6 +1573,9 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1215,12 +1590,13 @@ func (m *SubscribeFlushEventResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1245,7 +1621,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1273,7 +1649,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1282,6 +1658,9 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1304,7 +1683,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1313,6 +1692,9 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthLogbackuppb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLogbackuppb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1335,7 +1717,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checkpoint |= (uint64(b) & 0x7F) << shift + m.Checkpoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1346,12 +1728,13 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthLogbackuppb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1364,6 +1747,7 @@ func (m *FlushEvent) Unmarshal(dAtA []byte) error { func skipLogbackuppb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1395,10 +1779,8 @@ func skipLogbackuppb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1415,89 +1797,34 @@ func skipLogbackuppb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthLogbackuppb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowLogbackuppb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipLogbackuppb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLogbackuppb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthLogbackuppb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthLogbackuppb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowLogbackuppb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthLogbackuppb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLogbackuppb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLogbackuppb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("logbackuppb.proto", fileDescriptorLogbackuppb) } - -var fileDescriptorLogbackuppb = []byte{ - // 474 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0xd3, 0x40, - 0x18, 0xec, 0x26, 0x28, 0x4d, 0xbe, 0xb4, 0xa1, 0x2c, 0x7f, 0xc1, 0x11, 0x56, 0x64, 0x44, 0x55, - 0x0e, 0x18, 0x48, 0x4f, 0x1c, 0xb8, 0x14, 0x05, 0x54, 0x11, 0x09, 0xc9, 0xad, 0xb8, 0x46, 0xb1,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, 0xcd, 0xe3, 0xea, - 0x5d, 0x58, 0xc7, 0xbb, 0x64, 0x55, 0xce, 0x73, 0x72, 0x76, 0xfc, 0xe3, 0x6b, 0x9b, 0x7c, 0x5b, - 0xd9, 0xe4, 0xfb, 0xca, 0x26, 0x3f, 0x57, 0x36, 0xf9, 0xf2, 0xcb, 0xde, 0x83, 0x23, 0x21, 0x23, - 0x57, 0xb3, 0x38, 0x73, 0xe3, 0xcc, 0xfc, 0x85, 0x7e, 0xcb, 0x1c, 0xa7, 0x7f, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xb9, 0x40, 0x0f, 0x40, 0xe2, 0x03, 0x00, 0x00, -} diff --git a/pkg/meta_storagepb/meta_storagepb.pb.go b/pkg/meta_storagepb/meta_storagepb.pb.go index 885bbf785..4d3958a0c 100644 --- a/pkg/meta_storagepb/meta_storagepb.pb.go +++ b/pkg/meta_storagepb/meta_storagepb.pb.go @@ -1,40 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: meta_storagepb.proto -/* -Package meta_storagepb is a generated protocol buffer package. - -It is generated from these files: - - meta_storagepb.proto - -It has these top-level messages: - - Error - RequestHeader - ResponseHeader - WatchRequest - WatchResponse - GetRequest - GetResponse - PutRequest - PutResponse - KeyValue - Event -*/ package meta_storagepb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -46,7 +26,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ErrorType int32 @@ -62,6 +42,7 @@ var ErrorType_name = map[int32]string{ 1: "UNKNOWN", 2: "DATA_COMPACTED", } + var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -71,7 +52,10 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } -func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{0} } + +func (ErrorType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{0} +} type Event_EventType int32 @@ -84,6 +68,7 @@ var Event_EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } + var Event_EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -92,19 +77,51 @@ var Event_EventType_value = map[string]int32{ func (x Event_EventType) String() string { return proto.EnumName(Event_EventType_name, int32(x)) } + func (Event_EventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorMetaStoragepb, []int{10, 0} + return fileDescriptor_5a2dc828c1dd8152, []int{10, 0} } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=meta_storagepb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=meta_storagepb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{0} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{0} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetType() ErrorType { if m != nil { @@ -124,13 +141,44 @@ type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // source is the source of the request. - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{1} +} +func (m *RequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(m, src) +} +func (m *RequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RequestHeader.DiscardUnknown(m) } -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{1} } +var xxx_messageInfo_RequestHeader proto.InternalMessageInfo func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -148,15 +196,46 @@ func (m *RequestHeader) GetSource() string { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{2} +} +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{2} } +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -181,17 +260,48 @@ func (m *ResponseHeader) GetRevision() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type WatchRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` - StartRevision int64 `protobuf:"varint,4,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` - PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + StartRevision int64 `protobuf:"varint,4,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` + PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchRequest) Reset() { *m = WatchRequest{} } +func (m *WatchRequest) String() string { return proto.CompactTextString(m) } +func (*WatchRequest) ProtoMessage() {} +func (*WatchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{3} +} +func (m *WatchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchRequest.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 *WatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchRequest.Merge(m, src) +} +func (m *WatchRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchRequest.DiscardUnknown(m) } -func (m *WatchRequest) Reset() { *m = WatchRequest{} } -func (m *WatchRequest) String() string { return proto.CompactTextString(m) } -func (*WatchRequest) ProtoMessage() {} -func (*WatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{3} } +var xxx_messageInfo_WatchRequest proto.InternalMessageInfo func (m *WatchRequest) GetHeader() *RequestHeader { if m != nil { @@ -230,15 +340,46 @@ func (m *WatchRequest) GetPrevKv() bool { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type WatchResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - CompactRevision int64 `protobuf:"varint,2,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` - Events []*Event `protobuf:"bytes,3,rep,name=events" json:"events,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + CompactRevision int64 `protobuf:"varint,2,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` + Events []*Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchResponse) Reset() { *m = WatchResponse{} } +func (m *WatchResponse) String() string { return proto.CompactTextString(m) } +func (*WatchResponse) ProtoMessage() {} +func (*WatchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{4} +} +func (m *WatchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchResponse.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 *WatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchResponse.Merge(m, src) +} +func (m *WatchResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchResponse.DiscardUnknown(m) } -func (m *WatchResponse) Reset() { *m = WatchResponse{} } -func (m *WatchResponse) String() string { return proto.CompactTextString(m) } -func (*WatchResponse) ProtoMessage() {} -func (*WatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{4} } +var xxx_messageInfo_WatchResponse proto.InternalMessageInfo func (m *WatchResponse) GetHeader() *ResponseHeader { if m != nil { @@ -263,17 +404,48 @@ func (m *WatchResponse) GetEvents() []*Event { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type GetRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` - Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Revision int64 `protobuf:"varint,5,opt,name=revision,proto3" json:"revision,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` + Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Revision int64 `protobuf:"varint,5,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{5} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{5} } +var xxx_messageInfo_GetRequest proto.InternalMessageInfo func (m *GetRequest) GetHeader() *RequestHeader { if m != nil { @@ -312,16 +484,47 @@ func (m *GetRequest) GetRevision() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type GetResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` - More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` - Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` + More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` + Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{6} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{6} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo func (m *GetResponse) GetHeader() *ResponseHeader { if m != nil { @@ -353,17 +556,48 @@ func (m *GetResponse) GetCount() int64 { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type PutRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Lease int64 `protobuf:"varint,4,opt,name=lease,proto3" json:"lease,omitempty"` - PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Lease int64 `protobuf:"varint,4,opt,name=lease,proto3" json:"lease,omitempty"` + PrevKv bool `protobuf:"varint,5,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{7} +} +func (m *PutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutRequest.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 *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(m, src) +} +func (m *PutRequest) XXX_Size() int { + return m.Size() +} +func (m *PutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest.DiscardUnknown(m) } -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{7} } +var xxx_messageInfo_PutRequest proto.InternalMessageInfo func (m *PutRequest) GetHeader() *RequestHeader { if m != nil { @@ -402,14 +636,45 @@ func (m *PutRequest) GetPrevKv() bool { // copied part of https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/etcdserverpb/rpc.proto type PutResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - PrevKv *KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + PrevKv *KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{8} +} +func (m *PutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutResponse.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 *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(m, src) +} +func (m *PutResponse) XXX_Size() int { + return m.Size() +} +func (m *PutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutResponse.DiscardUnknown(m) } -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{8} } +var xxx_messageInfo_PutResponse proto.InternalMessageInfo func (m *PutResponse) GetHeader() *ResponseHeader { if m != nil { @@ -442,13 +707,44 @@ type KeyValue struct { // lease is the ID of the lease that attached to key. // When the attached lease expires, the key will be deleted. // If lease is 0, then no lease is attached to the key. - Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` + Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{9} +} +func (m *KeyValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyValue.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 *KeyValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValue.Merge(m, src) +} +func (m *KeyValue) XXX_Size() int { + return m.Size() +} +func (m *KeyValue) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValue.DiscardUnknown(m) } -func (m *KeyValue) Reset() { *m = KeyValue{} } -func (m *KeyValue) String() string { return proto.CompactTextString(m) } -func (*KeyValue) ProtoMessage() {} -func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{9} } +var xxx_messageInfo_KeyValue proto.InternalMessageInfo func (m *KeyValue) GetKey() []byte { if m != nil { @@ -503,15 +799,46 @@ type Event struct { // A PUT event with kv.Version=1 indicates the creation of a key. // A DELETE/EXPIRE event contains the deleted key with // its modification revision set to the revision of deletion. - Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"` + Kv *KeyValue `protobuf:"bytes,2,opt,name=kv,proto3" json:"kv,omitempty"` // prev_kv holds the key-value pair before the event happens. - PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` + PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { + return fileDescriptor_5a2dc828c1dd8152, []int{10} +} +func (m *Event) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Event.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 *Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event.Merge(m, src) +} +func (m *Event) XXX_Size() int { + return m.Size() +} +func (m *Event) XXX_DiscardUnknown() { + xxx_messageInfo_Event.DiscardUnknown(m) } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorMetaStoragepb, []int{10} } +var xxx_messageInfo_Event proto.InternalMessageInfo func (m *Event) GetType() Event_EventType { if m != nil { @@ -535,6 +862,8 @@ func (m *Event) GetPrevKv() *KeyValue { } func init() { + proto.RegisterEnum("meta_storagepb.ErrorType", ErrorType_name, ErrorType_value) + proto.RegisterEnum("meta_storagepb.Event_EventType", Event_EventType_name, Event_EventType_value) proto.RegisterType((*Error)(nil), "meta_storagepb.Error") proto.RegisterType((*RequestHeader)(nil), "meta_storagepb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "meta_storagepb.ResponseHeader") @@ -546,8 +875,61 @@ func init() { proto.RegisterType((*PutResponse)(nil), "meta_storagepb.PutResponse") proto.RegisterType((*KeyValue)(nil), "meta_storagepb.KeyValue") proto.RegisterType((*Event)(nil), "meta_storagepb.Event") - proto.RegisterEnum("meta_storagepb.ErrorType", ErrorType_name, ErrorType_value) - proto.RegisterEnum("meta_storagepb.Event_EventType", Event_EventType_name, Event_EventType_value) +} + +func init() { proto.RegisterFile("meta_storagepb.proto", fileDescriptor_5a2dc828c1dd8152) } + +var fileDescriptor_5a2dc828c1dd8152 = []byte{ + // 777 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0xda, 0x58, + 0x10, 0xe6, 0x61, 0x6c, 0x60, 0x20, 0xc4, 0x7a, 0x62, 0x77, 0xbd, 0x64, 0xc3, 0xb2, 0x96, 0x76, + 0x97, 0xcd, 0x2a, 0xec, 0x2e, 0xd9, 0xf6, 0xdc, 0x34, 0xa1, 0x49, 0x45, 0x93, 0x20, 0x97, 0x34, + 0x47, 0xe4, 0xc0, 0x88, 0x20, 0x02, 0xa6, 0x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0x6c, 0x98, 0x8f, 0xa6, 0x41, + 0x6a, 0x1d, 0xb7, 0xd5, 0x04, 0x05, 0x50, 0x76, 0x1b, 0x8f, 0x1a, 0xed, 0x86, 0x4a, 0x36, 0xfe, + 0x87, 0x6c, 0xf8, 0x28, 0x50, 0x05, 0x92, 0x47, 0x4d, 0x35, 0x41, 0x73, 0x90, 0x3e, 0x3e, 0x6c, + 0x1e, 0x1e, 0x9d, 0x1c, 0xaa, 0x84, 0x52, 0x28, 0xec, 0x6e, 0xb7, 0xb7, 0x3b, 0x3b, 0x47, 0x07, + 0xad, 0xed, 0x9d, 0x76, 0x63, 0x57, 0x4d, 0xd6, 0x3f, 0x11, 0xc8, 0x1d, 0x20, 0x37, 0x1f, 0xfb, + 0xa9, 0xe9, 0x3e, 0xc8, 0x62, 0x67, 0xd1, 0x5f, 0xe2, 0x94, 0xa2, 0x1b, 0xb8, 0xb4, 0x7e, 0xcd, + 0xad, 0xdf, 0x3b, 0x7a, 0xe2, 0x5f, 0x42, 0xef, 0x81, 0xb4, 0x87, 0x9c, 0x96, 0xe2, 0x91, 0xf3, + 0x75, 0x53, 0x5a, 0x5b, 0x7a, 0x37, 0xc3, 0xf0, 0x10, 0x5a, 0xce, 0x12, 0x84, 0xf9, 0xac, 0x5d, + 0x45, 0x88, 0xf4, 0xba, 0x9e, 0xb8, 0xff, 0xc7, 0xc7, 0xd7, 0x19, 0xf2, 0xfe, 0xb2, 0x4c, 0x3e, + 0x5c, 0x96, 0xc9, 0xe7, 0xcb, 0x32, 0x79, 0xf6, 0xa5, 0x9c, 0x00, 0xd5, 0x62, 0xfd, 0x1a, 0x1f, + 0x0c, 0xdd, 0xda, 0xd0, 0x15, 0xaf, 0xee, 0xa9, 0x22, 0xfe, 0xb6, 0xbe, 0x06, 0x00, 0x00, 0xff, + 0xff, 0xfd, 0xde, 0x7c, 0x36, 0xcb, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -558,8 +940,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for MetaStorage service - +// MetaStorageClient is the client API for MetaStorage service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MetaStorageClient interface { Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetaStorage_WatchClient, error) // Get is the same as etcd Range which might be implemented in a more common way @@ -577,7 +960,7 @@ func NewMetaStorageClient(cc *grpc.ClientConn) MetaStorageClient { } func (c *metaStorageClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetaStorage_WatchClient, error) { - stream, err := grpc.NewClientStream(ctx, &_MetaStorage_serviceDesc.Streams[0], c.cc, "/meta_storagepb.MetaStorage/Watch", opts...) + stream, err := c.cc.NewStream(ctx, &_MetaStorage_serviceDesc.Streams[0], "/meta_storagepb.MetaStorage/Watch", opts...) if err != nil { return nil, err } @@ -610,7 +993,7 @@ func (x *metaStorageWatchClient) Recv() (*WatchResponse, error) { func (c *metaStorageClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { out := new(GetResponse) - err := grpc.Invoke(ctx, "/meta_storagepb.MetaStorage/Get", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/meta_storagepb.MetaStorage/Get", in, out, opts...) if err != nil { return nil, err } @@ -619,15 +1002,14 @@ func (c *metaStorageClient) Get(ctx context.Context, in *GetRequest, opts ...grp func (c *metaStorageClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { out := new(PutResponse) - err := grpc.Invoke(ctx, "/meta_storagepb.MetaStorage/Put", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/meta_storagepb.MetaStorage/Put", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for MetaStorage service - +// MetaStorageServer is the server API for MetaStorage service. type MetaStorageServer interface { Watch(*WatchRequest, MetaStorage_WatchServer) error // Get is the same as etcd Range which might be implemented in a more common way @@ -636,6 +1018,20 @@ type MetaStorageServer interface { Put(context.Context, *PutRequest) (*PutResponse, error) } +// UnimplementedMetaStorageServer can be embedded to have forward compatible implementations. +type UnimplementedMetaStorageServer struct { +} + +func (*UnimplementedMetaStorageServer) Watch(req *WatchRequest, srv MetaStorage_WatchServer) error { + return status.Errorf(codes.Unimplemented, "method Watch not implemented") +} +func (*UnimplementedMetaStorageServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedMetaStorageServer) Put(ctx context.Context, req *PutRequest) (*PutResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Put not implemented") +} + func RegisterMetaStorageServer(s *grpc.Server, srv MetaStorageServer) { s.RegisterService(&_MetaStorage_serviceDesc, srv) } @@ -723,7 +1119,7 @@ var _MetaStorage_serviceDesc = grpc.ServiceDesc{ func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -731,28 +1127,38 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Type != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -760,28 +1166,38 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Source) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Source) + copy(dAtA[i:], m.Source) i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -789,37 +1205,48 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Revision != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x18 } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 } - if m.Revision != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) + if m.ClusterId != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *WatchRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -827,54 +1254,67 @@ func (m *WatchRequest) Marshal() (dAtA []byte, err error) { } func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n2, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrevKv { + i-- + if m.PrevKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n2 + i-- + dAtA[i] = 0x28 } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.StartRevision != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.StartRevision)) + i-- + dAtA[i] = 0x20 } if len(m.RangeEnd) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.RangeEnd) + copy(dAtA[i:], m.RangeEnd) i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) - i += copy(dAtA[i:], m.RangeEnd) + i-- + dAtA[i] = 0x1a } - if m.StartRevision != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.StartRevision)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 } - if m.PrevKv { - dAtA[i] = 0x28 - i++ - if m.PrevKv { - 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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *WatchResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -882,44 +1322,57 @@ func (m *WatchResponse) Marshal() (dAtA []byte, err error) { } func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n3, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n3 } if m.CompactRevision != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CompactRevision)) + i-- + dAtA[i] = 0x10 } - if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0x1a - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -927,49 +1380,62 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n4, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Revision != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x28 + } + if m.Limit != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 } if len(m.RangeEnd) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.RangeEnd) + copy(dAtA[i:], m.RangeEnd) i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) - i += copy(dAtA[i:], m.RangeEnd) + i-- + dAtA[i] = 0x1a } - if m.Limit != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Limit)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 } - if m.Revision != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Revision)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -977,54 +1443,67 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Kvs) > 0 { - for _, msg := range m.Kvs { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.Count != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x20 } if m.More { - dAtA[i] = 0x18 - i++ + i-- if m.More { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if m.Count != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Count)) + if len(m.Kvs) > 0 { + for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - return i, nil + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *PutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1032,54 +1511,67 @@ func (m *PutRequest) Marshal() (dAtA []byte, err error) { } func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n6, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrevKv { + i-- + if m.PrevKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n6 + i-- + dAtA[i] = 0x28 } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Lease != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) + i-- + dAtA[i] = 0x20 } if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x1a } - if m.Lease != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 } - if m.PrevKv { - dAtA[i] = 0x28 - i++ - if m.PrevKv { - 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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PutResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1087,37 +1579,50 @@ func (m *PutResponse) Marshal() (dAtA []byte, err error) { } func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) - n7, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.PrevKv != nil { + { + size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.PrevKv.Size())) - n8, err := m.PrevKv.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1125,49 +1630,60 @@ func (m *KeyValue) Marshal() (dAtA []byte, err error) { } func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.CreateRevision != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CreateRevision)) + if m.Lease != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) + i-- + dAtA[i] = 0x30 } - if m.ModRevision != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ModRevision)) + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x2a } if m.Version != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x20 } - if len(m.Value) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + if m.ModRevision != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.ModRevision)) + i-- + dAtA[i] = 0x18 } - if m.Lease != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) + if m.CreateRevision != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CreateRevision)) + i-- + dAtA[i] = 0x10 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Event) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1175,48 +1691,66 @@ func (m *Event) Marshal() (dAtA []byte, err error) { } func (m *Event) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) - } - if m.Kv != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Kv.Size())) - n9, err := m.Kv.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.PrevKv != nil { + { + size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.PrevKv.Size())) - n10, err := m.PrevKv.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Kv != nil { + { + size, err := m.Kv.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintMetaStoragepb(dAtA []byte, offset int, v uint64) int { + offset -= sovMetaStoragepb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -1226,10 +1760,16 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovMetaStoragepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1239,10 +1779,16 @@ func (m *RequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovMetaStoragepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1255,10 +1801,16 @@ func (m *ResponseHeader) Size() (n int) { if m.Revision != 0 { n += 1 + sovMetaStoragepb(uint64(m.Revision)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WatchRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1279,10 +1831,16 @@ func (m *WatchRequest) Size() (n int) { if m.PrevKv { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WatchResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1298,10 +1856,16 @@ func (m *WatchResponse) Size() (n int) { n += 1 + l + sovMetaStoragepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1322,10 +1886,16 @@ func (m *GetRequest) Size() (n int) { if m.Revision != 0 { n += 1 + sovMetaStoragepb(uint64(m.Revision)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1344,10 +1914,16 @@ func (m *GetResponse) Size() (n int) { if m.Count != 0 { n += 1 + sovMetaStoragepb(uint64(m.Count)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1368,10 +1944,16 @@ func (m *PutRequest) Size() (n int) { if m.PrevKv { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1382,10 +1964,16 @@ func (m *PutResponse) Size() (n int) { l = m.PrevKv.Size() n += 1 + l + sovMetaStoragepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -1408,10 +1996,16 @@ func (m *KeyValue) Size() (n int) { if m.Lease != 0 { n += 1 + sovMetaStoragepb(uint64(m.Lease)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Event) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -1425,18 +2019,14 @@ func (m *Event) Size() (n int) { l = m.PrevKv.Size() n += 1 + l + sovMetaStoragepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovMetaStoragepb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozMetaStoragepb(x uint64) (n int) { return sovMetaStoragepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1456,7 +2046,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1484,7 +2074,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } @@ -1503,7 +2093,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1513,6 +2103,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1524,12 +2117,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1554,7 +2148,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1582,7 +2176,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1601,7 +2195,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1611,6 +2205,9 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1622,12 +2219,13 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1652,7 +2250,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1680,7 +2278,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1699,7 +2297,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1708,6 +2306,9 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1732,7 +2333,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= (int64(b) & 0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1743,12 +2344,13 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1773,7 +2375,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1801,7 +2403,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1810,6 +2412,9 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1834,7 +2439,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1843,6 +2448,9 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1865,7 +2473,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1874,6 +2482,9 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1896,7 +2507,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartRevision |= (int64(b) & 0x7F) << shift + m.StartRevision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1915,7 +2526,7 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1927,12 +2538,13 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1957,7 +2569,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1985,7 +2597,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1994,6 +2606,9 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2018,7 +2633,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactRevision |= (int64(b) & 0x7F) << shift + m.CompactRevision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2037,7 +2652,7 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2046,6 +2661,9 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2060,12 +2678,13 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2090,7 +2709,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2118,7 +2737,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2127,6 +2746,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2151,7 +2773,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2160,6 +2782,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2182,7 +2807,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2191,6 +2816,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2213,7 +2841,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= (int64(b) & 0x7F) << shift + m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2232,7 +2860,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= (int64(b) & 0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2243,12 +2871,13 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2273,7 +2902,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2301,7 +2930,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2310,6 +2939,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2334,7 +2966,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2343,6 +2975,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2365,7 +3000,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2385,7 +3020,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (int64(b) & 0x7F) << shift + m.Count |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2396,12 +3031,13 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2426,7 +3062,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2454,7 +3090,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2463,6 +3099,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2487,7 +3126,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2496,6 +3135,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2518,7 +3160,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2527,6 +3169,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2549,7 +3194,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Lease |= (int64(b) & 0x7F) << shift + m.Lease |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2568,7 +3213,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2580,12 +3225,13 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2610,7 +3256,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2638,7 +3284,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2647,6 +3293,9 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2671,7 +3320,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2680,6 +3329,9 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2696,12 +3348,13 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2726,7 +3379,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2754,7 +3407,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2763,6 +3416,9 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2785,7 +3441,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreateRevision |= (int64(b) & 0x7F) << shift + m.CreateRevision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2804,7 +3460,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ModRevision |= (int64(b) & 0x7F) << shift + m.ModRevision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2823,7 +3479,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (int64(b) & 0x7F) << shift + m.Version |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2842,7 +3498,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2851,6 +3507,9 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2873,7 +3532,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Lease |= (int64(b) & 0x7F) << shift + m.Lease |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2884,12 +3543,13 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2914,7 +3574,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2942,7 +3602,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (Event_EventType(b) & 0x7F) << shift + m.Type |= Event_EventType(b&0x7F) << shift if b < 0x80 { break } @@ -2961,7 +3621,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2970,6 +3630,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2994,7 +3657,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3003,6 +3666,9 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetaStoragepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3019,12 +3685,13 @@ func (m *Event) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetaStoragepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3037,6 +3704,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { func skipMetaStoragepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3068,10 +3736,8 @@ func skipMetaStoragepb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3088,108 +3754,34 @@ func skipMetaStoragepb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMetaStoragepb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetaStoragepb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMetaStoragepb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetaStoragepb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetaStoragepb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthMetaStoragepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetaStoragepb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthMetaStoragepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetaStoragepb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetaStoragepb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("meta_storagepb.proto", fileDescriptorMetaStoragepb) } - -var fileDescriptorMetaStoragepb = []byte{ - // 777 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x41, 0x6f, 0xda, 0x58, - 0x10, 0xe6, 0x61, 0x6c, 0x60, 0x20, 0xc4, 0x7a, 0x62, 0x77, 0xbd, 0x64, 0xc3, 0xb2, 0x96, 0x76, - 0x97, 0xcd, 0x2a, 0xec, 0x2e, 0xd9, 0xf6, 0xdc, 0x34, 0xa1, 0x49, 0x45, 0x93, 0x20, 0x97, 0x34, - 0x47, 0xe4, 0xc0, 0x88, 0x20, 0x02, 0xa6, 0xcf, 0xcf, 0x56, 0xf8, 0x27, 0x55, 0x7b, 0xaa, 0xd4, - 0x43, 0x4f, 0x3d, 0xf5, 0xd6, 0x3f, 0xd0, 0x63, 0x8f, 0x95, 0x7a, 0xa9, 0xd2, 0x3f, 0x52, 0xf9, - 0xd9, 0x18, 0xe3, 0x10, 0x29, 0x52, 0xaa, 0x5e, 0xe0, 0xcd, 0xbc, 0xf1, 0x37, 0xdf, 0x7c, 0x9a, - 0x99, 0x07, 0xc5, 0x11, 0x72, 0xb3, 0x63, 0x73, 0x8b, 0x99, 0x7d, 0x9c, 0x9c, 0xd6, 0x26, 0xcc, - 0xe2, 0x16, 0x2d, 0x2c, 0x7a, 0x4b, 0xc5, 0xbe, 0xd5, 0xb7, 0xc4, 0xd5, 0x3f, 0xde, 0xc9, 0x8f, - 0x2a, 0xad, 0x32, 0xc7, 0xe6, 0xe2, 0xe8, 0x3b, 0xf4, 0x16, 0xc8, 0x0d, 0xc6, 0x2c, 0x46, 0x37, - 0x21, 0xc5, 0xa7, 0x13, 0xd4, 0x48, 0x85, 0x54, 0x0b, 0xf5, 0x9f, 0x6b, 0xb1, 0x24, 0x22, 0xa8, - 0x3d, 0x9d, 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, 0x10, 0x5a, 0xce, 0x12, 0x84, 0xf9, 0xac, 0x5d, - 0x45, 0x88, 0xf4, 0xba, 0x9e, 0xb8, 0xff, 0xc7, 0xc7, 0xd7, 0x19, 0xf2, 0xfe, 0xb2, 0x4c, 0x3e, - 0x5c, 0x96, 0xc9, 0xe7, 0xcb, 0x32, 0x79, 0xf6, 0xa5, 0x9c, 0x00, 0xd5, 0x62, 0xfd, 0x1a, 0x1f, - 0x0c, 0xdd, 0xda, 0xd0, 0x15, 0xaf, 0xee, 0xa9, 0x22, 0xfe, 0xb6, 0xbe, 0x06, 0x00, 0x00, 0xff, - 0xff, 0xfd, 0xde, 0x7c, 0x36, 0xcb, 0x07, 0x00, 0x00, -} diff --git a/pkg/metapb/metapb.pb.go b/pkg/metapb/metapb.pb.go index 4eed20b82..7a962f0e8 100644 --- a/pkg/metapb/metapb.pb.go +++ b/pkg/metapb/metapb.pb.go @@ -1,35 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: metapb.proto -/* -Package metapb is a generated protocol buffer package. - -It is generated from these files: - - metapb.proto - -It has these top-level messages: - - Cluster - StoreLabel - Store - RegionEpoch - BucketStats - Buckets - Region - Peer -*/ package metapb import ( "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" - - _ "github.com/gogo/protobuf/gogoproto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -41,7 +23,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type StoreState int32 @@ -56,6 +38,7 @@ var StoreState_name = map[int32]string{ 1: "Offline", 2: "Tombstone", } + var StoreState_value = map[string]int32{ "Up": 0, "Offline": 1, @@ -65,7 +48,10 @@ var StoreState_value = map[string]int32{ func (x StoreState) String() string { return proto.EnumName(StoreState_name, int32(x)) } -func (StoreState) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{0} } + +func (StoreState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{0} +} // NodeState is going to replace StoreState to make the state concept more clear. // "Up" is devided into "Preparing" and "Serving" stages so that we can better describe the online process. @@ -86,6 +72,7 @@ var NodeState_name = map[int32]string{ 2: "Removing", 3: "Removed", } + var NodeState_value = map[string]int32{ "Preparing": 0, "Serving": 1, @@ -96,7 +83,10 @@ var NodeState_value = map[string]int32{ func (x NodeState) String() string { return proto.EnumName(NodeState_name, int32(x)) } -func (NodeState) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{1} } + +func (NodeState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{1} +} type PeerRole int32 @@ -117,6 +107,7 @@ var PeerRole_name = map[int32]string{ 2: "IncomingVoter", 3: "DemotingVoter", } + var PeerRole_value = map[string]int32{ "Voter": 0, "Learner": 1, @@ -127,19 +118,53 @@ var PeerRole_value = map[string]int32{ func (x PeerRole) String() string { return proto.EnumName(PeerRole_name, int32(x)) } -func (PeerRole) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{2} } + +func (PeerRole) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{2} +} type Cluster struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // max peer count for a region. // pd will do the auto-balance if region peer count mismatches. - MaxPeerCount uint32 `protobuf:"varint,2,opt,name=max_peer_count,json=maxPeerCount,proto3" json:"max_peer_count,omitempty"` + MaxPeerCount uint32 `protobuf:"varint,2,opt,name=max_peer_count,json=maxPeerCount,proto3" json:"max_peer_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cluster) Reset() { *m = Cluster{} } +func (m *Cluster) String() string { return proto.CompactTextString(m) } +func (*Cluster) ProtoMessage() {} +func (*Cluster) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{0} +} +func (m *Cluster) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Cluster.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 *Cluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cluster.Merge(m, src) +} +func (m *Cluster) XXX_Size() int { + return m.Size() +} +func (m *Cluster) XXX_DiscardUnknown() { + xxx_messageInfo_Cluster.DiscardUnknown(m) } -func (m *Cluster) Reset() { *m = Cluster{} } -func (m *Cluster) String() string { return proto.CompactTextString(m) } -func (*Cluster) ProtoMessage() {} -func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{0} } +var xxx_messageInfo_Cluster proto.InternalMessageInfo func (m *Cluster) GetId() uint64 { if m != nil { @@ -157,14 +182,45 @@ func (m *Cluster) GetMaxPeerCount() uint32 { // Case insensitive key/value for replica constraints. type StoreLabel struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreLabel) Reset() { *m = StoreLabel{} } +func (m *StoreLabel) String() string { return proto.CompactTextString(m) } +func (*StoreLabel) ProtoMessage() {} +func (*StoreLabel) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{1} +} +func (m *StoreLabel) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreLabel.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 *StoreLabel) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreLabel.Merge(m, src) +} +func (m *StoreLabel) XXX_Size() int { + return m.Size() +} +func (m *StoreLabel) XXX_DiscardUnknown() { + xxx_messageInfo_StoreLabel.DiscardUnknown(m) } -func (m *StoreLabel) Reset() { *m = StoreLabel{} } -func (m *StoreLabel) String() string { return proto.CompactTextString(m) } -func (*StoreLabel) ProtoMessage() {} -func (*StoreLabel) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{1} } +var xxx_messageInfo_StoreLabel proto.InternalMessageInfo func (m *StoreLabel) GetKey() string { if m != nil { @@ -185,7 +241,7 @@ type Store struct { // Address to handle client requests (kv, cop, etc.) Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` State StoreState `protobuf:"varint,3,opt,name=state,proto3,enum=metapb.StoreState" json:"state,omitempty"` - Labels []*StoreLabel `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty"` + Labels []*StoreLabel `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` // Address to handle peer requests (raft messages from other store). // Empty means same as address. @@ -201,13 +257,44 @@ type Store struct { // If the store is physically destroyed, which means it can never up again. PhysicallyDestroyed bool `protobuf:"varint,12,opt,name=physically_destroyed,json=physicallyDestroyed,proto3" json:"physically_destroyed,omitempty"` // NodeState is used to replace StoreState which will be deprecated in the future. - NodeState NodeState `protobuf:"varint,13,opt,name=node_state,json=nodeState,proto3,enum=metapb.NodeState" json:"node_state,omitempty"` + NodeState NodeState `protobuf:"varint,13,opt,name=node_state,json=nodeState,proto3,enum=metapb.NodeState" json:"node_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Store) Reset() { *m = Store{} } +func (m *Store) String() string { return proto.CompactTextString(m) } +func (*Store) ProtoMessage() {} +func (*Store) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{2} +} +func (m *Store) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Store) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Store.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 *Store) XXX_Merge(src proto.Message) { + xxx_messageInfo_Store.Merge(m, src) +} +func (m *Store) XXX_Size() int { + return m.Size() +} +func (m *Store) XXX_DiscardUnknown() { + xxx_messageInfo_Store.DiscardUnknown(m) } -func (m *Store) Reset() { *m = Store{} } -func (m *Store) String() string { return proto.CompactTextString(m) } -func (*Store) ProtoMessage() {} -func (*Store) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{2} } +var xxx_messageInfo_Store proto.InternalMessageInfo func (m *Store) GetId() uint64 { if m != nil { @@ -304,13 +391,44 @@ type RegionEpoch struct { // Conf change version, auto increment when add or remove peer ConfVer uint64 `protobuf:"varint,1,opt,name=conf_ver,json=confVer,proto3" json:"conf_ver,omitempty"` // Region version, auto increment when split or merge - Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionEpoch) Reset() { *m = RegionEpoch{} } +func (m *RegionEpoch) String() string { return proto.CompactTextString(m) } +func (*RegionEpoch) ProtoMessage() {} +func (*RegionEpoch) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{3} +} +func (m *RegionEpoch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionEpoch.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 *RegionEpoch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionEpoch.Merge(m, src) +} +func (m *RegionEpoch) XXX_Size() int { + return m.Size() +} +func (m *RegionEpoch) XXX_DiscardUnknown() { + xxx_messageInfo_RegionEpoch.DiscardUnknown(m) } -func (m *RegionEpoch) Reset() { *m = RegionEpoch{} } -func (m *RegionEpoch) String() string { return proto.CompactTextString(m) } -func (*RegionEpoch) ProtoMessage() {} -func (*RegionEpoch) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{3} } +var xxx_messageInfo_RegionEpoch proto.InternalMessageInfo func (m *RegionEpoch) GetConfVer() uint64 { if m != nil { @@ -328,23 +446,54 @@ func (m *RegionEpoch) GetVersion() uint64 { type BucketStats struct { // total read in bytes of each bucket - ReadBytes []uint64 `protobuf:"varint,1,rep,packed,name=read_bytes,json=readBytes" json:"read_bytes,omitempty"` + ReadBytes []uint64 `protobuf:"varint,1,rep,packed,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` // total write in bytes of each bucket - WriteBytes []uint64 `protobuf:"varint,2,rep,packed,name=write_bytes,json=writeBytes" json:"write_bytes,omitempty"` + WriteBytes []uint64 `protobuf:"varint,2,rep,packed,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` // total read qps of each bucket - ReadQps []uint64 `protobuf:"varint,3,rep,packed,name=read_qps,json=readQps" json:"read_qps,omitempty"` + ReadQps []uint64 `protobuf:"varint,3,rep,packed,name=read_qps,json=readQps,proto3" json:"read_qps,omitempty"` // total write qps of each bucket - WriteQps []uint64 `protobuf:"varint,4,rep,packed,name=write_qps,json=writeQps" json:"write_qps,omitempty"` + WriteQps []uint64 `protobuf:"varint,4,rep,packed,name=write_qps,json=writeQps,proto3" json:"write_qps,omitempty"` // total read keys of each bucket - ReadKeys []uint64 `protobuf:"varint,5,rep,packed,name=read_keys,json=readKeys" json:"read_keys,omitempty"` + ReadKeys []uint64 `protobuf:"varint,5,rep,packed,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` // total write keys of each bucket - WriteKeys []uint64 `protobuf:"varint,6,rep,packed,name=write_keys,json=writeKeys" json:"write_keys,omitempty"` + WriteKeys []uint64 `protobuf:"varint,6,rep,packed,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BucketStats) Reset() { *m = BucketStats{} } +func (m *BucketStats) String() string { return proto.CompactTextString(m) } +func (*BucketStats) ProtoMessage() {} +func (*BucketStats) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{4} +} +func (m *BucketStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BucketStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BucketStats.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 *BucketStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_BucketStats.Merge(m, src) +} +func (m *BucketStats) XXX_Size() int { + return m.Size() +} +func (m *BucketStats) XXX_DiscardUnknown() { + xxx_messageInfo_BucketStats.DiscardUnknown(m) } -func (m *BucketStats) Reset() { *m = BucketStats{} } -func (m *BucketStats) String() string { return proto.CompactTextString(m) } -func (*BucketStats) ProtoMessage() {} -func (*BucketStats) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{4} } +var xxx_messageInfo_BucketStats proto.InternalMessageInfo func (m *BucketStats) GetReadBytes() []uint64 { if m != nil { @@ -393,17 +542,48 @@ type Buckets struct { // A hint indicate if keys have changed. Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // keys of buckets, include start/end key of region - Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` // bucket stats - Stats *BucketStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` + Stats *BucketStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"` // The period in milliseconds that stats are collected with in - PeriodInMs uint64 `protobuf:"varint,5,opt,name=period_in_ms,json=periodInMs,proto3" json:"period_in_ms,omitempty"` + PeriodInMs uint64 `protobuf:"varint,5,opt,name=period_in_ms,json=periodInMs,proto3" json:"period_in_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Buckets) Reset() { *m = Buckets{} } +func (m *Buckets) String() string { return proto.CompactTextString(m) } +func (*Buckets) ProtoMessage() {} +func (*Buckets) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{5} +} +func (m *Buckets) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Buckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Buckets.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 *Buckets) XXX_Merge(src proto.Message) { + xxx_messageInfo_Buckets.Merge(m, src) +} +func (m *Buckets) XXX_Size() int { + return m.Size() +} +func (m *Buckets) XXX_DiscardUnknown() { + xxx_messageInfo_Buckets.DiscardUnknown(m) } -func (m *Buckets) Reset() { *m = Buckets{} } -func (m *Buckets) String() string { return proto.CompactTextString(m) } -func (*Buckets) ProtoMessage() {} -func (*Buckets) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{5} } +var xxx_messageInfo_Buckets proto.InternalMessageInfo func (m *Buckets) GetRegionId() uint64 { if m != nil { @@ -445,24 +625,55 @@ type Region struct { // Region key range [start_key, end_key). StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - RegionEpoch *RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - Peers []*Peer `protobuf:"bytes,5,rep,name=peers" json:"peers,omitempty"` + RegionEpoch *RegionEpoch `protobuf:"bytes,4,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + Peers []*Peer `protobuf:"bytes,5,rep,name=peers,proto3" json:"peers,omitempty"` // Encryption metadata for start_key and end_key. encryption_meta.iv is IV for start_key. // IV for end_key is calculated from (encryption_meta.iv + len(start_key)). // The field is only used by PD and should be ignored otherwise. // If encryption_meta is empty (i.e. nil), it means start_key and end_key are unencrypted. - EncryptionMeta *encryptionpb.EncryptionMeta `protobuf:"bytes,6,opt,name=encryption_meta,json=encryptionMeta" json:"encryption_meta,omitempty"` + EncryptionMeta *encryptionpb.EncryptionMeta `protobuf:"bytes,6,opt,name=encryption_meta,json=encryptionMeta,proto3" json:"encryption_meta,omitempty"` // The flashback state indicates whether this region is in the flashback state. // TODO: only check by `flashback_start_ts` in the future. Keep for compatibility now. IsInFlashback bool `protobuf:"varint,7,opt,name=is_in_flashback,json=isInFlashback,proto3" json:"is_in_flashback,omitempty"` // The start_ts that the current flashback progress is using. - FlashbackStartTs uint64 `protobuf:"varint,8,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` + FlashbackStartTs uint64 `protobuf:"varint,8,opt,name=flashback_start_ts,json=flashbackStartTs,proto3" json:"flashback_start_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Region) Reset() { *m = Region{} } +func (m *Region) String() string { return proto.CompactTextString(m) } +func (*Region) ProtoMessage() {} +func (*Region) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{6} +} +func (m *Region) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Region.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 *Region) XXX_Merge(src proto.Message) { + xxx_messageInfo_Region.Merge(m, src) +} +func (m *Region) XXX_Size() int { + return m.Size() +} +func (m *Region) XXX_DiscardUnknown() { + xxx_messageInfo_Region.DiscardUnknown(m) } -func (m *Region) Reset() { *m = Region{} } -func (m *Region) String() string { return proto.CompactTextString(m) } -func (*Region) ProtoMessage() {} -func (*Region) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{6} } +var xxx_messageInfo_Region proto.InternalMessageInfo func (m *Region) GetId() uint64 { if m != nil { @@ -521,16 +732,47 @@ func (m *Region) GetFlashbackStartTs() uint64 { } type Peer struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - Role PeerRole `protobuf:"varint,3,opt,name=role,proto3,enum=metapb.PeerRole" json:"role,omitempty"` - IsWitness bool `protobuf:"varint,4,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + Role PeerRole `protobuf:"varint,3,opt,name=role,proto3,enum=metapb.PeerRole" json:"role,omitempty"` + IsWitness bool `protobuf:"varint,4,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Peer) Reset() { *m = Peer{} } +func (m *Peer) String() string { return proto.CompactTextString(m) } +func (*Peer) ProtoMessage() {} +func (*Peer) Descriptor() ([]byte, []int) { + return fileDescriptor_77b4d575d5a68dda, []int{7} +} +func (m *Peer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Peer.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 *Peer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peer.Merge(m, src) +} +func (m *Peer) XXX_Size() int { + return m.Size() +} +func (m *Peer) XXX_DiscardUnknown() { + xxx_messageInfo_Peer.DiscardUnknown(m) } -func (m *Peer) Reset() { *m = Peer{} } -func (m *Peer) String() string { return proto.CompactTextString(m) } -func (*Peer) ProtoMessage() {} -func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptorMetapb, []int{7} } +var xxx_messageInfo_Peer proto.InternalMessageInfo func (m *Peer) GetId() uint64 { if m != nil { @@ -561,6 +803,9 @@ func (m *Peer) GetIsWitness() bool { } func init() { + proto.RegisterEnum("metapb.StoreState", StoreState_name, StoreState_value) + proto.RegisterEnum("metapb.NodeState", NodeState_name, NodeState_value) + proto.RegisterEnum("metapb.PeerRole", PeerRole_name, PeerRole_value) proto.RegisterType((*Cluster)(nil), "metapb.Cluster") proto.RegisterType((*StoreLabel)(nil), "metapb.StoreLabel") proto.RegisterType((*Store)(nil), "metapb.Store") @@ -569,14 +814,80 @@ func init() { proto.RegisterType((*Buckets)(nil), "metapb.Buckets") proto.RegisterType((*Region)(nil), "metapb.Region") proto.RegisterType((*Peer)(nil), "metapb.Peer") - proto.RegisterEnum("metapb.StoreState", StoreState_name, StoreState_value) - proto.RegisterEnum("metapb.NodeState", NodeState_name, NodeState_value) - proto.RegisterEnum("metapb.PeerRole", PeerRole_name, PeerRole_value) } + +func init() { proto.RegisterFile("metapb.proto", fileDescriptor_77b4d575d5a68dda) } + +var fileDescriptor_77b4d575d5a68dda = []byte{ + // 977 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0x4f, 0x73, 0x1b, 0xc5, + 0x13, 0xcd, 0xea, 0xef, 0xaa, 0x57, 0x92, 0x95, 0x89, 0xab, 0x7e, 0xeb, 0xe4, 0x87, 0x11, 0x2a, + 0x08, 0xc2, 0x45, 0x99, 0x60, 0x28, 0xae, 0x14, 0x4e, 0x4c, 0xd9, 0x95, 0x04, 0xcc, 0x3a, 0x84, + 0xe3, 0xd6, 0x48, 0xdb, 0x96, 0xb6, 0xb4, 0xda, 0x59, 0x66, 0x46, 0x4a, 0xf4, 0x4d, 0xb8, 0x72, + 0xe3, 0x6b, 0x70, 0x82, 0x23, 0x47, 0x0e, 0x1c, 0x28, 0xf3, 0x45, 0xa8, 0xee, 0xd9, 0x55, 0xec, + 0xb8, 0x38, 0x69, 0xfa, 0xbd, 0xee, 0xd9, 0x37, 0x6f, 0xa6, 0x5b, 0xd0, 0x5d, 0xa2, 0x95, 0xc5, + 0xe4, 0xb0, 0xd0, 0xca, 0x2a, 0xd1, 0x72, 0xd1, 0x7d, 0x81, 0xf9, 0x54, 0x6f, 0x0a, 0x9b, 0xaa, + 0xbc, 0xe2, 0xee, 0xef, 0xce, 0xd4, 0x4c, 0xf1, 0xf2, 0x13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x8e, 0x83, 0xda, 0xc1, 0x31, 0x74, 0xb6, 0x7d, 0x4b, 0xdc, 0xb9, 0xc6, 0x42, 0xea, 0x34, 0x9f, + 0xb9, 0xba, 0x0b, 0xd4, 0x6b, 0x0a, 0x3c, 0xd1, 0x05, 0x3f, 0xc2, 0xa5, 0xe2, 0xa8, 0x46, 0x14, + 0x47, 0x98, 0x0c, 0xea, 0x07, 0xa7, 0xe0, 0x57, 0x32, 0x45, 0x07, 0x9a, 0x2f, 0x95, 0x45, 0xed, + 0xca, 0x9f, 0xa1, 0xd4, 0x39, 0xea, 0x81, 0x27, 0xee, 0x42, 0xef, 0x2c, 0x9f, 0xaa, 0x65, 0x9a, + 0xcf, 0x1c, 0x5f, 0x23, 0xe8, 0x09, 0x2e, 0x95, 0xdd, 0x42, 0xf5, 0xe3, 0x87, 0x7f, 0xfe, 0xe2, + 0x7b, 0xbf, 0x5f, 0xed, 0x7b, 0x7f, 0x5c, 0xed, 0x7b, 0x7f, 0x5f, 0xed, 0x7b, 0x3f, 0xfd, 0xb3, + 0x7f, 0x07, 0x06, 0x4a, 0xcf, 0x0e, 0x6d, 0xba, 0x58, 0x1f, 0x2e, 0xd6, 0xfc, 0x5f, 0x35, 0x69, + 0xf1, 0xcf, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0xfc, 0x6d, 0x8c, 0x05, 0x07, 0x00, + 0x00, +} + func (m *Cluster) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -584,27 +895,36 @@ func (m *Cluster) Marshal() (dAtA []byte, err error) { } func (m *Cluster) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.MaxPeerCount != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintMetapb(dAtA, i, uint64(m.MaxPeerCount)) + i-- + dAtA[i] = 0x10 + } + if m.Id != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *StoreLabel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -612,29 +932,40 @@ func (m *StoreLabel) Marshal() (dAtA []byte, err error) { } func (m *StoreLabel) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreLabel) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintMetapb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Store) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -642,100 +973,117 @@ func (m *Store) Marshal() (dAtA []byte, err error) { } func (m *Store) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Store) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - } - if len(m.Address) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.State != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.State)) + if m.NodeState != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.NodeState)) + i-- + dAtA[i] = 0x68 } - if len(m.Labels) > 0 { - for _, msg := range m.Labels { - dAtA[i] = 0x22 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.PhysicallyDestroyed { + i-- + if m.PhysicallyDestroyed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x60 } - if len(m.Version) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.Version))) - i += copy(dAtA[i:], m.Version) + if m.LastHeartbeat != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.LastHeartbeat)) + i-- + dAtA[i] = 0x58 } - if len(m.PeerAddress) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.PeerAddress))) - i += copy(dAtA[i:], m.PeerAddress) + if len(m.DeployPath) > 0 { + i -= len(m.DeployPath) + copy(dAtA[i:], m.DeployPath) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.DeployPath))) + i-- + dAtA[i] = 0x52 } - if len(m.StatusAddress) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.StatusAddress))) - i += copy(dAtA[i:], m.StatusAddress) + if m.StartTimestamp != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.StartTimestamp)) + i-- + dAtA[i] = 0x48 } if len(m.GitHash) > 0 { - dAtA[i] = 0x42 - i++ + i -= len(m.GitHash) + copy(dAtA[i:], m.GitHash) i = encodeVarintMetapb(dAtA, i, uint64(len(m.GitHash))) - i += copy(dAtA[i:], m.GitHash) + i-- + dAtA[i] = 0x42 } - if m.StartTimestamp != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.StartTimestamp)) + if len(m.StatusAddress) > 0 { + i -= len(m.StatusAddress) + copy(dAtA[i:], m.StatusAddress) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.StatusAddress))) + i-- + dAtA[i] = 0x3a } - if len(m.DeployPath) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.DeployPath))) - i += copy(dAtA[i:], m.DeployPath) + if len(m.PeerAddress) > 0 { + i -= len(m.PeerAddress) + copy(dAtA[i:], m.PeerAddress) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.PeerAddress))) + i-- + dAtA[i] = 0x32 } - if m.LastHeartbeat != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.LastHeartbeat)) + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x2a } - if m.PhysicallyDestroyed { - dAtA[i] = 0x60 - i++ - if m.PhysicallyDestroyed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Labels) > 0 { + for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetapb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i++ } - if m.NodeState != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.NodeState)) + if m.State != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x18 } - return i, nil + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RegionEpoch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -743,27 +1091,36 @@ func (m *RegionEpoch) Marshal() (dAtA []byte, err error) { } func (m *RegionEpoch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionEpoch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ConfVer != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.ConfVer)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Version != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.ConfVer != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.ConfVer)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *BucketStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -771,14 +1128,23 @@ func (m *BucketStats) Marshal() (dAtA []byte, err error) { } func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BucketStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ReadBytes) > 0 { - dAtA2 := make([]byte, len(m.ReadBytes)*10) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.WriteKeys) > 0 { + dAtA2 := make([]byte, len(m.WriteKeys)*10) var j1 int - for _, num := range m.ReadBytes { + for _, num := range m.WriteKeys { for num >= 1<<7 { dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -787,15 +1153,16 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - dAtA[i] = 0xa - i++ + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) i = encodeVarintMetapb(dAtA, i, uint64(j1)) - i += copy(dAtA[i:], dAtA2[:j1]) + i-- + dAtA[i] = 0x32 } - if len(m.WriteBytes) > 0 { - dAtA4 := make([]byte, len(m.WriteBytes)*10) + if len(m.ReadKeys) > 0 { + dAtA4 := make([]byte, len(m.ReadKeys)*10) var j3 int - for _, num := range m.WriteBytes { + for _, num := range m.ReadKeys { for num >= 1<<7 { dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -804,15 +1171,16 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA4[j3] = uint8(num) j3++ } - dAtA[i] = 0x12 - i++ + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) i = encodeVarintMetapb(dAtA, i, uint64(j3)) - i += copy(dAtA[i:], dAtA4[:j3]) + i-- + dAtA[i] = 0x2a } - if len(m.ReadQps) > 0 { - dAtA6 := make([]byte, len(m.ReadQps)*10) + if len(m.WriteQps) > 0 { + dAtA6 := make([]byte, len(m.WriteQps)*10) var j5 int - for _, num := range m.ReadQps { + for _, num := range m.WriteQps { for num >= 1<<7 { dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -821,15 +1189,16 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA6[j5] = uint8(num) j5++ } - dAtA[i] = 0x1a - i++ + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) i = encodeVarintMetapb(dAtA, i, uint64(j5)) - i += copy(dAtA[i:], dAtA6[:j5]) + i-- + dAtA[i] = 0x22 } - if len(m.WriteQps) > 0 { - dAtA8 := make([]byte, len(m.WriteQps)*10) + if len(m.ReadQps) > 0 { + dAtA8 := make([]byte, len(m.ReadQps)*10) var j7 int - for _, num := range m.WriteQps { + for _, num := range m.ReadQps { for num >= 1<<7 { dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -838,15 +1207,16 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA8[j7] = uint8(num) j7++ } - dAtA[i] = 0x22 - i++ + i -= j7 + copy(dAtA[i:], dAtA8[:j7]) i = encodeVarintMetapb(dAtA, i, uint64(j7)) - i += copy(dAtA[i:], dAtA8[:j7]) + i-- + dAtA[i] = 0x1a } - if len(m.ReadKeys) > 0 { - dAtA10 := make([]byte, len(m.ReadKeys)*10) + if len(m.WriteBytes) > 0 { + dAtA10 := make([]byte, len(m.WriteBytes)*10) var j9 int - for _, num := range m.ReadKeys { + for _, num := range m.WriteBytes { for num >= 1<<7 { dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -855,15 +1225,16 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA10[j9] = uint8(num) j9++ } - dAtA[i] = 0x2a - i++ + i -= j9 + copy(dAtA[i:], dAtA10[:j9]) i = encodeVarintMetapb(dAtA, i, uint64(j9)) - i += copy(dAtA[i:], dAtA10[:j9]) + i-- + dAtA[i] = 0x12 } - if len(m.WriteKeys) > 0 { - dAtA12 := make([]byte, len(m.WriteKeys)*10) + if len(m.ReadBytes) > 0 { + dAtA12 := make([]byte, len(m.ReadBytes)*10) var j11 int - for _, num := range m.WriteKeys { + for _, num := range m.ReadBytes { for num >= 1<<7 { dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -872,18 +1243,19 @@ func (m *BucketStats) MarshalTo(dAtA []byte) (int, error) { dAtA12[j11] = uint8(num) j11++ } - dAtA[i] = 0x32 - i++ + i -= j11 + copy(dAtA[i:], dAtA12[:j11]) i = encodeVarintMetapb(dAtA, i, uint64(j11)) - i += copy(dAtA[i:], dAtA12[:j11]) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Buckets) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -891,50 +1263,62 @@ func (m *Buckets) Marshal() (dAtA []byte, err error) { } func (m *Buckets) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Buckets) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Version != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) + if m.PeriodInMs != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.PeriodInMs)) + i-- + dAtA[i] = 0x28 + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetapb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if len(m.Keys) > 0 { - for _, b := range m.Keys { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) } } - if m.Stats != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Stats.Size())) - n13, err := m.Stats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 + if m.Version != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x10 } - if m.PeriodInMs != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.PeriodInMs)) + if m.RegionId != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Region) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -942,81 +1326,98 @@ func (m *Region) Marshal() (dAtA []byte, err error) { } func (m *Region) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.FlashbackStartTs != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.FlashbackStartTs)) + i-- + dAtA[i] = 0x40 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintMetapb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.IsInFlashback { + i-- + if m.IsInFlashback { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 } - if m.RegionEpoch != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.RegionEpoch.Size())) - n14, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.EncryptionMeta != nil { + { + size, err := m.EncryptionMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetapb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x32 } if len(m.Peers) > 0 { - for _, msg := range m.Peers { + 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 = encodeVarintMetapb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x2a - i++ - i = encodeVarintMetapb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintMetapb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } - if m.EncryptionMeta != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.EncryptionMeta.Size())) - n15, err := m.EncryptionMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a } - if m.IsInFlashback { - dAtA[i] = 0x38 - i++ - if m.IsInFlashback { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintMetapb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 } - if m.FlashbackStartTs != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.FlashbackStartTs)) + if m.Id != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Peer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1024,48 +1425,62 @@ func (m *Peer) Marshal() (dAtA []byte, err error) { } func (m *Peer) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - } - if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.StoreId)) - } - if m.Role != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMetapb(dAtA, i, uint64(m.Role)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.IsWitness { - dAtA[i] = 0x20 - i++ + i-- if m.IsWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if m.Role != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Role)) + i-- + dAtA[i] = 0x18 } - return i, nil + if m.StoreId != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 + } + if m.Id != 0 { + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func encodeVarintMetapb(dAtA []byte, offset int, v uint64) int { + offset -= sovMetapb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *Cluster) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1074,10 +1489,16 @@ func (m *Cluster) Size() (n int) { if m.MaxPeerCount != 0 { n += 1 + sovMetapb(uint64(m.MaxPeerCount)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreLabel) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -1088,10 +1509,16 @@ func (m *StoreLabel) Size() (n int) { if l > 0 { n += 1 + l + sovMetapb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Store) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1142,10 +1569,16 @@ func (m *Store) Size() (n int) { if m.NodeState != 0 { n += 1 + sovMetapb(uint64(m.NodeState)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionEpoch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ConfVer != 0 { @@ -1154,10 +1587,16 @@ func (m *RegionEpoch) Size() (n int) { if m.Version != 0 { n += 1 + sovMetapb(uint64(m.Version)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BucketStats) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.ReadBytes) > 0 { @@ -1202,10 +1641,16 @@ func (m *BucketStats) Size() (n int) { } n += 1 + sovMetapb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Buckets) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -1227,10 +1672,16 @@ func (m *Buckets) Size() (n int) { if m.PeriodInMs != 0 { n += 1 + sovMetapb(uint64(m.PeriodInMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Region) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1264,10 +1715,16 @@ func (m *Region) Size() (n int) { if m.FlashbackStartTs != 0 { n += 1 + sovMetapb(uint64(m.FlashbackStartTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Peer) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1282,18 +1739,14 @@ func (m *Peer) Size() (n int) { if m.IsWitness { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovMetapb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozMetapb(x uint64) (n int) { return sovMetapb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1313,7 +1766,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1341,7 +1794,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1360,7 +1813,7 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxPeerCount |= (uint32(b) & 0x7F) << shift + m.MaxPeerCount |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1371,12 +1824,13 @@ func (m *Cluster) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1401,7 +1855,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1429,7 +1883,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1439,6 +1893,9 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1458,7 +1915,7 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1468,6 +1925,9 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1479,12 +1939,13 @@ func (m *StoreLabel) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1509,7 +1970,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1537,7 +1998,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1556,7 +2017,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1566,6 +2027,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1585,7 +2049,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (StoreState(b) & 0x7F) << shift + m.State |= StoreState(b&0x7F) << shift if b < 0x80 { break } @@ -1604,7 +2068,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1613,6 +2077,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1635,7 +2102,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1645,6 +2112,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1664,7 +2134,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1674,6 +2144,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1693,7 +2166,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1703,6 +2176,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1722,7 +2198,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1732,6 +2208,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1751,7 +2230,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTimestamp |= (int64(b) & 0x7F) << shift + m.StartTimestamp |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1770,7 +2249,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1780,6 +2259,9 @@ func (m *Store) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1799,7 +2281,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastHeartbeat |= (int64(b) & 0x7F) << shift + m.LastHeartbeat |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1818,7 +2300,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1838,7 +2320,7 @@ func (m *Store) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeState |= (NodeState(b) & 0x7F) << shift + m.NodeState |= NodeState(b&0x7F) << shift if b < 0x80 { break } @@ -1849,12 +2331,13 @@ func (m *Store) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1879,7 +2362,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1907,7 +2390,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConfVer |= (uint64(b) & 0x7F) << shift + m.ConfVer |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1926,7 +2409,7 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1937,12 +2420,13 @@ func (m *RegionEpoch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1967,7 +2451,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1993,7 +2477,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2010,7 +2494,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2019,9 +2503,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.ReadBytes) == 0 { + m.ReadBytes = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2033,7 +2531,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2055,7 +2553,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2072,7 +2570,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2081,9 +2579,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.WriteBytes) == 0 { + m.WriteBytes = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2095,7 +2607,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2117,7 +2629,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2134,7 +2646,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2143,9 +2655,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.ReadQps) == 0 { + m.ReadQps = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2157,7 +2683,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2179,7 +2705,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2196,7 +2722,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2205,9 +2731,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.WriteQps) == 0 { + m.WriteQps = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2219,7 +2759,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2241,7 +2781,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2258,7 +2798,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2267,9 +2807,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.ReadKeys) == 0 { + m.ReadKeys = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2281,7 +2835,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2303,7 +2857,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2320,7 +2874,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2329,9 +2883,23 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } 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.WriteKeys) == 0 { + m.WriteKeys = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2343,7 +2911,7 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2359,12 +2927,13 @@ func (m *BucketStats) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2389,7 +2958,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2417,7 +2986,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2436,7 +3005,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2455,7 +3024,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2464,6 +3033,9 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2484,7 +3056,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2493,6 +3065,9 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2517,7 +3092,7 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeriodInMs |= (uint64(b) & 0x7F) << shift + m.PeriodInMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2528,12 +3103,13 @@ func (m *Buckets) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2558,7 +3134,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2586,7 +3162,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2605,7 +3181,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2614,6 +3190,9 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2636,7 +3215,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2645,6 +3224,9 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2667,7 +3249,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2676,6 +3258,9 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2700,7 +3285,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2709,6 +3294,9 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2731,7 +3319,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2740,6 +3328,9 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2764,7 +3355,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2784,7 +3375,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FlashbackStartTs |= (uint64(b) & 0x7F) << shift + m.FlashbackStartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2795,12 +3386,13 @@ func (m *Region) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2825,7 +3417,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2853,7 +3445,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2872,7 +3464,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2891,7 +3483,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Role |= (PeerRole(b) & 0x7F) << shift + m.Role |= PeerRole(b&0x7F) << shift if b < 0x80 { break } @@ -2910,7 +3502,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2922,12 +3514,13 @@ func (m *Peer) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMetapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2940,6 +3533,7 @@ func (m *Peer) Unmarshal(dAtA []byte) error { func skipMetapb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2971,10 +3565,8 @@ func skipMetapb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2991,121 +3583,34 @@ func skipMetapb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMetapb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetapb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMetapb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetapb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetapb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthMetapb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetapb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetapb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("metapb.proto", fileDescriptorMetapb) } - -var fileDescriptorMetapb = []byte{ - // 977 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0x4f, 0x73, 0x1b, 0xc5, - 0x13, 0xcd, 0xea, 0xef, 0xaa, 0x57, 0x92, 0x95, 0x89, 0xab, 0x7e, 0xeb, 0xe4, 0x87, 0x11, 0x2a, - 0x08, 0xc2, 0x45, 0x99, 0x60, 0x28, 0xae, 0x14, 0x4e, 0x4c, 0xd9, 0x95, 0x04, 0xcc, 0x3a, 0x84, - 0xe3, 0xd6, 0x48, 0xdb, 0x96, 0xb6, 0xb4, 0xda, 0x59, 0x66, 0x46, 0x4a, 0xf4, 0x4d, 0xb8, 0x72, - 0xe3, 0x6b, 0x70, 0x82, 0x23, 0x47, 0x0e, 0x1c, 0x28, 0xf3, 0x45, 0xa8, 0xee, 0xd9, 0x55, 0xec, - 0xb8, 0x38, 0x69, 0xfa, 0xbd, 0xee, 0xd9, 0x37, 0x6f, 0xa6, 0x5b, 0xd0, 0x5d, 0xa2, 0x95, 0xc5, - 0xe4, 0xb0, 0xd0, 0xca, 0x2a, 0xd1, 0x72, 0xd1, 0x7d, 0x81, 0xf9, 0x54, 0x6f, 0x0a, 0x9b, 0xaa, - 0xbc, 0xe2, 0xee, 0xef, 0xce, 0xd4, 0x4c, 0xf1, 0xf2, 0x13, 0x5a, 0x95, 0xe8, 0x8e, 0x5e, 0x19, - 0xcb, 0x4b, 0x07, 0x8c, 0xbe, 0x84, 0xf6, 0xe3, 0x6c, 0x65, 0x2c, 0x6a, 0xd1, 0x87, 0x5a, 0x9a, - 0x84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1, 0x05, 0x3f, 0xc2, 0xa5, 0xe2, 0xa8, 0x46, 0x14, - 0x47, 0x98, 0x0c, 0xea, 0x07, 0xa7, 0xe0, 0x57, 0x32, 0x45, 0x07, 0x9a, 0x2f, 0x95, 0x45, 0xed, - 0xca, 0x9f, 0xa1, 0xd4, 0x39, 0xea, 0x81, 0x27, 0xee, 0x42, 0xef, 0x2c, 0x9f, 0xaa, 0x65, 0x9a, - 0xcf, 0x1c, 0x5f, 0x23, 0xe8, 0x09, 0x2e, 0x95, 0xdd, 0x42, 0xf5, 0xe3, 0x87, 0x7f, 0xfe, 0xe2, - 0x7b, 0xbf, 0x5f, 0xed, 0x7b, 0x7f, 0x5c, 0xed, 0x7b, 0x7f, 0x5f, 0xed, 0x7b, 0x3f, 0xfd, 0xb3, - 0x7f, 0x07, 0x06, 0x4a, 0xcf, 0x0e, 0x6d, 0xba, 0x58, 0x1f, 0x2e, 0xd6, 0xfc, 0x5f, 0x35, 0x69, - 0xf1, 0xcf, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0xfc, 0x6d, 0x8c, 0x05, 0x07, 0x00, - 0x00, -} diff --git a/pkg/mpp/mpp.pb.go b/pkg/mpp/mpp.pb.go index 7e4abd37b..2b8bcbac1 100644 --- a/pkg/mpp/mpp.pb.go +++ b/pkg/mpp/mpp.pb.go @@ -1,43 +1,19 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: mpp.proto -/* -Package mpp is a generated protocol buffer package. - -It is generated from these files: - - mpp.proto - -It has these top-level messages: - - TaskMeta - IsAliveRequest - IsAliveResponse - DispatchTaskRequest - DispatchTaskResponse - CancelTaskRequest - CancelTaskResponse - ReportTaskStatusRequest - ReportTaskStatusResponse - EstablishMPPConnectionRequest - MPPDataPacket - Error -*/ package mpp import ( "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" - - metapb "github.com/pingcap/kvproto/pkg/metapb" - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -49,7 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // TaskMeta contains meta of a mpp plan, including query's ts and task address. type TaskMeta struct { @@ -67,12 +43,43 @@ type TaskMeta struct { ReportExecutionSummary bool `protobuf:"varint,12,opt,name=report_execution_summary,json=reportExecutionSummary,proto3" json:"report_execution_summary,omitempty"` ApiVersion kvrpcpb.APIVersion `protobuf:"varint,16,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` ResourceGroupName string `protobuf:"bytes,17,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskMeta) Reset() { *m = TaskMeta{} } +func (m *TaskMeta) String() string { return proto.CompactTextString(m) } +func (*TaskMeta) ProtoMessage() {} +func (*TaskMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{0} +} +func (m *TaskMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TaskMeta.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 *TaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskMeta.Merge(m, src) +} +func (m *TaskMeta) XXX_Size() int { + return m.Size() +} +func (m *TaskMeta) XXX_DiscardUnknown() { + xxx_messageInfo_TaskMeta.DiscardUnknown(m) } -func (m *TaskMeta) Reset() { *m = TaskMeta{} } -func (m *TaskMeta) String() string { return proto.CompactTextString(m) } -func (*TaskMeta) ProtoMessage() {} -func (*TaskMeta) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{0} } +var xxx_messageInfo_TaskMeta proto.InternalMessageInfo func (m *TaskMeta) GetStartTs() uint64 { if m != nil { @@ -173,22 +180,84 @@ func (m *TaskMeta) GetResourceGroupName() string { } type IsAliveRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsAliveRequest) Reset() { *m = IsAliveRequest{} } +func (m *IsAliveRequest) String() string { return proto.CompactTextString(m) } +func (*IsAliveRequest) ProtoMessage() {} +func (*IsAliveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{1} +} +func (m *IsAliveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsAliveRequest.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 *IsAliveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsAliveRequest.Merge(m, src) +} +func (m *IsAliveRequest) XXX_Size() int { + return m.Size() +} +func (m *IsAliveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IsAliveRequest.DiscardUnknown(m) } -func (m *IsAliveRequest) Reset() { *m = IsAliveRequest{} } -func (m *IsAliveRequest) String() string { return proto.CompactTextString(m) } -func (*IsAliveRequest) ProtoMessage() {} -func (*IsAliveRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{1} } +var xxx_messageInfo_IsAliveRequest proto.InternalMessageInfo type IsAliveResponse struct { - Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` - MppVersion int64 `protobuf:"varint,2,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` + Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` + MppVersion int64 `protobuf:"varint,2,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsAliveResponse) Reset() { *m = IsAliveResponse{} } +func (m *IsAliveResponse) String() string { return proto.CompactTextString(m) } +func (*IsAliveResponse) ProtoMessage() {} +func (*IsAliveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{2} +} +func (m *IsAliveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsAliveResponse.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 *IsAliveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsAliveResponse.Merge(m, src) +} +func (m *IsAliveResponse) XXX_Size() int { + return m.Size() +} +func (m *IsAliveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IsAliveResponse.DiscardUnknown(m) } -func (m *IsAliveResponse) Reset() { *m = IsAliveResponse{} } -func (m *IsAliveResponse) String() string { return proto.CompactTextString(m) } -func (*IsAliveResponse) ProtoMessage() {} -func (*IsAliveResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{2} } +var xxx_messageInfo_IsAliveResponse proto.InternalMessageInfo func (m *IsAliveResponse) GetAvailable() bool { if m != nil { @@ -206,20 +275,51 @@ func (m *IsAliveResponse) GetMppVersion() int64 { // Dipsatch the task request to different tiflash servers. type DispatchTaskRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` EncodedPlan []byte `protobuf:"bytes,2,opt,name=encoded_plan,json=encodedPlan,proto3" json:"encoded_plan,omitempty"` Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` - Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` + Regions []*coprocessor.RegionInfo `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` // If this task contains table scan, we still need their region info. SchemaVer int64 `protobuf:"varint,5,opt,name=schema_ver,json=schemaVer,proto3" json:"schema_ver,omitempty"` // Used for partition table scan - TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` + TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions,proto3" json:"table_regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} } +func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) } +func (*DispatchTaskRequest) ProtoMessage() {} +func (*DispatchTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{3} +} +func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DispatchTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DispatchTaskRequest.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 *DispatchTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DispatchTaskRequest.Merge(m, src) +} +func (m *DispatchTaskRequest) XXX_Size() int { + return m.Size() +} +func (m *DispatchTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DispatchTaskRequest.DiscardUnknown(m) } -func (m *DispatchTaskRequest) Reset() { *m = DispatchTaskRequest{} } -func (m *DispatchTaskRequest) String() string { return proto.CompactTextString(m) } -func (*DispatchTaskRequest) ProtoMessage() {} -func (*DispatchTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{3} } +var xxx_messageInfo_DispatchTaskRequest proto.InternalMessageInfo func (m *DispatchTaskRequest) GetMeta() *TaskMeta { if m != nil { @@ -265,14 +365,45 @@ func (m *DispatchTaskRequest) GetTableRegions() []*coprocessor.TableRegions { // Get response of DispatchTaskRequest. type DispatchTaskResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - RetryRegions []*metapb.Region `protobuf:"bytes,2,rep,name=retry_regions,json=retryRegions" json:"retry_regions,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + RetryRegions []*metapb.Region `protobuf:"bytes,2,rep,name=retry_regions,json=retryRegions,proto3" json:"retry_regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} } +func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) } +func (*DispatchTaskResponse) ProtoMessage() {} +func (*DispatchTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{4} +} +func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DispatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DispatchTaskResponse.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 *DispatchTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DispatchTaskResponse.Merge(m, src) +} +func (m *DispatchTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *DispatchTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DispatchTaskResponse.DiscardUnknown(m) } -func (m *DispatchTaskResponse) Reset() { *m = DispatchTaskResponse{} } -func (m *DispatchTaskResponse) String() string { return proto.CompactTextString(m) } -func (*DispatchTaskResponse) ProtoMessage() {} -func (*DispatchTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{4} } +var xxx_messageInfo_DispatchTaskResponse proto.InternalMessageInfo func (m *DispatchTaskResponse) GetError() *Error { if m != nil { @@ -290,14 +421,45 @@ func (m *DispatchTaskResponse) GetRetryRegions() []*metapb.Region { // CancelTaskRequest closes the execution of a task. type CancelTaskRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelTaskRequest) Reset() { *m = CancelTaskRequest{} } +func (m *CancelTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CancelTaskRequest) ProtoMessage() {} +func (*CancelTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{5} +} +func (m *CancelTaskRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelTaskRequest.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 *CancelTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelTaskRequest.Merge(m, src) +} +func (m *CancelTaskRequest) XXX_Size() int { + return m.Size() +} +func (m *CancelTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelTaskRequest.DiscardUnknown(m) } -func (m *CancelTaskRequest) Reset() { *m = CancelTaskRequest{} } -func (m *CancelTaskRequest) String() string { return proto.CompactTextString(m) } -func (*CancelTaskRequest) ProtoMessage() {} -func (*CancelTaskRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{5} } +var xxx_messageInfo_CancelTaskRequest proto.InternalMessageInfo func (m *CancelTaskRequest) GetMeta() *TaskMeta { if m != nil { @@ -314,13 +476,44 @@ func (m *CancelTaskRequest) GetError() *Error { } type CancelTaskResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelTaskResponse) Reset() { *m = CancelTaskResponse{} } +func (m *CancelTaskResponse) String() string { return proto.CompactTextString(m) } +func (*CancelTaskResponse) ProtoMessage() {} +func (*CancelTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{6} +} +func (m *CancelTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelTaskResponse.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 *CancelTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelTaskResponse.Merge(m, src) +} +func (m *CancelTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *CancelTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelTaskResponse.DiscardUnknown(m) } -func (m *CancelTaskResponse) Reset() { *m = CancelTaskResponse{} } -func (m *CancelTaskResponse) String() string { return proto.CompactTextString(m) } -func (*CancelTaskResponse) ProtoMessage() {} -func (*CancelTaskResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{6} } +var xxx_messageInfo_CancelTaskResponse proto.InternalMessageInfo func (m *CancelTaskResponse) GetError() *Error { if m != nil { @@ -332,15 +525,46 @@ func (m *CancelTaskResponse) GetError() *Error { // ReportTaskStatus reports the execution status of a task. // when TiFlash reports status to TiDB, ReportTaskStatusRequest serialize tipb.TiFlashExecutionInfo into data; type ReportTaskStatusRequest struct { - Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportTaskStatusRequest) Reset() { *m = ReportTaskStatusRequest{} } +func (m *ReportTaskStatusRequest) String() string { return proto.CompactTextString(m) } +func (*ReportTaskStatusRequest) ProtoMessage() {} +func (*ReportTaskStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{7} +} +func (m *ReportTaskStatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportTaskStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportTaskStatusRequest.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 *ReportTaskStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportTaskStatusRequest.Merge(m, src) +} +func (m *ReportTaskStatusRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportTaskStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportTaskStatusRequest.DiscardUnknown(m) } -func (m *ReportTaskStatusRequest) Reset() { *m = ReportTaskStatusRequest{} } -func (m *ReportTaskStatusRequest) String() string { return proto.CompactTextString(m) } -func (*ReportTaskStatusRequest) ProtoMessage() {} -func (*ReportTaskStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{7} } +var xxx_messageInfo_ReportTaskStatusRequest proto.InternalMessageInfo func (m *ReportTaskStatusRequest) GetMeta() *TaskMeta { if m != nil { @@ -364,13 +588,44 @@ func (m *ReportTaskStatusRequest) GetError() *Error { } type ReportTaskStatusResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportTaskStatusResponse) Reset() { *m = ReportTaskStatusResponse{} } +func (m *ReportTaskStatusResponse) String() string { return proto.CompactTextString(m) } +func (*ReportTaskStatusResponse) ProtoMessage() {} +func (*ReportTaskStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{8} +} +func (m *ReportTaskStatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportTaskStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportTaskStatusResponse.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 *ReportTaskStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportTaskStatusResponse.Merge(m, src) +} +func (m *ReportTaskStatusResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportTaskStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportTaskStatusResponse.DiscardUnknown(m) } -func (m *ReportTaskStatusResponse) Reset() { *m = ReportTaskStatusResponse{} } -func (m *ReportTaskStatusResponse) String() string { return proto.CompactTextString(m) } -func (*ReportTaskStatusResponse) ProtoMessage() {} -func (*ReportTaskStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{8} } +var xxx_messageInfo_ReportTaskStatusResponse proto.InternalMessageInfo func (m *ReportTaskStatusResponse) GetError() *Error { if m != nil { @@ -381,17 +636,46 @@ func (m *ReportTaskStatusResponse) GetError() *Error { // build connection between different tasks. Data is sent by the tasks that are closer to the data sources. type EstablishMPPConnectionRequest struct { - SenderMeta *TaskMeta `protobuf:"bytes,1,opt,name=sender_meta,json=senderMeta" json:"sender_meta,omitempty"` - ReceiverMeta *TaskMeta `protobuf:"bytes,2,opt,name=receiver_meta,json=receiverMeta" json:"receiver_meta,omitempty"` + SenderMeta *TaskMeta `protobuf:"bytes,1,opt,name=sender_meta,json=senderMeta,proto3" json:"sender_meta,omitempty"` + ReceiverMeta *TaskMeta `protobuf:"bytes,2,opt,name=receiver_meta,json=receiverMeta,proto3" json:"receiver_meta,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *EstablishMPPConnectionRequest) Reset() { *m = EstablishMPPConnectionRequest{} } func (m *EstablishMPPConnectionRequest) String() string { return proto.CompactTextString(m) } func (*EstablishMPPConnectionRequest) ProtoMessage() {} func (*EstablishMPPConnectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorMpp, []int{9} + return fileDescriptor_819623c7fa76fc55, []int{9} +} +func (m *EstablishMPPConnectionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EstablishMPPConnectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EstablishMPPConnectionRequest.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 *EstablishMPPConnectionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishMPPConnectionRequest.Merge(m, src) +} +func (m *EstablishMPPConnectionRequest) XXX_Size() int { + return m.Size() +} +func (m *EstablishMPPConnectionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EstablishMPPConnectionRequest.DiscardUnknown(m) } +var xxx_messageInfo_EstablishMPPConnectionRequest proto.InternalMessageInfo + func (m *EstablishMPPConnectionRequest) GetSenderMeta() *TaskMeta { if m != nil { return m.SenderMeta @@ -409,17 +693,48 @@ func (m *EstablishMPPConnectionRequest) GetReceiverMeta() *TaskMeta { // when TiFlash sends data to TiDB, Data packets wrap tipb.SelectResponse, i.e., serialize tipb.SelectResponse into data; // when TiFlash sends data to TiFlash, data blocks are serialized into chunks, and the execution_summaries in tipb.SelectResponse are serialized into data only for the last packet. type MPPDataPacket struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` - Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"` - StreamIds []uint64 `protobuf:"varint,4,rep,packed,name=stream_ids,json=streamIds" json:"stream_ids,omitempty"` - Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Chunks [][]byte `protobuf:"bytes,3,rep,name=chunks,proto3" json:"chunks,omitempty"` + StreamIds []uint64 `protobuf:"varint,4,rep,packed,name=stream_ids,json=streamIds,proto3" json:"stream_ids,omitempty"` + Version int64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MPPDataPacket) Reset() { *m = MPPDataPacket{} } +func (m *MPPDataPacket) String() string { return proto.CompactTextString(m) } +func (*MPPDataPacket) ProtoMessage() {} +func (*MPPDataPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{10} +} +func (m *MPPDataPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MPPDataPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MPPDataPacket.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 *MPPDataPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPPDataPacket.Merge(m, src) +} +func (m *MPPDataPacket) XXX_Size() int { + return m.Size() +} +func (m *MPPDataPacket) XXX_DiscardUnknown() { + xxx_messageInfo_MPPDataPacket.DiscardUnknown(m) } -func (m *MPPDataPacket) Reset() { *m = MPPDataPacket{} } -func (m *MPPDataPacket) String() string { return proto.CompactTextString(m) } -func (*MPPDataPacket) ProtoMessage() {} -func (*MPPDataPacket) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{10} } +var xxx_messageInfo_MPPDataPacket proto.InternalMessageInfo func (m *MPPDataPacket) GetData() []byte { if m != nil { @@ -457,15 +772,46 @@ func (m *MPPDataPacket) GetVersion() int64 { } type Error struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - MppVersion int64 `protobuf:"varint,3,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + MppVersion int64 `protobuf:"varint,3,opt,name=mpp_version,json=mppVersion,proto3" json:"mpp_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_819623c7fa76fc55, []int{11} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorMpp, []int{11} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetCode() int32 { if m != nil { @@ -502,10 +848,72 @@ func init() { proto.RegisterType((*MPPDataPacket)(nil), "mpp.MPPDataPacket") proto.RegisterType((*Error)(nil), "mpp.Error") } + +func init() { proto.RegisterFile("mpp.proto", fileDescriptor_819623c7fa76fc55) } + +var fileDescriptor_819623c7fa76fc55 = []byte{ + // 874 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6e, 0xdb, 0x46, + 0x10, 0x2d, 0x45, 0xd9, 0x92, 0x46, 0x94, 0x6b, 0xaf, 0x83, 0x98, 0x49, 0x1b, 0x57, 0x21, 0x7a, + 0xd0, 0x89, 0x41, 0x9d, 0xa2, 0xe8, 0xa1, 0x28, 0xe0, 0x26, 0x46, 0xc1, 0x83, 0x03, 0x75, 0x63, + 0x04, 0xbd, 0x11, 0x6b, 0x72, 0x2a, 0x11, 0x12, 0xb9, 0x9b, 0xdd, 0xa5, 0x50, 0x9f, 0x7b, 0x28, + 0xfa, 0x03, 0x45, 0x3f, 0xa9, 0xc7, 0x7e, 0x42, 0xe1, 0xfe, 0x48, 0xb1, 0xbb, 0x5c, 0xc5, 0x71, + 0x62, 0x20, 0x39, 0x69, 0xe7, 0xcd, 0xec, 0xcc, 0x9b, 0xd9, 0x37, 0x14, 0x8c, 0x6a, 0x21, 0x52, + 0x21, 0xb9, 0xe6, 0x24, 0xac, 0x85, 0x78, 0x78, 0x6f, 0xc1, 0x17, 0xdc, 0xda, 0x4f, 0xcc, 0xc9, + 0xb9, 0x1e, 0x1e, 0x14, 0x06, 0x2b, 0x50, 0x29, 0x2e, 0x3b, 0x28, 0xaa, 0x51, 0x33, 0x71, 0xd9, + 0x59, 0x93, 0xd5, 0x46, 0x8a, 0xc2, 0x9b, 0xc9, 0x1f, 0x7d, 0x18, 0x5e, 0x30, 0xb5, 0x3a, 0x47, + 0xcd, 0xc8, 0x03, 0x18, 0x2a, 0xcd, 0xa4, 0xce, 0xb5, 0x8a, 0x83, 0x69, 0x30, 0xeb, 0xd3, 0x81, + 0xb5, 0x2f, 0x14, 0x39, 0x82, 0x81, 0x66, 0x6a, 0x95, 0x57, 0x65, 0xdc, 0x9b, 0x06, 0xb3, 0x90, + 0xee, 0x1a, 0x33, 0x2b, 0xc9, 0x63, 0x88, 0x04, 0x93, 0xba, 0xd2, 0x15, 0x6f, 0x8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 0x9f, 0x01, + 0x4c, 0xce, 0xe7, 0xf3, 0xe7, 0x4c, 0xb3, 0x39, 0x2b, 0x56, 0xa8, 0xb7, 0xb3, 0x08, 0xde, 0x37, + 0x8b, 0xbb, 0xde, 0x8d, 0xdc, 0x87, 0xdd, 0x62, 0xd9, 0x36, 0x2b, 0x15, 0x87, 0xd3, 0x70, 0x16, + 0xd1, 0xce, 0xb2, 0xba, 0xd7, 0x12, 0x59, 0x9d, 0x57, 0xa5, 0xdb, 0x96, 0x3e, 0x1d, 0x39, 0x24, + 0x2b, 0x95, 0xd9, 0x31, 0xbf, 0xde, 0x6e, 0x27, 0xbc, 0x99, 0xbc, 0x80, 0x1d, 0x5b, 0xc0, 0xf0, + 0x31, 0x3b, 0x69, 0xf9, 0xec, 0x50, 0x7b, 0x26, 0xfb, 0x10, 0xd6, 0x6a, 0x61, 0xd9, 0x8c, 0xa8, + 0x39, 0xde, 0xfe, 0x56, 0x84, 0xb7, 0xbf, 0x15, 0x3f, 0x24, 0x7f, 0x5f, 0x1f, 0x07, 0xff, 0x5c, + 0x1f, 0x07, 0xff, 0x5e, 0x1f, 0x07, 0x7f, 0xfd, 0x77, 0xfc, 0x09, 0xec, 0x73, 0xb9, 0x48, 0x75, + 0xb5, 0xda, 0xa4, 0xab, 0x8d, 0xfd, 0xff, 0xba, 0xdc, 0xb5, 0x3f, 0x4f, 0xff, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x96, 0xda, 0x95, 0x17, 0x1e, 0x07, 0x00, 0x00, +} + func (m *TaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -513,99 +921,111 @@ func (m *TaskMeta) Marshal() (dAtA []byte, err error) { } func (m *TaskMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TaskId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) + if len(m.ResourceGroupName) > 0 { + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) + i = encodeVarintMpp(dAtA, i, uint64(len(m.ResourceGroupName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - if m.PartitionId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) + if m.ApiVersion != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 } - if len(m.Address) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + if m.ReportExecutionSummary { + i-- + if m.ReportExecutionSummary { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 } - if m.GatherId != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) + if len(m.CoordinatorAddress) > 0 { + i -= len(m.CoordinatorAddress) + copy(dAtA[i:], m.CoordinatorAddress) + i = encodeVarintMpp(dAtA, i, uint64(len(m.CoordinatorAddress))) + i-- + dAtA[i] = 0x5a } - if m.QueryTs != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) + if m.KeyspaceId != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x50 } - if m.LocalQueryId != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) + if m.MppVersion != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + i-- + dAtA[i] = 0x48 } if m.ServerId != 0 { - dAtA[i] = 0x40 - i++ i = encodeVarintMpp(dAtA, i, uint64(m.ServerId)) + i-- + dAtA[i] = 0x40 } - if m.MppVersion != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + if m.LocalQueryId != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) + i-- + dAtA[i] = 0x38 } - if m.KeyspaceId != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) + if m.QueryTs != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) + i-- + dAtA[i] = 0x30 } - if len(m.CoordinatorAddress) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(m.CoordinatorAddress))) - i += copy(dAtA[i:], m.CoordinatorAddress) + if m.GatherId != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) + i-- + dAtA[i] = 0x28 } - if m.ReportExecutionSummary { - dAtA[i] = 0x60 - i++ - if m.ReportExecutionSummary { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x22 } - if m.ApiVersion != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) + if m.PartitionId != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) + i-- + dAtA[i] = 0x18 } - if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + if m.TaskId != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x10 + } + if m.StartTs != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *IsAliveRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -613,17 +1033,26 @@ func (m *IsAliveRequest) Marshal() (dAtA []byte, err error) { } func (m *IsAliveRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *IsAliveResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -631,32 +1060,41 @@ func (m *IsAliveResponse) Marshal() (dAtA []byte, err error) { } func (m *IsAliveResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MppVersion != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + i-- + dAtA[i] = 0x10 + } if m.Available { - dAtA[i] = 0x8 - i++ + i-- if m.Available { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.MppVersion != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DispatchTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -664,67 +1102,83 @@ func (m *DispatchTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *DispatchTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DispatchTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) - n1, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EncodedPlan) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(m.EncodedPlan))) - i += copy(dAtA[i:], m.EncodedPlan) + if len(m.TableRegions) > 0 { + for iNdEx := len(m.TableRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TableRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - if m.Timeout != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Timeout)) + if m.SchemaVer != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.SchemaVer)) + i-- + dAtA[i] = 0x28 } if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x22 - i++ - i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x22 } } - if m.SchemaVer != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.SchemaVer)) + if m.Timeout != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.Timeout)) + i-- + dAtA[i] = 0x18 } - if len(m.TableRegions) > 0 { - for _, msg := range m.TableRegions { - dAtA[i] = 0x32 - i++ - i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if len(m.EncodedPlan) > 0 { + i -= len(m.EncodedPlan) + copy(dAtA[i:], m.EncodedPlan) + i = encodeVarintMpp(dAtA, i, uint64(len(m.EncodedPlan))) + i-- + dAtA[i] = 0x12 + } + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DispatchTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -732,39 +1186,52 @@ func (m *DispatchTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *DispatchTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DispatchTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n2, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.RetryRegions) > 0 { - for _, msg := range m.RetryRegions { + for iNdEx := len(m.RetryRegions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RetryRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintMpp(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CancelTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -772,37 +1239,50 @@ func (m *CancelTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *CancelTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) - n3, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CancelTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -810,27 +1290,38 @@ func (m *CancelTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *CancelTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n5, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ReportTaskStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -838,71 +1329,96 @@ func (m *ReportTaskStatusRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportTaskStatusRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportTaskStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Meta.Size())) - n6, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } if len(m.Data) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x12 } - if m.Error != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n7, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ReportTaskStatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *ReportTaskStatusResponse) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *ReportTaskStatusResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportTaskStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n8, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *EstablishMPPConnectionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -910,37 +1426,50 @@ func (m *EstablishMPPConnectionRequest) Marshal() (dAtA []byte, err error) { } func (m *EstablishMPPConnectionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstablishMPPConnectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SenderMeta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.SenderMeta.Size())) - n9, err := m.SenderMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.ReceiverMeta != nil { + { + size, err := m.ReceiverMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.ReceiverMeta.Size())) - n10, err := m.ReceiverMeta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.SenderMeta != nil { + { + size, err := m.SenderMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MPPDataPacket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -948,63 +1477,77 @@ func (m *MPPDataPacket) Marshal() (dAtA []byte, err error) { } func (m *MPPDataPacket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MPPDataPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Data) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) - n11, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Chunks) > 0 { - for _, b := range m.Chunks { - dAtA[i] = 0x1a - i++ - i = encodeVarintMpp(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } + if m.Version != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x28 } if len(m.StreamIds) > 0 { - dAtA13 := make([]byte, len(m.StreamIds)*10) - var j12 int + dAtA12 := make([]byte, len(m.StreamIds)*10) + var j11 int for _, num := range m.StreamIds { for num >= 1<<7 { - dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j12++ + j11++ } - dAtA13[j12] = uint8(num) - j12++ + dAtA12[j11] = uint8(num) + j11++ } + i -= j11 + copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintMpp(dAtA, i, uint64(j11)) + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintMpp(dAtA, i, uint64(j12)) - i += copy(dAtA[i:], dAtA13[:j12]) } - if m.Version != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Version)) + if len(m.Chunks) > 0 { + for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Chunks[iNdEx]) + copy(dAtA[i:], m.Chunks[iNdEx]) + i = encodeVarintMpp(dAtA, i, uint64(len(m.Chunks[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMpp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1012,39 +1555,54 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Code != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.Code)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MppVersion != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + i-- + dAtA[i] = 0x18 } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintMpp(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if m.MppVersion != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + if m.Code != 0 { + i = encodeVarintMpp(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintMpp(dAtA []byte, offset int, v uint64) int { + offset -= sovMpp(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *TaskMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -1092,16 +1650,28 @@ func (m *TaskMeta) Size() (n int) { if l > 0 { n += 2 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IsAliveRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IsAliveResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Available { @@ -1110,10 +1680,16 @@ func (m *IsAliveResponse) Size() (n int) { if m.MppVersion != 0 { n += 1 + sovMpp(uint64(m.MppVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DispatchTaskRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -1142,10 +1718,16 @@ func (m *DispatchTaskRequest) Size() (n int) { n += 1 + l + sovMpp(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DispatchTaskResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -1158,10 +1740,16 @@ func (m *DispatchTaskResponse) Size() (n int) { n += 1 + l + sovMpp(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CancelTaskRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -1172,20 +1760,32 @@ func (m *CancelTaskRequest) Size() (n int) { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CancelTaskResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReportTaskStatusRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Meta != nil { @@ -1200,20 +1800,32 @@ func (m *ReportTaskStatusRequest) Size() (n int) { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReportTaskStatusResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EstablishMPPConnectionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SenderMeta != nil { @@ -1224,10 +1836,16 @@ func (m *EstablishMPPConnectionRequest) Size() (n int) { l = m.ReceiverMeta.Size() n += 1 + l + sovMpp(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MPPDataPacket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Data) @@ -1254,10 +1872,16 @@ func (m *MPPDataPacket) Size() (n int) { if m.Version != 0 { n += 1 + sovMpp(uint64(m.Version)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Code != 0 { @@ -1270,18 +1894,14 @@ func (m *Error) Size() (n int) { if m.MppVersion != 0 { n += 1 + sovMpp(uint64(m.MppVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovMpp(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozMpp(x uint64) (n int) { return sovMpp(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1301,7 +1921,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1329,7 +1949,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1348,7 +1968,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TaskId |= (int64(b) & 0x7F) << shift + m.TaskId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1367,7 +1987,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PartitionId |= (int64(b) & 0x7F) << shift + m.PartitionId |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1386,7 +2006,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1396,6 +2016,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1415,7 +2038,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GatherId |= (uint64(b) & 0x7F) << shift + m.GatherId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1434,7 +2057,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.QueryTs |= (uint64(b) & 0x7F) << shift + m.QueryTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1453,7 +2076,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LocalQueryId |= (uint64(b) & 0x7F) << shift + m.LocalQueryId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1472,7 +2095,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ServerId |= (uint64(b) & 0x7F) << shift + m.ServerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1491,7 +2114,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= (int64(b) & 0x7F) << shift + m.MppVersion |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1510,7 +2133,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1529,7 +2152,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1539,6 +2162,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1558,7 +2184,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1578,7 +2204,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -1597,7 +2223,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1607,6 +2233,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1618,12 +2247,13 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1648,7 +2278,7 @@ func (m *IsAliveRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1668,12 +2298,13 @@ func (m *IsAliveRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1698,7 +2329,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1726,7 +2357,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1746,7 +2377,7 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= (int64(b) & 0x7F) << shift + m.MppVersion |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1757,12 +2388,13 @@ func (m *IsAliveResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1787,7 +2419,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1815,7 +2447,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1824,6 +2456,9 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1848,7 +2483,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1857,6 +2492,9 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1879,7 +2517,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= (int64(b) & 0x7F) << shift + m.Timeout |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1898,7 +2536,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1907,6 +2545,9 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1929,7 +2570,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SchemaVer |= (int64(b) & 0x7F) << shift + m.SchemaVer |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1948,7 +2589,7 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1957,6 +2598,9 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1971,12 +2615,13 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2001,7 +2646,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2029,7 +2674,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2038,6 +2683,9 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2062,7 +2710,7 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2071,6 +2719,9 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2085,12 +2736,13 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2115,7 +2767,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2143,7 +2795,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2152,6 +2804,9 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2176,7 +2831,7 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2185,6 +2840,9 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2201,12 +2859,13 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2231,7 +2890,7 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2259,7 +2918,7 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2268,6 +2927,9 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2284,12 +2946,13 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2314,7 +2977,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2342,7 +3005,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2351,6 +3014,9 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2375,7 +3041,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2384,6 +3050,9 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2406,7 +3075,7 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2415,6 +3084,9 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2431,12 +3103,13 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2461,7 +3134,7 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2489,7 +3162,7 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2498,6 +3171,9 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2514,12 +3190,13 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2544,7 +3221,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2572,7 +3249,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2581,6 +3258,9 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2605,7 +3285,7 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2614,6 +3294,9 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2630,12 +3313,13 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2660,7 +3344,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2688,7 +3372,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2697,6 +3381,9 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2719,7 +3406,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2728,6 +3415,9 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2752,7 +3442,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2761,6 +3451,9 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2779,7 +3472,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2796,7 +3489,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2805,9 +3498,23 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } 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.StreamIds) == 0 { + m.StreamIds = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -2819,7 +3526,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2843,7 +3550,7 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (int64(b) & 0x7F) << shift + m.Version |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2854,12 +3561,13 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2884,7 +3592,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2912,7 +3620,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= (int32(b) & 0x7F) << shift + m.Code |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2931,7 +3639,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2941,6 +3649,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMpp + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2960,7 +3671,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MppVersion |= (int64(b) & 0x7F) << shift + m.MppVersion |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2971,12 +3682,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMpp } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2989,6 +3701,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { func skipMpp(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3020,10 +3733,8 @@ func skipMpp(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3040,114 +3751,34 @@ func skipMpp(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMpp } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMpp - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMpp(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMpp + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthMpp + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthMpp = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMpp = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthMpp = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMpp = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMpp = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("mpp.proto", fileDescriptorMpp) } - -var fileDescriptorMpp = []byte{ - // 874 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6e, 0xdb, 0x46, - 0x10, 0x2d, 0x45, 0xd9, 0x92, 0x46, 0x94, 0x6b, 0xaf, 0x83, 0x98, 0x49, 0x1b, 0x57, 0x21, 0x7a, - 0xd0, 0x89, 0x41, 0x9d, 0xa2, 0xe8, 0xa1, 0x28, 0xe0, 0x26, 0x46, 0xc1, 0x83, 0x03, 0x75, 0x63, - 0x04, 0xbd, 0x11, 0x6b, 0x72, 0x2a, 0x11, 0x12, 0xb9, 0x9b, 0xdd, 0xa5, 0x50, 0x9f, 0x7b, 0x28, - 0xfa, 0x03, 0x45, 0x3f, 0xa9, 0xc7, 0x7e, 0x42, 0xe1, 0xfe, 0x48, 0xb1, 0xbb, 0x5c, 0xc5, 0x71, - 0x62, 0x20, 0x39, 0x69, 0xe7, 0xcd, 0xec, 0xcc, 0x9b, 0xd9, 0x37, 0x14, 0x8c, 0x6a, 0x21, 0x52, - 0x21, 0xb9, 0xe6, 0x24, 0xac, 0x85, 0x78, 0x78, 0x6f, 0xc1, 0x17, 0xdc, 0xda, 0x4f, 0xcc, 0xc9, - 0xb9, 0x1e, 0x1e, 0x14, 0x06, 0x2b, 0x50, 0x29, 0x2e, 0x3b, 0x28, 0xaa, 0x51, 0x33, 0x71, 0xd9, - 0x59, 0x93, 0xd5, 0x46, 0x8a, 0xc2, 0x9b, 0xc9, 0x1f, 0x7d, 0x18, 0x5e, 0x30, 0xb5, 0x3a, 0x47, - 0xcd, 0xc8, 0x03, 0x18, 0x2a, 0xcd, 0xa4, 0xce, 0xb5, 0x8a, 0x83, 0x69, 0x30, 0xeb, 0xd3, 0x81, - 0xb5, 0x2f, 0x14, 0x39, 0x82, 0x81, 0x66, 0x6a, 0x95, 0x57, 0x65, 0xdc, 0x9b, 0x06, 0xb3, 0x90, - 0xee, 0x1a, 0x33, 0x2b, 0xc9, 0x63, 0x88, 0x04, 0x93, 0xba, 0xd2, 0x15, 0x6f, 0x8c, 0x37, 0xb4, - 0xde, 0xf1, 0x16, 0xcb, 0x4a, 0x12, 0xc3, 0x80, 0x95, 0xa5, 0x44, 0xa5, 0xe2, 0xfe, 0x34, 0x98, - 0x8d, 0xa8, 0x37, 0xc9, 0x67, 0x30, 0x5a, 0x30, 0xbd, 0x44, 0x69, 0x6e, 0xee, 0xd8, 0x8a, 0x43, - 0x07, 0x64, 0xa5, 0x61, 0xf3, 0xba, 0x45, 0x79, 0x65, 0xd8, 0xec, 0x3a, 0x36, 0xd6, 0xbe, 0x50, - 0xe4, 0x4b, 0xd8, 0x5b, 0xf3, 0x82, 0xad, 0x73, 0x17, 0x50, 0x95, 0xf1, 0xc0, 0x06, 0x44, 0x16, - 0xfd, 0xc9, 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3b, 0x69, 0xf9, 0xec, 0x50, 0x7b, 0x26, 0xfb, 0x10, 0xd6, 0x6a, 0x61, 0xd9, 0x8c, 0xa8, - 0x39, 0xde, 0xfe, 0x56, 0x84, 0xb7, 0xbf, 0x15, 0x3f, 0x24, 0x7f, 0x5f, 0x1f, 0x07, 0xff, 0x5c, - 0x1f, 0x07, 0xff, 0x5e, 0x1f, 0x07, 0x7f, 0xfd, 0x77, 0xfc, 0x09, 0xec, 0x73, 0xb9, 0x48, 0x75, - 0xb5, 0xda, 0xa4, 0xab, 0x8d, 0xfd, 0xff, 0xba, 0xdc, 0xb5, 0x3f, 0x4f, 0xff, 0x0f, 0x00, 0x00, - 0xff, 0xff, 0x96, 0xda, 0x95, 0x17, 0x1e, 0x07, 0x00, 0x00, -} diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 05aa4c04c..4f20e6d51 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -1,161 +1,25 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pdpb.proto -/* -Package pdpb is a generated protocol buffer package. - -It is generated from these files: - - pdpb.proto - -It has these top-level messages: - - WatchGlobalConfigRequest - WatchGlobalConfigResponse - StoreGlobalConfigRequest - StoreGlobalConfigResponse - LoadGlobalConfigRequest - LoadGlobalConfigResponse - GlobalConfigItem - RequestHeader - ResponseHeader - Error - TsoRequest - Timestamp - TsoResponse - BootstrapRequest - BootstrapResponse - IsBootstrappedRequest - IsBootstrappedResponse - AllocIDRequest - AllocIDResponse - IsSnapshotRecoveringRequest - IsSnapshotRecoveringResponse - GetStoreRequest - GetStoreResponse - PutStoreRequest - PutStoreResponse - GetAllStoresRequest - GetAllStoresResponse - GetRegionRequest - GetRegionResponse - GetRegionByIDRequest - ScanRegionsRequest - Region - ScanRegionsResponse - GetClusterConfigRequest - GetClusterConfigResponse - PutClusterConfigRequest - PutClusterConfigResponse - Member - GetMembersRequest - GetMembersResponse - GetClusterInfoRequest - GetClusterInfoResponse - PeerStats - RegionHeartbeatRequest - ChangePeer - ChangePeerV2 - TransferLeader - Merge - SplitRegion - SwitchWitness - BatchSwitchWitness - RegionHeartbeatResponse - AskSplitRequest - AskSplitResponse - ReportSplitRequest - ReportSplitResponse - AskBatchSplitRequest - SplitID - AskBatchSplitResponse - ReportBatchSplitRequest - ReportBatchSplitResponse - TimeInterval - RecordPair - PeerStat - StoreStats - SlowTrend - SnapshotStat - PeerReport - StoreReport - StoreHeartbeatRequest - DemoteFailedVoters - ForceLeader - RecoveryPlan - AwakenRegions - ControlGrpc - StoreHeartbeatResponse - ScatterRegionRequest - ScatterRegionResponse - GetGCSafePointRequest - GetGCSafePointResponse - UpdateGCSafePointRequest - UpdateGCSafePointResponse - UpdateServiceGCSafePointRequest - UpdateServiceGCSafePointResponse - GetGCSafePointV2Request - GetGCSafePointV2Response - WatchGCSafePointV2Request - SafePointEvent - WatchGCSafePointV2Response - UpdateGCSafePointV2Request - UpdateGCSafePointV2Response - UpdateServiceSafePointV2Request - UpdateServiceSafePointV2Response - GetAllGCSafePointV2Request - GCSafePointV2 - GetAllGCSafePointV2Response - RegionStat - SyncRegionRequest - PeersStats - Peers - SyncRegionResponse - GetOperatorRequest - GetOperatorResponse - SyncMaxTSRequest - SyncMaxTSResponse - SplitRegionsRequest - SplitRegionsResponse - SplitAndScatterRegionsRequest - SplitAndScatterRegionsResponse - GetDCLocationInfoRequest - GetDCLocationInfoResponse - QueryStats - ReportBucketsRequest - ReportBucketsResponse - ReportMinResolvedTsRequest - ReportMinResolvedTsResponse - SetExternalTimestampRequest - SetExternalTimestampResponse - GetExternalTimestampRequest - GetExternalTimestampResponse - GetMinTSRequest - GetMinTSResponse -*/ package pdpb import ( + "context" + encoding_binary "encoding/binary" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - metapb "github.com/pingcap/kvproto/pkg/metapb" - eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" - + metapb "github.com/pingcap/kvproto/pkg/metapb" raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" - replication_modepb "github.com/pingcap/kvproto/pkg/replication_modepb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - - encoding_binary "encoding/binary" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -167,7 +31,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type EventType int32 @@ -180,6 +44,7 @@ var EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } + var EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -188,7 +53,10 @@ var EventType_value = map[string]int32{ func (x EventType) String() string { return proto.EnumName(EventType_name, int32(x)) } -func (EventType) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{0} } + +func (EventType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{0} +} type ErrorType int32 @@ -222,6 +90,7 @@ var ErrorType_name = map[int32]string{ 10: "INVALID_VALUE", 11: "DATA_COMPACTED", } + var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -240,7 +109,10 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } -func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{1} } + +func (ErrorType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{1} +} type ServiceMode int32 @@ -255,6 +127,7 @@ var ServiceMode_name = map[int32]string{ 1: "PD_SVC_MODE", 2: "API_SVC_MODE", } + var ServiceMode_value = map[string]int32{ "UNKNOWN_SVC_MODE": 0, "PD_SVC_MODE": 1, @@ -264,7 +137,10 @@ var ServiceMode_value = map[string]int32{ func (x ServiceMode) String() string { return proto.EnumName(ServiceMode_name, int32(x)) } -func (ServiceMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{2} } + +func (ServiceMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{2} +} type CheckPolicy int32 @@ -279,6 +155,7 @@ var CheckPolicy_name = map[int32]string{ 1: "APPROXIMATE", 2: "USEKEY", } + var CheckPolicy_value = map[string]int32{ "SCAN": 0, "APPROXIMATE": 1, @@ -288,7 +165,10 @@ var CheckPolicy_value = map[string]int32{ func (x CheckPolicy) String() string { return proto.EnumName(CheckPolicy_name, int32(x)) } -func (CheckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{3} } + +func (CheckPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{3} +} type ControlGrpcEvent int32 @@ -303,6 +183,7 @@ var ControlGrpcEvent_name = map[int32]string{ 0: "PAUSE", 1: "RESUME", } + var ControlGrpcEvent_value = map[string]int32{ "PAUSE": 0, "RESUME": 1, @@ -311,7 +192,10 @@ var ControlGrpcEvent_value = map[string]int32{ func (x ControlGrpcEvent) String() string { return proto.EnumName(ControlGrpcEvent_name, int32(x)) } -func (ControlGrpcEvent) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{4} } + +func (ControlGrpcEvent) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{4} +} type OperatorStatus int32 @@ -330,6 +214,7 @@ var OperatorStatus_name = map[int32]string{ 3: "REPLACE", 4: "RUNNING", } + var OperatorStatus_value = map[string]int32{ "SUCCESS": 0, "TIMEOUT": 1, @@ -341,7 +226,10 @@ var OperatorStatus_value = map[string]int32{ func (x OperatorStatus) String() string { return proto.EnumName(OperatorStatus_name, int32(x)) } -func (OperatorStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{5} } + +func (OperatorStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{5} +} type QueryKind int32 @@ -374,6 +262,7 @@ var QueryKind_name = map[int32]string{ 10: "Commit", 11: "Rollback", } + var QueryKind_value = map[string]int32{ "Others": 0, "GC": 1, @@ -392,17 +281,51 @@ var QueryKind_value = map[string]int32{ func (x QueryKind) String() string { return proto.EnumName(QueryKind_name, int32(x)) } -func (QueryKind) EnumDescriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{6} } + +func (QueryKind) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{6} +} type WatchGlobalConfigRequest struct { - ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigRequest{} } +func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*WatchGlobalConfigRequest) ProtoMessage() {} +func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{0} +} +func (m *WatchGlobalConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchGlobalConfigRequest.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 *WatchGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGlobalConfigRequest.Merge(m, src) +} +func (m *WatchGlobalConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *WatchGlobalConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WatchGlobalConfigRequest.DiscardUnknown(m) } -func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigRequest{} } -func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*WatchGlobalConfigRequest) ProtoMessage() {} -func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{0} } +var xxx_messageInfo_WatchGlobalConfigRequest proto.InternalMessageInfo func (m *WatchGlobalConfigRequest) GetConfigPath() string { if m != nil { @@ -419,15 +342,46 @@ func (m *WatchGlobalConfigRequest) GetRevision() int64 { } type WatchGlobalConfigResponse struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` - Header *ResponseHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` + Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + Header *ResponseHeader `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResponse{} } +func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*WatchGlobalConfigResponse) ProtoMessage() {} +func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{1} +} +func (m *WatchGlobalConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchGlobalConfigResponse.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 *WatchGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGlobalConfigResponse.Merge(m, src) +} +func (m *WatchGlobalConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *WatchGlobalConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WatchGlobalConfigResponse.DiscardUnknown(m) } -func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResponse{} } -func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*WatchGlobalConfigResponse) ProtoMessage() {} -func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{1} } +var xxx_messageInfo_WatchGlobalConfigResponse proto.InternalMessageInfo func (m *WatchGlobalConfigResponse) GetChanges() []*GlobalConfigItem { if m != nil { @@ -451,14 +405,45 @@ func (m *WatchGlobalConfigResponse) GetHeader() *ResponseHeader { } type StoreGlobalConfigRequest struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` - ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigRequest{} } +func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*StoreGlobalConfigRequest) ProtoMessage() {} +func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{2} +} +func (m *StoreGlobalConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreGlobalConfigRequest.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 *StoreGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreGlobalConfigRequest.Merge(m, src) +} +func (m *StoreGlobalConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *StoreGlobalConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StoreGlobalConfigRequest.DiscardUnknown(m) } -func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigRequest{} } -func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*StoreGlobalConfigRequest) ProtoMessage() {} -func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{2} } +var xxx_messageInfo_StoreGlobalConfigRequest proto.InternalMessageInfo func (m *StoreGlobalConfigRequest) GetChanges() []*GlobalConfigItem { if m != nil { @@ -475,13 +460,44 @@ func (m *StoreGlobalConfigRequest) GetConfigPath() string { } type StoreGlobalConfigResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResponse{} } +func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*StoreGlobalConfigResponse) ProtoMessage() {} +func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{3} +} +func (m *StoreGlobalConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreGlobalConfigResponse.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 *StoreGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreGlobalConfigResponse.Merge(m, src) +} +func (m *StoreGlobalConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *StoreGlobalConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StoreGlobalConfigResponse.DiscardUnknown(m) } -func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResponse{} } -func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*StoreGlobalConfigResponse) ProtoMessage() {} -func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{3} } +var xxx_messageInfo_StoreGlobalConfigResponse proto.InternalMessageInfo func (m *StoreGlobalConfigResponse) GetError() *Error { if m != nil { @@ -491,14 +507,45 @@ func (m *StoreGlobalConfigResponse) GetError() *Error { } type LoadGlobalConfigRequest struct { - Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"` - ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadGlobalConfigRequest) Reset() { *m = LoadGlobalConfigRequest{} } +func (m *LoadGlobalConfigRequest) String() string { return proto.CompactTextString(m) } +func (*LoadGlobalConfigRequest) ProtoMessage() {} +func (*LoadGlobalConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{4} +} +func (m *LoadGlobalConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LoadGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LoadGlobalConfigRequest.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 *LoadGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadGlobalConfigRequest.Merge(m, src) +} +func (m *LoadGlobalConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *LoadGlobalConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadGlobalConfigRequest.DiscardUnknown(m) } -func (m *LoadGlobalConfigRequest) Reset() { *m = LoadGlobalConfigRequest{} } -func (m *LoadGlobalConfigRequest) String() string { return proto.CompactTextString(m) } -func (*LoadGlobalConfigRequest) ProtoMessage() {} -func (*LoadGlobalConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{4} } +var xxx_messageInfo_LoadGlobalConfigRequest proto.InternalMessageInfo func (m *LoadGlobalConfigRequest) GetNames() []string { if m != nil { @@ -515,14 +562,45 @@ func (m *LoadGlobalConfigRequest) GetConfigPath() string { } type LoadGlobalConfigResponse struct { - Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigResponse{} } +func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } +func (*LoadGlobalConfigResponse) ProtoMessage() {} +func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{5} +} +func (m *LoadGlobalConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LoadGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LoadGlobalConfigResponse.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 *LoadGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadGlobalConfigResponse.Merge(m, src) +} +func (m *LoadGlobalConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *LoadGlobalConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadGlobalConfigResponse.DiscardUnknown(m) } -func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigResponse{} } -func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } -func (*LoadGlobalConfigResponse) ProtoMessage() {} -func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{5} } +var xxx_messageInfo_LoadGlobalConfigResponse proto.InternalMessageInfo func (m *LoadGlobalConfigResponse) GetItems() []*GlobalConfigItem { if m != nil { @@ -542,17 +620,48 @@ type GlobalConfigItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // this field 'value' is replaced by the field 'payload'. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` Kind EventType `protobuf:"varint,4,opt,name=kind,proto3,enum=pdpb.EventType" json:"kind,omitempty"` // Since item value needs to support marshal of different struct types, // it should be set to bytes instead of string. - Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GlobalConfigItem) Reset() { *m = GlobalConfigItem{} } +func (m *GlobalConfigItem) String() string { return proto.CompactTextString(m) } +func (*GlobalConfigItem) ProtoMessage() {} +func (*GlobalConfigItem) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{6} +} +func (m *GlobalConfigItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GlobalConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GlobalConfigItem.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 *GlobalConfigItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlobalConfigItem.Merge(m, src) +} +func (m *GlobalConfigItem) XXX_Size() int { + return m.Size() +} +func (m *GlobalConfigItem) XXX_DiscardUnknown() { + xxx_messageInfo_GlobalConfigItem.DiscardUnknown(m) } -func (m *GlobalConfigItem) Reset() { *m = GlobalConfigItem{} } -func (m *GlobalConfigItem) String() string { return proto.CompactTextString(m) } -func (*GlobalConfigItem) ProtoMessage() {} -func (*GlobalConfigItem) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{6} } +var xxx_messageInfo_GlobalConfigItem proto.InternalMessageInfo func (m *GlobalConfigItem) GetName() string { if m != nil { @@ -593,13 +702,44 @@ type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // sender_id is the ID of the sender server, also member ID or etcd ID. - SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{7} +} +func (m *RequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(m, src) +} +func (m *RequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RequestHeader.DiscardUnknown(m) } -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{7} } +var xxx_messageInfo_RequestHeader proto.InternalMessageInfo func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -617,14 +757,45 @@ func (m *RequestHeader) GetSenderId() uint64 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{8} +} +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{8} } +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -641,14 +812,45 @@ func (m *ResponseHeader) GetError() *Error { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=pdpb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=pdpb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{9} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{9} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetType() ErrorType { if m != nil { @@ -665,15 +867,46 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TsoRequest) Reset() { *m = TsoRequest{} } +func (m *TsoRequest) String() string { return proto.CompactTextString(m) } +func (*TsoRequest) ProtoMessage() {} +func (*TsoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{10} +} +func (m *TsoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TsoRequest.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 *TsoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoRequest.Merge(m, src) +} +func (m *TsoRequest) XXX_Size() int { + return m.Size() +} +func (m *TsoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TsoRequest.DiscardUnknown(m) } -func (m *TsoRequest) Reset() { *m = TsoRequest{} } -func (m *TsoRequest) String() string { return proto.CompactTextString(m) } -func (*TsoRequest) ProtoMessage() {} -func (*TsoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{10} } +var xxx_messageInfo_TsoRequest proto.InternalMessageInfo func (m *TsoRequest) GetHeader() *RequestHeader { if m != nil { @@ -701,13 +934,44 @@ type Timestamp struct { Logical int64 `protobuf:"varint,2,opt,name=logical,proto3" json:"logical,omitempty"` // Number of suffix bits used for global distinction, // PD client will use this to compute a TSO's logical part. - SuffixBits uint32 `protobuf:"varint,3,opt,name=suffix_bits,json=suffixBits,proto3" json:"suffix_bits,omitempty"` + SuffixBits uint32 `protobuf:"varint,3,opt,name=suffix_bits,json=suffixBits,proto3" json:"suffix_bits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Timestamp) Reset() { *m = Timestamp{} } +func (m *Timestamp) String() string { return proto.CompactTextString(m) } +func (*Timestamp) ProtoMessage() {} +func (*Timestamp) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{11} +} +func (m *Timestamp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Timestamp.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 *Timestamp) XXX_Merge(src proto.Message) { + xxx_messageInfo_Timestamp.Merge(m, src) +} +func (m *Timestamp) XXX_Size() int { + return m.Size() +} +func (m *Timestamp) XXX_DiscardUnknown() { + xxx_messageInfo_Timestamp.DiscardUnknown(m) } -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{11} } +var xxx_messageInfo_Timestamp proto.InternalMessageInfo func (m *Timestamp) GetPhysical() int64 { if m != nil { @@ -731,15 +995,46 @@ func (m *Timestamp) GetSuffixBits() uint32 { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TsoResponse) Reset() { *m = TsoResponse{} } +func (m *TsoResponse) String() string { return proto.CompactTextString(m) } +func (*TsoResponse) ProtoMessage() {} +func (*TsoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{12} +} +func (m *TsoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TsoResponse.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 *TsoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoResponse.Merge(m, src) +} +func (m *TsoResponse) XXX_Size() int { + return m.Size() +} +func (m *TsoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TsoResponse.DiscardUnknown(m) } -func (m *TsoResponse) Reset() { *m = TsoResponse{} } -func (m *TsoResponse) String() string { return proto.CompactTextString(m) } -func (*TsoResponse) ProtoMessage() {} -func (*TsoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{12} } +var xxx_messageInfo_TsoResponse proto.InternalMessageInfo func (m *TsoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -763,15 +1058,46 @@ func (m *TsoResponse) GetTimestamp() *Timestamp { } type BootstrapRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` - Region *metapb.Region `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` + Region *metapb.Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BootstrapRequest) Reset() { *m = BootstrapRequest{} } +func (m *BootstrapRequest) String() string { return proto.CompactTextString(m) } +func (*BootstrapRequest) ProtoMessage() {} +func (*BootstrapRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{13} +} +func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BootstrapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BootstrapRequest.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 *BootstrapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapRequest.Merge(m, src) +} +func (m *BootstrapRequest) XXX_Size() int { + return m.Size() +} +func (m *BootstrapRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BootstrapRequest.DiscardUnknown(m) } -func (m *BootstrapRequest) Reset() { *m = BootstrapRequest{} } -func (m *BootstrapRequest) String() string { return proto.CompactTextString(m) } -func (*BootstrapRequest) ProtoMessage() {} -func (*BootstrapRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{13} } +var xxx_messageInfo_BootstrapRequest proto.InternalMessageInfo func (m *BootstrapRequest) GetHeader() *RequestHeader { if m != nil { @@ -795,14 +1121,45 @@ func (m *BootstrapRequest) GetRegion() *metapb.Region { } type BootstrapResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BootstrapResponse) Reset() { *m = BootstrapResponse{} } +func (m *BootstrapResponse) String() string { return proto.CompactTextString(m) } +func (*BootstrapResponse) ProtoMessage() {} +func (*BootstrapResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{14} +} +func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BootstrapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BootstrapResponse.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 *BootstrapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapResponse.Merge(m, src) +} +func (m *BootstrapResponse) XXX_Size() int { + return m.Size() +} +func (m *BootstrapResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BootstrapResponse.DiscardUnknown(m) } -func (m *BootstrapResponse) Reset() { *m = BootstrapResponse{} } -func (m *BootstrapResponse) String() string { return proto.CompactTextString(m) } -func (*BootstrapResponse) ProtoMessage() {} -func (*BootstrapResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{14} } +var xxx_messageInfo_BootstrapResponse proto.InternalMessageInfo func (m *BootstrapResponse) GetHeader() *ResponseHeader { if m != nil { @@ -819,13 +1176,44 @@ func (m *BootstrapResponse) GetReplicationStatus() *replication_modepb.Replicati } type IsBootstrappedRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsBootstrappedRequest) Reset() { *m = IsBootstrappedRequest{} } +func (m *IsBootstrappedRequest) String() string { return proto.CompactTextString(m) } +func (*IsBootstrappedRequest) ProtoMessage() {} +func (*IsBootstrappedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{15} +} +func (m *IsBootstrappedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsBootstrappedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsBootstrappedRequest.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 *IsBootstrappedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsBootstrappedRequest.Merge(m, src) +} +func (m *IsBootstrappedRequest) XXX_Size() int { + return m.Size() +} +func (m *IsBootstrappedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IsBootstrappedRequest.DiscardUnknown(m) } -func (m *IsBootstrappedRequest) Reset() { *m = IsBootstrappedRequest{} } -func (m *IsBootstrappedRequest) String() string { return proto.CompactTextString(m) } -func (*IsBootstrappedRequest) ProtoMessage() {} -func (*IsBootstrappedRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{15} } +var xxx_messageInfo_IsBootstrappedRequest proto.InternalMessageInfo func (m *IsBootstrappedRequest) GetHeader() *RequestHeader { if m != nil { @@ -835,14 +1223,45 @@ func (m *IsBootstrappedRequest) GetHeader() *RequestHeader { } type IsBootstrappedResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Bootstrapped bool `protobuf:"varint,2,opt,name=bootstrapped,proto3" json:"bootstrapped,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Bootstrapped bool `protobuf:"varint,2,opt,name=bootstrapped,proto3" json:"bootstrapped,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsBootstrappedResponse) Reset() { *m = IsBootstrappedResponse{} } +func (m *IsBootstrappedResponse) String() string { return proto.CompactTextString(m) } +func (*IsBootstrappedResponse) ProtoMessage() {} +func (*IsBootstrappedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{16} +} +func (m *IsBootstrappedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsBootstrappedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsBootstrappedResponse.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 *IsBootstrappedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsBootstrappedResponse.Merge(m, src) +} +func (m *IsBootstrappedResponse) XXX_Size() int { + return m.Size() +} +func (m *IsBootstrappedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IsBootstrappedResponse.DiscardUnknown(m) } -func (m *IsBootstrappedResponse) Reset() { *m = IsBootstrappedResponse{} } -func (m *IsBootstrappedResponse) String() string { return proto.CompactTextString(m) } -func (*IsBootstrappedResponse) ProtoMessage() {} -func (*IsBootstrappedResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{16} } +var xxx_messageInfo_IsBootstrappedResponse proto.InternalMessageInfo func (m *IsBootstrappedResponse) GetHeader() *ResponseHeader { if m != nil { @@ -859,13 +1278,44 @@ func (m *IsBootstrappedResponse) GetBootstrapped() bool { } type AllocIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} } +func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) } +func (*AllocIDRequest) ProtoMessage() {} +func (*AllocIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{17} +} +func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AllocIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AllocIDRequest.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 *AllocIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocIDRequest.Merge(m, src) +} +func (m *AllocIDRequest) XXX_Size() int { + return m.Size() +} +func (m *AllocIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AllocIDRequest.DiscardUnknown(m) } -func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} } -func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) } -func (*AllocIDRequest) ProtoMessage() {} -func (*AllocIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{17} } +var xxx_messageInfo_AllocIDRequest proto.InternalMessageInfo func (m *AllocIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -875,14 +1325,45 @@ func (m *AllocIDRequest) GetHeader() *RequestHeader { } type AllocIDResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} } +func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) } +func (*AllocIDResponse) ProtoMessage() {} +func (*AllocIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{18} +} +func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AllocIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AllocIDResponse.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 *AllocIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocIDResponse.Merge(m, src) +} +func (m *AllocIDResponse) XXX_Size() int { + return m.Size() +} +func (m *AllocIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AllocIDResponse.DiscardUnknown(m) } -func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} } -func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) } -func (*AllocIDResponse) ProtoMessage() {} -func (*AllocIDResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{18} } +var xxx_messageInfo_AllocIDResponse proto.InternalMessageInfo func (m *AllocIDResponse) GetHeader() *ResponseHeader { if m != nil { @@ -899,15 +1380,44 @@ func (m *AllocIDResponse) GetId() uint64 { } type IsSnapshotRecoveringRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *IsSnapshotRecoveringRequest) Reset() { *m = IsSnapshotRecoveringRequest{} } func (m *IsSnapshotRecoveringRequest) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringRequest) ProtoMessage() {} func (*IsSnapshotRecoveringRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{19} + return fileDescriptor_78b27e6f04f44c6e, []int{19} +} +func (m *IsSnapshotRecoveringRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsSnapshotRecoveringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsSnapshotRecoveringRequest.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 *IsSnapshotRecoveringRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsSnapshotRecoveringRequest.Merge(m, src) +} +func (m *IsSnapshotRecoveringRequest) XXX_Size() int { + return m.Size() } +func (m *IsSnapshotRecoveringRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IsSnapshotRecoveringRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_IsSnapshotRecoveringRequest proto.InternalMessageInfo func (m *IsSnapshotRecoveringRequest) GetHeader() *RequestHeader { if m != nil { @@ -917,17 +1427,46 @@ func (m *IsSnapshotRecoveringRequest) GetHeader() *RequestHeader { } type IsSnapshotRecoveringResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *IsSnapshotRecoveringResponse) Reset() { *m = IsSnapshotRecoveringResponse{} } func (m *IsSnapshotRecoveringResponse) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringResponse) ProtoMessage() {} func (*IsSnapshotRecoveringResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{20} + return fileDescriptor_78b27e6f04f44c6e, []int{20} +} +func (m *IsSnapshotRecoveringResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsSnapshotRecoveringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsSnapshotRecoveringResponse.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 *IsSnapshotRecoveringResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsSnapshotRecoveringResponse.Merge(m, src) +} +func (m *IsSnapshotRecoveringResponse) XXX_Size() int { + return m.Size() +} +func (m *IsSnapshotRecoveringResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IsSnapshotRecoveringResponse.DiscardUnknown(m) } +var xxx_messageInfo_IsSnapshotRecoveringResponse proto.InternalMessageInfo + func (m *IsSnapshotRecoveringResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -943,14 +1482,45 @@ func (m *IsSnapshotRecoveringResponse) GetMarked() bool { } type GetStoreRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStoreRequest) Reset() { *m = GetStoreRequest{} } +func (m *GetStoreRequest) String() string { return proto.CompactTextString(m) } +func (*GetStoreRequest) ProtoMessage() {} +func (*GetStoreRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{21} +} +func (m *GetStoreRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStoreRequest.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 *GetStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreRequest.Merge(m, src) +} +func (m *GetStoreRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStoreRequest.DiscardUnknown(m) } -func (m *GetStoreRequest) Reset() { *m = GetStoreRequest{} } -func (m *GetStoreRequest) String() string { return proto.CompactTextString(m) } -func (*GetStoreRequest) ProtoMessage() {} -func (*GetStoreRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{21} } +var xxx_messageInfo_GetStoreRequest proto.InternalMessageInfo func (m *GetStoreRequest) GetHeader() *RequestHeader { if m != nil { @@ -967,15 +1537,46 @@ func (m *GetStoreRequest) GetStoreId() uint64 { } type GetStoreResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` - Stats *StoreStats `protobuf:"bytes,3,opt,name=stats" json:"stats,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` + Stats *StoreStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStoreResponse) Reset() { *m = GetStoreResponse{} } +func (m *GetStoreResponse) String() string { return proto.CompactTextString(m) } +func (*GetStoreResponse) ProtoMessage() {} +func (*GetStoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{22} +} +func (m *GetStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStoreResponse.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 *GetStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreResponse.Merge(m, src) +} +func (m *GetStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStoreResponse.DiscardUnknown(m) } -func (m *GetStoreResponse) Reset() { *m = GetStoreResponse{} } -func (m *GetStoreResponse) String() string { return proto.CompactTextString(m) } -func (*GetStoreResponse) ProtoMessage() {} -func (*GetStoreResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{22} } +var xxx_messageInfo_GetStoreResponse proto.InternalMessageInfo func (m *GetStoreResponse) GetHeader() *ResponseHeader { if m != nil { @@ -999,14 +1600,45 @@ func (m *GetStoreResponse) GetStats() *StoreStats { } type PutStoreRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store,proto3" json:"store,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutStoreRequest) Reset() { *m = PutStoreRequest{} } +func (m *PutStoreRequest) String() string { return proto.CompactTextString(m) } +func (*PutStoreRequest) ProtoMessage() {} +func (*PutStoreRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{23} +} +func (m *PutStoreRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutStoreRequest.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 *PutStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutStoreRequest.Merge(m, src) +} +func (m *PutStoreRequest) XXX_Size() int { + return m.Size() +} +func (m *PutStoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutStoreRequest.DiscardUnknown(m) } -func (m *PutStoreRequest) Reset() { *m = PutStoreRequest{} } -func (m *PutStoreRequest) String() string { return proto.CompactTextString(m) } -func (*PutStoreRequest) ProtoMessage() {} -func (*PutStoreRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{23} } +var xxx_messageInfo_PutStoreRequest proto.InternalMessageInfo func (m *PutStoreRequest) GetHeader() *RequestHeader { if m != nil { @@ -1023,14 +1655,45 @@ func (m *PutStoreRequest) GetStore() *metapb.Store { } type PutStoreResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutStoreResponse) Reset() { *m = PutStoreResponse{} } +func (m *PutStoreResponse) String() string { return proto.CompactTextString(m) } +func (*PutStoreResponse) ProtoMessage() {} +func (*PutStoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{24} +} +func (m *PutStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutStoreResponse.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 *PutStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutStoreResponse.Merge(m, src) +} +func (m *PutStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *PutStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutStoreResponse.DiscardUnknown(m) } -func (m *PutStoreResponse) Reset() { *m = PutStoreResponse{} } -func (m *PutStoreResponse) String() string { return proto.CompactTextString(m) } -func (*PutStoreResponse) ProtoMessage() {} -func (*PutStoreResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{24} } +var xxx_messageInfo_PutStoreResponse proto.InternalMessageInfo func (m *PutStoreResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1047,15 +1710,46 @@ func (m *PutStoreResponse) GetReplicationStatus() *replication_modepb.Replicatio } type GetAllStoresRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Do NOT return tombstone stores if set to true. - ExcludeTombstoneStores bool `protobuf:"varint,2,opt,name=exclude_tombstone_stores,json=excludeTombstoneStores,proto3" json:"exclude_tombstone_stores,omitempty"` + ExcludeTombstoneStores bool `protobuf:"varint,2,opt,name=exclude_tombstone_stores,json=excludeTombstoneStores,proto3" json:"exclude_tombstone_stores,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetAllStoresRequest) Reset() { *m = GetAllStoresRequest{} } +func (m *GetAllStoresRequest) String() string { return proto.CompactTextString(m) } +func (*GetAllStoresRequest) ProtoMessage() {} +func (*GetAllStoresRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{25} +} +func (m *GetAllStoresRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllStoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllStoresRequest.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 *GetAllStoresRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllStoresRequest.Merge(m, src) +} +func (m *GetAllStoresRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAllStoresRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllStoresRequest.DiscardUnknown(m) } -func (m *GetAllStoresRequest) Reset() { *m = GetAllStoresRequest{} } -func (m *GetAllStoresRequest) String() string { return proto.CompactTextString(m) } -func (*GetAllStoresRequest) ProtoMessage() {} -func (*GetAllStoresRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{25} } +var xxx_messageInfo_GetAllStoresRequest proto.InternalMessageInfo func (m *GetAllStoresRequest) GetHeader() *RequestHeader { if m != nil { @@ -1072,14 +1766,45 @@ func (m *GetAllStoresRequest) GetExcludeTombstoneStores() bool { } type GetAllStoresResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Stores []*metapb.Store `protobuf:"bytes,2,rep,name=stores" json:"stores,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stores []*metapb.Store `protobuf:"bytes,2,rep,name=stores,proto3" json:"stores,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetAllStoresResponse) Reset() { *m = GetAllStoresResponse{} } +func (m *GetAllStoresResponse) String() string { return proto.CompactTextString(m) } +func (*GetAllStoresResponse) ProtoMessage() {} +func (*GetAllStoresResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{26} +} +func (m *GetAllStoresResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllStoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllStoresResponse.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 *GetAllStoresResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllStoresResponse.Merge(m, src) +} +func (m *GetAllStoresResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAllStoresResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllStoresResponse.DiscardUnknown(m) } -func (m *GetAllStoresResponse) Reset() { *m = GetAllStoresResponse{} } -func (m *GetAllStoresResponse) String() string { return proto.CompactTextString(m) } -func (*GetAllStoresResponse) ProtoMessage() {} -func (*GetAllStoresResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{26} } +var xxx_messageInfo_GetAllStoresResponse proto.InternalMessageInfo func (m *GetAllStoresResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1096,15 +1821,46 @@ func (m *GetAllStoresResponse) GetStores() []*metapb.Store { } type GetRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - RegionKey []byte `protobuf:"bytes,2,opt,name=region_key,json=regionKey,proto3" json:"region_key,omitempty"` - NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionKey []byte `protobuf:"bytes,2,opt,name=region_key,json=regionKey,proto3" json:"region_key,omitempty"` + NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRegionRequest) Reset() { *m = GetRegionRequest{} } +func (m *GetRegionRequest) String() string { return proto.CompactTextString(m) } +func (*GetRegionRequest) ProtoMessage() {} +func (*GetRegionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{27} +} +func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionRequest.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 *GetRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionRequest.Merge(m, src) +} +func (m *GetRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionRequest.DiscardUnknown(m) } -func (m *GetRegionRequest) Reset() { *m = GetRegionRequest{} } -func (m *GetRegionRequest) String() string { return proto.CompactTextString(m) } -func (*GetRegionRequest) ProtoMessage() {} -func (*GetRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{27} } +var xxx_messageInfo_GetRegionRequest proto.InternalMessageInfo func (m *GetRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -1128,22 +1884,53 @@ func (m *GetRegionRequest) GetNeedBuckets() bool { } type GetRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` // buckets isn't nil if GetRegion.* requests set need_buckets. - Buckets *metapb.Buckets `protobuf:"bytes,7,opt,name=buckets" json:"buckets,omitempty"` + Buckets *metapb.Buckets `protobuf:"bytes,7,opt,name=buckets,proto3" json:"buckets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRegionResponse) Reset() { *m = GetRegionResponse{} } +func (m *GetRegionResponse) String() string { return proto.CompactTextString(m) } +func (*GetRegionResponse) ProtoMessage() {} +func (*GetRegionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{28} +} +func (m *GetRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionResponse.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 *GetRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionResponse.Merge(m, src) +} +func (m *GetRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *GetRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionResponse.DiscardUnknown(m) } -func (m *GetRegionResponse) Reset() { *m = GetRegionResponse{} } -func (m *GetRegionResponse) String() string { return proto.CompactTextString(m) } -func (*GetRegionResponse) ProtoMessage() {} -func (*GetRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{28} } +var xxx_messageInfo_GetRegionResponse proto.InternalMessageInfo func (m *GetRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1188,15 +1975,46 @@ func (m *GetRegionResponse) GetBuckets() *metapb.Buckets { } type GetRegionByIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` + 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"` + NeedBuckets bool `protobuf:"varint,3,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRegionByIDRequest) Reset() { *m = GetRegionByIDRequest{} } +func (m *GetRegionByIDRequest) String() string { return proto.CompactTextString(m) } +func (*GetRegionByIDRequest) ProtoMessage() {} +func (*GetRegionByIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{29} +} +func (m *GetRegionByIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRegionByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRegionByIDRequest.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 *GetRegionByIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionByIDRequest.Merge(m, src) +} +func (m *GetRegionByIDRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRegionByIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRegionByIDRequest.DiscardUnknown(m) } -func (m *GetRegionByIDRequest) Reset() { *m = GetRegionByIDRequest{} } -func (m *GetRegionByIDRequest) String() string { return proto.CompactTextString(m) } -func (*GetRegionByIDRequest) ProtoMessage() {} -func (*GetRegionByIDRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{29} } +var xxx_messageInfo_GetRegionByIDRequest proto.InternalMessageInfo func (m *GetRegionByIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -1220,16 +2038,47 @@ func (m *GetRegionByIDRequest) GetNeedBuckets() bool { } type ScanRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanRegionsRequest) Reset() { *m = ScanRegionsRequest{} } +func (m *ScanRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*ScanRegionsRequest) ProtoMessage() {} +func (*ScanRegionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{30} +} +func (m *ScanRegionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanRegionsRequest.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 *ScanRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRegionsRequest.Merge(m, src) +} +func (m *ScanRegionsRequest) XXX_Size() int { + return m.Size() +} +func (m *ScanRegionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanRegionsRequest.DiscardUnknown(m) } -func (m *ScanRegionsRequest) Reset() { *m = ScanRegionsRequest{} } -func (m *ScanRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*ScanRegionsRequest) ProtoMessage() {} -func (*ScanRegionsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{30} } +var xxx_messageInfo_ScanRegionsRequest proto.InternalMessageInfo func (m *ScanRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -1260,19 +2109,50 @@ func (m *ScanRegionsRequest) GetEndKey() []byte { } type Region struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,3,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,3,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,4,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,4,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Region) Reset() { *m = Region{} } +func (m *Region) String() string { return proto.CompactTextString(m) } +func (*Region) ProtoMessage() {} +func (*Region) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{31} +} +func (m *Region) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Region.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 *Region) XXX_Merge(src proto.Message) { + xxx_messageInfo_Region.Merge(m, src) +} +func (m *Region) XXX_Size() int { + return m.Size() +} +func (m *Region) XXX_DiscardUnknown() { + xxx_messageInfo_Region.DiscardUnknown(m) } -func (m *Region) Reset() { *m = Region{} } -func (m *Region) String() string { return proto.CompactTextString(m) } -func (*Region) ProtoMessage() {} -func (*Region) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{31} } +var xxx_messageInfo_Region proto.InternalMessageInfo func (m *Region) GetRegion() *metapb.Region { if m != nil { @@ -1303,18 +2183,49 @@ func (m *Region) GetPendingPeers() []*metapb.Peer { } type ScanRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Keep for backword compatibability. - RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas" json:"region_metas,omitempty"` - Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders" json:"leaders,omitempty"` + RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas,proto3" json:"region_metas,omitempty"` + Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders,proto3" json:"leaders,omitempty"` // Extended region info with down/pending peers. - Regions []*Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` + Regions []*Region `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScanRegionsResponse) Reset() { *m = ScanRegionsResponse{} } +func (m *ScanRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*ScanRegionsResponse) ProtoMessage() {} +func (*ScanRegionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{32} +} +func (m *ScanRegionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScanRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScanRegionsResponse.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 *ScanRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRegionsResponse.Merge(m, src) +} +func (m *ScanRegionsResponse) XXX_Size() int { + return m.Size() +} +func (m *ScanRegionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanRegionsResponse.DiscardUnknown(m) } -func (m *ScanRegionsResponse) Reset() { *m = ScanRegionsResponse{} } -func (m *ScanRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*ScanRegionsResponse) ProtoMessage() {} -func (*ScanRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{32} } +var xxx_messageInfo_ScanRegionsResponse proto.InternalMessageInfo func (m *ScanRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1345,13 +2256,44 @@ func (m *ScanRegionsResponse) GetRegions() []*Region { } type GetClusterConfigRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest{} } +func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterConfigRequest) ProtoMessage() {} +func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{33} +} +func (m *GetClusterConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterConfigRequest.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 *GetClusterConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterConfigRequest.Merge(m, src) +} +func (m *GetClusterConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *GetClusterConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterConfigRequest.DiscardUnknown(m) } -func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest{} } -func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterConfigRequest) ProtoMessage() {} -func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{33} } +var xxx_messageInfo_GetClusterConfigRequest proto.InternalMessageInfo func (m *GetClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { @@ -1361,14 +2303,45 @@ func (m *GetClusterConfigRequest) GetHeader() *RequestHeader { } type GetClusterConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigResponse{} } +func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterConfigResponse) ProtoMessage() {} +func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{34} +} +func (m *GetClusterConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterConfigResponse.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 *GetClusterConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterConfigResponse.Merge(m, src) +} +func (m *GetClusterConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *GetClusterConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterConfigResponse.DiscardUnknown(m) } -func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigResponse{} } -func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterConfigResponse) ProtoMessage() {} -func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{34} } +var xxx_messageInfo_GetClusterConfigResponse proto.InternalMessageInfo func (m *GetClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1385,15 +2358,46 @@ func (m *GetClusterConfigResponse) GetCluster() *metapb.Cluster { } type PutClusterConfigRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest{} } +func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } +func (*PutClusterConfigRequest) ProtoMessage() {} +func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{35} +} +func (m *PutClusterConfigRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutClusterConfigRequest.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 *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest{} } -func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } -func (*PutClusterConfigRequest) ProtoMessage() {} -func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{35} } - +func (m *PutClusterConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutClusterConfigRequest.Merge(m, src) +} +func (m *PutClusterConfigRequest) XXX_Size() int { + return m.Size() +} +func (m *PutClusterConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutClusterConfigRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PutClusterConfigRequest proto.InternalMessageInfo + func (m *PutClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -1409,13 +2413,44 @@ func (m *PutClusterConfigRequest) GetCluster() *metapb.Cluster { } type PutClusterConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigResponse{} } +func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } +func (*PutClusterConfigResponse) ProtoMessage() {} +func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{36} +} +func (m *PutClusterConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutClusterConfigResponse.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 *PutClusterConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutClusterConfigResponse.Merge(m, src) +} +func (m *PutClusterConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *PutClusterConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutClusterConfigResponse.DiscardUnknown(m) } -func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigResponse{} } -func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } -func (*PutClusterConfigResponse) ProtoMessage() {} -func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{36} } +var xxx_messageInfo_PutClusterConfigResponse proto.InternalMessageInfo func (m *PutClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1428,20 +2463,51 @@ type Member struct { // name is the name of the PD member. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // member_id is the unique id of the PD member. - MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` - PeerUrls []string `protobuf:"bytes,3,rep,name=peer_urls,json=peerUrls" json:"peer_urls,omitempty"` - ClientUrls []string `protobuf:"bytes,4,rep,name=client_urls,json=clientUrls" json:"client_urls,omitempty"` - LeaderPriority int32 `protobuf:"varint,5,opt,name=leader_priority,json=leaderPriority,proto3" json:"leader_priority,omitempty"` - DeployPath string `protobuf:"bytes,6,opt,name=deploy_path,json=deployPath,proto3" json:"deploy_path,omitempty"` - BinaryVersion string `protobuf:"bytes,7,opt,name=binary_version,json=binaryVersion,proto3" json:"binary_version,omitempty"` - GitHash string `protobuf:"bytes,8,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"` - DcLocation string `protobuf:"bytes,9,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` + PeerUrls []string `protobuf:"bytes,3,rep,name=peer_urls,json=peerUrls,proto3" json:"peer_urls,omitempty"` + ClientUrls []string `protobuf:"bytes,4,rep,name=client_urls,json=clientUrls,proto3" json:"client_urls,omitempty"` + LeaderPriority int32 `protobuf:"varint,5,opt,name=leader_priority,json=leaderPriority,proto3" json:"leader_priority,omitempty"` + DeployPath string `protobuf:"bytes,6,opt,name=deploy_path,json=deployPath,proto3" json:"deploy_path,omitempty"` + BinaryVersion string `protobuf:"bytes,7,opt,name=binary_version,json=binaryVersion,proto3" json:"binary_version,omitempty"` + GitHash string `protobuf:"bytes,8,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"` + DcLocation string `protobuf:"bytes,9,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{37} +} +func (m *Member) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Member.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 *Member) XXX_Merge(src proto.Message) { + xxx_messageInfo_Member.Merge(m, src) +} +func (m *Member) XXX_Size() int { + return m.Size() +} +func (m *Member) XXX_DiscardUnknown() { + xxx_messageInfo_Member.DiscardUnknown(m) } -func (m *Member) Reset() { *m = Member{} } -func (m *Member) String() string { return proto.CompactTextString(m) } -func (*Member) ProtoMessage() {} -func (*Member) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{37} } +var xxx_messageInfo_Member proto.InternalMessageInfo func (m *Member) GetName() string { if m != nil { @@ -1507,13 +2573,44 @@ func (m *Member) GetDcLocation() string { } type GetMembersRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } +func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } +func (*GetMembersRequest) ProtoMessage() {} +func (*GetMembersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{38} +} +func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMembersRequest.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 *GetMembersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMembersRequest.Merge(m, src) +} +func (m *GetMembersRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMembersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMembersRequest.DiscardUnknown(m) } -func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } -func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } -func (*GetMembersRequest) ProtoMessage() {} -func (*GetMembersRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{38} } +var xxx_messageInfo_GetMembersRequest proto.InternalMessageInfo func (m *GetMembersRequest) GetHeader() *RequestHeader { if m != nil { @@ -1523,17 +2620,48 @@ func (m *GetMembersRequest) GetHeader() *RequestHeader { } type GetMembersResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` - Leader *Member `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` - EtcdLeader *Member `protobuf:"bytes,4,opt,name=etcd_leader,json=etcdLeader" json:"etcd_leader,omitempty"` - TsoAllocatorLeaders map[string]*Member `protobuf:"bytes,5,rep,name=tso_allocator_leaders,json=tsoAllocatorLeaders" json:"tso_allocator_leaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` + Leader *Member `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` + EtcdLeader *Member `protobuf:"bytes,4,opt,name=etcd_leader,json=etcdLeader,proto3" json:"etcd_leader,omitempty"` + TsoAllocatorLeaders map[string]*Member `protobuf:"bytes,5,rep,name=tso_allocator_leaders,json=tsoAllocatorLeaders,proto3" json:"tso_allocator_leaders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } +func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } +func (*GetMembersResponse) ProtoMessage() {} +func (*GetMembersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{39} +} +func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMembersResponse.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 *GetMembersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMembersResponse.Merge(m, src) +} +func (m *GetMembersResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMembersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMembersResponse.DiscardUnknown(m) } -func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } -func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } -func (*GetMembersResponse) ProtoMessage() {} -func (*GetMembersResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{39} } +var xxx_messageInfo_GetMembersResponse proto.InternalMessageInfo func (m *GetMembersResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1571,13 +2699,44 @@ func (m *GetMembersResponse) GetTsoAllocatorLeaders() map[string]*Member { } type GetClusterInfoRequest struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } +func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoRequest) ProtoMessage() {} +func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{40} +} +func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterInfoRequest.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 *GetClusterInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoRequest.Merge(m, src) +} +func (m *GetClusterInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *GetClusterInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterInfoRequest.DiscardUnknown(m) } -func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } -func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoRequest) ProtoMessage() {} -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{40} } +var xxx_messageInfo_GetClusterInfoRequest proto.InternalMessageInfo func (m *GetClusterInfoRequest) GetHeader() *ResponseHeader { if m != nil { @@ -1587,17 +2746,48 @@ func (m *GetClusterInfoRequest) GetHeader() *ResponseHeader { } type GetClusterInfoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ServiceModes []ServiceMode `protobuf:"varint,2,rep,packed,name=serviceModes,enum=pdpb.ServiceMode" json:"serviceModes,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ServiceModes []ServiceMode `protobuf:"varint,2,rep,packed,name=serviceModes,proto3,enum=pdpb.ServiceMode" json:"serviceModes,omitempty"` // If service mode is API_SVC_MODE, this field will be set to the // registered tso service addresses. - TsoUrls []string `protobuf:"bytes,3,rep,name=tso_urls,json=tsoUrls" json:"tso_urls,omitempty"` + TsoUrls []string `protobuf:"bytes,3,rep,name=tso_urls,json=tsoUrls,proto3" json:"tso_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } +func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetClusterInfoResponse) ProtoMessage() {} +func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{41} +} +func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetClusterInfoResponse.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 *GetClusterInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoResponse.Merge(m, src) +} +func (m *GetClusterInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *GetClusterInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetClusterInfoResponse.DiscardUnknown(m) } -func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} } -func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetClusterInfoResponse) ProtoMessage() {} -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{41} } +var xxx_messageInfo_GetClusterInfoResponse proto.InternalMessageInfo func (m *GetClusterInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -1621,14 +2811,45 @@ func (m *GetClusterInfoResponse) GetTsoUrls() []string { } type PeerStats struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` - DownSeconds uint64 `protobuf:"varint,2,opt,name=down_seconds,json=downSeconds,proto3" json:"down_seconds,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + DownSeconds uint64 `protobuf:"varint,2,opt,name=down_seconds,json=downSeconds,proto3" json:"down_seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PeerStats) Reset() { *m = PeerStats{} } +func (m *PeerStats) String() string { return proto.CompactTextString(m) } +func (*PeerStats) ProtoMessage() {} +func (*PeerStats) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{42} +} +func (m *PeerStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PeerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PeerStats.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 *PeerStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerStats.Merge(m, src) +} +func (m *PeerStats) XXX_Size() int { + return m.Size() +} +func (m *PeerStats) XXX_DiscardUnknown() { + xxx_messageInfo_PeerStats.DiscardUnknown(m) } -func (m *PeerStats) Reset() { *m = PeerStats{} } -func (m *PeerStats) String() string { return proto.CompactTextString(m) } -func (*PeerStats) ProtoMessage() {} -func (*PeerStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{42} } +var xxx_messageInfo_PeerStats proto.InternalMessageInfo func (m *PeerStats) GetPeer() *metapb.Peer { if m != nil { @@ -1645,15 +2866,15 @@ func (m *PeerStats) GetDownSeconds() uint64 { } type RegionHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // Leader Peer sending the heartbeat. - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` // Bytes read/written during this period. BytesWritten uint64 `protobuf:"varint,6,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` BytesRead uint64 `protobuf:"varint,7,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` @@ -1663,26 +2884,57 @@ type RegionHeartbeatRequest struct { // Approximate region size. ApproximateSize uint64 `protobuf:"varint,10,opt,name=approximate_size,json=approximateSize,proto3" json:"approximate_size,omitempty"` // Actually reported time interval - Interval *TimeInterval `protobuf:"bytes,12,opt,name=interval" json:"interval,omitempty"` + Interval *TimeInterval `protobuf:"bytes,12,opt,name=interval,proto3" json:"interval,omitempty"` // Approximate number of keys. ApproximateKeys uint64 `protobuf:"varint,13,opt,name=approximate_keys,json=approximateKeys,proto3" json:"approximate_keys,omitempty"` // Term is the term of raft group. Term uint64 `protobuf:"varint,14,opt,name=term,proto3" json:"term,omitempty"` - ReplicationStatus *replication_modepb.RegionReplicationStatus `protobuf:"bytes,15,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + ReplicationStatus *replication_modepb.RegionReplicationStatus `protobuf:"bytes,15,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` // QueryStats reported write query stats, and there are read query stats in store heartbeat - QueryStats *QueryStats `protobuf:"bytes,16,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,16,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` // cpu_usage is the CPU time usage of the leader region since the last heartbeat, // which is calculated by cpu_time_delta/heartbeat_reported_interval. CpuUsage uint64 `protobuf:"varint,17,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"` // (Serverless) Approximate size of key-value pairs for billing. // It's counted on size of user key & value (excluding metadata fields), before compression, and latest versions only. - ApproximateKvSize uint64 `protobuf:"varint,18,opt,name=approximate_kv_size,json=approximateKvSize,proto3" json:"approximate_kv_size,omitempty"` + ApproximateKvSize uint64 `protobuf:"varint,18,opt,name=approximate_kv_size,json=approximateKvSize,proto3" json:"approximate_kv_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} } +func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } +func (*RegionHeartbeatRequest) ProtoMessage() {} +func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{43} +} +func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionHeartbeatRequest.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 *RegionHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatRequest.Merge(m, src) +} +func (m *RegionHeartbeatRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionHeartbeatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionHeartbeatRequest.DiscardUnknown(m) } -func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} } -func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } -func (*RegionHeartbeatRequest) ProtoMessage() {} -func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{43} } +var xxx_messageInfo_RegionHeartbeatRequest proto.InternalMessageInfo func (m *RegionHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -1804,14 +3056,45 @@ func (m *RegionHeartbeatRequest) GetApproximateKvSize() uint64 { } type ChangePeer struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` - ChangeType eraftpb.ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + ChangeType eraftpb.ConfChangeType `protobuf:"varint,2,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeer) Reset() { *m = ChangePeer{} } +func (m *ChangePeer) String() string { return proto.CompactTextString(m) } +func (*ChangePeer) ProtoMessage() {} +func (*ChangePeer) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{44} +} +func (m *ChangePeer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeer.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 *ChangePeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeer.Merge(m, src) +} +func (m *ChangePeer) XXX_Size() int { + return m.Size() +} +func (m *ChangePeer) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeer.DiscardUnknown(m) } -func (m *ChangePeer) Reset() { *m = ChangePeer{} } -func (m *ChangePeer) String() string { return proto.CompactTextString(m) } -func (*ChangePeer) ProtoMessage() {} -func (*ChangePeer) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{44} } +var xxx_messageInfo_ChangePeer proto.InternalMessageInfo func (m *ChangePeer) GetPeer() *metapb.Peer { if m != nil { @@ -1829,13 +3112,44 @@ func (m *ChangePeer) GetChangeType() eraftpb.ConfChangeType { type ChangePeerV2 struct { // If changes is empty, it means that to exit joint state. - Changes []*ChangePeer `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` + Changes []*ChangePeer `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } +func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2) ProtoMessage() {} +func (*ChangePeerV2) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{45} +} +func (m *ChangePeerV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeerV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeerV2.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 *ChangePeerV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2.Merge(m, src) +} +func (m *ChangePeerV2) XXX_Size() int { + return m.Size() +} +func (m *ChangePeerV2) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeerV2.DiscardUnknown(m) } -func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } -func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2) ProtoMessage() {} -func (*ChangePeerV2) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{45} } +var xxx_messageInfo_ChangePeerV2 proto.InternalMessageInfo func (m *ChangePeerV2) GetChanges() []*ChangePeer { if m != nil { @@ -1845,14 +3159,45 @@ func (m *ChangePeerV2) GetChanges() []*ChangePeer { } type TransferLeader struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` - Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransferLeader) Reset() { *m = TransferLeader{} } +func (m *TransferLeader) String() string { return proto.CompactTextString(m) } +func (*TransferLeader) ProtoMessage() {} +func (*TransferLeader) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{46} +} +func (m *TransferLeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransferLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransferLeader.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 *TransferLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeader.Merge(m, src) +} +func (m *TransferLeader) XXX_Size() int { + return m.Size() +} +func (m *TransferLeader) XXX_DiscardUnknown() { + xxx_messageInfo_TransferLeader.DiscardUnknown(m) } -func (m *TransferLeader) Reset() { *m = TransferLeader{} } -func (m *TransferLeader) String() string { return proto.CompactTextString(m) } -func (*TransferLeader) ProtoMessage() {} -func (*TransferLeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{46} } +var xxx_messageInfo_TransferLeader proto.InternalMessageInfo func (m *TransferLeader) GetPeer() *metapb.Peer { if m != nil { @@ -1869,13 +3214,44 @@ func (m *TransferLeader) GetPeers() []*metapb.Peer { } type Merge struct { - Target *metapb.Region `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` + Target *metapb.Region `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Merge) Reset() { *m = Merge{} } +func (m *Merge) String() string { return proto.CompactTextString(m) } +func (*Merge) ProtoMessage() {} +func (*Merge) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{47} +} +func (m *Merge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Merge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Merge.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 *Merge) XXX_Merge(src proto.Message) { + xxx_messageInfo_Merge.Merge(m, src) +} +func (m *Merge) XXX_Size() int { + return m.Size() +} +func (m *Merge) XXX_DiscardUnknown() { + xxx_messageInfo_Merge.DiscardUnknown(m) } -func (m *Merge) Reset() { *m = Merge{} } -func (m *Merge) String() string { return proto.CompactTextString(m) } -func (*Merge) ProtoMessage() {} -func (*Merge) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{47} } +var xxx_messageInfo_Merge proto.InternalMessageInfo func (m *Merge) GetTarget() *metapb.Region { if m != nil { @@ -1885,14 +3261,45 @@ func (m *Merge) GetTarget() *metapb.Region { } type SplitRegion struct { - Policy CheckPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=pdpb.CheckPolicy" json:"policy,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Policy CheckPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=pdpb.CheckPolicy" json:"policy,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitRegion) Reset() { *m = SplitRegion{} } +func (m *SplitRegion) String() string { return proto.CompactTextString(m) } +func (*SplitRegion) ProtoMessage() {} +func (*SplitRegion) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{48} +} +func (m *SplitRegion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRegion.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 *SplitRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegion.Merge(m, src) +} +func (m *SplitRegion) XXX_Size() int { + return m.Size() +} +func (m *SplitRegion) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegion.DiscardUnknown(m) } -func (m *SplitRegion) Reset() { *m = SplitRegion{} } -func (m *SplitRegion) String() string { return proto.CompactTextString(m) } -func (*SplitRegion) ProtoMessage() {} -func (*SplitRegion) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{48} } +var xxx_messageInfo_SplitRegion proto.InternalMessageInfo func (m *SplitRegion) GetPolicy() CheckPolicy { if m != nil { @@ -1909,14 +3316,45 @@ func (m *SplitRegion) GetKeys() [][]byte { } type SwitchWitness struct { - PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchWitness) Reset() { *m = SwitchWitness{} } +func (m *SwitchWitness) String() string { return proto.CompactTextString(m) } +func (*SwitchWitness) ProtoMessage() {} +func (*SwitchWitness) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{49} +} +func (m *SwitchWitness) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchWitness.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 *SwitchWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWitness.Merge(m, src) +} +func (m *SwitchWitness) XXX_Size() int { + return m.Size() +} +func (m *SwitchWitness) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchWitness.DiscardUnknown(m) } -func (m *SwitchWitness) Reset() { *m = SwitchWitness{} } -func (m *SwitchWitness) String() string { return proto.CompactTextString(m) } -func (*SwitchWitness) ProtoMessage() {} -func (*SwitchWitness) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{49} } +var xxx_messageInfo_SwitchWitness proto.InternalMessageInfo func (m *SwitchWitness) GetPeerId() uint64 { if m != nil { @@ -1933,13 +3371,44 @@ func (m *SwitchWitness) GetIsWitness() bool { } type BatchSwitchWitness struct { - SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` + SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchSwitchWitness) Reset() { *m = BatchSwitchWitness{} } +func (m *BatchSwitchWitness) String() string { return proto.CompactTextString(m) } +func (*BatchSwitchWitness) ProtoMessage() {} +func (*BatchSwitchWitness) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{50} +} +func (m *BatchSwitchWitness) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwitchWitness.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 *BatchSwitchWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitness.Merge(m, src) +} +func (m *BatchSwitchWitness) XXX_Size() int { + return m.Size() +} +func (m *BatchSwitchWitness) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwitchWitness.DiscardUnknown(m) } -func (m *BatchSwitchWitness) Reset() { *m = BatchSwitchWitness{} } -func (m *BatchSwitchWitness) String() string { return proto.CompactTextString(m) } -func (*BatchSwitchWitness) ProtoMessage() {} -func (*BatchSwitchWitness) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{50} } +var xxx_messageInfo_BatchSwitchWitness proto.InternalMessageInfo func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { if m != nil { @@ -1949,7 +3418,7 @@ func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { } type RegionHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Notice, Pd only allows handling reported epoch >= current pd's. // Leader peer reports region status with RegionHeartbeatRequest // to pd regularly, pd will determine whether this region @@ -1964,31 +3433,62 @@ type RegionHeartbeatResponse struct { // 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange // finished, pd stills responses ChangePeer Adding 2, of course, we must // guarantee the second ChangePeer can't be applied in TiKV. - ChangePeer *ChangePeer `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` + ChangePeer *ChangePeer `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` // Pd can return transfer_leader to let TiKV does leader transfer itself. - TransferLeader *TransferLeader `protobuf:"bytes,3,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` + TransferLeader *TransferLeader `protobuf:"bytes,3,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` // ID of the region RegionId uint64 `protobuf:"varint,4,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` // Leader of the region at the moment of the corresponding request was made. - TargetPeer *metapb.Peer `protobuf:"bytes,6,opt,name=target_peer,json=targetPeer" json:"target_peer,omitempty"` - Merge *Merge `protobuf:"bytes,7,opt,name=merge" json:"merge,omitempty"` + TargetPeer *metapb.Peer `protobuf:"bytes,6,opt,name=target_peer,json=targetPeer,proto3" json:"target_peer,omitempty"` + Merge *Merge `protobuf:"bytes,7,opt,name=merge,proto3" json:"merge,omitempty"` // PD sends split_region to let TiKV split a region into two regions. - SplitRegion *SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion" json:"split_region,omitempty"` + SplitRegion *SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion,proto3" json:"split_region,omitempty"` // Multiple change peer operations atomically. // Note: PD can use both ChangePeer and ChangePeerV2 at the same time // (not in the same RegionHeartbeatResponse). // Now, PD use ChangePeerV2 in following scenarios: // 1. replacing peers // 2. demoting voter directly - ChangePeerV2 *ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` - SwitchWitnesses *BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` + ChangePeerV2 *ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` + SwitchWitnesses *BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse{} } +func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } +func (*RegionHeartbeatResponse) ProtoMessage() {} +func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{51} +} +func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionHeartbeatResponse.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 *RegionHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatResponse.Merge(m, src) +} +func (m *RegionHeartbeatResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionHeartbeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionHeartbeatResponse.DiscardUnknown(m) } -func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse{} } -func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } -func (*RegionHeartbeatResponse) ProtoMessage() {} -func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{51} } +var xxx_messageInfo_RegionHeartbeatResponse proto.InternalMessageInfo func (m *RegionHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2061,14 +3561,45 @@ func (m *RegionHeartbeatResponse) GetSwitchWitnesses() *BatchSwitchWitness { } type AskSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } +func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } +func (*AskSplitRequest) ProtoMessage() {} +func (*AskSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{52} +} +func (m *AskSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskSplitRequest.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 *AskSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskSplitRequest.Merge(m, src) +} +func (m *AskSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *AskSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AskSplitRequest.DiscardUnknown(m) } -func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } -func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } -func (*AskSplitRequest) ProtoMessage() {} -func (*AskSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{52} } +var xxx_messageInfo_AskSplitRequest proto.InternalMessageInfo func (m *AskSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -2085,19 +3616,50 @@ func (m *AskSplitRequest) GetRegion() *metapb.Region { } type AskSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // We split the region into two, first uses the origin // parent region id, and the second uses the new_region_id. // We must guarantee that the new_region_id is global unique. NewRegionId uint64 `protobuf:"varint,2,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` // The peer ids for the new split region. - NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` + NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } +func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } +func (*AskSplitResponse) ProtoMessage() {} +func (*AskSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{53} +} +func (m *AskSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskSplitResponse.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 *AskSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskSplitResponse.Merge(m, src) +} +func (m *AskSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *AskSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AskSplitResponse.DiscardUnknown(m) } -func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } -func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } -func (*AskSplitResponse) ProtoMessage() {} -func (*AskSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{53} } +var xxx_messageInfo_AskSplitResponse proto.InternalMessageInfo func (m *AskSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2121,15 +3683,46 @@ func (m *AskSplitResponse) GetNewPeerIds() []uint64 { } type ReportSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Left *metapb.Region `protobuf:"bytes,2,opt,name=left" json:"left,omitempty"` - Right *metapb.Region `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Left *metapb.Region `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } +func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } +func (*ReportSplitRequest) ProtoMessage() {} +func (*ReportSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{54} +} +func (m *ReportSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportSplitRequest.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 *ReportSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportSplitRequest.Merge(m, src) +} +func (m *ReportSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportSplitRequest.DiscardUnknown(m) } -func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } -func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } -func (*ReportSplitRequest) ProtoMessage() {} -func (*ReportSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{54} } +var xxx_messageInfo_ReportSplitRequest proto.InternalMessageInfo func (m *ReportSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -2153,13 +3746,44 @@ func (m *ReportSplitRequest) GetRight() *metapb.Region { } type ReportSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } +func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } +func (*ReportSplitResponse) ProtoMessage() {} +func (*ReportSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{55} +} +func (m *ReportSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportSplitResponse.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 *ReportSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportSplitResponse.Merge(m, src) +} +func (m *ReportSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportSplitResponse.DiscardUnknown(m) } -func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } -func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } -func (*ReportSplitResponse) ProtoMessage() {} -func (*ReportSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{55} } +var xxx_messageInfo_ReportSplitResponse proto.InternalMessageInfo func (m *ReportSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2169,15 +3793,46 @@ func (m *ReportSplitResponse) GetHeader() *ResponseHeader { } type AskBatchSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` - SplitCount uint32 `protobuf:"varint,3,opt,name=split_count,json=splitCount,proto3" json:"split_count,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + SplitCount uint32 `protobuf:"varint,3,opt,name=split_count,json=splitCount,proto3" json:"split_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } +func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitRequest) ProtoMessage() {} +func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{56} +} +func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskBatchSplitRequest.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 *AskBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitRequest.Merge(m, src) +} +func (m *AskBatchSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *AskBatchSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AskBatchSplitRequest.DiscardUnknown(m) } -func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } -func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*AskBatchSplitRequest) ProtoMessage() {} -func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{56} } +var xxx_messageInfo_AskBatchSplitRequest proto.InternalMessageInfo func (m *AskBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -2201,14 +3856,45 @@ func (m *AskBatchSplitRequest) GetSplitCount() uint32 { } type SplitID struct { - NewRegionId uint64 `protobuf:"varint,1,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` - NewPeerIds []uint64 `protobuf:"varint,2,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` + NewRegionId uint64 `protobuf:"varint,1,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` + NewPeerIds []uint64 `protobuf:"varint,2,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitID) Reset() { *m = SplitID{} } +func (m *SplitID) String() string { return proto.CompactTextString(m) } +func (*SplitID) ProtoMessage() {} +func (*SplitID) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{57} +} +func (m *SplitID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitID.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 *SplitID) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitID.Merge(m, src) +} +func (m *SplitID) XXX_Size() int { + return m.Size() +} +func (m *SplitID) XXX_DiscardUnknown() { + xxx_messageInfo_SplitID.DiscardUnknown(m) } -func (m *SplitID) Reset() { *m = SplitID{} } -func (m *SplitID) String() string { return proto.CompactTextString(m) } -func (*SplitID) ProtoMessage() {} -func (*SplitID) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{57} } +var xxx_messageInfo_SplitID proto.InternalMessageInfo func (m *SplitID) GetNewRegionId() uint64 { if m != nil { @@ -2225,14 +3911,45 @@ func (m *SplitID) GetNewPeerIds() []uint64 { } type AskBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Ids []*SplitID `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Ids []*SplitID `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } +func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitResponse) ProtoMessage() {} +func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{58} +} +func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskBatchSplitResponse.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 *AskBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitResponse.Merge(m, src) +} +func (m *AskBatchSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *AskBatchSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AskBatchSplitResponse.DiscardUnknown(m) } -func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } -func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*AskBatchSplitResponse) ProtoMessage() {} -func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{58} } +var xxx_messageInfo_AskBatchSplitResponse proto.InternalMessageInfo func (m *AskBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2249,14 +3966,45 @@ func (m *AskBatchSplitResponse) GetIds() []*SplitID { } type ReportBatchSplitRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest{} } +func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*ReportBatchSplitRequest) ProtoMessage() {} +func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{59} +} +func (m *ReportBatchSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportBatchSplitRequest.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 *ReportBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBatchSplitRequest.Merge(m, src) +} +func (m *ReportBatchSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportBatchSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBatchSplitRequest.DiscardUnknown(m) } -func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest{} } -func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*ReportBatchSplitRequest) ProtoMessage() {} -func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{59} } +var xxx_messageInfo_ReportBatchSplitRequest proto.InternalMessageInfo func (m *ReportBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -2273,13 +4021,44 @@ func (m *ReportBatchSplitRequest) GetRegions() []*metapb.Region { } type ReportBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitResponse{} } +func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*ReportBatchSplitResponse) ProtoMessage() {} +func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{60} +} +func (m *ReportBatchSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportBatchSplitResponse.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 *ReportBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBatchSplitResponse.Merge(m, src) +} +func (m *ReportBatchSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportBatchSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBatchSplitResponse.DiscardUnknown(m) } -func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitResponse{} } -func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*ReportBatchSplitResponse) ProtoMessage() {} -func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{60} } +var xxx_messageInfo_ReportBatchSplitResponse proto.InternalMessageInfo func (m *ReportBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2292,13 +4071,44 @@ type TimeInterval struct { // The unix timestamp in seconds of the start of this period. StartTimestamp uint64 `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` // The unix timestamp in seconds of the end of this period. - EndTimestamp uint64 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` + EndTimestamp uint64 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TimeInterval) Reset() { *m = TimeInterval{} } +func (m *TimeInterval) String() string { return proto.CompactTextString(m) } +func (*TimeInterval) ProtoMessage() {} +func (*TimeInterval) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{61} +} +func (m *TimeInterval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TimeInterval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TimeInterval.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 *TimeInterval) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeInterval.Merge(m, src) +} +func (m *TimeInterval) XXX_Size() int { + return m.Size() +} +func (m *TimeInterval) XXX_DiscardUnknown() { + xxx_messageInfo_TimeInterval.DiscardUnknown(m) } -func (m *TimeInterval) Reset() { *m = TimeInterval{} } -func (m *TimeInterval) String() string { return proto.CompactTextString(m) } -func (*TimeInterval) ProtoMessage() {} -func (*TimeInterval) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{61} } +var xxx_messageInfo_TimeInterval proto.InternalMessageInfo func (m *TimeInterval) GetStartTimestamp() uint64 { if m != nil { @@ -2315,14 +4125,45 @@ func (m *TimeInterval) GetEndTimestamp() uint64 { } type RecordPair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecordPair) Reset() { *m = RecordPair{} } +func (m *RecordPair) String() string { return proto.CompactTextString(m) } +func (*RecordPair) ProtoMessage() {} +func (*RecordPair) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{62} +} +func (m *RecordPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecordPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecordPair.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 *RecordPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecordPair.Merge(m, src) +} +func (m *RecordPair) XXX_Size() int { + return m.Size() +} +func (m *RecordPair) XXX_DiscardUnknown() { + xxx_messageInfo_RecordPair.DiscardUnknown(m) } -func (m *RecordPair) Reset() { *m = RecordPair{} } -func (m *RecordPair) String() string { return proto.CompactTextString(m) } -func (*RecordPair) ProtoMessage() {} -func (*RecordPair) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{62} } +var xxx_messageInfo_RecordPair proto.InternalMessageInfo func (m *RecordPair) GetKey() string { if m != nil { @@ -2339,18 +4180,49 @@ func (m *RecordPair) GetValue() uint64 { } type PeerStat struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - ReadKeys uint64 `protobuf:"varint,2,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` - ReadBytes uint64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` - QueryStats *QueryStats `protobuf:"bytes,4,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` - WrittenKeys uint64 `protobuf:"varint,5,opt,name=written_keys,json=writtenKeys,proto3" json:"written_keys,omitempty"` - WrittenBytes uint64 `protobuf:"varint,6,opt,name=written_bytes,json=writtenBytes,proto3" json:"written_bytes,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + ReadKeys uint64 `protobuf:"varint,2,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` + ReadBytes uint64 `protobuf:"varint,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,4,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` + WrittenKeys uint64 `protobuf:"varint,5,opt,name=written_keys,json=writtenKeys,proto3" json:"written_keys,omitempty"` + WrittenBytes uint64 `protobuf:"varint,6,opt,name=written_bytes,json=writtenBytes,proto3" json:"written_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PeerStat) Reset() { *m = PeerStat{} } +func (m *PeerStat) String() string { return proto.CompactTextString(m) } +func (*PeerStat) ProtoMessage() {} +func (*PeerStat) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{63} +} +func (m *PeerStat) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PeerStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PeerStat.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 *PeerStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerStat.Merge(m, src) +} +func (m *PeerStat) XXX_Size() int { + return m.Size() +} +func (m *PeerStat) XXX_DiscardUnknown() { + xxx_messageInfo_PeerStat.DiscardUnknown(m) } -func (m *PeerStat) Reset() { *m = PeerStat{} } -func (m *PeerStat) String() string { return proto.CompactTextString(m) } -func (*PeerStat) ProtoMessage() {} -func (*PeerStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{63} } +var xxx_messageInfo_PeerStat proto.InternalMessageInfo func (m *PeerStat) GetRegionId() uint64 { if m != nil { @@ -2423,40 +4295,71 @@ type StoreStats struct { // Keys read for the store during this period. KeysRead uint64 `protobuf:"varint,14,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"` // Actually reported time interval - Interval *TimeInterval `protobuf:"bytes,15,opt,name=interval" json:"interval,omitempty"` + Interval *TimeInterval `protobuf:"bytes,15,opt,name=interval,proto3" json:"interval,omitempty"` // Threads' CPU usages in the store - CpuUsages []*RecordPair `protobuf:"bytes,16,rep,name=cpu_usages,json=cpuUsages" json:"cpu_usages,omitempty"` + CpuUsages []*RecordPair `protobuf:"bytes,16,rep,name=cpu_usages,json=cpuUsages,proto3" json:"cpu_usages,omitempty"` // Threads' read disk I/O rates in the store - ReadIoRates []*RecordPair `protobuf:"bytes,17,rep,name=read_io_rates,json=readIoRates" json:"read_io_rates,omitempty"` + ReadIoRates []*RecordPair `protobuf:"bytes,17,rep,name=read_io_rates,json=readIoRates,proto3" json:"read_io_rates,omitempty"` // Threads' write disk I/O rates in the store - WriteIoRates []*RecordPair `protobuf:"bytes,18,rep,name=write_io_rates,json=writeIoRates" json:"write_io_rates,omitempty"` + WriteIoRates []*RecordPair `protobuf:"bytes,18,rep,name=write_io_rates,json=writeIoRates,proto3" json:"write_io_rates,omitempty"` // Operations' latencies in the store - OpLatencies []*RecordPair `protobuf:"bytes,19,rep,name=op_latencies,json=opLatencies" json:"op_latencies,omitempty"` + OpLatencies []*RecordPair `protobuf:"bytes,19,rep,name=op_latencies,json=opLatencies,proto3" json:"op_latencies,omitempty"` // Hot peer stat in the store - PeerStats []*PeerStat `protobuf:"bytes,20,rep,name=peer_stats,json=peerStats" json:"peer_stats,omitempty"` + PeerStats []*PeerStat `protobuf:"bytes,20,rep,name=peer_stats,json=peerStats,proto3" json:"peer_stats,omitempty"` // Store query stats - QueryStats *QueryStats `protobuf:"bytes,21,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` + QueryStats *QueryStats `protobuf:"bytes,21,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` // Score that represents the speed of the store, ranges in [1, 100], lower is better. SlowScore uint64 `protobuf:"varint,22,opt,name=slow_score,json=slowScore,proto3" json:"slow_score,omitempty"` // Damaged regions on the store that need to be removed by PD. - DamagedRegionsId []uint64 `protobuf:"varint,23,rep,packed,name=damaged_regions_id,json=damagedRegionsId" json:"damaged_regions_id,omitempty"` + DamagedRegionsId []uint64 `protobuf:"varint,23,rep,packed,name=damaged_regions_id,json=damagedRegionsId,proto3" json:"damaged_regions_id,omitempty"` // If the apply worker is busy, namely high apply wait duration IsApplyBusy bool `protobuf:"varint,24,opt,name=is_apply_busy,json=isApplyBusy,proto3" json:"is_apply_busy,omitempty"` // Snapshot stats in the store - SnapshotStats []*SnapshotStat `protobuf:"bytes,25,rep,name=snapshot_stats,json=snapshotStats" json:"snapshot_stats,omitempty"` - SlowTrend *SlowTrend `protobuf:"bytes,26,opt,name=slow_trend,json=slowTrend" json:"slow_trend,omitempty"` + SnapshotStats []*SnapshotStat `protobuf:"bytes,25,rep,name=snapshot_stats,json=snapshotStats,proto3" json:"snapshot_stats,omitempty"` + SlowTrend *SlowTrend `protobuf:"bytes,26,opt,name=slow_trend,json=slowTrend,proto3" json:"slow_trend,omitempty"` // If the grpc server is paused. IsGrpcPaused bool `protobuf:"varint,27,opt,name=is_grpc_paused,json=isGrpcPaused,proto3" json:"is_grpc_paused,omitempty"` // Total memory of the store in bytes. TotalMemory uint64 `protobuf:"varint,28,opt,name=total_memory,json=totalMemory,proto3" json:"total_memory,omitempty"` // Used memory of the store in bytes. - UsedMemory uint64 `protobuf:"varint,29,opt,name=used_memory,json=usedMemory,proto3" json:"used_memory,omitempty"` + UsedMemory uint64 `protobuf:"varint,29,opt,name=used_memory,json=usedMemory,proto3" json:"used_memory,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreStats) Reset() { *m = StoreStats{} } +func (m *StoreStats) String() string { return proto.CompactTextString(m) } +func (*StoreStats) ProtoMessage() {} +func (*StoreStats) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{64} +} +func (m *StoreStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreStats.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 *StoreStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreStats.Merge(m, src) +} +func (m *StoreStats) XXX_Size() int { + return m.Size() +} +func (m *StoreStats) XXX_DiscardUnknown() { + xxx_messageInfo_StoreStats.DiscardUnknown(m) } -func (m *StoreStats) Reset() { *m = StoreStats{} } -func (m *StoreStats) String() string { return proto.CompactTextString(m) } -func (*StoreStats) ProtoMessage() {} -func (*StoreStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{64} } +var xxx_messageInfo_StoreStats proto.InternalMessageInfo func (m *StoreStats) GetStoreId() uint64 { if m != nil { @@ -2662,16 +4565,47 @@ func (m *StoreStats) GetUsedMemory() uint64 { } type SlowTrend struct { - CauseValue float64 `protobuf:"fixed64,1,opt,name=cause_value,json=causeValue,proto3" json:"cause_value,omitempty"` - CauseRate float64 `protobuf:"fixed64,2,opt,name=cause_rate,json=causeRate,proto3" json:"cause_rate,omitempty"` - ResultValue float64 `protobuf:"fixed64,3,opt,name=result_value,json=resultValue,proto3" json:"result_value,omitempty"` - ResultRate float64 `protobuf:"fixed64,4,opt,name=result_rate,json=resultRate,proto3" json:"result_rate,omitempty"` + CauseValue float64 `protobuf:"fixed64,1,opt,name=cause_value,json=causeValue,proto3" json:"cause_value,omitempty"` + CauseRate float64 `protobuf:"fixed64,2,opt,name=cause_rate,json=causeRate,proto3" json:"cause_rate,omitempty"` + ResultValue float64 `protobuf:"fixed64,3,opt,name=result_value,json=resultValue,proto3" json:"result_value,omitempty"` + ResultRate float64 `protobuf:"fixed64,4,opt,name=result_rate,json=resultRate,proto3" json:"result_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SlowTrend) Reset() { *m = SlowTrend{} } +func (m *SlowTrend) String() string { return proto.CompactTextString(m) } +func (*SlowTrend) ProtoMessage() {} +func (*SlowTrend) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{65} +} +func (m *SlowTrend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SlowTrend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SlowTrend.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 *SlowTrend) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlowTrend.Merge(m, src) +} +func (m *SlowTrend) XXX_Size() int { + return m.Size() +} +func (m *SlowTrend) XXX_DiscardUnknown() { + xxx_messageInfo_SlowTrend.DiscardUnknown(m) } -func (m *SlowTrend) Reset() { *m = SlowTrend{} } -func (m *SlowTrend) String() string { return proto.CompactTextString(m) } -func (*SlowTrend) ProtoMessage() {} -func (*SlowTrend) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{65} } +var xxx_messageInfo_SlowTrend proto.InternalMessageInfo func (m *SlowTrend) GetCauseValue() float64 { if m != nil { @@ -2712,13 +4646,44 @@ type SnapshotStat struct { // Total duration include waiting and executing duration TotalDurationSec uint64 `protobuf:"varint,4,opt,name=total_duration_sec,json=totalDurationSec,proto3" json:"total_duration_sec,omitempty"` // Size is the transport data size - TransportSize uint64 `protobuf:"varint,5,opt,name=transport_size,json=transportSize,proto3" json:"transport_size,omitempty"` + TransportSize uint64 `protobuf:"varint,5,opt,name=transport_size,json=transportSize,proto3" json:"transport_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotStat) Reset() { *m = SnapshotStat{} } +func (m *SnapshotStat) String() string { return proto.CompactTextString(m) } +func (*SnapshotStat) ProtoMessage() {} +func (*SnapshotStat) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{66} +} +func (m *SnapshotStat) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotStat.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 *SnapshotStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotStat.Merge(m, src) +} +func (m *SnapshotStat) XXX_Size() int { + return m.Size() +} +func (m *SnapshotStat) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotStat.DiscardUnknown(m) } -func (m *SnapshotStat) Reset() { *m = SnapshotStat{} } -func (m *SnapshotStat) String() string { return proto.CompactTextString(m) } -func (*SnapshotStat) ProtoMessage() {} -func (*SnapshotStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{66} } +var xxx_messageInfo_SnapshotStat proto.InternalMessageInfo func (m *SnapshotStat) GetRegionId() uint64 { if m != nil { @@ -2756,17 +4721,48 @@ func (m *SnapshotStat) GetTransportSize() uint64 { } type PeerReport struct { - RaftState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_state,json=raftState" json:"raft_state,omitempty"` - RegionState *raft_serverpb.RegionLocalState `protobuf:"bytes,2,opt,name=region_state,json=regionState" json:"region_state,omitempty"` + RaftState *raft_serverpb.RaftLocalState `protobuf:"bytes,1,opt,name=raft_state,json=raftState,proto3" json:"raft_state,omitempty"` + RegionState *raft_serverpb.RegionLocalState `protobuf:"bytes,2,opt,name=region_state,json=regionState,proto3" json:"region_state,omitempty"` IsForceLeader bool `protobuf:"varint,3,opt,name=is_force_leader,json=isForceLeader,proto3" json:"is_force_leader,omitempty"` // The peer has proposed but uncommitted commit merge. - HasCommitMerge bool `protobuf:"varint,4,opt,name=has_commit_merge,json=hasCommitMerge,proto3" json:"has_commit_merge,omitempty"` + HasCommitMerge bool `protobuf:"varint,4,opt,name=has_commit_merge,json=hasCommitMerge,proto3" json:"has_commit_merge,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PeerReport) Reset() { *m = PeerReport{} } +func (m *PeerReport) String() string { return proto.CompactTextString(m) } +func (*PeerReport) ProtoMessage() {} +func (*PeerReport) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{67} +} +func (m *PeerReport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PeerReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PeerReport.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 *PeerReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerReport.Merge(m, src) +} +func (m *PeerReport) XXX_Size() int { + return m.Size() +} +func (m *PeerReport) XXX_DiscardUnknown() { + xxx_messageInfo_PeerReport.DiscardUnknown(m) } -func (m *PeerReport) Reset() { *m = PeerReport{} } -func (m *PeerReport) String() string { return proto.CompactTextString(m) } -func (*PeerReport) ProtoMessage() {} -func (*PeerReport) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{67} } +var xxx_messageInfo_PeerReport proto.InternalMessageInfo func (m *PeerReport) GetRaftState() *raft_serverpb.RaftLocalState { if m != nil { @@ -2797,14 +4793,45 @@ func (m *PeerReport) GetHasCommitMerge() bool { } type StoreReport struct { - PeerReports []*PeerReport `protobuf:"bytes,1,rep,name=peer_reports,json=peerReports" json:"peer_reports,omitempty"` - Step uint64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` + PeerReports []*PeerReport `protobuf:"bytes,1,rep,name=peer_reports,json=peerReports,proto3" json:"peer_reports,omitempty"` + Step uint64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreReport) Reset() { *m = StoreReport{} } +func (m *StoreReport) String() string { return proto.CompactTextString(m) } +func (*StoreReport) ProtoMessage() {} +func (*StoreReport) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{68} +} +func (m *StoreReport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreReport.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 *StoreReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreReport.Merge(m, src) +} +func (m *StoreReport) XXX_Size() int { + return m.Size() +} +func (m *StoreReport) XXX_DiscardUnknown() { + xxx_messageInfo_StoreReport.DiscardUnknown(m) } -func (m *StoreReport) Reset() { *m = StoreReport{} } -func (m *StoreReport) String() string { return proto.CompactTextString(m) } -func (*StoreReport) ProtoMessage() {} -func (*StoreReport) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{68} } +var xxx_messageInfo_StoreReport proto.InternalMessageInfo func (m *StoreReport) GetPeerReports() []*PeerReport { if m != nil { @@ -2821,17 +4848,48 @@ func (m *StoreReport) GetStep() uint64 { } type StoreHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Stats *StoreStats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stats *StoreStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` // Detailed store report that is only filled up on PD's demand for online unsafe recovery. - StoreReport *StoreReport `protobuf:"bytes,3,opt,name=store_report,json=storeReport" json:"store_report,omitempty"` - DrAutosyncStatus *replication_modepb.StoreDRAutoSyncStatus `protobuf:"bytes,4,opt,name=dr_autosync_status,json=drAutosyncStatus" json:"dr_autosync_status,omitempty"` + StoreReport *StoreReport `protobuf:"bytes,3,opt,name=store_report,json=storeReport,proto3" json:"store_report,omitempty"` + DrAutosyncStatus *replication_modepb.StoreDRAutoSyncStatus `protobuf:"bytes,4,opt,name=dr_autosync_status,json=drAutosyncStatus,proto3" json:"dr_autosync_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } +func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } +func (*StoreHeartbeatRequest) ProtoMessage() {} +func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{69} +} +func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreHeartbeatRequest.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 *StoreHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatRequest.Merge(m, src) +} +func (m *StoreHeartbeatRequest) XXX_Size() int { + return m.Size() +} +func (m *StoreHeartbeatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StoreHeartbeatRequest.DiscardUnknown(m) } -func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } -func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } -func (*StoreHeartbeatRequest) ProtoMessage() {} -func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{69} } +var xxx_messageInfo_StoreHeartbeatRequest proto.InternalMessageInfo func (m *StoreHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -2862,14 +4920,45 @@ func (m *StoreHeartbeatRequest) GetDrAutosyncStatus() *replication_modepb.StoreD } type DemoteFailedVoters struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FailedVoters []*metapb.Peer `protobuf:"bytes,2,rep,name=failed_voters,json=failedVoters" json:"failed_voters,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + FailedVoters []*metapb.Peer `protobuf:"bytes,2,rep,name=failed_voters,json=failedVoters,proto3" json:"failed_voters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DemoteFailedVoters) Reset() { *m = DemoteFailedVoters{} } +func (m *DemoteFailedVoters) String() string { return proto.CompactTextString(m) } +func (*DemoteFailedVoters) ProtoMessage() {} +func (*DemoteFailedVoters) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{70} +} +func (m *DemoteFailedVoters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DemoteFailedVoters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DemoteFailedVoters.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 *DemoteFailedVoters) XXX_Merge(src proto.Message) { + xxx_messageInfo_DemoteFailedVoters.Merge(m, src) +} +func (m *DemoteFailedVoters) XXX_Size() int { + return m.Size() +} +func (m *DemoteFailedVoters) XXX_DiscardUnknown() { + xxx_messageInfo_DemoteFailedVoters.DiscardUnknown(m) } -func (m *DemoteFailedVoters) Reset() { *m = DemoteFailedVoters{} } -func (m *DemoteFailedVoters) String() string { return proto.CompactTextString(m) } -func (*DemoteFailedVoters) ProtoMessage() {} -func (*DemoteFailedVoters) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{70} } +var xxx_messageInfo_DemoteFailedVoters proto.InternalMessageInfo func (m *DemoteFailedVoters) GetRegionId() uint64 { if m != nil { @@ -2887,15 +4976,46 @@ func (m *DemoteFailedVoters) GetFailedVoters() []*metapb.Peer { type ForceLeader struct { // The store ids of the failed stores, TiKV uses it to decide if a peer is alive. - FailedStores []uint64 `protobuf:"varint,1,rep,packed,name=failed_stores,json=failedStores" json:"failed_stores,omitempty"` + FailedStores []uint64 `protobuf:"varint,1,rep,packed,name=failed_stores,json=failedStores,proto3" json:"failed_stores,omitempty"` // The region ids of the peer which is to be force leader. - EnterForceLeaders []uint64 `protobuf:"varint,2,rep,packed,name=enter_force_leaders,json=enterForceLeaders" json:"enter_force_leaders,omitempty"` + EnterForceLeaders []uint64 `protobuf:"varint,2,rep,packed,name=enter_force_leaders,json=enterForceLeaders,proto3" json:"enter_force_leaders,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ForceLeader) Reset() { *m = ForceLeader{} } +func (m *ForceLeader) String() string { return proto.CompactTextString(m) } +func (*ForceLeader) ProtoMessage() {} +func (*ForceLeader) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{71} +} +func (m *ForceLeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ForceLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ForceLeader.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 *ForceLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ForceLeader.Merge(m, src) +} +func (m *ForceLeader) XXX_Size() int { + return m.Size() +} +func (m *ForceLeader) XXX_DiscardUnknown() { + xxx_messageInfo_ForceLeader.DiscardUnknown(m) } -func (m *ForceLeader) Reset() { *m = ForceLeader{} } -func (m *ForceLeader) String() string { return proto.CompactTextString(m) } -func (*ForceLeader) ProtoMessage() {} -func (*ForceLeader) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{71} } +var xxx_messageInfo_ForceLeader proto.InternalMessageInfo func (m *ForceLeader) GetFailedStores() []uint64 { if m != nil { @@ -2913,24 +5033,55 @@ func (m *ForceLeader) GetEnterForceLeaders() []uint64 { type RecoveryPlan struct { // Create empty regions to fill the key range hole. - Creates []*metapb.Region `protobuf:"bytes,1,rep,name=creates" json:"creates,omitempty"` + Creates []*metapb.Region `protobuf:"bytes,1,rep,name=creates,proto3" json:"creates,omitempty"` // Update the meta of the regions, including peer lists, epoch and key range. - Updates []*metapb.Region `protobuf:"bytes,2,rep,name=updates" json:"updates,omitempty"` + Updates []*metapb.Region `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // Deprecated: Do not use. // Tombstone the peers on the store locally. - Tombstones []uint64 `protobuf:"varint,3,rep,packed,name=tombstones" json:"tombstones,omitempty"` + Tombstones []uint64 `protobuf:"varint,3,rep,packed,name=tombstones,proto3" json:"tombstones,omitempty"` // Issue conf change that demote voters on failed stores to learners on the regions. - Demotes []*DemoteFailedVoters `protobuf:"bytes,4,rep,name=demotes" json:"demotes,omitempty"` + Demotes []*DemoteFailedVoters `protobuf:"bytes,4,rep,name=demotes,proto3" json:"demotes,omitempty"` // Make the peers to be force leaders. - ForceLeader *ForceLeader `protobuf:"bytes,5,opt,name=force_leader,json=forceLeader" json:"force_leader,omitempty"` + ForceLeader *ForceLeader `protobuf:"bytes,5,opt,name=force_leader,json=forceLeader,proto3" json:"force_leader,omitempty"` // Step is an increasing number to note the round of recovery, // It should be filled in the corresponding store report. - Step uint64 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` + Step uint64 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } +func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } +func (*RecoveryPlan) ProtoMessage() {} +func (*RecoveryPlan) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{72} +} +func (m *RecoveryPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoveryPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoveryPlan.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 *RecoveryPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoveryPlan.Merge(m, src) +} +func (m *RecoveryPlan) XXX_Size() int { + return m.Size() +} +func (m *RecoveryPlan) XXX_DiscardUnknown() { + xxx_messageInfo_RecoveryPlan.DiscardUnknown(m) } -func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } -func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } -func (*RecoveryPlan) ProtoMessage() {} -func (*RecoveryPlan) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{72} } +var xxx_messageInfo_RecoveryPlan proto.InternalMessageInfo func (m *RecoveryPlan) GetCreates() []*metapb.Region { if m != nil { @@ -2939,6 +5090,7 @@ func (m *RecoveryPlan) GetCreates() []*metapb.Region { return nil } +// Deprecated: Do not use. func (m *RecoveryPlan) GetUpdates() []*metapb.Region { if m != nil { return m.Updates @@ -2976,13 +5128,44 @@ func (m *RecoveryPlan) GetStep() uint64 { type AwakenRegions struct { // Awake all regions if abnormal_stores is empty. - AbnormalStores []uint64 `protobuf:"varint,1,rep,packed,name=abnormal_stores,json=abnormalStores" json:"abnormal_stores,omitempty"` + AbnormalStores []uint64 `protobuf:"varint,1,rep,packed,name=abnormal_stores,json=abnormalStores,proto3" json:"abnormal_stores,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AwakenRegions) Reset() { *m = AwakenRegions{} } +func (m *AwakenRegions) String() string { return proto.CompactTextString(m) } +func (*AwakenRegions) ProtoMessage() {} +func (*AwakenRegions) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{73} +} +func (m *AwakenRegions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AwakenRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AwakenRegions.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 *AwakenRegions) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwakenRegions.Merge(m, src) +} +func (m *AwakenRegions) XXX_Size() int { + return m.Size() +} +func (m *AwakenRegions) XXX_DiscardUnknown() { + xxx_messageInfo_AwakenRegions.DiscardUnknown(m) } -func (m *AwakenRegions) Reset() { *m = AwakenRegions{} } -func (m *AwakenRegions) String() string { return proto.CompactTextString(m) } -func (*AwakenRegions) ProtoMessage() {} -func (*AwakenRegions) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{73} } +var xxx_messageInfo_AwakenRegions proto.InternalMessageInfo func (m *AwakenRegions) GetAbnormalStores() []uint64 { if m != nil { @@ -2992,13 +5175,44 @@ func (m *AwakenRegions) GetAbnormalStores() []uint64 { } type ControlGrpc struct { - CtrlEvent ControlGrpcEvent `protobuf:"varint,1,opt,name=ctrl_event,json=ctrlEvent,proto3,enum=pdpb.ControlGrpcEvent" json:"ctrl_event,omitempty"` + CtrlEvent ControlGrpcEvent `protobuf:"varint,1,opt,name=ctrl_event,json=ctrlEvent,proto3,enum=pdpb.ControlGrpcEvent" json:"ctrl_event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ControlGrpc) Reset() { *m = ControlGrpc{} } +func (m *ControlGrpc) String() string { return proto.CompactTextString(m) } +func (*ControlGrpc) ProtoMessage() {} +func (*ControlGrpc) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{74} +} +func (m *ControlGrpc) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ControlGrpc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ControlGrpc.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 *ControlGrpc) XXX_Merge(src proto.Message) { + xxx_messageInfo_ControlGrpc.Merge(m, src) +} +func (m *ControlGrpc) XXX_Size() int { + return m.Size() +} +func (m *ControlGrpc) XXX_DiscardUnknown() { + xxx_messageInfo_ControlGrpc.DiscardUnknown(m) } -func (m *ControlGrpc) Reset() { *m = ControlGrpc{} } -func (m *ControlGrpc) String() string { return proto.CompactTextString(m) } -func (*ControlGrpc) ProtoMessage() {} -func (*ControlGrpc) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{74} } +var xxx_messageInfo_ControlGrpc proto.InternalMessageInfo func (m *ControlGrpc) GetCtrlEvent() ControlGrpcEvent { if m != nil { @@ -3008,26 +5222,57 @@ func (m *ControlGrpc) GetCtrlEvent() ControlGrpcEvent { } type StoreHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"` ClusterVersion string `protobuf:"bytes,3,opt,name=cluster_version,json=clusterVersion,proto3" json:"cluster_version,omitempty"` // Used by online unsafe recovery to request store report. // Now it's substituted by reusing recovery_plan field. PD will send a empty // recovery plan instead to request store report. - RequireDetailedReport bool `protobuf:"varint,4,opt,name=require_detailed_report,json=requireDetailedReport,proto3" json:"require_detailed_report,omitempty"` + RequireDetailedReport bool `protobuf:"varint,4,opt,name=require_detailed_report,json=requireDetailedReport,proto3" json:"require_detailed_report,omitempty"` // Deprecated: Do not use. // Operations of recovery. After the plan is executed, TiKV should attach the // store report in store heartbeat. - RecoveryPlan *RecoveryPlan `protobuf:"bytes,5,opt,name=recovery_plan,json=recoveryPlan" json:"recovery_plan,omitempty"` + RecoveryPlan *RecoveryPlan `protobuf:"bytes,5,opt,name=recovery_plan,json=recoveryPlan,proto3" json:"recovery_plan,omitempty"` // Pd can return awaken_regions to let TiKV awaken hibernated regions itself. - AwakenRegions *AwakenRegions `protobuf:"bytes,6,opt,name=awaken_regions,json=awakenRegions" json:"awaken_regions,omitempty"` + AwakenRegions *AwakenRegions `protobuf:"bytes,6,opt,name=awaken_regions,json=awakenRegions,proto3" json:"awaken_regions,omitempty"` // Pd can return operations to let TiKV forcely PAUSE | RESUME grpc server. - ControlGrpc *ControlGrpc `protobuf:"bytes,7,opt,name=control_grpc,json=controlGrpc" json:"control_grpc,omitempty"` + ControlGrpc *ControlGrpc `protobuf:"bytes,7,opt,name=control_grpc,json=controlGrpc,proto3" json:"control_grpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} } +func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } +func (*StoreHeartbeatResponse) ProtoMessage() {} +func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{75} +} +func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreHeartbeatResponse.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 *StoreHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatResponse.Merge(m, src) +} +func (m *StoreHeartbeatResponse) XXX_Size() int { + return m.Size() +} +func (m *StoreHeartbeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StoreHeartbeatResponse.DiscardUnknown(m) } -func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} } -func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } -func (*StoreHeartbeatResponse) ProtoMessage() {} -func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{75} } +var xxx_messageInfo_StoreHeartbeatResponse proto.InternalMessageInfo func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3050,6 +5295,7 @@ func (m *StoreHeartbeatResponse) GetClusterVersion() string { return "" } +// Deprecated: Do not use. func (m *StoreHeartbeatResponse) GetRequireDetailedReport() bool { if m != nil { return m.RequireDetailedReport @@ -3079,25 +5325,56 @@ func (m *StoreHeartbeatResponse) GetControlGrpc() *ControlGrpc { } type ScatterRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + 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"` // Deprecated: Do not use. // PD will use these region information if it can't find the region. // For example, the region is just split and hasn't report to PD yet. - Region *metapb.Region `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,4,opt,name=leader" json:"leader,omitempty"` + Region *metapb.Region `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,4,opt,name=leader,proto3" json:"leader,omitempty"` // If group is defined, the regions with the same group would be scattered as a whole group. // If not defined, the regions would be scattered in a cluster level. Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"` // If regions_id is defined, the region_id would be ignored. - RegionsId []uint64 `protobuf:"varint,6,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` - RetryLimit uint64 `protobuf:"varint,7,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` - SkipStoreLimit bool `protobuf:"varint,8,opt,name=skip_store_limit,json=skipStoreLimit,proto3" json:"skip_store_limit,omitempty"` + RegionsId []uint64 `protobuf:"varint,6,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` + RetryLimit uint64 `protobuf:"varint,7,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` + SkipStoreLimit bool `protobuf:"varint,8,opt,name=skip_store_limit,json=skipStoreLimit,proto3" json:"skip_store_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } +func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } +func (*ScatterRegionRequest) ProtoMessage() {} +func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{76} +} +func (m *ScatterRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScatterRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScatterRegionRequest.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 *ScatterRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionRequest.Merge(m, src) +} +func (m *ScatterRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *ScatterRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScatterRegionRequest.DiscardUnknown(m) } -func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } -func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } -func (*ScatterRegionRequest) ProtoMessage() {} -func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{76} } +var xxx_messageInfo_ScatterRegionRequest proto.InternalMessageInfo func (m *ScatterRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -3106,6 +5383,7 @@ func (m *ScatterRegionRequest) GetHeader() *RequestHeader { return nil } +// Deprecated: Do not use. func (m *ScatterRegionRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -3156,15 +5434,46 @@ func (m *ScatterRegionRequest) GetSkipStoreLimit() bool { } type ScatterRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - FinishedPercentage uint64 `protobuf:"varint,2,opt,name=finished_percentage,json=finishedPercentage,proto3" json:"finished_percentage,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } +func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } +func (*ScatterRegionResponse) ProtoMessage() {} +func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{77} +} +func (m *ScatterRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScatterRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ScatterRegionResponse.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 *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } -func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } -func (*ScatterRegionResponse) ProtoMessage() {} -func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{77} } - +func (m *ScatterRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionResponse.Merge(m, src) +} +func (m *ScatterRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *ScatterRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScatterRegionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ScatterRegionResponse proto.InternalMessageInfo + func (m *ScatterRegionResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -3180,13 +5489,44 @@ func (m *ScatterRegionResponse) GetFinishedPercentage() uint64 { } type GetGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } +func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointRequest) ProtoMessage() {} +func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{78} +} +func (m *GetGCSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGCSafePointRequest.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 *GetGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointRequest.Merge(m, src) +} +func (m *GetGCSafePointRequest) XXX_Size() int { + return m.Size() +} +func (m *GetGCSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCSafePointRequest.DiscardUnknown(m) } -func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } -func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointRequest) ProtoMessage() {} -func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{78} } +var xxx_messageInfo_GetGCSafePointRequest proto.InternalMessageInfo func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -3196,14 +5536,45 @@ func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { } type GetGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Header *ResponseHeader `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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} } +func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointResponse) ProtoMessage() {} +func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{79} +} +func (m *GetGCSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGCSafePointResponse.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 *GetGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointResponse.Merge(m, src) +} +func (m *GetGCSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *GetGCSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCSafePointResponse.DiscardUnknown(m) } -func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} } -func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointResponse) ProtoMessage() {} -func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{79} } +var xxx_messageInfo_GetGCSafePointResponse proto.InternalMessageInfo func (m *GetGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3220,14 +5591,45 @@ func (m *GetGCSafePointResponse) GetSafePoint() uint64 { } type UpdateGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{80} +} +func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointRequest.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 *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointRequest.Merge(m, src) +} +func (m *UpdateGCSafePointRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateGCSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointRequest.DiscardUnknown(m) } -func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } -func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointRequest) ProtoMessage() {} -func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{80} } +var xxx_messageInfo_UpdateGCSafePointRequest proto.InternalMessageInfo func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -3244,14 +5646,45 @@ func (m *UpdateGCSafePointRequest) GetSafePoint() uint64 { } type UpdateGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` + NewSafePoint uint64 `protobuf:"varint,2,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } +func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointResponse) ProtoMessage() {} +func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{81} +} +func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointResponse.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 *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointResponse.Merge(m, src) +} +func (m *UpdateGCSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateGCSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointResponse.DiscardUnknown(m) } -func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } -func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointResponse) ProtoMessage() {} -func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{81} } +var xxx_messageInfo_UpdateGCSafePointResponse proto.InternalMessageInfo func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3268,18 +5701,47 @@ func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { } type UpdateServiceGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` - SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` + SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceGCSafePointRequest) Reset() { *m = UpdateServiceGCSafePointRequest{} } func (m *UpdateServiceGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointRequest) ProtoMessage() {} func (*UpdateServiceGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{82} + return fileDescriptor_78b27e6f04f44c6e, []int{82} +} +func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateServiceGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceGCSafePointRequest.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 *UpdateServiceGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceGCSafePointRequest.Merge(m, src) +} +func (m *UpdateServiceGCSafePointRequest) XXX_Size() int { + return m.Size() } +func (m *UpdateServiceGCSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceGCSafePointRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateServiceGCSafePointRequest proto.InternalMessageInfo func (m *UpdateServiceGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -3310,19 +5772,48 @@ func (m *UpdateServiceGCSafePointRequest) GetSafePoint() uint64 { } type UpdateServiceGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` - MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` + MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceGCSafePointResponse) Reset() { *m = UpdateServiceGCSafePointResponse{} } func (m *UpdateServiceGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointResponse) ProtoMessage() {} func (*UpdateServiceGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{83} + return fileDescriptor_78b27e6f04f44c6e, []int{83} +} +func (m *UpdateServiceGCSafePointResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateServiceGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceGCSafePointResponse.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 *UpdateServiceGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceGCSafePointResponse.Merge(m, src) +} +func (m *UpdateServiceGCSafePointResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateServiceGCSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceGCSafePointResponse.DiscardUnknown(m) } +var xxx_messageInfo_UpdateServiceGCSafePointResponse proto.InternalMessageInfo + func (m *UpdateServiceGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -3352,14 +5843,45 @@ func (m *UpdateServiceGCSafePointResponse) GetMinSafePoint() uint64 { } type GetGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{84} +} +func (m *GetGCSafePointV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGCSafePointV2Request.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 *GetGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointV2Request.Merge(m, src) +} +func (m *GetGCSafePointV2Request) XXX_Size() int { + return m.Size() +} +func (m *GetGCSafePointV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCSafePointV2Request.DiscardUnknown(m) } -func (m *GetGCSafePointV2Request) Reset() { *m = GetGCSafePointV2Request{} } -func (m *GetGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointV2Request) ProtoMessage() {} -func (*GetGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{84} } +var xxx_messageInfo_GetGCSafePointV2Request proto.InternalMessageInfo func (m *GetGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -3376,14 +5898,45 @@ func (m *GetGCSafePointV2Request) GetKeyspaceId() uint32 { } type GetGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Header *ResponseHeader `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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Response{} } +func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } +func (*GetGCSafePointV2Response) ProtoMessage() {} +func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{85} +} +func (m *GetGCSafePointV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetGCSafePointV2Response.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 *GetGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointV2Response.Merge(m, src) +} +func (m *GetGCSafePointV2Response) XXX_Size() int { + return m.Size() +} +func (m *GetGCSafePointV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCSafePointV2Response.DiscardUnknown(m) } -func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Response{} } -func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } -func (*GetGCSafePointV2Response) ProtoMessage() {} -func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{85} } +var xxx_messageInfo_GetGCSafePointV2Response proto.InternalMessageInfo func (m *GetGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -3400,14 +5953,45 @@ func (m *GetGCSafePointV2Response) GetSafePoint() uint64 { } type WatchGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Request{} } +func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*WatchGCSafePointV2Request) ProtoMessage() {} +func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{86} +} +func (m *WatchGCSafePointV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchGCSafePointV2Request.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 *WatchGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGCSafePointV2Request.Merge(m, src) +} +func (m *WatchGCSafePointV2Request) XXX_Size() int { + return m.Size() +} +func (m *WatchGCSafePointV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_WatchGCSafePointV2Request.DiscardUnknown(m) } -func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Request{} } -func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*WatchGCSafePointV2Request) ProtoMessage() {} -func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{86} } +var xxx_messageInfo_WatchGCSafePointV2Request proto.InternalMessageInfo func (m *WatchGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -3425,15 +6009,46 @@ func (m *WatchGCSafePointV2Request) GetRevision() int64 { // SafePointEvent is for the rpc WatchGCSafePointV2. type SafePointEvent struct { - KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` - Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=pdpb.EventType" json:"type,omitempty"` + KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=pdpb.EventType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{87} +} +func (m *SafePointEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SafePointEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SafePointEvent.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 *SafePointEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SafePointEvent.Merge(m, src) +} +func (m *SafePointEvent) XXX_Size() int { + return m.Size() +} +func (m *SafePointEvent) XXX_DiscardUnknown() { + xxx_messageInfo_SafePointEvent.DiscardUnknown(m) } -func (m *SafePointEvent) Reset() { *m = SafePointEvent{} } -func (m *SafePointEvent) String() string { return proto.CompactTextString(m) } -func (*SafePointEvent) ProtoMessage() {} -func (*SafePointEvent) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{87} } +var xxx_messageInfo_SafePointEvent proto.InternalMessageInfo func (m *SafePointEvent) GetKeyspaceId() uint32 { if m != nil { @@ -3457,15 +6072,46 @@ func (m *SafePointEvent) GetType() EventType { } type WatchGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Events []*SafePointEvent `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Events []*SafePointEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Response{} } +func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } +func (*WatchGCSafePointV2Response) ProtoMessage() {} +func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{88} +} +func (m *WatchGCSafePointV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WatchGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WatchGCSafePointV2Response.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 *WatchGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGCSafePointV2Response.Merge(m, src) +} +func (m *WatchGCSafePointV2Response) XXX_Size() int { + return m.Size() +} +func (m *WatchGCSafePointV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_WatchGCSafePointV2Response.DiscardUnknown(m) } -func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Response{} } -func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } -func (*WatchGCSafePointV2Response) ProtoMessage() {} -func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{88} } +var xxx_messageInfo_WatchGCSafePointV2Response proto.InternalMessageInfo func (m *WatchGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -3489,15 +6135,46 @@ func (m *WatchGCSafePointV2Response) GetRevision() int64 { } type UpdateGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + 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"` + SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2Request{} } +func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*UpdateGCSafePointV2Request) ProtoMessage() {} +func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{89} +} +func (m *UpdateGCSafePointV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointV2Request.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 *UpdateGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointV2Request.Merge(m, src) +} +func (m *UpdateGCSafePointV2Request) XXX_Size() int { + return m.Size() +} +func (m *UpdateGCSafePointV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointV2Request.DiscardUnknown(m) } -func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2Request{} } -func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*UpdateGCSafePointV2Request) ProtoMessage() {} -func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{89} } +var xxx_messageInfo_UpdateGCSafePointV2Request proto.InternalMessageInfo func (m *UpdateGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -3521,16 +6198,45 @@ func (m *UpdateGCSafePointV2Request) GetSafePoint() uint64 { } type UpdateGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` + NewSafePoint uint64 `protobuf:"varint,2,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateGCSafePointV2Response) Reset() { *m = UpdateGCSafePointV2Response{} } func (m *UpdateGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Response) ProtoMessage() {} func (*UpdateGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{90} + return fileDescriptor_78b27e6f04f44c6e, []int{90} +} +func (m *UpdateGCSafePointV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGCSafePointV2Response.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 *UpdateGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointV2Response.Merge(m, src) +} +func (m *UpdateGCSafePointV2Response) XXX_Size() int { + return m.Size() } +func (m *UpdateGCSafePointV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGCSafePointV2Response.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateGCSafePointV2Response proto.InternalMessageInfo func (m *UpdateGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -3547,7 +6253,7 @@ func (m *UpdateGCSafePointV2Response) GetNewSafePoint() uint64 { } type UpdateServiceSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + 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"` ServiceId []byte `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` SafePoint uint64 `protobuf:"varint,4,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` @@ -3556,16 +6262,45 @@ type UpdateServiceSafePointV2Request struct { // pass in MAX_INT64 to set a safe point that never expire. // This should be set by component that may crash unexpectedly so that it doesn't block // cluster garbage collection. - Ttl int64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + Ttl int64 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceSafePointV2Request) Reset() { *m = UpdateServiceSafePointV2Request{} } func (m *UpdateServiceSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Request) ProtoMessage() {} func (*UpdateServiceSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{91} + return fileDescriptor_78b27e6f04f44c6e, []int{91} +} +func (m *UpdateServiceSafePointV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateServiceSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceSafePointV2Request.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 *UpdateServiceSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointV2Request.Merge(m, src) +} +func (m *UpdateServiceSafePointV2Request) XXX_Size() int { + return m.Size() +} +func (m *UpdateServiceSafePointV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceSafePointV2Request.DiscardUnknown(m) } +var xxx_messageInfo_UpdateServiceSafePointV2Request proto.InternalMessageInfo + func (m *UpdateServiceSafePointV2Request) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -3602,18 +6337,47 @@ func (m *UpdateServiceSafePointV2Request) GetTtl() int64 { } type UpdateServiceSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` - Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` - MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ServiceId []byte `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` + Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` + MinSafePoint uint64 `protobuf:"varint,4,opt,name=min_safe_point,json=minSafePoint,proto3" json:"min_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateServiceSafePointV2Response) Reset() { *m = UpdateServiceSafePointV2Response{} } func (m *UpdateServiceSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Response) ProtoMessage() {} func (*UpdateServiceSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{92} + return fileDescriptor_78b27e6f04f44c6e, []int{92} +} +func (m *UpdateServiceSafePointV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *UpdateServiceSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateServiceSafePointV2Response.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 *UpdateServiceSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointV2Response.Merge(m, src) +} +func (m *UpdateServiceSafePointV2Response) XXX_Size() int { + return m.Size() +} +func (m *UpdateServiceSafePointV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateServiceSafePointV2Response.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateServiceSafePointV2Response proto.InternalMessageInfo func (m *UpdateServiceSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -3644,13 +6408,44 @@ func (m *UpdateServiceSafePointV2Response) GetMinSafePoint() uint64 { } type GetAllGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2Request{} } +func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } +func (*GetAllGCSafePointV2Request) ProtoMessage() {} +func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{93} +} +func (m *GetAllGCSafePointV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllGCSafePointV2Request.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 *GetAllGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllGCSafePointV2Request.Merge(m, src) +} +func (m *GetAllGCSafePointV2Request) XXX_Size() int { + return m.Size() +} +func (m *GetAllGCSafePointV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllGCSafePointV2Request.DiscardUnknown(m) } -func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2Request{} } -func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } -func (*GetAllGCSafePointV2Request) ProtoMessage() {} -func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{93} } +var xxx_messageInfo_GetAllGCSafePointV2Request proto.InternalMessageInfo func (m *GetAllGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -3660,14 +6455,45 @@ func (m *GetAllGCSafePointV2Request) GetHeader() *RequestHeader { } type GCSafePointV2 struct { - KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + GcSafePoint uint64 `protobuf:"varint,2,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{94} +} +func (m *GCSafePointV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GCSafePointV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GCSafePointV2.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 *GCSafePointV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCSafePointV2.Merge(m, src) +} +func (m *GCSafePointV2) XXX_Size() int { + return m.Size() +} +func (m *GCSafePointV2) XXX_DiscardUnknown() { + xxx_messageInfo_GCSafePointV2.DiscardUnknown(m) } -func (m *GCSafePointV2) Reset() { *m = GCSafePointV2{} } -func (m *GCSafePointV2) String() string { return proto.CompactTextString(m) } -func (*GCSafePointV2) ProtoMessage() {} -func (*GCSafePointV2) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{94} } +var xxx_messageInfo_GCSafePointV2 proto.InternalMessageInfo func (m *GCSafePointV2) GetKeyspaceId() uint32 { if m != nil { @@ -3684,18 +6510,47 @@ func (m *GCSafePointV2) GetGcSafePoint() uint64 { } type GetAllGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - GcSafePoints []*GCSafePointV2 `protobuf:"bytes,2,rep,name=gc_safe_points,json=gcSafePoints" json:"gc_safe_points,omitempty"` - Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + GcSafePoints []*GCSafePointV2 `protobuf:"bytes,2,rep,name=gc_safe_points,json=gcSafePoints,proto3" json:"gc_safe_points,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetAllGCSafePointV2Response) Reset() { *m = GetAllGCSafePointV2Response{} } func (m *GetAllGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Response) ProtoMessage() {} func (*GetAllGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{95} + return fileDescriptor_78b27e6f04f44c6e, []int{95} +} +func (m *GetAllGCSafePointV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAllGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAllGCSafePointV2Response.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 *GetAllGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllGCSafePointV2Response.Merge(m, src) +} +func (m *GetAllGCSafePointV2Response) XXX_Size() int { + return m.Size() +} +func (m *GetAllGCSafePointV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_GetAllGCSafePointV2Response.DiscardUnknown(m) } +var xxx_messageInfo_GetAllGCSafePointV2Response proto.InternalMessageInfo + func (m *GetAllGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -3722,14 +6577,45 @@ type RegionStat struct { 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{96} +} +func (m *RegionStat) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionStat.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 *RegionStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionStat.Merge(m, src) +} +func (m *RegionStat) XXX_Size() int { + return m.Size() +} +func (m *RegionStat) XXX_DiscardUnknown() { + xxx_messageInfo_RegionStat.DiscardUnknown(m) } -func (m *RegionStat) Reset() { *m = RegionStat{} } -func (m *RegionStat) String() string { return proto.CompactTextString(m) } -func (*RegionStat) ProtoMessage() {} -func (*RegionStat) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{96} } +var xxx_messageInfo_RegionStat proto.InternalMessageInfo func (m *RegionStat) GetBytesWritten() uint64 { if m != nil { @@ -3760,17 +6646,48 @@ func (m *RegionStat) GetKeysRead() uint64 { } type SyncRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Member *Member `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"` + 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"` + StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{97} +} +func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SyncRegionRequest.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 *SyncRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionRequest.Merge(m, src) +} +func (m *SyncRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *SyncRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SyncRegionRequest.DiscardUnknown(m) } -func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } -func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } -func (*SyncRegionRequest) ProtoMessage() {} -func (*SyncRegionRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{97} } +var xxx_messageInfo_SyncRegionRequest proto.InternalMessageInfo func (m *SyncRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -3794,13 +6711,44 @@ func (m *SyncRegionRequest) GetStartIndex() uint64 { } type PeersStats struct { - Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` + Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{98} +} +func (m *PeersStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PeersStats.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 *PeersStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeersStats.Merge(m, src) +} +func (m *PeersStats) XXX_Size() int { + return m.Size() +} +func (m *PeersStats) XXX_DiscardUnknown() { + xxx_messageInfo_PeersStats.DiscardUnknown(m) } -func (m *PeersStats) Reset() { *m = PeersStats{} } -func (m *PeersStats) String() string { return proto.CompactTextString(m) } -func (*PeersStats) ProtoMessage() {} -func (*PeersStats) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{98} } +var xxx_messageInfo_PeersStats proto.InternalMessageInfo func (m *PeersStats) GetPeers() []*PeerStats { if m != nil { @@ -3810,13 +6758,44 @@ func (m *PeersStats) GetPeers() []*PeerStats { } type Peers struct { - Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{99} +} +func (m *Peers) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Peers.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 *Peers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peers.Merge(m, src) +} +func (m *Peers) XXX_Size() int { + return m.Size() +} +func (m *Peers) XXX_DiscardUnknown() { + xxx_messageInfo_Peers.DiscardUnknown(m) } -func (m *Peers) Reset() { *m = Peers{} } -func (m *Peers) String() string { return proto.CompactTextString(m) } -func (*Peers) ProtoMessage() {} -func (*Peers) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{99} } +var xxx_messageInfo_Peers proto.InternalMessageInfo func (m *Peers) GetPeers() []*metapb.Peer { if m != nil { @@ -3826,23 +6805,54 @@ func (m *Peers) GetPeers() []*metapb.Peer { } type SyncRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + 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" json:"regions,omitempty"` + 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" json:"region_stats,omitempty"` - RegionLeaders []*metapb.Peer `protobuf:"bytes,5,rep,name=region_leaders,json=regionLeaders" json:"region_leaders,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" json:"buckets,omitempty"` - DownPeers []*PeersStats `protobuf:"bytes,16,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` - PendingPeers []*Peers `protobuf:"bytes,17,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{100} +} +func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SyncRegionResponse.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 *SyncRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionResponse.Merge(m, src) +} +func (m *SyncRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *SyncRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SyncRegionResponse.DiscardUnknown(m) } -func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } -func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } -func (*SyncRegionResponse) ProtoMessage() {} -func (*SyncRegionResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{100} } +var xxx_messageInfo_SyncRegionResponse proto.InternalMessageInfo func (m *SyncRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3901,14 +6911,45 @@ func (m *SyncRegionResponse) GetPendingPeers() []*Peers { } type GetOperatorRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{101} +} +func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetOperatorRequest.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 *GetOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorRequest.Merge(m, src) +} +func (m *GetOperatorRequest) XXX_Size() int { + return m.Size() +} +func (m *GetOperatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperatorRequest.DiscardUnknown(m) } -func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } -func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } -func (*GetOperatorRequest) ProtoMessage() {} -func (*GetOperatorRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{101} } +var xxx_messageInfo_GetOperatorRequest proto.InternalMessageInfo func (m *GetOperatorRequest) GetHeader() *RequestHeader { if m != nil { @@ -3925,17 +6966,48 @@ func (m *GetOperatorRequest) GetRegionId() uint64 { } type GetOperatorResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{102} +} +func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetOperatorResponse.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 *GetOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorResponse.Merge(m, src) +} +func (m *GetOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *GetOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperatorResponse.DiscardUnknown(m) } -func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } -func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } -func (*GetOperatorResponse) ProtoMessage() {} -func (*GetOperatorResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{102} } +var xxx_messageInfo_GetOperatorResponse proto.InternalMessageInfo func (m *GetOperatorResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3973,16 +7045,47 @@ func (m *GetOperatorResponse) GetKind() []byte { } type SyncMaxTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - MaxTs *Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs" json:"max_ts,omitempty"` + 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"` + SkipCheck bool `protobuf:"varint,3,opt,name=skip_check,json=skipCheck,proto3" json:"skip_check,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{103} +} +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_SyncMaxTSRequest.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 *SyncMaxTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSRequest.Merge(m, src) +} +func (m *SyncMaxTSRequest) XXX_Size() int { + return m.Size() +} +func (m *SyncMaxTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SyncMaxTSRequest.DiscardUnknown(m) } -func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } -func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } -func (*SyncMaxTSRequest) ProtoMessage() {} -func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{103} } +var xxx_messageInfo_SyncMaxTSRequest proto.InternalMessageInfo func (m *SyncMaxTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -4006,15 +7109,46 @@ func (m *SyncMaxTSRequest) GetSkipCheck() bool { } type SyncMaxTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - MaxLocalTs *Timestamp `protobuf:"bytes,2,opt,name=max_local_ts,json=maxLocalTs" json:"max_local_ts,omitempty"` - SyncedDcs []string `protobuf:"bytes,3,rep,name=synced_dcs,json=syncedDcs" json:"synced_dcs,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{104} +} +func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SyncMaxTSResponse.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 *SyncMaxTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSResponse.Merge(m, src) +} +func (m *SyncMaxTSResponse) XXX_Size() int { + return m.Size() +} +func (m *SyncMaxTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SyncMaxTSResponse.DiscardUnknown(m) } -func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } -func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } -func (*SyncMaxTSResponse) ProtoMessage() {} -func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{104} } +var xxx_messageInfo_SyncMaxTSResponse proto.InternalMessageInfo func (m *SyncMaxTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4038,15 +7172,46 @@ func (m *SyncMaxTSResponse) GetSyncedDcs() []string { } type SplitRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys" json:"split_keys,omitempty"` - RetryLimit uint64 `protobuf:"varint,3,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{105} +} +func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRegionsRequest.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 *SplitRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsRequest.Merge(m, src) +} +func (m *SplitRegionsRequest) XXX_Size() int { + return m.Size() +} +func (m *SplitRegionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionsRequest.DiscardUnknown(m) } -func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } -func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRegionsRequest) ProtoMessage() {} -func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{105} } +var xxx_messageInfo_SplitRegionsRequest proto.InternalMessageInfo func (m *SplitRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -4070,15 +7235,46 @@ func (m *SplitRegionsRequest) GetRetryLimit() uint64 { } type SplitRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" 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" json:"regions_id,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{106} +} +func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRegionsResponse.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 *SplitRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsResponse.Merge(m, src) +} +func (m *SplitRegionsResponse) XXX_Size() int { + return m.Size() +} +func (m *SplitRegionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionsResponse.DiscardUnknown(m) } -func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } -func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*SplitRegionsResponse) ProtoMessage() {} -func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{106} } +var xxx_messageInfo_SplitRegionsResponse proto.InternalMessageInfo func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4102,18 +7298,47 @@ func (m *SplitRegionsResponse) GetRegionsId() []uint64 { } type SplitAndScatterRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys" 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRegionsRequest{} } func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsRequest) ProtoMessage() {} func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{107} + return fileDescriptor_78b27e6f04f44c6e, []int{107} +} +func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitAndScatterRegionsRequest.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) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsRequest.Merge(m, src) +} +func (m *SplitAndScatterRegionsRequest) XXX_Size() int { + return m.Size() +} +func (m *SplitAndScatterRegionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitAndScatterRegionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SplitAndScatterRegionsRequest proto.InternalMessageInfo func (m *SplitAndScatterRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -4144,19 +7369,48 @@ func (m *SplitAndScatterRegionsRequest) GetRetryLimit() uint64 { } type SplitAndScatterRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + 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" json:"regions_id,omitempty"` + RegionsId []uint64 `protobuf:"varint,4,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterRegionsResponse{} } func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsResponse) ProtoMessage() {} func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{108} + return fileDescriptor_78b27e6f04f44c6e, []int{108} +} +func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitAndScatterRegionsResponse.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) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsResponse.Merge(m, src) +} +func (m *SplitAndScatterRegionsResponse) XXX_Size() int { + return m.Size() +} +func (m *SplitAndScatterRegionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitAndScatterRegionsResponse.DiscardUnknown(m) } +var xxx_messageInfo_SplitAndScatterRegionsResponse proto.InternalMessageInfo + func (m *SplitAndScatterRegionsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -4186,14 +7440,45 @@ func (m *SplitAndScatterRegionsResponse) GetRegionsId() []uint64 { } type GetDCLocationInfoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{109} +} +func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetDCLocationInfoRequest.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 *GetDCLocationInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoRequest.Merge(m, src) +} +func (m *GetDCLocationInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *GetDCLocationInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDCLocationInfoRequest.DiscardUnknown(m) } -func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoRequest{} } -func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetDCLocationInfoRequest) ProtoMessage() {} -func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{109} } +var xxx_messageInfo_GetDCLocationInfoRequest proto.InternalMessageInfo func (m *GetDCLocationInfoRequest) GetHeader() *RequestHeader { if m != nil { @@ -4210,18 +7495,49 @@ func (m *GetDCLocationInfoRequest) GetDcLocation() string { } type GetDCLocationInfoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + 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" json:"max_ts,omitempty"` + MaxTs *Timestamp `protobuf:"bytes,3,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{110} +} +func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetDCLocationInfoResponse.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 *GetDCLocationInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoResponse.Merge(m, src) +} +func (m *GetDCLocationInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *GetDCLocationInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDCLocationInfoResponse.DiscardUnknown(m) } -func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResponse{} } -func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetDCLocationInfoResponse) ProtoMessage() {} -func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{110} } +var xxx_messageInfo_GetDCLocationInfoResponse proto.InternalMessageInfo func (m *GetDCLocationInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4245,23 +7561,54 @@ func (m *GetDCLocationInfoResponse) GetMaxTs() *Timestamp { } 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 fileDescriptorPdpb, []int{111} } + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{111} +} +func (m *QueryStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStats.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 *QueryStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStats.Merge(m, src) +} +func (m *QueryStats) 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 { @@ -4341,15 +7688,46 @@ func (m *QueryStats) GetRollback() uint64 { } type ReportBucketsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` - Buckets *metapb.Buckets `protobuf:"bytes,3,opt,name=buckets" json:"buckets,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{112} +} +func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 + } +} +func (m *ReportBucketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsRequest.Merge(m, src) +} +func (m *ReportBucketsRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportBucketsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBucketsRequest.DiscardUnknown(m) } -func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } -func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } -func (*ReportBucketsRequest) ProtoMessage() {} -func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{112} } +var xxx_messageInfo_ReportBucketsRequest proto.InternalMessageInfo func (m *ReportBucketsRequest) GetHeader() *RequestHeader { if m != nil { @@ -4373,13 +7751,44 @@ func (m *ReportBucketsRequest) GetBuckets() *metapb.Buckets { } type ReportBucketsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{113} +} +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 + } +} +func (m *ReportBucketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsResponse.Merge(m, src) +} +func (m *ReportBucketsResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportBucketsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBucketsResponse.DiscardUnknown(m) } -func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } -func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } -func (*ReportBucketsResponse) ProtoMessage() {} -func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{113} } +var xxx_messageInfo_ReportBucketsResponse proto.InternalMessageInfo func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4389,25 +7798,54 @@ func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { } type ReportMinResolvedTsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ReportMinResolvedTsRequest) Reset() { *m = ReportMinResolvedTsRequest{} } func (m *ReportMinResolvedTsRequest) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsRequest) ProtoMessage() {} func (*ReportMinResolvedTsRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{114} + return fileDescriptor_78b27e6f04f44c6e, []int{114} } - -func (m *ReportMinResolvedTsRequest) GetHeader() *RequestHeader { - if m != nil { - return m.Header - } - return nil +func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - +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 + } +} +func (m *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinResolvedTsRequest.Merge(m, src) +} +func (m *ReportMinResolvedTsRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportMinResolvedTsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMinResolvedTsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReportMinResolvedTsRequest proto.InternalMessageInfo + +func (m *ReportMinResolvedTsRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + func (m *ReportMinResolvedTsRequest) GetStoreId() uint64 { if m != nil { return m.StoreId @@ -4423,16 +7861,45 @@ func (m *ReportMinResolvedTsRequest) GetMinResolvedTs() uint64 { } type ReportMinResolvedTsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ReportMinResolvedTsResponse) Reset() { *m = ReportMinResolvedTsResponse{} } func (m *ReportMinResolvedTsResponse) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsResponse) ProtoMessage() {} func (*ReportMinResolvedTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{115} + return fileDescriptor_78b27e6f04f44c6e, []int{115} +} +func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 + } +} +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) } +var xxx_messageInfo_ReportMinResolvedTsResponse proto.InternalMessageInfo + func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -4441,16 +7908,45 @@ func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { } type SetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetExternalTimestampRequest) Reset() { *m = SetExternalTimestampRequest{} } func (m *SetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampRequest) ProtoMessage() {} func (*SetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{116} + return fileDescriptor_78b27e6f04f44c6e, []int{116} +} +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 *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 { if m != nil { @@ -4467,16 +7963,45 @@ func (m *SetExternalTimestampRequest) GetTimestamp() uint64 { } type SetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetExternalTimestampResponse) Reset() { *m = SetExternalTimestampResponse{} } func (m *SetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampResponse) ProtoMessage() {} func (*SetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{117} + return fileDescriptor_78b27e6f04f44c6e, []int{117} +} +func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 + } +} +func (m *SetExternalTimestampResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetExternalTimestampResponse.Merge(m, src) +} +func (m *SetExternalTimestampResponse) XXX_Size() int { + return m.Size() +} +func (m *SetExternalTimestampResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetExternalTimestampResponse.DiscardUnknown(m) } +var xxx_messageInfo_SetExternalTimestampResponse proto.InternalMessageInfo + func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -4485,15 +8010,44 @@ func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { } type GetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetExternalTimestampRequest) Reset() { *m = GetExternalTimestampRequest{} } func (m *GetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampRequest) ProtoMessage() {} func (*GetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{118} + return fileDescriptor_78b27e6f04f44c6e, []int{118} +} +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 *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) +} + +var xxx_messageInfo_GetExternalTimestampRequest proto.InternalMessageInfo func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { if m != nil { @@ -4503,17 +8057,46 @@ func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { } type GetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetExternalTimestampResponse) Reset() { *m = GetExternalTimestampResponse{} } func (m *GetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampResponse) ProtoMessage() {} func (*GetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptorPdpb, []int{119} + return fileDescriptor_78b27e6f04f44c6e, []int{119} +} +func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 + } +} +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) } +var xxx_messageInfo_GetExternalTimestampResponse proto.InternalMessageInfo + func (m *GetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -4529,13 +8112,44 @@ func (m *GetExternalTimestampResponse) GetTimestamp() uint64 { } type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{120} +} +func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 (m *GetMinTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSRequest.Merge(m, src) +} +func (m *GetMinTSRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMinTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) } -func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } -func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } -func (*GetMinTSRequest) ProtoMessage() {} -func (*GetMinTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{120} } +var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo func (m *GetMinTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -4545,14 +8159,45 @@ func (m *GetMinTSRequest) GetHeader() *RequestHeader { } type GetMinTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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{121} +} +func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 (m *GetMinTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSResponse.Merge(m, src) +} +func (m *GetMinTSResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMinTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) } -func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } -func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } -func (*GetMinTSResponse) ProtoMessage() {} -func (*GetMinTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{121} } +var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo func (m *GetMinTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4569,6 +8214,13 @@ func (m *GetMinTSResponse) GetTimestamp() *Timestamp { } 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") @@ -4609,6 +8261,7 @@ func init() { 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") @@ -4691,26289 +8344,11 @@ func init() { proto.RegisterType((*GetExternalTimestampResponse)(nil), "pdpb.GetExternalTimestampResponse") proto.RegisterType((*GetMinTSRequest)(nil), "pdpb.GetMinTSRequest") proto.RegisterType((*GetMinTSResponse)(nil), "pdpb.GetMinTSResponse") - 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) -} - -// 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 - -// Client API for PD service - -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) - ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, 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 (c *pDClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { - out := new(GetClusterInfoResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetClusterInfo", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) { - out := new(GetMembersResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetMembers", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) Tso(ctx context.Context, opts ...grpc.CallOption) (PD_TsoClient, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[0], c.cc, "/pdpb.PD/Tso", opts...) - if err != nil { - return nil, err - } - x := &pDTsoClient{stream} - return x, 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 - } - return m, nil -} - -func (c *pDClient) Bootstrap(ctx context.Context, in *BootstrapRequest, opts ...grpc.CallOption) (*BootstrapResponse, error) { - out := new(BootstrapResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/Bootstrap", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest, opts ...grpc.CallOption) (*IsBootstrappedResponse, error) { - out := new(IsBootstrappedResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/IsBootstrapped", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) { - out := new(AllocIDResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/AllocID", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecoveringRequest, opts ...grpc.CallOption) (*IsSnapshotRecoveringResponse, error) { - out := new(IsSnapshotRecoveringResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/IsSnapshotRecovering", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) { - out := new(GetStoreResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetStore", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil } -func (c *pDClient) PutStore(ctx context.Context, in *PutStoreRequest, opts ...grpc.CallOption) (*PutStoreResponse, error) { - out := new(PutStoreResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/PutStore", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } -func (c *pDClient) GetAllStores(ctx context.Context, in *GetAllStoresRequest, opts ...grpc.CallOption) (*GetAllStoresResponse, error) { - out := new(GetAllStoresResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetAllStores", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) { - out := new(StoreHeartbeatResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/StoreHeartbeat", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (PD_RegionHeartbeatClient, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[1], c.cc, "/pdpb.PD/RegionHeartbeat", opts...) - if err != nil { - return nil, err - } - x := &pDRegionHeartbeatClient{stream} - return x, nil -} - -type PD_RegionHeartbeatClient interface { - Send(*RegionHeartbeatRequest) error - Recv() (*RegionHeartbeatResponse, error) - grpc.ClientStream -} - -type pDRegionHeartbeatClient struct { - grpc.ClientStream -} - -func (x *pDRegionHeartbeatClient) Send(m *RegionHeartbeatRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *pDRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, error) { - m := new(RegionHeartbeatResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *pDClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetRegion", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetPrevRegion", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetRegionByID", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, error) { - out := new(ScanRegionsResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/ScanRegions", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error) { - out := new(AskSplitResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/AskSplit", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error) { - out := new(ReportSplitResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/ReportSplit", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) { - out := new(AskBatchSplitResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/AskBatchSplit", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) ReportBatchSplit(ctx context.Context, in *ReportBatchSplitRequest, opts ...grpc.CallOption) (*ReportBatchSplitResponse, error) { - out := new(ReportBatchSplitResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/ReportBatchSplit", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetClusterConfig(ctx context.Context, in *GetClusterConfigRequest, opts ...grpc.CallOption) (*GetClusterConfigResponse, error) { - out := new(GetClusterConfigResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetClusterConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) PutClusterConfig(ctx context.Context, in *PutClusterConfigRequest, opts ...grpc.CallOption) (*PutClusterConfigResponse, error) { - out := new(PutClusterConfigResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/PutClusterConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) ScatterRegion(ctx context.Context, in *ScatterRegionRequest, opts ...grpc.CallOption) (*ScatterRegionResponse, error) { - out := new(ScatterRegionResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/ScatterRegion", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest, opts ...grpc.CallOption) (*GetGCSafePointResponse, error) { - out := new(GetGCSafePointResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetGCSafePoint", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) { - out := new(UpdateGCSafePointResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePoint", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServiceGCSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceGCSafePointResponse, error) { - out := new(UpdateServiceGCSafePointResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/UpdateServiceGCSafePoint", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Request, opts ...grpc.CallOption) (*GetGCSafePointV2Response, error) { - out := new(GetGCSafePointV2Response) - err := grpc.Invoke(ctx, "/pdpb.PD/GetGCSafePointV2", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) WatchGCSafePointV2(ctx context.Context, in *WatchGCSafePointV2Request, opts ...grpc.CallOption) (PD_WatchGCSafePointV2Client, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[2], c.cc, "/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 - } - return x, nil -} - -type PD_WatchGCSafePointV2Client interface { - Recv() (*WatchGCSafePointV2Response, error) - grpc.ClientStream -} - -type pDWatchGCSafePointV2Client struct { - grpc.ClientStream -} - -func (x *pDWatchGCSafePointV2Client) Recv() (*WatchGCSafePointV2Response, error) { - m := new(WatchGCSafePointV2Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *pDClient) UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePointV2Request, opts ...grpc.CallOption) (*UpdateGCSafePointV2Response, error) { - out := new(UpdateGCSafePointV2Response) - err := grpc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePointV2", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) UpdateServiceSafePointV2(ctx context.Context, in *UpdateServiceSafePointV2Request, opts ...grpc.CallOption) (*UpdateServiceSafePointV2Response, error) { - out := new(UpdateServiceSafePointV2Response) - err := grpc.Invoke(ctx, "/pdpb.PD/UpdateServiceSafePointV2", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePointV2Request, opts ...grpc.CallOption) (*GetAllGCSafePointV2Response, error) { - out := new(GetAllGCSafePointV2Response) - err := grpc.Invoke(ctx, "/pdpb.PD/GetAllGCSafePointV2", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) SyncRegions(ctx context.Context, opts ...grpc.CallOption) (PD_SyncRegionsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[3], c.cc, "/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 pDSyncRegionsClient struct { - grpc.ClientStream -} - -func (x *pDSyncRegionsClient) Send(m *SyncRegionRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *pDSyncRegionsClient) Recv() (*SyncRegionResponse, error) { - m := new(SyncRegionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *pDClient) GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) { - out := new(GetOperatorResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetOperator", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ...grpc.CallOption) (*SyncMaxTSResponse, error) { - out := new(SyncMaxTSResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/SyncMaxTS", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) { - out := new(SplitRegionsResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/SplitRegions", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) SplitAndScatterRegions(ctx context.Context, in *SplitAndScatterRegionsRequest, opts ...grpc.CallOption) (*SplitAndScatterRegionsResponse, error) { - out := new(SplitAndScatterRegionsResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/SplitAndScatterRegions", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoRequest, opts ...grpc.CallOption) (*GetDCLocationInfoResponse, error) { - out := new(GetDCLocationInfoResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetDCLocationInfo", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigRequest, opts ...grpc.CallOption) (*StoreGlobalConfigResponse, error) { - out := new(StoreGlobalConfigResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/StoreGlobalConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) { - out := new(LoadGlobalConfigResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/LoadGlobalConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[4], c.cc, "/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 - } - return x, nil -} - -type PD_WatchGlobalConfigClient interface { - Recv() (*WatchGlobalConfigResponse, error) - grpc.ClientStream -} - -type pDWatchGlobalConfigClient struct { - grpc.ClientStream -} - -func (x *pDWatchGlobalConfigClient) Recv() (*WatchGlobalConfigResponse, error) { - m := new(WatchGlobalConfigResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *pDClient) ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_PD_serviceDesc.Streams[5], c.cc, "/pdpb.PD/ReportBuckets", opts...) - if err != nil { - return nil, err - } - x := &pDReportBucketsClient{stream} - return x, nil -} - -type PD_ReportBucketsClient interface { - Send(*ReportBucketsRequest) error - CloseAndRecv() (*ReportBucketsResponse, error) - grpc.ClientStream -} - -type pDReportBucketsClient struct { - grpc.ClientStream -} - -func (x *pDReportBucketsClient) Send(m *ReportBucketsRequest) error { - return x.ClientStream.SendMsg(m) -} - -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 (c *pDClient) ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) { - out := new(ReportMinResolvedTsResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/ReportMinResolvedTS", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) { - out := new(SetExternalTimestampResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/SetExternalTimestamp", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) { - out := new(GetExternalTimestampResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetExternalTimestamp", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pDClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) { - out := new(GetMinTSResponse) - err := grpc.Invoke(ctx, "/pdpb.PD/GetMinTS", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// 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) - ScanRegions(context.Context, *ScanRegionsRequest) (*ScanRegionsResponse, 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) -} - -func RegisterPDServer(s *grpc.Server, srv PDServer) { - s.RegisterService(&_PD_serviceDesc, srv) -} - -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 _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 _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).Tso(&pDTsoServer{stream}) -} - -type PD_TsoServer interface { - Send(*TsoResponse) error - Recv() (*TsoRequest, error) - grpc.ServerStream -} - -type pDTsoServer struct { - grpc.ServerStream -} - -func (x *pDTsoServer) Send(m *TsoResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *pDTsoServer) Recv() (*TsoRequest, error) { - m := new(TsoRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, 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 - } - 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) -} - -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 - } - 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 _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 _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 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) -} - -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 - } - 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 _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 _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 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) -} - -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 - } - 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 _PD_RegionHeartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).RegionHeartbeat(&pDRegionHeartbeatServer{stream}) -} - -type PD_RegionHeartbeatServer interface { - Send(*RegionHeartbeatResponse) error - Recv() (*RegionHeartbeatRequest, error) - grpc.ServerStream -} - -type pDRegionHeartbeatServer struct { - grpc.ServerStream -} - -func (x *pDRegionHeartbeatServer) Send(m *RegionHeartbeatResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *pDRegionHeartbeatServer) Recv() (*RegionHeartbeatRequest, error) { - m := new(RegionHeartbeatRequest) - if err := x.ServerStream.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 { - 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) -} - -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 - } - 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) -} - -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 - } - 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 _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 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) -} - -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 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) -} - -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 - } - 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) -} - -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 - } - 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) -} - -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 - } - 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 _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 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) -} - -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 - } - 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 _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 _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 - } - 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 _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 - } - 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 _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 _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 interceptor == nil { - return srv.(PDServer).GetGCSafePointV2(ctx, in) - } - 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 _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_WatchGCSafePointV2Server interface { - Send(*WatchGCSafePointV2Response) error - grpc.ServerStream -} - -type pDWatchGCSafePointV2Server struct { - grpc.ServerStream -} - -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 - } - 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 _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 _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 interceptor == nil { - return srv.(PDServer).GetAllGCSafePointV2(ctx, in) - } - 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 _PD_SyncRegions_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).SyncRegions(&pDSyncRegionsServer{stream}) -} - -type PD_SyncRegionsServer interface { - Send(*SyncRegionResponse) error - Recv() (*SyncRegionRequest, error) - grpc.ServerStream -} - -type pDSyncRegionsServer struct { - grpc.ServerStream -} - -func (x *pDSyncRegionsServer) Send(m *SyncRegionResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *pDSyncRegionsServer) Recv() (*SyncRegionRequest, error) { - m := new(SyncRegionRequest) - if err := x.ServerStream.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 { - 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) -} - -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 - } - 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) -} - -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 - } - 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) -} - -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 - } - 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) -} - -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 - } - 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 _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 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) -} - -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 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) -} - -func _PD_WatchGlobalConfig_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchGlobalConfigRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PDServer).WatchGlobalConfig(m, &pDWatchGlobalConfigServer{stream}) -} - -type PD_WatchGlobalConfigServer interface { - Send(*WatchGlobalConfigResponse) error - grpc.ServerStream -} - -type pDWatchGlobalConfigServer struct { - grpc.ServerStream -} - -func (x *pDWatchGlobalConfigServer) Send(m *WatchGlobalConfigResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _PD_ReportBuckets_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).ReportBuckets(&pDReportBucketsServer{stream}) -} - -type PD_ReportBucketsServer interface { - SendAndClose(*ReportBucketsResponse) error - Recv() (*ReportBucketsRequest, error) - grpc.ServerStream -} - -type pDReportBucketsServer struct { - grpc.ServerStream -} - -func (x *pDReportBucketsServer) SendAndClose(m *ReportBucketsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *pDReportBucketsServer) Recv() (*ReportBucketsRequest, error) { - m := new(ReportBucketsRequest) - if err := x.ServerStream.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 { - 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) -} - -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 - } - 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 _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 _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 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) -} - -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: "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", -} - -func (m *WatchGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ConfigPath) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i += copy(dAtA[i:], m.ConfigPath) - } - if m.Revision != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - return i, nil -} - -func (m *WatchGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Changes) > 0 { - for _, msg := range m.Changes { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Revision != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - if m.Header != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n1, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - return i, nil -} - -func (m *StoreGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Changes) > 0 { - for _, msg := range m.Changes { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ConfigPath) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i += copy(dAtA[i:], m.ConfigPath) - } - return i, nil -} - -func (m *StoreGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) - n2, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } - return i, nil -} - -func (m *LoadGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.ConfigPath) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i += copy(dAtA[i:], m.ConfigPath) - } - return i, nil -} - -func (m *LoadGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Revision != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - return i, nil -} - -func (m *GlobalConfigItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GlobalConfigItem) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if m.Error != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) - n3, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.Kind != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Kind)) - } - if len(m.Payload) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Payload))) - i += copy(dAtA[i:], m.Payload) - } - return i, nil -} - -func (m *RequestHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - } - if m.SenderId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) - } - return i, nil -} - -func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 - } - return i, nil -} - -func (m *Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - } - if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) - } - return i, nil -} - -func (m *TsoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TsoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if m.Count != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - } - if len(m.DcLocation) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) - i += copy(dAtA[i:], m.DcLocation) - } - return i, nil -} - -func (m *Timestamp) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Timestamp) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Physical != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) - } - if m.Logical != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) - } - if m.SuffixBits != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) - } - return i, nil -} - -func (m *TsoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n6, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - } - if m.Count != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - } - if m.Timestamp != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp.Size())) - n7, err := m.Timestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - } - return i, nil -} - -func (m *BootstrapRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BootstrapRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n8, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 - } - if m.Store != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) - n9, err := m.Store.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if m.Region != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n10, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 - } - return i, nil -} - -func (m *BootstrapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BootstrapResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n11, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.ReplicationStatus != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) - n12, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - return i, nil -} - -func (m *IsBootstrappedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsBootstrappedRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n13, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n13 - } - return i, nil -} - -func (m *IsBootstrappedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsBootstrappedResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n14, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if m.Bootstrapped { - dAtA[i] = 0x10 - i++ - if m.Bootstrapped { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *AllocIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllocIDRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n15, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n15 - } - return i, nil -} - -func (m *AllocIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllocIDResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n16, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.Id != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) - } - return i, nil -} - -func (m *IsSnapshotRecoveringRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsSnapshotRecoveringRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n17, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - return i, nil -} - -func (m *IsSnapshotRecoveringResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IsSnapshotRecoveringResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n18, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if m.Marked { - dAtA[i] = 0x10 - i++ - if m.Marked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *GetStoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetStoreRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n19, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - } - if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - } - return i, nil -} - -func (m *GetStoreResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetStoreResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n20, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n20 - } - if m.Store != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) - n21, err := m.Store.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n21 - } - if m.Stats != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Stats.Size())) - n22, err := m.Stats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 - } - return i, nil -} - -func (m *PutStoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PutStoreRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n23, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if m.Store != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Store.Size())) - n24, err := m.Store.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n24 - } - return i, nil -} - -func (m *PutStoreResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n25, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 - } - if m.ReplicationStatus != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) - n26, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 - } - return i, nil -} - -func (m *GetAllStoresRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetAllStoresRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n27, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 - } - if m.ExcludeTombstoneStores { - dAtA[i] = 0x10 - i++ - if m.ExcludeTombstoneStores { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *GetAllStoresResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetAllStoresResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n28, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n28 - } - if len(m.Stores) > 0 { - for _, msg := range m.Stores { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n29, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n29 - } - if len(m.RegionKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.RegionKey))) - i += copy(dAtA[i:], m.RegionKey) - } - if m.NeedBuckets { - dAtA[i] = 0x18 - i++ - if m.NeedBuckets { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n30, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n30 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n31, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 - } - if m.Leader != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) - n32, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 - } - if len(m.DownPeers) > 0 { - for _, msg := range m.DownPeers { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PendingPeers) > 0 { - for _, msg := range m.PendingPeers { - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Buckets != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) - n33, err := m.Buckets.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 - } - return i, nil -} - -func (m *GetRegionByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetRegionByIDRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n34, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n34 - } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if m.NeedBuckets { - dAtA[i] = 0x18 - i++ - if m.NeedBuckets { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *ScanRegionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n35, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n35 - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) - } - if m.Limit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) - } - if len(m.EndKey) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) - } - return i, nil -} - -func (m *Region) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Region) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n36, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n36 - } - if m.Leader != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) - n37, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n37 - } - if len(m.DownPeers) > 0 { - for _, msg := range m.DownPeers { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PendingPeers) > 0 { - for _, msg := range m.PendingPeers { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n38, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n38 - } - if len(m.RegionMetas) > 0 { - for _, msg := range m.RegionMetas { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Leaders) > 0 { - for _, msg := range m.Leaders { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n39, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n39 - } - return i, nil -} - -func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n40, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n40 - } - if m.Cluster != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) - n41, err := m.Cluster.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n41 - } - return i, nil -} - -func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n42, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n42 - } - if m.Cluster != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) - n43, err := m.Cluster.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n43 - } - return i, nil -} - -func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n44, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n44 - } - return i, nil -} - -func (m *Member) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Member) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.MemberId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) - } - if len(m.PeerUrls) > 0 { - for _, s := range m.PeerUrls { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.ClientUrls) > 0 { - for _, s := range m.ClientUrls { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.LeaderPriority != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) - } - if len(m.DeployPath) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DeployPath))) - i += copy(dAtA[i:], m.DeployPath) - } - if len(m.BinaryVersion) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.BinaryVersion))) - i += copy(dAtA[i:], m.BinaryVersion) - } - if len(m.GitHash) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) - i += copy(dAtA[i:], m.GitHash) - } - if len(m.DcLocation) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) - i += copy(dAtA[i:], m.DcLocation) - } - return i, nil -} - -func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n45, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n45 - } - return i, nil -} - -func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n46, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n46 - } - if len(m.Members) > 0 { - for _, msg := range m.Members { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Leader != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) - n47, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n47 - } - if m.EtcdLeader != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.EtcdLeader.Size())) - n48, err := m.EtcdLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n48 - } - if len(m.TsoAllocatorLeaders) > 0 { - for k, _ := range m.TsoAllocatorLeaders { - dAtA[i] = 0x2a - i++ - v := m.TsoAllocatorLeaders[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovPdpb(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovPdpb(uint64(len(k))) + msgSize - i = encodeVarintPdpb(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - if v != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(v.Size())) - n49, err := v.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n49 - } - } - } - return i, nil -} - -func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n50, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n50 - } - return i, nil -} - -func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n51, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n51 - } - if len(m.ServiceModes) > 0 { - dAtA53 := make([]byte, len(m.ServiceModes)*10) - var j52 int - for _, num := range m.ServiceModes { - for num >= 1<<7 { - dAtA53[j52] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j52++ - } - dAtA53[j52] = uint8(num) - j52++ - } - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j52)) - i += copy(dAtA[i:], dAtA53[:j52]) - } - if len(m.TsoUrls) > 0 { - for _, s := range m.TsoUrls { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *PeerStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerStats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Peer != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) - n54, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n54 - } - if m.DownSeconds != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) - } - return i, nil -} - -func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegionHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n55, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n55 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n56, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n56 - } - if m.Leader != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) - n57, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n57 - } - if len(m.DownPeers) > 0 { - for _, msg := range m.DownPeers { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PendingPeers) > 0 { - for _, msg := range m.PendingPeers { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.BytesWritten != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - } - if m.BytesRead != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - } - if m.KeysWritten != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - } - if m.KeysRead != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - } - if m.ApproximateSize != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) - } - if m.Interval != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Interval.Size())) - n58, err := m.Interval.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n58 - } - if m.ApproximateKeys != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) - } - if m.Term != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) - } - if m.ReplicationStatus != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) - n59, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n59 - } - if m.QueryStats != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) - n60, err := m.QueryStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n60 - } - if m.CpuUsage != 0 { - dAtA[i] = 0x88 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) - } - if m.ApproximateKvSize != 0 { - dAtA[i] = 0x90 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) - } - return i, nil -} - -func (m *ChangePeer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChangePeer) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Peer != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) - n61, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n61 - } - if m.ChangeType != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) - } - return i, nil -} - -func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChangePeerV2) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Changes) > 0 { - for _, msg := range m.Changes { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TransferLeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TransferLeader) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Peer != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) - n62, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n62 - } - if len(m.Peers) > 0 { - for _, msg := range m.Peers { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Merge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Merge) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Target != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Target.Size())) - n63, err := m.Target.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n63 - } - return i, nil -} - -func (m *SplitRegion) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitRegion) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Policy != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Policy)) - } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - return i, nil -} - -func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SwitchWitness) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.PeerId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) - } - if m.IsWitness { - dAtA[i] = 0x10 - i++ - if m.IsWitness { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BatchSwitchWitness) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.SwitchWitnesses) > 0 { - for _, msg := range m.SwitchWitnesses { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n64, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n64 - } - if m.ChangePeer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeer.Size())) - n65, err := m.ChangePeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n65 - } - if m.TransferLeader != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TransferLeader.Size())) - n66, err := m.TransferLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n66 - } - if m.RegionId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if m.RegionEpoch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n67, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n67 - } - if m.TargetPeer != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TargetPeer.Size())) - n68, err := m.TargetPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n68 - } - if m.Merge != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Merge.Size())) - n69, err := m.Merge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n69 - } - if m.SplitRegion != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitRegion.Size())) - n70, err := m.SplitRegion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n70 - } - if m.ChangePeerV2 != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) - n71, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n71 - } - if m.SwitchWitnesses != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) - n72, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n72 - } - return i, nil -} - -func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n73, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n73 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n74, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n74 - } - return i, nil -} - -func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n75, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n75 - } - if m.NewRegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - } - if len(m.NewPeerIds) > 0 { - dAtA77 := make([]byte, len(m.NewPeerIds)*10) - var j76 int - for _, num := range m.NewPeerIds { - for num >= 1<<7 { - dAtA77[j76] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j76++ - } - dAtA77[j76] = uint8(num) - j76++ - } - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j76)) - i += copy(dAtA[i:], dAtA77[:j76]) - } - return i, nil -} - -func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n78, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n78 - } - if m.Left != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Left.Size())) - n79, err := m.Left.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n79 - } - if m.Right != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Right.Size())) - n80, err := m.Right.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n80 - } - return i, nil -} - -func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n81, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n81 - } - return i, nil -} - -func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n82, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n82 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n83, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n83 - } - if m.SplitCount != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) - } - return i, nil -} - -func (m *SplitID) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitID) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.NewRegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - } - if len(m.NewPeerIds) > 0 { - dAtA85 := make([]byte, len(m.NewPeerIds)*10) - var j84 int - for _, num := range m.NewPeerIds { - for num >= 1<<7 { - dAtA85[j84] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j84++ - } - dAtA85[j84] = uint8(num) - j84++ - } - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j84)) - i += copy(dAtA[i:], dAtA85[:j84]) - } - return i, nil -} - -func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n86, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n86 - } - if len(m.Ids) > 0 { - for _, msg := range m.Ids { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n87, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n87 - } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n88, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n88 - } - return i, nil -} - -func (m *TimeInterval) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimeInterval) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.StartTimestamp != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) - } - if m.EndTimestamp != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) - } - return i, nil -} - -func (m *RecordPair) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecordPair) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if m.Value != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) - } - return i, nil -} - -func (m *PeerStat) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerStat) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if m.ReadKeys != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) - } - if m.ReadBytes != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) - } - if m.QueryStats != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) - n89, err := m.QueryStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n89 - } - if m.WrittenKeys != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) - } - if m.WrittenBytes != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) - } - return i, nil -} - -func (m *StoreStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreStats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.StoreId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - } - if m.Capacity != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) - } - if m.Available != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) - } - if m.RegionCount != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionCount)) - } - if m.SendingSnapCount != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SendingSnapCount)) - } - if m.ReceivingSnapCount != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReceivingSnapCount)) - } - if m.StartTime != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTime)) - } - if m.ApplyingSnapCount != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ApplyingSnapCount)) - } - if m.IsBusy { - dAtA[i] = 0x48 - i++ - if m.IsBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.UsedSize != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedSize)) - } - if m.BytesWritten != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - } - if m.KeysWritten != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - } - if m.BytesRead != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - } - if m.KeysRead != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - } - if m.Interval != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Interval.Size())) - n90, err := m.Interval.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n90 - } - if len(m.CpuUsages) > 0 { - for _, msg := range m.CpuUsages { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ReadIoRates) > 0 { - for _, msg := range m.ReadIoRates { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.WriteIoRates) > 0 { - for _, msg := range m.WriteIoRates { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.OpLatencies) > 0 { - for _, msg := range m.OpLatencies { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PeerStats) > 0 { - for _, msg := range m.PeerStats { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.QueryStats != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) - n91, err := m.QueryStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n91 - } - if m.SlowScore != 0 { - dAtA[i] = 0xb0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) - } - if len(m.DamagedRegionsId) > 0 { - dAtA93 := make([]byte, len(m.DamagedRegionsId)*10) - var j92 int - for _, num := range m.DamagedRegionsId { - for num >= 1<<7 { - dAtA93[j92] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j92++ - } - dAtA93[j92] = uint8(num) - j92++ - } - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j92)) - i += copy(dAtA[i:], dAtA93[:j92]) - } - if m.IsApplyBusy { - dAtA[i] = 0xc0 - i++ - dAtA[i] = 0x1 - i++ - if m.IsApplyBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.SnapshotStats) > 0 { - for _, msg := range m.SnapshotStats { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.SlowTrend != nil { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SlowTrend.Size())) - n94, err := m.SlowTrend.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n94 - } - if m.IsGrpcPaused { - dAtA[i] = 0xd8 - i++ - dAtA[i] = 0x1 - i++ - if m.IsGrpcPaused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.TotalMemory != 0 { - dAtA[i] = 0xe0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) - } - if m.UsedMemory != 0 { - dAtA[i] = 0xe8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) - } - return i, nil -} - -func (m *SlowTrend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SlowTrend) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.CauseValue != 0 { - dAtA[i] = 0x9 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseValue)))) - i += 8 - } - if m.CauseRate != 0 { - dAtA[i] = 0x11 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseRate)))) - i += 8 - } - if m.ResultValue != 0 { - dAtA[i] = 0x19 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultValue)))) - i += 8 - } - if m.ResultRate != 0 { - dAtA[i] = 0x21 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) - i += 8 - } - return i, nil -} - -func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SnapshotStat) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if m.GenerateDurationSec != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.GenerateDurationSec)) - } - if m.SendDurationSec != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SendDurationSec)) - } - if m.TotalDurationSec != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalDurationSec)) - } - if m.TransportSize != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TransportSize)) - } - return i, nil -} - -func (m *PeerReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerReport) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RaftState != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RaftState.Size())) - n95, err := m.RaftState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n95 - } - if m.RegionState != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionState.Size())) - n96, err := m.RegionState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n96 - } - if m.IsForceLeader { - dAtA[i] = 0x18 - i++ - if m.IsForceLeader { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.HasCommitMerge { - dAtA[i] = 0x20 - i++ - if m.HasCommitMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *StoreReport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreReport) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.PeerReports) > 0 { - for _, msg := range m.PeerReports { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Step != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - } - return i, nil -} - -func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n97, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n97 - } - if m.Stats != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Stats.Size())) - n98, err := m.Stats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n98 - } - if m.StoreReport != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreReport.Size())) - n99, err := m.StoreReport.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n99 - } - if m.DrAutosyncStatus != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.DrAutosyncStatus.Size())) - n100, err := m.DrAutosyncStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n100 - } - return i, nil -} - -func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DemoteFailedVoters) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if len(m.FailedVoters) > 0 { - for _, msg := range m.FailedVoters { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ForceLeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ForceLeader) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.FailedStores) > 0 { - dAtA102 := make([]byte, len(m.FailedStores)*10) - var j101 int - for _, num := range m.FailedStores { - for num >= 1<<7 { - dAtA102[j101] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j101++ - } - dAtA102[j101] = uint8(num) - j101++ - } - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j101)) - i += copy(dAtA[i:], dAtA102[:j101]) - } - if len(m.EnterForceLeaders) > 0 { - dAtA104 := make([]byte, len(m.EnterForceLeaders)*10) - var j103 int - for _, num := range m.EnterForceLeaders { - for num >= 1<<7 { - dAtA104[j103] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j103++ - } - dAtA104[j103] = uint8(num) - j103++ - } - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j103)) - i += copy(dAtA[i:], dAtA104[:j103]) - } - return i, nil -} - -func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Creates) > 0 { - for _, msg := range m.Creates { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Updates) > 0 { - for _, msg := range m.Updates { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tombstones) > 0 { - dAtA106 := make([]byte, len(m.Tombstones)*10) - var j105 int - for _, num := range m.Tombstones { - for num >= 1<<7 { - dAtA106[j105] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j105++ - } - dAtA106[j105] = uint8(num) - j105++ - } - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j105)) - i += copy(dAtA[i:], dAtA106[:j105]) - } - if len(m.Demotes) > 0 { - for _, msg := range m.Demotes { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.ForceLeader != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ForceLeader.Size())) - n107, err := m.ForceLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n107 - } - if m.Step != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - } - return i, nil -} - -func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.AbnormalStores) > 0 { - dAtA109 := make([]byte, len(m.AbnormalStores)*10) - var j108 int - for _, num := range m.AbnormalStores { - for num >= 1<<7 { - dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j108++ - } - dAtA109[j108] = uint8(num) - j108++ - } - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j108)) - i += copy(dAtA[i:], dAtA109[:j108]) - } - return i, nil -} - -func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControlGrpc) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.CtrlEvent != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) - } - return i, nil -} - -func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n110, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n110 - } - if m.ReplicationStatus != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) - n111, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n111 - } - if len(m.ClusterVersion) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) - i += copy(dAtA[i:], m.ClusterVersion) - } - if m.RequireDetailedReport { - dAtA[i] = 0x20 - i++ - if m.RequireDetailedReport { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.RecoveryPlan != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RecoveryPlan.Size())) - n112, err := m.RecoveryPlan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n112 - } - if m.AwakenRegions != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.AwakenRegions.Size())) - n113, err := m.AwakenRegions.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n113 - } - if m.ControlGrpc != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ControlGrpc.Size())) - n114, err := m.ControlGrpc.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n114 - } - return i, nil -} - -func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n115, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n115 - } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if m.Region != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) - n116, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n116 - } - if m.Leader != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) - n117, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n117 - } - if len(m.Group) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i += copy(dAtA[i:], m.Group) - } - 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++ - } - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j118)) - i += copy(dAtA[i:], dAtA119[:j118]) - } - if m.RetryLimit != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - } - if m.SkipStoreLimit { - dAtA[i] = 0x40 - i++ - if m.SkipStoreLimit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n120, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n120 - } - if m.FinishedPercentage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - } - return i, nil -} - -func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n121, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n121 - } - return i, nil -} - -func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n122, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n122 - } - if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - return i, nil -} - -func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n123, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n123 - } - if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - return i, nil -} - -func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n124, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n124 - } - if m.NewSafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - } - return i, nil -} - -func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n125, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n125 - } - if len(m.ServiceId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i += copy(dAtA[i:], m.ServiceId) - } - if m.TTL != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - } - if m.SafePoint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - return i, nil -} - -func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n126, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n126 - } - if len(m.ServiceId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i += copy(dAtA[i:], m.ServiceId) - } - if m.TTL != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - } - if m.MinSafePoint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - } - return i, nil -} - -func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n127, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n127 - } - if m.KeyspaceId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - } - return i, nil -} - -func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n128, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n128 - } - if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - return i, nil -} - -func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n129, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n129 - } - if m.Revision != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - return i, nil -} - -func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SafePointEvent) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.KeyspaceId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - } - if m.SafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - if m.Type != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - } - return i, nil -} - -func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n130, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n130 - } - if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Revision != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - return i, nil -} - -func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n131, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n131 - } - if m.KeyspaceId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - } - if m.SafePoint != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - return i, nil -} - -func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n132, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n132 - } - if m.NewSafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - } - return i, nil -} - -func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n133, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n133 - } - if m.KeyspaceId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - } - if len(m.ServiceId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i += copy(dAtA[i:], m.ServiceId) - } - if m.SafePoint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - } - if m.Ttl != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - } - return i, nil -} - -func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateServiceSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n134, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n134 - } - if len(m.ServiceId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i += copy(dAtA[i:], m.ServiceId) - } - if m.Ttl != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - } - if m.MinSafePoint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - } - return i, nil -} - -func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetAllGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n135, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n135 - } - return i, nil -} - -func (m *GCSafePointV2) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GCSafePointV2) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.KeyspaceId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - } - if m.GcSafePoint != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) - } - return i, nil -} - -func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetAllGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n136, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n136 - } - if len(m.GcSafePoints) > 0 { - for _, msg := range m.GcSafePoints { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Revision != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - } - return i, nil -} - -func (m *RegionStat) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegionStat) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.BytesWritten != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - } - if m.BytesRead != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - } - if m.KeysWritten != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - } - if m.KeysRead != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - } - return i, nil -} - -func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n137, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n137 - } - if m.Member != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Member.Size())) - n138, err := m.Member.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n138 - } - if m.StartIndex != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - } - return i, nil -} - -func (m *PeersStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeersStats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Peers) > 0 { - for _, msg := range m.Peers { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Peers) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Peers) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Peers) > 0 { - for _, msg := range m.Peers { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n139, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n139 - } - if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.StartIndex != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - } - if len(m.RegionStats) > 0 { - for _, msg := range m.RegionStats { - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.RegionLeaders) > 0 { - for _, msg := range m.RegionLeaders { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Buckets) > 0 { - for _, msg := range m.Buckets { - dAtA[i] = 0x32 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.DownPeers) > 0 { - for _, msg := range m.DownPeers { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.PendingPeers) > 0 { - for _, msg := range m.PendingPeers { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n140, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n140 - } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - return i, nil -} - -func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n141, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n141 - } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - } - if len(m.Desc) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) - i += copy(dAtA[i:], m.Desc) - } - if m.Status != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) - } - if len(m.Kind) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) - i += copy(dAtA[i:], m.Kind) - } - return i, nil -} - -func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncMaxTSRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n142, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n142 - } - if m.MaxTs != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) - n143, err := m.MaxTs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n143 - } - if m.SkipCheck { - dAtA[i] = 0x18 - i++ - if m.SkipCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncMaxTSResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n144, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n144 - } - if m.MaxLocalTs != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MaxLocalTs.Size())) - n145, err := m.MaxLocalTs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n145 - } - if len(m.SyncedDcs) > 0 { - for _, s := range m.SyncedDcs { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n146, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n146 - } - if len(m.SplitKeys) > 0 { - for _, b := range m.SplitKeys { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if m.RetryLimit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - } - return i, nil -} - -func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n147, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n147 - } - if m.FinishedPercentage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - } - if len(m.RegionsId) > 0 { - dAtA149 := make([]byte, len(m.RegionsId)*10) - var j148 int - for _, num := range m.RegionsId { - for num >= 1<<7 { - dAtA149[j148] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j148++ - } - dAtA149[j148] = uint8(num) - j148++ - } - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j148)) - i += copy(dAtA[i:], dAtA149[:j148]) - } - return i, nil -} - -func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitAndScatterRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n150, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n150 - } - if len(m.SplitKeys) > 0 { - for _, b := range m.SplitKeys { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } - } - if len(m.Group) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i += copy(dAtA[i:], m.Group) - } - if m.RetryLimit != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - } - return i, nil -} - -func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SplitAndScatterRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n151, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n151 - } - if m.SplitFinishedPercentage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) - } - if m.ScatterFinishedPercentage != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) - } - if len(m.RegionsId) > 0 { - dAtA153 := make([]byte, len(m.RegionsId)*10) - var j152 int - for _, num := range m.RegionsId { - for num >= 1<<7 { - dAtA153[j152] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j152++ - } - dAtA153[j152] = uint8(num) - j152++ - } - dAtA[i] = 0x22 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(j152)) - i += copy(dAtA[i:], dAtA153[:j152]) - } - return i, nil -} - -func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDCLocationInfoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n154, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n154 - } - if len(m.DcLocation) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) - i += copy(dAtA[i:], m.DcLocation) - } - return i, nil -} - -func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetDCLocationInfoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n155, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n155 - } - if m.Suffix != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) - } - if m.MaxTs != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) - n156, err := m.MaxTs.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n156 - } - return i, nil -} - -func (m *QueryStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryStats) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.GC != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) - } - if m.Get != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) - } - if m.Scan != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Scan)) - } - if m.Coprocessor != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Coprocessor)) - } - if m.Delete != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Delete)) - } - if m.DeleteRange != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.DeleteRange)) - } - if m.Put != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Put)) - } - if m.Prewrite != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Prewrite)) - } - if m.AcquirePessimisticLock != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.AcquirePessimisticLock)) - } - if m.Commit != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Commit)) - } - if m.Rollback != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Rollback)) - } - return i, nil -} - -func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportBucketsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n157, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n157 - } - if m.RegionEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n158, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n158 - } - if m.Buckets != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) - n159, err := m.Buckets.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n159 - } - return i, nil -} - -func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n160, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n160 - } - return i, nil -} - -func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportMinResolvedTsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n161, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n161 - } - if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - } - if m.MinResolvedTs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) - } - return i, nil -} - -func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReportMinResolvedTsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n162, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n162 - } - return i, nil -} - -func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n163, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n163 - } - if m.Timestamp != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) - } - return i, nil -} - -func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n164, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n164 - } - return i, nil -} - -func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n165, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n165 - } - return i, nil -} - -func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n166, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n166 - } - if m.Timestamp != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) - } - return i, nil -} - -func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMinTSRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n167, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n167 - } - return i, nil -} - -func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetMinTSResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) - n168, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n168 - } - if m.Timestamp != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp.Size())) - n169, err := m.Timestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n169 - } - return i, nil -} - -func encodeVarintPdpb(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *WatchGlobalConfigRequest) Size() (n int) { - var l int - _ = l - l = len(m.ConfigPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) - } - return n -} - -func (m *WatchGlobalConfigResponse) Size() (n int) { - 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 -} - -func (m *StoreGlobalConfigRequest) Size() (n int) { - var l int - _ = l - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - l = len(m.ConfigPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *StoreGlobalConfigResponse) Size() (n int) { - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *LoadGlobalConfigRequest) Size() (n int) { - 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 *LoadGlobalConfigResponse) Size() (n int) { - 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.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) - } - return n -} - -func (m *GlobalConfigItem) Size() (n int) { - 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.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 *RequestHeader) Size() (n int) { - var l int - _ = l - if m.ClusterId != 0 { - n += 1 + sovPdpb(uint64(m.ClusterId)) - } - if m.SenderId != 0 { - n += 1 + sovPdpb(uint64(m.SenderId)) - } - return n -} - -func (m *ResponseHeader) Size() (n int) { - 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 *Error) Size() (n int) { - 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 *TsoRequest) Size() (n int) { - 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)) - } - l = len(m.DcLocation) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *Timestamp) Size() (n int) { - 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)) - } - return n -} - -func (m *TsoResponse) Size() (n int) { - 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 *BootstrapRequest) Size() (n int) { - 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)) - } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *BootstrapResponse) Size() (n int) { - 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 *IsBootstrappedRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *IsBootstrappedResponse) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Bootstrapped { - n += 2 - } - return n -} - -func (m *AllocIDRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *AllocIDResponse) Size() (n int) { - 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)) - } - return n -} - -func (m *IsSnapshotRecoveringRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *IsSnapshotRecoveringResponse) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Marked { - n += 2 - } - return n -} - -func (m *GetStoreRequest) Size() (n int) { - 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)) - } - return n -} - -func (m *GetStoreResponse) Size() (n int) { - 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)) - } - if m.Stats != nil { - l = m.Stats.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *PutStoreRequest) Size() (n int) { - 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)) - } - return n -} - -func (m *PutStoreResponse) Size() (n int) { - 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 *GetAllStoresRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ExcludeTombstoneStores { - n += 2 - } - return n -} - -func (m *GetAllStoresResponse) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.Stores) > 0 { - for _, e := range m.Stores { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - return n -} - -func (m *GetRegionRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - l = len(m.RegionKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.NeedBuckets { - n += 2 - } - return n -} - -func (m *GetRegionResponse) Size() (n int) { - 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)) - } - } - if m.Buckets != nil { - l = m.Buckets.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *GetRegionByIDRequest) Size() (n int) { - 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 - } - return n -} - -func (m *ScanRegionsRequest) Size() (n int) { - 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.Limit != 0 { - n += 1 + sovPdpb(uint64(m.Limit)) - } - l = len(m.EndKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *Region) Size() (n int) { - 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 len(m.PendingPeers) > 0 { - for _, e := range m.PendingPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - return n -} - -func (m *ScanRegionsResponse) Size() (n int) { - 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.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 *GetClusterConfigRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *GetClusterConfigResponse) Size() (n int) { - 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 *PutClusterConfigRequest) Size() (n int) { - 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 *PutClusterConfigResponse) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *Member) Size() (n int) { - 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)) - } - 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 *GetMembersRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *GetMembersResponse) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - 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 *GetClusterInfoRequest) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *GetClusterInfoResponse) Size() (n int) { - 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)) - } - } - return n -} - -func (m *PeerStats) Size() (n int) { - 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)) - } - return n -} - -func (m *RegionHeartbeatRequest) Size() (n int) { - 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)) - } - } - 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 *ChangePeer) Size() (n int) { - 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)) - } - return n -} - -func (m *ChangePeerV2) Size() (n int) { - 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 *TransferLeader) Size() (n int) { - var l int - _ = l - if m.Peer != nil { - l = m.Peer.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - 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) { - var l int - _ = l - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n -} - -func (m *SplitRegion) Size() (n int) { - 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 *SwitchWitness) Size() (n int) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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 - } - return n -} - -func (m *StoreReport) Size() (n int) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - var l int - _ = l - if m.CtrlEvent != 0 { - n += 1 + sovPdpb(uint64(m.CtrlEvent)) - } - return n -} - -func (m *StoreHeartbeatResponse) Size() (n int) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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 *UpdateGCSafePointResponse) Size() (n int) { - 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 *UpdateServiceGCSafePointRequest) Size() (n int) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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 *RegionStat) Size() (n int) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - 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) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -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 > 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 { - 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 > 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 > 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 { - 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 > 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StoreGlobalConfigResponse) 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: 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: - 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 > 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 - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadGlobalConfigRequest) 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: LoadGlobalConfigRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Names", 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 > l { - return io.ErrUnexpectedEOF - } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) - 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadGlobalConfigResponse) 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: LoadGlobalConfigResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Items", 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 > l { - return io.ErrUnexpectedEOF - } - 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 != 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GlobalConfigItem) 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: 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 > 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 > 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 > 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 Payload", 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 > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestHeader) 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: RequestHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResponseHeader) 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: ResponseHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Error) 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: Error: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Error: 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) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", 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 > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 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 > 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 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) - } - 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 > l { - return io.ErrUnexpectedEOF - } - m.DcLocation = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Timestamp) 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: Timestamp: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Physical", wireType) - } - m.Physical = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Physical |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) - } - 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 - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuffixBits", wireType) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TsoResponse) 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: TsoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TsoResponse: 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 > 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 Timestamp", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Timestamp == nil { - m.Timestamp = &Timestamp{} - } - if err := m.Timestamp.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BootstrapRequest) 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: BootstrapRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BootstrapRequest: 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 > 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 Store", 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 > 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 - 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BootstrapResponse) 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: BootstrapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BootstrapResponse: 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 > 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 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsBootstrappedRequest) 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: IsBootstrappedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsBootstrappedRequest: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsBootstrappedResponse) 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: IsBootstrappedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsBootstrappedResponse: 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 > 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 Bootstrapped", 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.Bootstrapped = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllocIDResponse) 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: AllocIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllocIDResponse: 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 > 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 Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 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: 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 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IsSnapshotRecoveringResponse) 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: IsSnapshotRecoveringResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsSnapshotRecoveringResponse: 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 > 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 Marked", 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.Marked = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStoreRequest) 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: GetStoreRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStoreRequest: 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 > 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 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetStoreResponse) 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: GetStoreResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetStoreResponse: 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 > 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 Store", 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 > 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 - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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 > 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 - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PutStoreRequest) 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: PutStoreRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PutStoreRequest: 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 > 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 Store", 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > 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 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: 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: - 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 > 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 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAllStoresRequest) 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: GetAllStoresRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllStoresRequest: 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 > 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 ExcludeTombstoneStores", 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.ExcludeTombstoneStores = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAllStoresResponse) 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: GetAllStoresResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllStoresResponse: 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 > 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 Stores", 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetRegionRequest) 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: GetRegionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionRequest: 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 > 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 RegionKey", 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 > l { - return io.ErrUnexpectedEOF - } - m.RegionKey = append(m.RegionKey[:0], dAtA[iNdEx:postIndex]...) - if m.RegionKey == nil { - m.RegionKey = []byte{} - } - iNdEx = postIndex - 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 - } - } - m.NeedBuckets = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 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 - } - 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: 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: - 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 > 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 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 > 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 > l { - return io.ErrUnexpectedEOF - } - if m.Leader == nil { - m.Leader = &metapb.Peer{} - } - 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 > 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 6: - 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 > 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 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Buckets == nil { - m.Buckets = &metapb.Buckets{} - } - if err := m.Buckets.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetRegionByIDRequest) 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: GetRegionByIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionByIDRequest: 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 > 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) - } - 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 { - 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) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScanRegionsRequest) 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: ScanRegionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScanRegionsRequest: 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 > 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 StartKey", 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 > 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Region) 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: Region: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 2: - 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 > l { - return io.ErrUnexpectedEOF - } - 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 != 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 > 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 > 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 - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 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 > 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 RegionMetas", 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 > 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 - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leaders", 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 > 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 { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regions", 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 > 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 - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 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: 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 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClusterConfigResponse) 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: GetClusterConfigResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterConfigResponse: 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 > 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 Cluster", 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 > 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 { - 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 - } - 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: 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 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 > 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 Cluster", 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PutClusterConfigResponse) 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: PutClusterConfigResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Member) 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: Member: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 > 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) - } - 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 > 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 > l { - return io.ErrUnexpectedEOF - } - 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 - } - postIndex := iNdEx + intStringLen - 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 - } - 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 > l { - return io.ErrUnexpectedEOF - } - m.GitHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", 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 > l { - return io.ErrUnexpectedEOF - } - m.DcLocation = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMembersRequest) 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: GetMembersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMembersRequest: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMembersResponse) 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: GetMembersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMembersResponse: 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 > 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 Members", 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 > l { - return io.ErrUnexpectedEOF - } - m.Members = append(m.Members, &Member{}) - if err := m.Members[len(m.Members)-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 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 > l { - return io.ErrUnexpectedEOF - } - if m.Leader == nil { - m.Leader = &Member{} - } - 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 EtcdLeader", 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 > l { - return io.ErrUnexpectedEOF - } - if m.EtcdLeader == nil { - m.EtcdLeader = &Member{} - } - if err := m.EtcdLeader.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) - } - 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 > 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 > 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 mapmsglen < 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 { - 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 { - 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) - } - 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 > 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 { - 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: - 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 > 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 { - 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 > l { - return io.ErrUnexpectedEOF - } - 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: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TsoUrls", 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 > l { - return io.ErrUnexpectedEOF - } - m.TsoUrls = append(m.TsoUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerStats) 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: PeerStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Peer", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Peer == nil { - m.Peer = &metapb.Peer{} - } - 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RegionHeartbeatRequest) 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: RegionHeartbeatRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegionHeartbeatRequest: 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 > 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) - } - 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 > 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 > l { - return io.ErrUnexpectedEOF - } - if m.Leader == nil { - m.Leader = &metapb.Peer{} - } - 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 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 > 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 > 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 { - 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 > l { - return io.ErrUnexpectedEOF - } - if m.Interval == nil { - m.Interval = &TimeInterval{} - } - if err := m.Interval.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) - } - 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 - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) - } - 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 - } - } - case 15: - 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 > 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: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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 > l { - return io.ErrUnexpectedEOF - } - 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChangePeer) 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: ChangePeer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChangePeer: 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) - } - 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 > l { - return io.ErrUnexpectedEOF - } - if m.Peer == nil { - m.Peer = &metapb.Peer{} - } - 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 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChangePeerV2) 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: ChangePeerV2: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > l { - return io.ErrUnexpectedEOF - } - m.Changes = append(m.Changes, &ChangePeer{}) - if err := m.Changes[len(m.Changes)-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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > 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 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: 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 Peer", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Peer == nil { - m.Peer = &metapb.Peer{} - } - if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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 > 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 - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Target == nil { - m.Target = &metapb.Region{} - } - if err := m.Target.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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) - } - m.Policy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Policy |= (CheckPolicy(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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 > l { - return io.ErrUnexpectedEOF - } - 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 - } - if 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 PeerId", wireType) - } - m.PeerId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PeerId |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsWitness", 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.IsWitness = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BatchSwitchWitness) 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: BatchSwitchWitness: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 SwitchWitnesses", 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 > l { - return io.ErrUnexpectedEOF - } - m.SwitchWitnesses = append(m.SwitchWitnesses, &SwitchWitness{}) - if err := m.SwitchWitnesses[len(m.SwitchWitnesses)-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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RegionHeartbeatResponse) 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: RegionHeartbeatResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 ChangePeer", 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 > l { - return io.ErrUnexpectedEOF - } - if m.ChangePeer == nil { - m.ChangePeer = &ChangePeer{} - } - 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 > l { - return io.ErrUnexpectedEOF - } - 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 - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionEpoch", 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 > l { - return io.ErrUnexpectedEOF - } - if m.RegionEpoch == nil { - m.RegionEpoch = &metapb.RegionEpoch{} - } - if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPeer", 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 > l { - return io.ErrUnexpectedEOF - } - if m.TargetPeer == nil { - m.TargetPeer = &metapb.Peer{} - } - if err := m.TargetPeer.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) - } - 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 > l { - return io.ErrUnexpectedEOF - } - if m.Merge == nil { - m.Merge = &Merge{} - } - if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitRegion", 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 > l { - return io.ErrUnexpectedEOF - } - if m.SplitRegion == nil { - m.SplitRegion = &SplitRegion{} - } - if err := m.SplitRegion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - 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 - } - 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 > 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 SwitchWitnesses", 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 > l { - return io.ErrUnexpectedEOF - } - if m.SwitchWitnesses == nil { - m.SwitchWitnesses = &BatchSwitchWitness{} - } - if err := m.SwitchWitnesses.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AskSplitRequest) 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: AskSplitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AskSplitRequest: 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 > 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) - } - 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 > 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AskSplitResponse) 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: AskSplitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 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 > l { - return io.ErrUnexpectedEOF - } - 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportSplitRequest) 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: ReportSplitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportSplitRequest: 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 > 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 Left", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Left == nil { - m.Left = &metapb.Region{} - } - 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 Right", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Right == nil { - m.Right = &metapb.Region{} - } - if err := m.Right.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 { - 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 - } - 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 > 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 { - 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 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 > 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) - } - 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 > 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 != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitCount", wireType) - } - m.SplitCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SplitCount |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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: - 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 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 > l { - return io.ErrUnexpectedEOF - } - 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:]) - if err != nil { - return err - } - if 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) - } - 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 > 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) - } - 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 > 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 - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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: 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: - 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 > 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 Regions", 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 > 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 { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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: - 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 > 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 { - 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 StartTimestamp", wireType) - } - m.StartTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTimestamp |= (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 - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndTimestamp |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 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 > 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > 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 - } - 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: 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: - 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 ReadKeys", wireType) - } - 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 - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) - } - 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 - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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 > l { - return io.ErrUnexpectedEOF - } - if m.QueryStats == nil { - m.QueryStats = &QueryStats{} - } - if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WrittenKeys", wireType) - } - m.WrittenKeys = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WrittenKeys |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WrittenBytes", wireType) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StoreStats) 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: StoreStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StoreStats: 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) - } - 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 - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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 - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Available", 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 - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionCount", 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 - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SendingSnapCount", wireType) - } - m.SendingSnapCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SendingSnapCount |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivingSnapCount", wireType) - } - m.ReceivingSnapCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReceivingSnapCount |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - m.StartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTime |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplyingSnapCount", wireType) - } - m.ApplyingSnapCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ApplyingSnapCount |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - 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 iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(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) - } - 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 - } - } - case 11: - 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 12: - 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 13: - 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 14: - 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 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Interval == nil { - m.Interval = &TimeInterval{} - } - if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsages", 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 > l { - return io.ErrUnexpectedEOF - } - m.CpuUsages = append(m.CpuUsages, &RecordPair{}) - if err := m.CpuUsages[len(m.CpuUsages)-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) - } - 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 > 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 = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteIoRates", 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 > 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 - } - 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 > l { - return io.ErrUnexpectedEOF - } - m.OpLatencies = append(m.OpLatencies, &RecordPair{}) - if err := m.OpLatencies[len(m.OpLatencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerStats", 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 > l { - return io.ErrUnexpectedEOF - } - 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 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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 > l { - return io.ErrUnexpectedEOF - } - if m.QueryStats == nil { - m.QueryStats = &QueryStats{} - } - if err := m.QueryStats.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) - } - 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 - } - } - 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 > l { - return io.ErrUnexpectedEOF - } - 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 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsApplyBusy", 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.IsApplyBusy = bool(v != 0) - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotStats", 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 > 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 SlowTrend", 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 > l { - return io.ErrUnexpectedEOF - } - if m.SlowTrend == nil { - m.SlowTrend = &SlowTrend{} - } - if err := m.SlowTrend.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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SlowTrend) 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: SlowTrend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SlowTrend: 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 - } - 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 - } - 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 { - 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 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) - } - m.TransportSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TransportSize |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 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 - } - 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 - } - 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 > 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 - } - 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 > 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 IsForceLeader", 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.IsForceLeader = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasCommitMerge", 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.HasCommitMerge = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 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: 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 PeerReports", 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 > 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 = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) - } - m.Step = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Step |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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 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 > 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 Stats", 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 > 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 - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoreReport", 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 > l { - return io.ErrUnexpectedEOF - } - if m.StoreReport == nil { - m.StoreReport = &StoreReport{} - } - if err := m.StoreReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DrAutosyncStatus", 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 > l { - return io.ErrUnexpectedEOF - } - if m.DrAutosyncStatus == nil { - m.DrAutosyncStatus = &replication_modepb.StoreDRAutoSyncStatus{} - } - if err := m.DrAutosyncStatus.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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: 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) - } - 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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedVoters", 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 > 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 { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > 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 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: 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: - 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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - 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.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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecoveryPlan) 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: RecoveryPlan: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecoveryPlan: 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) - } - 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 > 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 { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Updates", 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 > 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 = 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 > l { - return io.ErrUnexpectedEOF - } - 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 Demotes", 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 > l { - return io.ErrUnexpectedEOF - } - 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 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceLeader", 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 > 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 Step", wireType) - } - m.Step = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Step |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AwakenRegions) 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: AwakenRegions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AwakenRegions: 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 - } - } - 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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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 CtrlEvent", wireType) - } - m.CtrlEvent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CtrlEvent |= (ControlGrpcEvent(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StoreHeartbeatResponse) 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: 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 > 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 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 > 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 - case 3: - if wireType != 2 { - 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 > 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 { - 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 > l { - return io.ErrUnexpectedEOF - } - if m.RecoveryPlan == nil { - m.RecoveryPlan = &RecoveryPlan{} - } - if err := m.RecoveryPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AwakenRegions", 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 > l { - return io.ErrUnexpectedEOF - } - if m.AwakenRegions == nil { - m.AwakenRegions = &AwakenRegions{} - } - if err := m.AwakenRegions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControlGrpc", 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 > l { - return io.ErrUnexpectedEOF - } - if m.ControlGrpc == nil { - m.ControlGrpc = &ControlGrpc{} - } - if err := m.ControlGrpc.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScatterRegionRequest) 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: ScatterRegionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 > 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) - } - 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 != 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 > 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 4: - 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 > l { - return io.ErrUnexpectedEOF - } - if m.Leader == nil { - m.Leader = &metapb.Peer{} - } - 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 Group", 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 > 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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - 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 - } - } - 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 iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipStoreLimit = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScatterRegionResponse) 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: ScatterRegionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 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 > 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 FinishedPercentage", wireType) - } - m.FinishedPercentage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FinishedPercentage |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 - } - 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: 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 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 > 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 { - 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 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 > 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 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 - 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: UpdateGCSafePointRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointRequest: 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 > 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 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateGCSafePointResponse) 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: 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 > 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 NewSafePoint", wireType) - } - m.NewSafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NewSafePoint |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateServiceGCSafePointRequest) 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: UpdateServiceGCSafePointRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: 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 > 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 ServiceId", 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 > 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 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if 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 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 > 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 ServiceId", 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 > 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) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGCSafePointV2Request) 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: GetGCSafePointV2Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGCSafePointV2Request: 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 > 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) - } - 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 { - 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 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 > 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 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - 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 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: 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 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 > 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 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SafePointEvent) 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: SafePointEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SafePointEvent: 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 - } - } - case 2: - 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 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= (EventType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WatchGCSafePointV2Response) 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: WatchGCSafePointV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WatchGCSafePointV2Response: 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 > 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 Events", 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 > 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 - } - iNdEx = postIndex - case 3: - 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateGCSafePointV2Request) 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: UpdateGCSafePointV2Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointV2Request: 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 > 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) - } - 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) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateGCSafePointV2Response) 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: UpdateGCSafePointV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointV2Response: 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 > 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 NewSafePoint", wireType) - } - m.NewSafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NewSafePoint |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateServiceSafePointV2Request) 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: UpdateServiceSafePointV2Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Request: 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 > 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) - } - 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) - } - 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 > l { - return io.ErrUnexpectedEOF - } - m.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) - if m.ServiceId == nil { - m.ServiceId = []byte{} - } - 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateServiceSafePointV2Response) 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: UpdateServiceSafePointV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Response: 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 > 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 ServiceId", 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 > 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) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -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 > 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 { - 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: - 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 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:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAllGCSafePointV2Response) 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: GetAllGCSafePointV2Response: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllGCSafePointV2Response: 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 > 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 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 > 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) - } - 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RegionStat) 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: RegionStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegionStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 2: - 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 3: - 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 4: - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncRegionRequest) 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: SyncRegionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncRegionRequest: 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 > 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 Member", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Member == nil { - m.Member = &Member{} - } - if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartIndex", wireType) - } - m.StartIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartIndex |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeersStats) 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: PeersStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeersStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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 > l { - return io.ErrUnexpectedEOF - } - m.Peers = append(m.Peers, &PeerStats{}) - if err := m.Peers[len(m.Peers)-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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Peers) 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: Peers: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Peers: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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 > 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 - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncRegionResponse) 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: SyncRegionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncRegionResponse: 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 > 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 Regions", 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 > 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 { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartIndex", wireType) - } - m.StartIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartIndex |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionStats", 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 > l { - return io.ErrUnexpectedEOF - } - m.RegionStats = append(m.RegionStats, &RegionStat{}) - if err := m.RegionStats[len(m.RegionStats)-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 RegionLeaders", 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 > l { - return io.ErrUnexpectedEOF - } - m.RegionLeaders = append(m.RegionLeaders, &metapb.Peer{}) - if err := m.RegionLeaders[len(m.RegionLeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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 > l { - return io.ErrUnexpectedEOF - } - m.Buckets = append(m.Buckets, &metapb.Buckets{}) - if err := m.Buckets[len(m.Buckets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - 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 > l { - return io.ErrUnexpectedEOF - } - m.DownPeers = append(m.DownPeers, &PeersStats{}) - if err := m.DownPeers[len(m.DownPeers)-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 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 > l { - return io.ErrUnexpectedEOF - } - m.PendingPeers = append(m.PendingPeers, &Peers{}) - if err := m.PendingPeers[len(m.PendingPeers)-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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetOperatorRequest) 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: GetOperatorRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetOperatorRequest: 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 > 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) - } - 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 - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetOperatorResponse) 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: GetOperatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetOperatorResponse: 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 > 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 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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Desc", 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 > l { - return io.ErrUnexpectedEOF - } - m.Desc = append(m.Desc[:0], dAtA[iNdEx:postIndex]...) - if m.Desc == nil { - m.Desc = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= (OperatorStatus(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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 > l { - return io.ErrUnexpectedEOF - } - m.Kind = append(m.Kind[:0], dAtA[iNdEx:postIndex]...) - if m.Kind == nil { - m.Kind = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncMaxTSRequest) 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: SyncMaxTSRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncMaxTSRequest: 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 > 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 MaxTs", 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 > l { - return io.ErrUnexpectedEOF - } - if m.MaxTs == nil { - m.MaxTs = &Timestamp{} - } - if err := m.MaxTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipCheck", 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.SkipCheck = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SyncMaxTSResponse) 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: SyncMaxTSResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SyncMaxTSResponse: 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 > 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 MaxLocalTs", 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 > l { - return io.ErrUnexpectedEOF - } - if m.MaxLocalTs == nil { - m.MaxLocalTs = &Timestamp{} - } - if err := m.MaxLocalTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SyncedDcs", 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 > l { - return io.ErrUnexpectedEOF - } - m.SyncedDcs = append(m.SyncedDcs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitRegionsRequest) 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: SplitRegionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitRegionsRequest: 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 > 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 SplitKeys", 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 > l { - return io.ErrUnexpectedEOF - } - m.SplitKeys = append(m.SplitKeys, make([]byte, postIndex-iNdEx)) - copy(m.SplitKeys[len(m.SplitKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RetryLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitRegionsResponse) 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: SplitRegionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitRegionsResponse: 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 > 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 FinishedPercentage", wireType) - } - m.FinishedPercentage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FinishedPercentage |= (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.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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitAndScatterRegionsRequest) 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: SplitAndScatterRegionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitAndScatterRegionsRequest: 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 > 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 SplitKeys", 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 > l { - return io.ErrUnexpectedEOF - } - m.SplitKeys = append(m.SplitKeys, make([]byte, postIndex-iNdEx)) - copy(m.SplitKeys[len(m.SplitKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", 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 > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - 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 - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RetryLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitAndScatterRegionsResponse) 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: SplitAndScatterRegionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitAndScatterRegionsResponse: 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 > 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 SplitFinishedPercentage", wireType) - } - m.SplitFinishedPercentage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SplitFinishedPercentage |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScatterFinishedPercentage", wireType) - } - m.ScatterFinishedPercentage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ScatterFinishedPercentage |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - 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 > l { - return io.ErrUnexpectedEOF - } - 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) - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDCLocationInfoRequest) 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: GetDCLocationInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDCLocationInfoRequest: 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 > 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 DcLocation", 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 > l { - return io.ErrUnexpectedEOF - } - m.DcLocation = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetDCLocationInfoResponse) 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: GetDCLocationInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetDCLocationInfoResponse: 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 > 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 Suffix", wireType) - } - m.Suffix = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Suffix |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", 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 > l { - return io.ErrUnexpectedEOF - } - if m.MaxTs == nil { - m.MaxTs = &Timestamp{} - } - if err := m.MaxTs.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryStats) 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: QueryStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GC", wireType) - } - m.GC = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GC |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Get", wireType) - } - m.Get = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Get |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Scan", wireType) - } - m.Scan = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Scan |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Coprocessor", wireType) - } - m.Coprocessor = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Coprocessor |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Delete", wireType) - } - m.Delete = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Delete |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteRange", wireType) - } - m.DeleteRange = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeleteRange |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Put", wireType) - } - m.Put = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Put |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Prewrite", wireType) - } - m.Prewrite = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Prewrite |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AcquirePessimisticLock", wireType) - } - m.AcquirePessimisticLock = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AcquirePessimisticLock |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) - } - m.Commit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Rollback", wireType) - } - m.Rollback = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Rollback |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportBucketsRequest) 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: ReportBucketsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportBucketsRequest: 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 > 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 RegionEpoch", 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 > l { - return io.ErrUnexpectedEOF - } - if m.RegionEpoch == nil { - m.RegionEpoch = &metapb.RegionEpoch{} - } - if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Buckets == nil { - m.Buckets = &metapb.Buckets{} - } - if err := m.Buckets.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportBucketsResponse) 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: ReportBucketsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportBucketsResponse: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportMinResolvedTsRequest) 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: ReportMinResolvedTsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportMinResolvedTsRequest: 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 > 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 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 - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinResolvedTs", wireType) - } - m.MinResolvedTs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinResolvedTs |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportMinResolvedTsResponse) 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: ReportMinResolvedTsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportMinResolvedTsResponse: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetExternalTimestampRequest) 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: SetExternalTimestampRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetExternalTimestampRequest: 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 > 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 Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetExternalTimestampResponse) 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: SetExternalTimestampResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetExternalTimestampResponse: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetExternalTimestampRequest) 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: GetExternalTimestampRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetExternalTimestampRequest: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetExternalTimestampResponse) 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: GetExternalTimestampResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetExternalTimestampResponse: 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 > 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 Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMinTSRequest) 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: GetMinTSRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMinTSRequest: 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 > 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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetMinTSResponse) 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: GetMinTSResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetMinTSResponse: 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 > 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 Timestamp", 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 > l { - return io.ErrUnexpectedEOF - } - if m.Timestamp == nil { - m.Timestamp = &Timestamp{} - } - if err := m.Timestamp.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 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPdpb(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPdpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPdpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPdpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthPdpb - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPdpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipPdpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthPdpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") -) - -func init() { proto.RegisterFile("pdpb.proto", fileDescriptorPdpb) } - -var fileDescriptorPdpb = []byte{ +var fileDescriptor_78b27e6f04f44c6e = []byte{ // 6173 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7c, 0x4b, 0x93, 0xdb, 0x48, 0x72, 0x70, 0x83, 0x8f, 0xee, 0x66, 0xf2, 0xd1, 0xec, 0x52, 0x4b, 0x4d, 0x51, 0xd2, 0x48, 0x03, @@ -31362,3 +8737,29540 @@ var fileDescriptorPdpb = []byte{ 0x20, 0xb0, 0xcf, 0xce, 0x1f, 0x9c, 0x9d, 0xe3, 0xd7, 0x73, 0x8f, 0x96, 0xf1, 0xe7, 0xfd, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xfe, 0xb5, 0xfa, 0xcb, 0x57, 0x00, 0x00, } + +// 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) + ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, 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 (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 out, 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 + } + return out, 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 + } + x := &pDTsoClient{stream} + return x, 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 + } + 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 (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 (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 (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 +} + +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 + } + 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 + } + 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 + } + 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 out, nil +} + +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_RegionHeartbeatClient interface { + Send(*RegionHeartbeatRequest) error + Recv() (*RegionHeartbeatResponse, error) + grpc.ClientStream +} + +type pDRegionHeartbeatClient struct { + grpc.ClientStream +} + +func (x *pDRegionHeartbeatClient) Send(m *RegionHeartbeatRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *pDRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, error) { + m := new(RegionHeartbeatResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, 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 +} + +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 (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 (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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + return out, 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 + } + 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 (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 + } + return x, nil +} + +type PD_WatchGCSafePointV2Client interface { + Recv() (*WatchGCSafePointV2Response, error) + grpc.ClientStream +} + +type pDWatchGCSafePointV2Client struct { + grpc.ClientStream +} + +func (x *pDWatchGCSafePointV2Client) Recv() (*WatchGCSafePointV2Response, error) { + m := new(WatchGCSafePointV2Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +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 (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 + } + return out, 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 + } + return out, nil +} + +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 pDSyncRegionsClient struct { + grpc.ClientStream +} + +func (x *pDSyncRegionsClient) Send(m *SyncRegionRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *pDSyncRegionsClient) Recv() (*SyncRegionResponse, error) { + m := new(SyncRegionResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + 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 (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 (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 (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 +} + +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 + } + return out, 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 +} + +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 (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 + } + return x, nil +} + +type PD_WatchGlobalConfigClient interface { + Recv() (*WatchGlobalConfigResponse, error) + grpc.ClientStream +} + +type pDWatchGlobalConfigClient struct { + grpc.ClientStream +} + +func (x *pDWatchGlobalConfigClient) Recv() (*WatchGlobalConfigResponse, error) { + m := new(WatchGlobalConfigResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +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_ReportBucketsClient interface { + Send(*ReportBucketsRequest) error + CloseAndRecv() (*ReportBucketsResponse, error) + grpc.ClientStream +} + +type pDReportBucketsClient struct { + grpc.ClientStream +} + +func (x *pDReportBucketsClient) Send(m *ReportBucketsRequest) error { + return x.ClientStream.SendMsg(m) +} + +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 (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 (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 + } + return out, 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 + } + return out, 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 + } + return out, nil +} + +// 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) + ScanRegions(context.Context, *ScanRegionsRequest) (*ScanRegionsResponse, 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) 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) 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 RegisterPDServer(s *grpc.Server, srv PDServer) { + s.RegisterService(&_PD_serviceDesc, srv) +} + +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 _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 _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).Tso(&pDTsoServer{stream}) +} + +type PD_TsoServer interface { + Send(*TsoResponse) error + Recv() (*TsoRequest, error) + grpc.ServerStream +} + +type pDTsoServer struct { + grpc.ServerStream +} + +func (x *pDTsoServer) Send(m *TsoResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *pDTsoServer) Recv() (*TsoRequest, error) { + m := new(TsoRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, 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 + } + 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) +} + +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 + } + 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 _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 _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 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) +} + +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 + } + 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 _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 _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 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) +} + +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 + } + 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 _PD_RegionHeartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).RegionHeartbeat(&pDRegionHeartbeatServer{stream}) +} + +type PD_RegionHeartbeatServer interface { + Send(*RegionHeartbeatResponse) error + Recv() (*RegionHeartbeatRequest, error) + grpc.ServerStream +} + +type pDRegionHeartbeatServer struct { + grpc.ServerStream +} + +func (x *pDRegionHeartbeatServer) Send(m *RegionHeartbeatResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *pDRegionHeartbeatServer) Recv() (*RegionHeartbeatRequest, error) { + m := new(RegionHeartbeatRequest) + if err := x.ServerStream.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 { + 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) +} + +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 + } + 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) +} + +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 + } + 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 _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 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) +} + +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 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) +} + +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 + } + 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) +} + +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 + } + 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) +} + +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 + } + 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 _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 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) +} + +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 + } + 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 _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 _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 + } + 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 _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 + } + 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 _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 _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 interceptor == nil { + return srv.(PDServer).GetGCSafePointV2(ctx, in) + } + 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 _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_WatchGCSafePointV2Server interface { + Send(*WatchGCSafePointV2Response) error + grpc.ServerStream +} + +type pDWatchGCSafePointV2Server struct { + grpc.ServerStream +} + +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 + } + 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 _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 _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 interceptor == nil { + return srv.(PDServer).GetAllGCSafePointV2(ctx, in) + } + 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 _PD_SyncRegions_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).SyncRegions(&pDSyncRegionsServer{stream}) +} + +type PD_SyncRegionsServer interface { + Send(*SyncRegionResponse) error + Recv() (*SyncRegionRequest, error) + grpc.ServerStream +} + +type pDSyncRegionsServer struct { + grpc.ServerStream +} + +func (x *pDSyncRegionsServer) Send(m *SyncRegionResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *pDSyncRegionsServer) Recv() (*SyncRegionRequest, error) { + m := new(SyncRegionRequest) + if err := x.ServerStream.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 { + 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) +} + +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 + } + 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) +} + +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 + } + 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) +} + +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 + } + 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) +} + +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 + } + 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 _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 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) +} + +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 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) +} + +func _PD_WatchGlobalConfig_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchGlobalConfigRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(PDServer).WatchGlobalConfig(m, &pDWatchGlobalConfigServer{stream}) +} + +type PD_WatchGlobalConfigServer interface { + Send(*WatchGlobalConfigResponse) error + grpc.ServerStream +} + +type pDWatchGlobalConfigServer struct { + grpc.ServerStream +} + +func (x *pDWatchGlobalConfigServer) Send(m *WatchGlobalConfigResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _PD_ReportBuckets_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).ReportBuckets(&pDReportBucketsServer{stream}) +} + +type PD_ReportBucketsServer interface { + SendAndClose(*ReportBucketsResponse) error + Recv() (*ReportBucketsRequest, error) + grpc.ServerStream +} + +type pDReportBucketsServer struct { + grpc.ServerStream +} + +func (x *pDReportBucketsServer) SendAndClose(m *ReportBucketsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *pDReportBucketsServer) Recv() (*ReportBucketsRequest, error) { + m := new(ReportBucketsRequest) + if err := x.ServerStream.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 { + 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) +} + +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 + } + 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 _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 _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 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) +} + +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: "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", +} + +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 +} + +func (m *WatchGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 (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 (m *WatchGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 (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 (m *StoreGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 *StoreGlobalConfigResponse) 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 *StoreGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 +} + +func (m *LoadGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LoadGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + } + return len(dAtA) - i, 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 { + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x10 + } + 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 + } + } + return len(dAtA) - i, nil +} + +func (m *GlobalConfigItem) 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 *GlobalConfigItem) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GlobalConfigItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + 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 *RequestHeader) 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 *RequestHeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SenderId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) + i-- + dAtA[i] = 0x10 + } + if m.ClusterId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ResponseHeader) 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 *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 +} + +func (m *Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + return len(dAtA) - i, 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 { + 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *Timestamp) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SuffixBits != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) + i-- + dAtA[i] = 0x18 + } + if m.Logical != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) + i-- + dAtA[i] = 0x10 + } + if m.Physical != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TsoResponse) 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 *TsoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 *BootstrapRequest) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 +} + +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 + } + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 *IsBootstrappedRequest) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *IsBootstrappedResponse) 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 *IsBootstrappedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsBootstrappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AllocIDRequest) 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 *AllocIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AllocIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *AllocIDResponse) 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 *AllocIDResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AllocIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Id != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) + 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 *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 + } + return dAtA[:n], nil +} + +func (m *IsSnapshotRecoveringRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsSnapshotRecoveringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *IsSnapshotRecoveringResponse) 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 *IsSnapshotRecoveringResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsSnapshotRecoveringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Marked { + i-- + if m.Marked { + 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStoreRequest) 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 *GetStoreRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetStoreResponse) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 +} + +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 (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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 *GetAllStoresRequest) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExcludeTombstoneStores { + i-- + if m.ExcludeTombstoneStores { + 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetAllStoresResponse) 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 *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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 *GetRegionRequest) 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *GetRegionResponse) 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 *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + 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 { + { + 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 *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 + } + return dAtA[:n], nil +} + +func (m *GetRegionByIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRegionByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 (m *ScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 +} + +func (m *Region) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + } + 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.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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ScanRegionsResponse) 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 *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *GetClusterConfigRequest) 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 *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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 + } + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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] = 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 *PutClusterConfigRequest) 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 *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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] = 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 *PutClusterConfigResponse) 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 *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *Member) 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 *Member) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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] = 0x4a + } + if len(m.GitHash) > 0 { + i -= len(m.GitHash) + copy(dAtA[i:], m.GitHash) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) + i-- + 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] = 0x3a + } + 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))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetMembersRequest) 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 *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *GetMembersResponse) 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 *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + } + 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 + } + } + 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 *GetClusterInfoRequest) 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 *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *GetClusterInfoResponse) 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 *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + dAtA52 := make([]byte, len(m.ServiceModes)*10) + var j51 int + for _, num := range m.ServiceModes { + for num >= 1<<7 { + dAtA52[j51] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j51++ + } + dAtA52[j51] = uint8(num) + j51++ + } + i -= j51 + copy(dAtA[i:], dAtA52[:j51]) + i = encodeVarintPdpb(dAtA, i, uint64(j51)) + 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 *PeerStats) 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 *PeerStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DownSeconds != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) + i-- + dAtA[i] = 0x10 + } + if m.Peer != nil { + { + size, err := m.Peer.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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + 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] = 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 + } + 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.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 + } + } + 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 *ChangePeer) 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 *ChangePeer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ChangePeerV2) 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 *ChangePeerV2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeerV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *TransferLeader) 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 *TransferLeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + { + size, err := m.Peer.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 *Merge) 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 *Merge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Target != nil { + { + size, err := m.Target.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 *SplitRegion) 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 *SplitRegion) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SwitchWitness) 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 *SwitchWitness) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsWitness { + i-- + if m.IsWitness { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + 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 *BatchSwitchWitness) 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 *BatchSwitchWitness) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RegionHeartbeatResponse) 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 *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + { + 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 { + { + 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 *AskSplitRequest) 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 *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *AskSplitResponse) 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 *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NewPeerIds) > 0 { + dAtA76 := make([]byte, len(m.NewPeerIds)*10) + var j75 int + for _, num := range m.NewPeerIds { + for num >= 1<<7 { + dAtA76[j75] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j75++ + } + dAtA76[j75] = uint8(num) + j75++ + } + i -= j75 + copy(dAtA[i:], dAtA76[:j75]) + i = encodeVarintPdpb(dAtA, i, uint64(j75)) + i-- + dAtA[i] = 0x1a + } + if m.NewRegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) + 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 *ReportSplitRequest) 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 *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + 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 *ReportSplitResponse) 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 *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *AskBatchSplitRequest) 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 *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SplitCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) + i-- + 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 { + { + 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 *SplitID) 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 *SplitID) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NewPeerIds) > 0 { + dAtA85 := make([]byte, len(m.NewPeerIds)*10) + var j84 int + for _, num := range m.NewPeerIds { + for num >= 1<<7 { + dAtA85[j84] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j84++ + } + dAtA85[j84] = uint8(num) + j84++ + } + i -= j84 + copy(dAtA[i:], dAtA85[:j84]) + i = encodeVarintPdpb(dAtA, i, uint64(j84)) + i-- + dAtA[i] = 0x12 + } + if m.NewRegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AskBatchSplitResponse) 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 *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 *ReportBatchSplitRequest) 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 *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + { + 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 *ReportBatchSplitResponse) 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 *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *TimeInterval) 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 *TimeInterval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EndTimestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) + i-- + dAtA[i] = 0x10 + } + if m.StartTimestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RecordPair) 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 *RecordPair) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) + 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))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PeerStat) 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 *PeerStat) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + 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 + } + return len(dAtA) - i, nil +} + +func (m *StoreStats) 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 *StoreStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + { + size, err := m.SlowTrend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + 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 + } + } + 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 { + dAtA92 := make([]byte, len(m.DamagedRegionsId)*10) + var j91 int + for _, num := range m.DamagedRegionsId { + for num >= 1<<7 { + dAtA92[j91] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j91++ + } + dAtA92[j91] = uint8(num) + j91++ + } + i -= j91 + copy(dAtA[i:], dAtA92[:j91]) + i = encodeVarintPdpb(dAtA, i, uint64(j91)) + 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.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + 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 + } + return len(dAtA) - i, nil +} + +func (m *SlowTrend) 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 *SlowTrend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SlowTrend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)))) + 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 *SnapshotStat) 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 *SnapshotStat) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PeerReport) 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 *PeerReport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PeerReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + i-- + dAtA[i] = 0x18 + } + 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)) + } + 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StoreReport) 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 *StoreReport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *StoreHeartbeatRequest) 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 *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DrAutosyncStatus != nil { + { + size, err := m.DrAutosyncStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.StoreReport != nil { + { + size, err := m.StoreReport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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] = 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 *DemoteFailedVoters) 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 *DemoteFailedVoters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DemoteFailedVoters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ForceLeader) 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 *ForceLeader) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.EnterForceLeaders) > 0 { + dAtA102 := make([]byte, len(m.EnterForceLeaders)*10) + var j101 int + for _, num := range m.EnterForceLeaders { + for num >= 1<<7 { + dAtA102[j101] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j101++ + } + dAtA102[j101] = uint8(num) + j101++ + } + i -= j101 + copy(dAtA[i:], dAtA102[:j101]) + i = encodeVarintPdpb(dAtA, i, uint64(j101)) + i-- + dAtA[i] = 0x12 + } + if len(m.FailedStores) > 0 { + dAtA104 := make([]byte, len(m.FailedStores)*10) + var j103 int + for _, num := range m.FailedStores { + for num >= 1<<7 { + dAtA104[j103] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j103++ + } + dAtA104[j103] = uint8(num) + j103++ + } + i -= j103 + copy(dAtA[i:], dAtA104[:j103]) + i = encodeVarintPdpb(dAtA, i, uint64(j103)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RecoveryPlan) 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 *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Step != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) + i-- + dAtA[i] = 0x30 + } + if m.ForceLeader != nil { + { + size, err := m.ForceLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + 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 + } + } + if len(m.Tombstones) > 0 { + dAtA107 := make([]byte, len(m.Tombstones)*10) + var j106 int + for _, num := range m.Tombstones { + for num >= 1<<7 { + dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j106++ + } + dAtA107[j106] = uint8(num) + j106++ + } + i -= j106 + copy(dAtA[i:], dAtA107[:j106]) + i = encodeVarintPdpb(dAtA, i, uint64(j106)) + i-- + dAtA[i] = 0x1a + } + 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 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-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *AwakenRegions) 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 *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AbnormalStores) > 0 { + dAtA109 := make([]byte, len(m.AbnormalStores)*10) + var j108 int + for _, num := range m.AbnormalStores { + for num >= 1<<7 { + dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j108++ + } + dAtA109[j108] = uint8(num) + j108++ + } + i -= j108 + copy(dAtA[i:], dAtA109[:j108]) + i = encodeVarintPdpb(dAtA, i, uint64(j108)) + i-- + dAtA[i] = 0xa + } + 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 + } + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CtrlEvent != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StoreHeartbeatResponse) 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 *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + 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 *ScatterRegionRequest) 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 *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + dAtA116 := make([]byte, len(m.RegionsId)*10) + var j115 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA116[j115] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j115++ + } + dAtA116[j115] = uint8(num) + j115++ + } + i -= j115 + copy(dAtA[i:], dAtA116[:j115]) + i = encodeVarintPdpb(dAtA, i, uint64(j115)) + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ScatterRegionResponse) 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 *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScatterRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetGCSafePointRequest) 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 *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *GetGCSafePointResponse) 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 *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateGCSafePointRequest) 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 *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + 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 + } + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *UpdateServiceGCSafePointRequest) 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 *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *UpdateServiceGCSafePointResponse) 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 *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + 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 *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 + } + return dAtA[:n], nil +} + +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 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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 + } + return dAtA[:n], nil +} + +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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + 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 *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 dAtA[:n], nil +} + +func (m *SafePointEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SafePointEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + i-- + dAtA[i] = 0x10 + } + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +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 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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-- { + { + 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 + } + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 *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 dAtA[:n], nil +} + +func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *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 dAtA[:n], nil +} + +func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + 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 *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 dAtA[:n], nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 *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 dAtA[:n], nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.GcSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) + i-- + dAtA[i] = 0x10 + } + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + 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 + } + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + i-- + dAtA[i] = 0x10 + } + if m.BytesWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.StartIndex != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + i-- + dAtA[i] = 0x18 + } + 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.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 *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 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 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.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 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 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.StartIndex != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + 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.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 *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 dAtA[:n], nil +} + +func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +} + +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 dAtA[:n], nil +} + +func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.Status != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) + 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))) + 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 + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SkipCheck { + i-- + if m.SkipCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + 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.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 *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 dAtA[:n], nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { + { + 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 *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 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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RegionsId) > 0 { + dAtA148 := make([]byte, len(m.RegionsId)*10) + var j147 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA148[j147] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j147++ + } + dAtA148[j147] = uint8(num) + j147++ + } + i -= j147 + copy(dAtA[i:], dAtA148[:j147]) + i = encodeVarintPdpb(dAtA, i, uint64(j147)) + i-- + dAtA[i] = 0x1a + } + 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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 dAtA[:n], nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]))) + 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 *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 dAtA[:n], nil +} + +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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RegionsId) > 0 { + dAtA152 := make([]byte, len(m.RegionsId)*10) + var j151 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA152[j151] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j151++ + } + dAtA152[j151] = uint8(num) + j151++ + } + i -= j151 + copy(dAtA[i:], dAtA152[:j151]) + i = encodeVarintPdpb(dAtA, i, uint64(j151)) + 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-- + 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 *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 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.Suffix != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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)) + i-- + dAtA[i] = 0x18 + } + if m.Get != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) + i-- + dAtA[i] = 0x10 + } + if m.GC != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) + i-- + dAtA[i] = 0x8 + } + 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 + } + 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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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.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] = 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MinResolvedTs != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) + i-- + dAtA[i] = 0x18 + } + 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 -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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 dAtA[:n], nil +} + +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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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]) + 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 *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 m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 *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.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + 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 + } + 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 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 + l = len(m.ConfigPath) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *WatchGlobalConfigResponse) 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)) + } + } + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StoreGlobalConfigRequest) 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)) + } + } + l = len(m.ConfigPath) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LoadGlobalConfigResponse) Size() (n int) { + if m == nil { + return 0 + } + 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.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GlobalConfigItem) Size() (n int) { + if m == nil { + return 0 + } + 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.Kind != 0 { + n += 1 + sovPdpb(uint64(m.Kind)) + } + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RequestHeader) Size() (n int) { + if m == nil { + return 0 + } + 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TsoRequest) 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)) + } + l = len(m.DcLocation) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BootstrapRequest) 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)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BootstrapResponse) 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IsBootstrappedResponse) 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.Bootstrapped { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AllocIDRequest) 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IsSnapshotRecoveringRequest) 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetStoreRequest) 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetStoreResponse) 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)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetAllStoresRequest) 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.ExcludeTombstoneStores { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetAllStoresResponse) 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.Stores) > 0 { + for _, e := range m.Stores { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetRegionRequest) 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.RegionKey) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NeedBuckets { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 += 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ScanRegionsRequest) 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.StartKey) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovPdpb(uint64(m.Limit)) + } + l = len(m.EndKey) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Region) Size() (n int) { + if m == nil { + return 0 + } + 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 len(m.PendingPeers) > 0 { + for _, e := range m.PendingPeers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ScanRegionsResponse) 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.RegionMetas) > 0 { + for _, e := range m.RegionMetas { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PutClusterConfigRequest) 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PutClusterConfigResponse) 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Member) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetMembersResponse) 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.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetClusterInfoResponse) 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.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 m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PeerStats) 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.DownSeconds != 0 { + n += 1 + sovPdpb(uint64(m.DownSeconds)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RegionHeartbeatRequest) 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 += 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TransferLeader) 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 len(m.Peers) > 0 { + for _, e := range m.Peers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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.NewSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.NewSafePoint)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreGlobalConfigResponse) 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: 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: + 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LoadGlobalConfigRequest) 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: LoadGlobalConfigRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Names", 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.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LoadGlobalConfigResponse) 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: LoadGlobalConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Items", 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.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 != 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GlobalConfigItem) 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: 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 Payload", 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.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RequestHeader) 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: RequestHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResponseHeader) 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: ResponseHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Error) 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: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: 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) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ErrorType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 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) + } + 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.DcLocation = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Timestamp) 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: Timestamp: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Physical", wireType) + } + m.Physical = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Physical |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) + } + 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 + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuffixBits", wireType) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TsoResponse) 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: TsoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TsoResponse: 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 != 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 Timestamp", 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.Timestamp == nil { + m.Timestamp = &Timestamp{} + } + if err := m.Timestamp.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BootstrapRequest) 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: BootstrapRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BootstrapRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Store", 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.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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BootstrapResponse) 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: BootstrapResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BootstrapResponse: 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 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IsBootstrappedRequest) 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: IsBootstrappedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IsBootstrappedRequest: 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IsBootstrappedResponse) 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: IsBootstrappedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IsBootstrappedResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bootstrapped", 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.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AllocIDResponse) 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: AllocIDResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AllocIDResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IsSnapshotRecoveringResponse) 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: IsSnapshotRecoveringResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IsSnapshotRecoveringResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Marked", 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.Marked = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStoreRequest) 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: GetStoreRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStoreRequest: 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 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStoreResponse) 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: GetStoreResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStoreResponse: 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 Store", 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.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 Stats", 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.Stats == nil { + m.Stats = &StoreStats{} + } + if err := m.Stats.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutStoreRequest) 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: PutStoreRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutStoreRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Store", 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.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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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: + 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 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAllStoresRequest) 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: GetAllStoresRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAllStoresRequest: 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 ExcludeTombstoneStores", 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.ExcludeTombstoneStores = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAllStoresResponse) 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: GetAllStoresResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAllStoresResponse: 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 Stores", 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.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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRegionRequest) 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: GetRegionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRegionRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionKey", 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.RegionKey = append(m.RegionKey[:0], dAtA[iNdEx:postIndex]...) + if m.RegionKey == nil { + m.RegionKey = []byte{} + } + iNdEx = postIndex + 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 + } + } + m.NeedBuckets = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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: + 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 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 + 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Leader == nil { + m.Leader = &metapb.Peer{} + } + 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 + } + 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 6: + 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 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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.Buckets == nil { + m.Buckets = &metapb.Buckets{} + } + if err := m.Buckets.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRegionByIDRequest) 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: GetRegionByIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRegionByIDRequest: 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) + } + 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 { + 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) + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScanRegionsRequest) 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: ScanRegionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScanRegionsRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartKey", 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.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.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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Region) 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: Region: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + case 2: + 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + 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 != 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 + } + 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 + } + 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 RegionMetas", 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.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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Leaders", 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.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 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regions", 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.Regions = append(m.Regions, &Region{}) + if err := m.Regions[len(m.Regions)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetClusterConfigResponse) 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: GetClusterConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetClusterConfigResponse: 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 Cluster", 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.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutClusterConfigResponse) 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: PutClusterConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Member) 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: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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) + } + 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.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 postIndex > l { + return io.ErrUnexpectedEOF + } + 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 + } + 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 + } + 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.GitHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", 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.DcLocation = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetMembersRequest) 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: GetMembersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetMembersRequest: 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetMembersResponse) 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: GetMembersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetMembersResponse: 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 Members", 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.Members = append(m.Members, &Member{}) + if err := m.Members[len(m.Members)-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 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Leader == nil { + m.Leader = &Member{} + } + 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 EtcdLeader", 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.EtcdLeader == nil { + m.EtcdLeader = &Member{} + } + if err := m.EtcdLeader.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) + } + 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.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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: + 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 == 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TsoUrls", 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.TsoUrls = append(m.TsoUrls, 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PeerStats) 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: PeerStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Peer", 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.Peer == nil { + m.Peer = &metapb.Peer{} + } + 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegionHeartbeatRequest) 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: RegionHeartbeatRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegionHeartbeatRequest: 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 != 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 + 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Leader == nil { + m.Leader = &metapb.Peer{} + } + 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 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 { + 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.Interval == nil { + m.Interval = &TimeInterval{} + } + if err := m.Interval.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) + } + 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 + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) + } + 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 + } + } + case 15: + 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.RegionReplicationStatus{} + } + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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.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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ChangePeer) 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: ChangePeer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ChangePeer: 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) + } + 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.Peer == nil { + m.Peer = &metapb.Peer{} + } + 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 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ChangePeerV2) 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: ChangePeerV2: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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, &ChangePeer{}) + if err := m.Changes[len(m.Changes)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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 Peer", 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.Peer == nil { + m.Peer = &metapb.Peer{} + } + if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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.Peers = append(m.Peers, &metapb.Peer{}) + if err := m.Peers[len(m.Peers)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target == nil { + m.Target = &metapb.Region{} + } + if err := m.Target.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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) + } + m.Policy = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Policy |= CheckPolicy(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.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 + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 PeerId", wireType) + } + m.PeerId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PeerId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsWitness", 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.IsWitness = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchSwitchWitness) 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: BatchSwitchWitness: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 SwitchWitnesses", 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.SwitchWitnesses = append(m.SwitchWitnesses, &SwitchWitness{}) + if err := m.SwitchWitnesses[len(m.SwitchWitnesses)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegionHeartbeatResponse) 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: RegionHeartbeatResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 ChangePeer", 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.ChangePeer == nil { + m.ChangePeer = &ChangePeer{} + } + 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 + } + 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 + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionEpoch", 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.RegionEpoch == nil { + m.RegionEpoch = &metapb.RegionEpoch{} + } + if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetPeer", 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.TargetPeer == nil { + m.TargetPeer = &metapb.Peer{} + } + if err := m.TargetPeer.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) + } + 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.Merge == nil { + m.Merge = &Merge{} + } + if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitRegion", 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.SplitRegion == nil { + m.SplitRegion = &SplitRegion{} + } + if err := m.SplitRegion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 + } + 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.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 SwitchWitnesses", 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.SwitchWitnesses == nil { + m.SwitchWitnesses = &BatchSwitchWitness{} + } + if err := m.SwitchWitnesses.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AskSplitRequest) 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: AskSplitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AskSplitRequest: 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 != 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AskSplitResponse) 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: AskSplitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 != 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportSplitRequest) 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: ReportSplitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportSplitRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Left", 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.Left == nil { + m.Left = &metapb.Region{} + } + 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 Right", 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.Right == nil { + m.Right = &metapb.Region{} + } + if err := m.Right.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 != 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 + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitCount", wireType) + } + m.SplitCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SplitCount |= 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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: + 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 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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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) + } + 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 Ids", 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.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 + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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: + 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regions", 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.Regions = append(m.Regions, &metapb.Region{}) + if err := m.Regions[len(m.Regions)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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: + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 StartTimestamp", wireType) + } + m.StartTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTimestamp |= 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 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndTimestamp |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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.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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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: + 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 ReadKeys", wireType) + } + 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 + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) + } + 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 + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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.QueryStats == nil { + m.QueryStats = &QueryStats{} + } + if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WrittenKeys", wireType) + } + m.WrittenKeys = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WrittenKeys |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WrittenBytes", wireType) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreStats) 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: StoreStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StoreStats: 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) + } + 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 + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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 + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Available", 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 + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionCount", 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 + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendingSnapCount", wireType) + } + m.SendingSnapCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SendingSnapCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivingSnapCount", wireType) + } + m.ReceivingSnapCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReceivingSnapCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + m.StartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTime |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplyingSnapCount", wireType) + } + m.ApplyingSnapCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApplyingSnapCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(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) + } + 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 + } + } + case 11: + 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 12: + 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 13: + 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 14: + 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 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", 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.Interval == nil { + m.Interval = &TimeInterval{} + } + if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsages", 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.CpuUsages = append(m.CpuUsages, &RecordPair{}) + if err := m.CpuUsages[len(m.CpuUsages)-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) + } + 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.ReadIoRates = append(m.ReadIoRates, &RecordPair{}) + if err := m.ReadIoRates[len(m.ReadIoRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteIoRates", 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.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 + } + 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.OpLatencies = append(m.OpLatencies, &RecordPair{}) + if err := m.OpLatencies[len(m.OpLatencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerStats", 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.PeerStats = append(m.PeerStats, &PeerStat{}) + if err := m.PeerStats[len(m.PeerStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", 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.QueryStats == nil { + m.QueryStats = &QueryStats{} + } + if err := m.QueryStats.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) + } + 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 + } + } + 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 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsApplyBusy", 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.IsApplyBusy = bool(v != 0) + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotStats", 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.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 SlowTrend", 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.SlowTrend == nil { + m.SlowTrend = &SlowTrend{} + } + if err := m.SlowTrend.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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SlowTrend) 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: SlowTrend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SlowTrend: 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 + } + 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 + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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) + } + m.TransportSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TransportSize |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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.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 + } + 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.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 IsForceLeader", 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.IsForceLeader = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasCommitMerge", 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.HasCommitMerge = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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 PeerReports", 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.PeerReports = append(m.PeerReports, &PeerReport{}) + if err := m.PeerReports[len(m.PeerReports)-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 Step", wireType) + } + m.Step = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Step |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats == nil { + m.Stats = &StoreStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreReport", 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.StoreReport == nil { + m.StoreReport = &StoreReport{} + } + if err := m.StoreReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DrAutosyncStatus", 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.DrAutosyncStatus == nil { + m.DrAutosyncStatus = &replication_modepb.StoreDRAutoSyncStatus{} + } + if err := m.DrAutosyncStatus.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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) + } + 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedVoters", 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.FailedVoters = append(m.FailedVoters, &metapb.Peer{}) + if err := m.FailedVoters[len(m.FailedVoters)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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: + 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) + } + 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.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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecoveryPlan) 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: RecoveryPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecoveryPlan: 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) + } + 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.Creates = append(m.Creates, &metapb.Region{}) + if err := m.Creates[len(m.Creates)-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 Updates", 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.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 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 Demotes", 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.Demotes = append(m.Demotes, &DemoteFailedVoters{}) + if err := m.Demotes[len(m.Demotes)-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 ForceLeader", 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.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 Step", wireType) + } + m.Step = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Step |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AwakenRegions) 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: AwakenRegions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AwakenRegions: 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 + } + } + 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 + } + 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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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 CtrlEvent", wireType) + } + m.CtrlEvent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CtrlEvent |= ControlGrpcEvent(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreHeartbeatResponse) 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: 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 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 + case 3: + if wireType != 2 { + 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 { + 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.RecoveryPlan == nil { + m.RecoveryPlan = &RecoveryPlan{} + } + if err := m.RecoveryPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AwakenRegions", 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.AwakenRegions == nil { + m.AwakenRegions = &AwakenRegions{} + } + if err := m.AwakenRegions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlGrpc", 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.ControlGrpc == nil { + m.ControlGrpc = &ControlGrpc{} + } + if err := m.ControlGrpc.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScatterRegionRequest) 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: ScatterRegionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + 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 != 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 + case 4: + 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Leader == nil { + m.Leader = &metapb.Peer{} + } + 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 Group", 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.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) + } + 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 + } + } + 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 iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SkipStoreLimit = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScatterRegionResponse) 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: ScatterRegionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedPercentage", wireType) + } + m.FinishedPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FinishedPercentage |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 + } + 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: 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 != 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateGCSafePointRequest) 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: UpdateGCSafePointRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateGCSafePointRequest: 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 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateGCSafePointResponse) 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: 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 + } + 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 NewSafePoint", wireType) + } + m.NewSafePoint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewSafePoint |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateServiceGCSafePointRequest) 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: UpdateServiceGCSafePointRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", 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.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 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 ServiceId", 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.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) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGCSafePointV2Request) 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: GetGCSafePointV2Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGCSafePointV2Request: 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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 != 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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 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: 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 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SafePointEvent) 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: SafePointEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SafePointEvent: 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 + } + } + case 2: + 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 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= EventType(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchGCSafePointV2Response) 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: WatchGCSafePointV2Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchGCSafePointV2Response: 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 Events", 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.Events = append(m.Events, &SafePointEvent{}) + if err := m.Events[len(m.Events)-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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateGCSafePointV2Request) 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: UpdateGCSafePointV2Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateGCSafePointV2Request: 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 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) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateGCSafePointV2Response) 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: UpdateGCSafePointV2Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateGCSafePointV2Response: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewSafePoint", wireType) + } + m.NewSafePoint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewSafePoint |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateServiceSafePointV2Request) 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: UpdateServiceSafePointV2Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateServiceSafePointV2Request: 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 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) + } + 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.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) + if m.ServiceId == nil { + m.ServiceId = []byte{} + } + 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateServiceSafePointV2Response) 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: UpdateServiceSafePointV2Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateServiceSafePointV2Response: 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 ServiceId", 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.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) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + 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: + 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 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:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAllGCSafePointV2Response) 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: GetAllGCSafePointV2Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAllGCSafePointV2Response: 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 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 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegionStat) 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: RegionStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegionStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + 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 3: + 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 4: + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyncRegionRequest) 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: SyncRegionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyncRegionRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", 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.Member == nil { + m.Member = &Member{} + } + if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartIndex", wireType) + } + m.StartIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartIndex |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PeersStats) 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: PeersStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PeersStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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.Peers = append(m.Peers, &PeerStats{}) + if err := m.Peers[len(m.Peers)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Peers) 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: Peers: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Peers: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peers", 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.Peers = append(m.Peers, &metapb.Peer{}) + if err := m.Peers[len(m.Peers)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyncRegionResponse) 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: SyncRegionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyncRegionResponse: 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 Regions", 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.Regions = append(m.Regions, &metapb.Region{}) + if err := m.Regions[len(m.Regions)-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 StartIndex", wireType) + } + m.StartIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionStats", 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.RegionStats = append(m.RegionStats, &RegionStat{}) + if err := m.RegionStats[len(m.RegionStats)-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 RegionLeaders", 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.RegionLeaders = append(m.RegionLeaders, &metapb.Peer{}) + if err := m.RegionLeaders[len(m.RegionLeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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.Buckets = append(m.Buckets, &metapb.Buckets{}) + if err := m.Buckets[len(m.Buckets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + 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 + } + m.DownPeers = append(m.DownPeers, &PeersStats{}) + if err := m.DownPeers[len(m.DownPeers)-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 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, &Peers{}) + if err := m.PendingPeers[len(m.PendingPeers)-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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetOperatorRequest) 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: GetOperatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetOperatorRequest: 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) + } + 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 + } + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetOperatorResponse) 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: GetOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetOperatorResponse: 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 != 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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", 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.Desc = append(m.Desc[:0], dAtA[iNdEx:postIndex]...) + if m.Desc == nil { + m.Desc = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= OperatorStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = append(m.Kind[:0], dAtA[iNdEx:postIndex]...) + if m.Kind == nil { + m.Kind = []byte{} + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyncMaxTSRequest) 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: SyncMaxTSRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyncMaxTSRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", 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.MaxTs == nil { + m.MaxTs = &Timestamp{} + } + if err := m.MaxTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipCheck", 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.SkipCheck = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyncMaxTSResponse) 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: SyncMaxTSResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyncMaxTSResponse: 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 MaxLocalTs", 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.MaxLocalTs == nil { + m.MaxLocalTs = &Timestamp{} + } + if err := m.MaxLocalTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SyncedDcs", 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.SyncedDcs = append(m.SyncedDcs, 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitRegionsRequest) 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: SplitRegionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitRegionsRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitKeys", 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.SplitKeys = append(m.SplitKeys, make([]byte, postIndex-iNdEx)) + copy(m.SplitKeys[len(m.SplitKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RetryLimit |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitRegionsResponse) 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: SplitRegionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitRegionsResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedPercentage", wireType) + } + m.FinishedPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FinishedPercentage |= 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.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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitAndScatterRegionsRequest) 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: SplitAndScatterRegionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitAndScatterRegionsRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitKeys", 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.SplitKeys = append(m.SplitKeys, make([]byte, postIndex-iNdEx)) + copy(m.SplitKeys[len(m.SplitKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", 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.Group = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + 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 + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RetryLimit |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitAndScatterRegionsResponse) 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: SplitAndScatterRegionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitAndScatterRegionsResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitFinishedPercentage", wireType) + } + m.SplitFinishedPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SplitFinishedPercentage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ScatterFinishedPercentage", wireType) + } + m.ScatterFinishedPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ScatterFinishedPercentage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + 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) + } + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetDCLocationInfoRequest) 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: GetDCLocationInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetDCLocationInfoRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", 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.DcLocation = 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetDCLocationInfoResponse) 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: GetDCLocationInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetDCLocationInfoResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Suffix", wireType) + } + m.Suffix = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Suffix |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTs", 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.MaxTs == nil { + m.MaxTs = &Timestamp{} + } + if err := m.MaxTs.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryStats) 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: QueryStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GC", wireType) + } + m.GC = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GC |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Get", wireType) + } + m.Get = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Get |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Scan", wireType) + } + m.Scan = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Scan |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Coprocessor", wireType) + } + m.Coprocessor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Coprocessor |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Delete", wireType) + } + m.Delete = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Delete |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteRange", wireType) + } + m.DeleteRange = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DeleteRange |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Put", wireType) + } + m.Put = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Put |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Prewrite", wireType) + } + m.Prewrite = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Prewrite |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcquirePessimisticLock", wireType) + } + m.AcquirePessimisticLock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AcquirePessimisticLock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) + } + m.Commit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Commit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rollback", wireType) + } + m.Rollback = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Rollback |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportBucketsRequest) 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: ReportBucketsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportBucketsRequest: 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 != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionEpoch", 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.RegionEpoch == nil { + m.RegionEpoch = &metapb.RegionEpoch{} + } + if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Buckets", 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.Buckets == nil { + m.Buckets = &metapb.Buckets{} + } + if err := m.Buckets.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportBucketsResponse) 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: ReportBucketsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportBucketsResponse: 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportMinResolvedTsRequest) 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: ReportMinResolvedTsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportMinResolvedTsRequest: 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 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 + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinResolvedTs", wireType) + } + m.MinResolvedTs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinResolvedTs |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportMinResolvedTsResponse) 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: ReportMinResolvedTsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportMinResolvedTsResponse: 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetExternalTimestampRequest) 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: SetExternalTimestampRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetExternalTimestampRequest: 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 Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetExternalTimestampResponse) 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: SetExternalTimestampResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetExternalTimestampResponse: 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 + 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetExternalTimestampRequest) 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: GetExternalTimestampRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetExternalTimestampRequest: 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetExternalTimestampResponse) 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: GetExternalTimestampResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetExternalTimestampResponse: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetMinTSRequest) 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: GetMinTSRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetMinTSRequest: 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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetMinTSResponse) 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: GetMinTSResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetMinTSResponse: 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 Timestamp", 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.Timestamp == nil { + m.Timestamp = &Timestamp{} + } + if err := m.Timestamp.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 + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPdpb(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPdpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPdpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPdpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPdpb + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPdpb + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPdpb + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPdpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPdpb = fmt.Errorf("proto: unexpected end of group") +) diff --git a/pkg/raft_cmdpb/raft_cmdpb.pb.go b/pkg/raft_cmdpb/raft_cmdpb.pb.go index 51c1c9e46..58e4e984f 100644 --- a/pkg/raft_cmdpb/raft_cmdpb.pb.go +++ b/pkg/raft_cmdpb/raft_cmdpb.pb.go @@ -1,93 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: raft_cmdpb.proto -/* -Package raft_cmdpb is a generated protocol buffer package. - -It is generated from these files: - - raft_cmdpb.proto - -It has these top-level messages: - - GetRequest - GetResponse - PutRequest - PutResponse - DeleteRequest - DeleteResponse - DeleteRangeRequest - DeleteRangeResponse - SnapRequest - SnapResponse - PrewriteRequest - PrewriteResponse - IngestSSTRequest - IngestSSTResponse - ReadIndexRequest - ReadIndexResponse - Request - Response - ChangePeerRequest - ChangePeerResponse - ChangePeerV2Request - ChangePeerV2Response - SplitRequest - SplitResponse - BatchSplitRequest - BatchSplitResponse - CompactLogRequest - CompactLogResponse - TransferLeaderRequest - TransferLeaderResponse - ComputeHashRequest - VerifyHashRequest - VerifyHashResponse - PrepareMergeRequest - PrepareMergeResponse - PrepareFlashbackRequest - PrepareFlashbackResponse - FinishFlashbackRequest - FinishFlashbackResponse - CommitMergeRequest - CommitMergeResponse - RollbackMergeRequest - RollbackMergeResponse - SwitchWitnessRequest - BatchSwitchWitnessRequest - BatchSwitchWitnessResponse - UpdateGcPeerRequest - AdminRequest - AdminResponse - RegionLeaderRequest - RegionLeaderResponse - RegionDetailRequest - RegionDetailResponse - StatusRequest - StatusResponse - RaftRequestHeader - RaftResponseHeader - RaftCmdRequest - RaftCmdResponse -*/ package raft_cmdpb import ( "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" - metapb "github.com/pingcap/kvproto/pkg/metapb" - - errorpb "github.com/pingcap/kvproto/pkg/errorpb" - eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" - - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - + errorpb "github.com/pingcap/kvproto/pkg/errorpb" import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" - + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" ) @@ -100,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CmdType int32 @@ -127,6 +54,7 @@ var CmdType_name = map[int32]string{ 8: "IngestSST", 9: "ReadIndex", } + var CmdType_value = map[string]int32{ "Invalid": 0, "Get": 1, @@ -142,7 +70,10 @@ var CmdType_value = map[string]int32{ func (x CmdType) String() string { return proto.EnumName(CmdType_name, int32(x)) } -func (CmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{0} } + +func (CmdType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{0} +} type AdminCmdType int32 @@ -150,7 +81,7 @@ const ( AdminCmdType_InvalidAdmin AdminCmdType = 0 AdminCmdType_ChangePeer AdminCmdType = 1 // Use `BatchSplit` instead. - AdminCmdType_Split AdminCmdType = 2 + AdminCmdType_Split AdminCmdType = 2 // Deprecated: Do not use. AdminCmdType_CompactLog AdminCmdType = 3 AdminCmdType_TransferLeader AdminCmdType = 4 AdminCmdType_ComputeHash AdminCmdType = 5 @@ -185,6 +116,7 @@ var AdminCmdType_name = map[int32]string{ 14: "BatchSwitchWitness", 15: "UpdateGcPeer", } + var AdminCmdType_value = map[string]int32{ "InvalidAdmin": 0, "ChangePeer": 1, @@ -207,7 +139,10 @@ var AdminCmdType_value = map[string]int32{ func (x AdminCmdType) String() string { return proto.EnumName(AdminCmdType_name, int32(x)) } -func (AdminCmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{1} } + +func (AdminCmdType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{1} +} type StatusCmdType int32 @@ -222,6 +157,7 @@ var StatusCmdType_name = map[int32]string{ 1: "RegionLeader", 2: "RegionDetail", } + var StatusCmdType_value = map[string]int32{ "InvalidStatus": 0, "RegionLeader": 1, @@ -231,17 +167,51 @@ var StatusCmdType_value = map[string]int32{ func (x StatusCmdType) String() string { return proto.EnumName(StatusCmdType_name, int32(x)) } -func (StatusCmdType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{2} } + +func (StatusCmdType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{2} +} type GetRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{0} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRequest.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 *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) } -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{0} } +var xxx_messageInfo_GetRequest proto.InternalMessageInfo func (m *GetRequest) GetCf() string { if m != nil { @@ -258,13 +228,44 @@ func (m *GetRequest) GetKey() []byte { } type GetResponse struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{1} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResponse.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 *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return m.Size() +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{1} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo func (m *GetResponse) GetValue() []byte { if m != nil { @@ -274,15 +275,46 @@ func (m *GetResponse) GetValue() []byte { } type PutRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{2} +} +func (m *PutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutRequest.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 *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(m, src) +} +func (m *PutRequest) XXX_Size() int { + return m.Size() +} +func (m *PutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest.DiscardUnknown(m) } -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{2} } +var xxx_messageInfo_PutRequest proto.InternalMessageInfo func (m *PutRequest) GetCf() string { if m != nil { @@ -306,22 +338,84 @@ func (m *PutRequest) GetValue() []byte { } type PutResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{3} +} +func (m *PutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutResponse.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 *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(m, src) +} +func (m *PutResponse) XXX_Size() int { + return m.Size() +} +func (m *PutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutResponse.DiscardUnknown(m) } -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{3} } +var xxx_messageInfo_PutResponse proto.InternalMessageInfo type DeleteRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } +func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRequest) ProtoMessage() {} +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{4} +} +func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRequest.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 *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(m, src) +} +func (m *DeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRequest.DiscardUnknown(m) } -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{4} } +var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo func (m *DeleteRequest) GetCf() string { if m != nil { @@ -338,24 +432,86 @@ func (m *DeleteRequest) GetKey() []byte { } type DeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } +func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteResponse) ProtoMessage() {} +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{5} +} +func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteResponse.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 *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(m, src) +} +func (m *DeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResponse.DiscardUnknown(m) } -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} -func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{5} } +var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo type DeleteRangeRequest struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + NotifyOnly bool `protobuf:"varint,4,opt,name=notify_only,json=notifyOnly,proto3" json:"notify_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } +func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeRequest) ProtoMessage() {} +func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{6} +} +func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRangeRequest.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 *DeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeRequest.Merge(m, src) +} +func (m *DeleteRangeRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteRangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m) } -func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } -func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeRequest) ProtoMessage() {} -func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{6} } +var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo func (m *DeleteRangeRequest) GetCf() string { if m != nil { @@ -386,29 +542,122 @@ func (m *DeleteRangeRequest) GetNotifyOnly() bool { } type DeleteRangeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } +func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRangeResponse) ProtoMessage() {} +func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{7} +} +func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteRangeResponse.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 *DeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeResponse.Merge(m, src) +} +func (m *DeleteRangeResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteRangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m) } -func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } -func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRangeResponse) ProtoMessage() {} -func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{7} } +var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo type SnapRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapRequest) Reset() { *m = SnapRequest{} } +func (m *SnapRequest) String() string { return proto.CompactTextString(m) } +func (*SnapRequest) ProtoMessage() {} +func (*SnapRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{8} +} +func (m *SnapRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapRequest.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 *SnapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapRequest.Merge(m, src) +} +func (m *SnapRequest) XXX_Size() int { + return m.Size() +} +func (m *SnapRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SnapRequest.DiscardUnknown(m) } -func (m *SnapRequest) Reset() { *m = SnapRequest{} } -func (m *SnapRequest) String() string { return proto.CompactTextString(m) } -func (*SnapRequest) ProtoMessage() {} -func (*SnapRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{8} } +var xxx_messageInfo_SnapRequest proto.InternalMessageInfo type SnapResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapResponse) Reset() { *m = SnapResponse{} } +func (m *SnapResponse) String() string { return proto.CompactTextString(m) } +func (*SnapResponse) ProtoMessage() {} +func (*SnapResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{9} +} +func (m *SnapResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapResponse.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 *SnapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapResponse.Merge(m, src) +} +func (m *SnapResponse) XXX_Size() int { + return m.Size() +} +func (m *SnapResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SnapResponse.DiscardUnknown(m) } -func (m *SnapResponse) Reset() { *m = SnapResponse{} } -func (m *SnapResponse) String() string { return proto.CompactTextString(m) } -func (*SnapResponse) ProtoMessage() {} -func (*SnapResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{9} } +var xxx_messageInfo_SnapResponse proto.InternalMessageInfo func (m *SnapResponse) GetRegion() *metapb.Region { if m != nil { @@ -418,15 +667,46 @@ func (m *SnapResponse) GetRegion() *metapb.Region { } type PrewriteRequest struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Lock []byte `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Lock []byte `protobuf:"bytes,3,opt,name=lock,proto3" json:"lock,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } +func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } +func (*PrewriteRequest) ProtoMessage() {} +func (*PrewriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{10} +} +func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrewriteRequest.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 *PrewriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest.Merge(m, src) +} +func (m *PrewriteRequest) XXX_Size() int { + return m.Size() +} +func (m *PrewriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrewriteRequest.DiscardUnknown(m) } -func (m *PrewriteRequest) Reset() { *m = PrewriteRequest{} } -func (m *PrewriteRequest) String() string { return proto.CompactTextString(m) } -func (*PrewriteRequest) ProtoMessage() {} -func (*PrewriteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{10} } +var xxx_messageInfo_PrewriteRequest proto.InternalMessageInfo func (m *PrewriteRequest) GetKey() []byte { if m != nil { @@ -450,21 +730,83 @@ func (m *PrewriteRequest) GetLock() []byte { } type PrewriteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } +func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } +func (*PrewriteResponse) ProtoMessage() {} +func (*PrewriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{11} +} +func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrewriteResponse.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 *PrewriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteResponse.Merge(m, src) +} +func (m *PrewriteResponse) XXX_Size() int { + return m.Size() +} +func (m *PrewriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrewriteResponse.DiscardUnknown(m) } -func (m *PrewriteResponse) Reset() { *m = PrewriteResponse{} } -func (m *PrewriteResponse) String() string { return proto.CompactTextString(m) } -func (*PrewriteResponse) ProtoMessage() {} -func (*PrewriteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{11} } +var xxx_messageInfo_PrewriteResponse proto.InternalMessageInfo type IngestSSTRequest struct { - Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst" json:"sst,omitempty"` + Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst,proto3" json:"sst,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngestSSTRequest) Reset() { *m = IngestSSTRequest{} } +func (m *IngestSSTRequest) String() string { return proto.CompactTextString(m) } +func (*IngestSSTRequest) ProtoMessage() {} +func (*IngestSSTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{12} +} +func (m *IngestSSTRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngestSSTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngestSSTRequest.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 *IngestSSTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestSSTRequest.Merge(m, src) +} +func (m *IngestSSTRequest) XXX_Size() int { + return m.Size() +} +func (m *IngestSSTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_IngestSSTRequest.DiscardUnknown(m) } -func (m *IngestSSTRequest) Reset() { *m = IngestSSTRequest{} } -func (m *IngestSSTRequest) String() string { return proto.CompactTextString(m) } -func (*IngestSSTRequest) ProtoMessage() {} -func (*IngestSSTRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{12} } +var xxx_messageInfo_IngestSSTRequest proto.InternalMessageInfo func (m *IngestSSTRequest) GetSst() *import_sstpb.SSTMeta { if m != nil { @@ -474,23 +816,85 @@ func (m *IngestSSTRequest) GetSst() *import_sstpb.SSTMeta { } type IngestSSTResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngestSSTResponse) Reset() { *m = IngestSSTResponse{} } +func (m *IngestSSTResponse) String() string { return proto.CompactTextString(m) } +func (*IngestSSTResponse) ProtoMessage() {} +func (*IngestSSTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{13} +} +func (m *IngestSSTResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngestSSTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngestSSTResponse.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 *IngestSSTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestSSTResponse.Merge(m, src) +} +func (m *IngestSSTResponse) XXX_Size() int { + return m.Size() +} +func (m *IngestSSTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_IngestSSTResponse.DiscardUnknown(m) } -func (m *IngestSSTResponse) Reset() { *m = IngestSSTResponse{} } -func (m *IngestSSTResponse) String() string { return proto.CompactTextString(m) } -func (*IngestSSTResponse) ProtoMessage() {} -func (*IngestSSTResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{13} } +var xxx_messageInfo_IngestSSTResponse proto.InternalMessageInfo type ReadIndexRequest struct { // In replica read, leader uses start_ts and key_ranges to check memory locks. - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges" json:"key_ranges,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges,proto3" json:"key_ranges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } +func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } +func (*ReadIndexRequest) ProtoMessage() {} +func (*ReadIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{14} +} +func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadIndexRequest.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 *ReadIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexRequest.Merge(m, src) +} +func (m *ReadIndexRequest) XXX_Size() int { + return m.Size() +} +func (m *ReadIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReadIndexRequest.DiscardUnknown(m) } -func (m *ReadIndexRequest) Reset() { *m = ReadIndexRequest{} } -func (m *ReadIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ReadIndexRequest) ProtoMessage() {} -func (*ReadIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{14} } +var xxx_messageInfo_ReadIndexRequest proto.InternalMessageInfo func (m *ReadIndexRequest) GetStartTs() uint64 { if m != nil { @@ -509,13 +913,44 @@ func (m *ReadIndexRequest) GetKeyRanges() []*kvrpcpb.KeyRange { type ReadIndexResponse struct { ReadIndex uint64 `protobuf:"varint,1,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` // The memory lock blocking this read at the leader - Locked *kvrpcpb.LockInfo `protobuf:"bytes,2,opt,name=locked" json:"locked,omitempty"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,2,opt,name=locked,proto3" json:"locked,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } +func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } +func (*ReadIndexResponse) ProtoMessage() {} +func (*ReadIndexResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{15} +} +func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadIndexResponse.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 *ReadIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexResponse.Merge(m, src) +} +func (m *ReadIndexResponse) XXX_Size() int { + return m.Size() +} +func (m *ReadIndexResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReadIndexResponse.DiscardUnknown(m) } -func (m *ReadIndexResponse) Reset() { *m = ReadIndexResponse{} } -func (m *ReadIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ReadIndexResponse) ProtoMessage() {} -func (*ReadIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{15} } +var xxx_messageInfo_ReadIndexResponse proto.InternalMessageInfo func (m *ReadIndexResponse) GetReadIndex() uint64 { if m != nil { @@ -532,21 +967,52 @@ func (m *ReadIndexResponse) GetLocked() *kvrpcpb.LockInfo { } type Request struct { - CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` - Get *GetRequest `protobuf:"bytes,2,opt,name=get" json:"get,omitempty"` - Put *PutRequest `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` - Delete *DeleteRequest `protobuf:"bytes,5,opt,name=delete" json:"delete,omitempty"` - Snap *SnapRequest `protobuf:"bytes,6,opt,name=snap" json:"snap,omitempty"` - Prewrite *PrewriteRequest `protobuf:"bytes,7,opt,name=prewrite" json:"prewrite,omitempty"` - DeleteRange *DeleteRangeRequest `protobuf:"bytes,8,opt,name=delete_range,json=deleteRange" json:"delete_range,omitempty"` - IngestSst *IngestSSTRequest `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst" json:"ingest_sst,omitempty"` - ReadIndex *ReadIndexRequest `protobuf:"bytes,10,opt,name=read_index,json=readIndex" json:"read_index,omitempty"` -} - -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} -func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{16} } + CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` + Get *GetRequest `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty"` + Put *PutRequest `protobuf:"bytes,4,opt,name=put,proto3" json:"put,omitempty"` + Delete *DeleteRequest `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty"` + Snap *SnapRequest `protobuf:"bytes,6,opt,name=snap,proto3" json:"snap,omitempty"` + Prewrite *PrewriteRequest `protobuf:"bytes,7,opt,name=prewrite,proto3" json:"prewrite,omitempty"` + DeleteRange *DeleteRangeRequest `protobuf:"bytes,8,opt,name=delete_range,json=deleteRange,proto3" json:"delete_range,omitempty"` + IngestSst *IngestSSTRequest `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst,proto3" json:"ingest_sst,omitempty"` + ReadIndex *ReadIndexRequest `protobuf:"bytes,10,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Request) Reset() { *m = Request{} } +func (m *Request) String() string { return proto.CompactTextString(m) } +func (*Request) ProtoMessage() {} +func (*Request) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{16} +} +func (m *Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Request.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 *Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Request.Merge(m, src) +} +func (m *Request) XXX_Size() int { + return m.Size() +} +func (m *Request) XXX_DiscardUnknown() { + xxx_messageInfo_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_Request proto.InternalMessageInfo func (m *Request) GetCmdType() CmdType { if m != nil { @@ -612,21 +1078,52 @@ func (m *Request) GetReadIndex() *ReadIndexRequest { } type Response struct { - CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` - Get *GetResponse `protobuf:"bytes,2,opt,name=get" json:"get,omitempty"` - Put *PutResponse `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"` - Delete *DeleteResponse `protobuf:"bytes,5,opt,name=delete" json:"delete,omitempty"` - Snap *SnapResponse `protobuf:"bytes,6,opt,name=snap" json:"snap,omitempty"` - Prewrite *PrewriteResponse `protobuf:"bytes,7,opt,name=prewrite" json:"prewrite,omitempty"` - DelteRange *DeleteRangeResponse `protobuf:"bytes,8,opt,name=delte_range,json=delteRange" json:"delte_range,omitempty"` - IngestSst *IngestSSTResponse `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst" json:"ingest_sst,omitempty"` - ReadIndex *ReadIndexResponse `protobuf:"bytes,10,opt,name=read_index,json=readIndex" json:"read_index,omitempty"` -} - -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{17} } + CmdType CmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.CmdType" json:"cmd_type,omitempty"` + Get *GetResponse `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty"` + Put *PutResponse `protobuf:"bytes,4,opt,name=put,proto3" json:"put,omitempty"` + Delete *DeleteResponse `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty"` + Snap *SnapResponse `protobuf:"bytes,6,opt,name=snap,proto3" json:"snap,omitempty"` + Prewrite *PrewriteResponse `protobuf:"bytes,7,opt,name=prewrite,proto3" json:"prewrite,omitempty"` + DelteRange *DeleteRangeResponse `protobuf:"bytes,8,opt,name=delte_range,json=delteRange,proto3" json:"delte_range,omitempty"` + IngestSst *IngestSSTResponse `protobuf:"bytes,9,opt,name=ingest_sst,json=ingestSst,proto3" json:"ingest_sst,omitempty"` + ReadIndex *ReadIndexResponse `protobuf:"bytes,10,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{17} +} +func (m *Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Response.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 *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(m, src) +} +func (m *Response) XXX_Size() int { + return m.Size() +} +func (m *Response) XXX_DiscardUnknown() { + xxx_messageInfo_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Response proto.InternalMessageInfo func (m *Response) GetCmdType() CmdType { if m != nil { @@ -693,14 +1190,45 @@ func (m *Response) GetReadIndex() *ReadIndexResponse { type ChangePeerRequest struct { // This can be only called in internal RaftStore now. - ChangeType eraftpb.ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` + ChangeType eraftpb.ConfChangeType `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=eraftpb.ConfChangeType" json:"change_type,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeerRequest) Reset() { *m = ChangePeerRequest{} } +func (m *ChangePeerRequest) String() string { return proto.CompactTextString(m) } +func (*ChangePeerRequest) ProtoMessage() {} +func (*ChangePeerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{18} +} +func (m *ChangePeerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeerRequest.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 *ChangePeerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerRequest.Merge(m, src) +} +func (m *ChangePeerRequest) XXX_Size() int { + return m.Size() +} +func (m *ChangePeerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeerRequest.DiscardUnknown(m) } -func (m *ChangePeerRequest) Reset() { *m = ChangePeerRequest{} } -func (m *ChangePeerRequest) String() string { return proto.CompactTextString(m) } -func (*ChangePeerRequest) ProtoMessage() {} -func (*ChangePeerRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{18} } +var xxx_messageInfo_ChangePeerRequest proto.InternalMessageInfo func (m *ChangePeerRequest) GetChangeType() eraftpb.ConfChangeType { if m != nil { @@ -717,13 +1245,44 @@ func (m *ChangePeerRequest) GetPeer() *metapb.Peer { } type ChangePeerResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeerResponse) Reset() { *m = ChangePeerResponse{} } +func (m *ChangePeerResponse) String() string { return proto.CompactTextString(m) } +func (*ChangePeerResponse) ProtoMessage() {} +func (*ChangePeerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{19} +} +func (m *ChangePeerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeerResponse.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 *ChangePeerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerResponse.Merge(m, src) +} +func (m *ChangePeerResponse) XXX_Size() int { + return m.Size() +} +func (m *ChangePeerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeerResponse.DiscardUnknown(m) } -func (m *ChangePeerResponse) Reset() { *m = ChangePeerResponse{} } -func (m *ChangePeerResponse) String() string { return proto.CompactTextString(m) } -func (*ChangePeerResponse) ProtoMessage() {} -func (*ChangePeerResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{19} } +var xxx_messageInfo_ChangePeerResponse proto.InternalMessageInfo func (m *ChangePeerResponse) GetRegion() *metapb.Region { if m != nil { @@ -733,13 +1292,44 @@ func (m *ChangePeerResponse) GetRegion() *metapb.Region { } type ChangePeerV2Request struct { - Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` + Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeerV2Request) Reset() { *m = ChangePeerV2Request{} } +func (m *ChangePeerV2Request) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2Request) ProtoMessage() {} +func (*ChangePeerV2Request) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{20} +} +func (m *ChangePeerV2Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeerV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeerV2Request.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 *ChangePeerV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2Request.Merge(m, src) +} +func (m *ChangePeerV2Request) XXX_Size() int { + return m.Size() +} +func (m *ChangePeerV2Request) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeerV2Request.DiscardUnknown(m) } -func (m *ChangePeerV2Request) Reset() { *m = ChangePeerV2Request{} } -func (m *ChangePeerV2Request) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2Request) ProtoMessage() {} -func (*ChangePeerV2Request) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{20} } +var xxx_messageInfo_ChangePeerV2Request proto.InternalMessageInfo func (m *ChangePeerV2Request) GetChanges() []*ChangePeerRequest { if m != nil { @@ -749,13 +1339,44 @@ func (m *ChangePeerV2Request) GetChanges() []*ChangePeerRequest { } type ChangePeerV2Response struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangePeerV2Response) Reset() { *m = ChangePeerV2Response{} } +func (m *ChangePeerV2Response) String() string { return proto.CompactTextString(m) } +func (*ChangePeerV2Response) ProtoMessage() {} +func (*ChangePeerV2Response) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{21} +} +func (m *ChangePeerV2Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ChangePeerV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ChangePeerV2Response.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 *ChangePeerV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2Response.Merge(m, src) +} +func (m *ChangePeerV2Response) XXX_Size() int { + return m.Size() +} +func (m *ChangePeerV2Response) XXX_DiscardUnknown() { + xxx_messageInfo_ChangePeerV2Response.DiscardUnknown(m) } -func (m *ChangePeerV2Response) Reset() { *m = ChangePeerV2Response{} } -func (m *ChangePeerV2Response) String() string { return proto.CompactTextString(m) } -func (*ChangePeerV2Response) ProtoMessage() {} -func (*ChangePeerV2Response) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{21} } +var xxx_messageInfo_ChangePeerV2Response proto.InternalMessageInfo func (m *ChangePeerV2Response) GetRegion() *metapb.Region { if m != nil { @@ -773,22 +1394,53 @@ type SplitRequest struct { // We must guarantee that the new_region_id is global unique. NewRegionId uint64 `protobuf:"varint,2,opt,name=new_region_id,json=newRegionId,proto3" json:"new_region_id,omitempty"` // The peer ids for the new split region. - NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` + NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds,proto3" json:"new_peer_ids,omitempty"` // If true, right region derive the origin region_id, // left region use new_region_id. // Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead. - RightDerive bool `protobuf:"varint,4,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` + RightDerive bool `protobuf:"varint,4,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` // Deprecated: Do not use. // It should be false iff the region split by user key such as split table or create partion table etc, // the new region's will not share the source region size, so it's region size is zero. // It should be true iff the region's load reaches the threshold such as size, keys, load check etc, // the new region's size will share the origin region, so it's region size is half of the source region. - ShareSourceRegionSize bool `protobuf:"varint,5,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` + ShareSourceRegionSize bool `protobuf:"varint,5,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitRequest) Reset() { *m = SplitRequest{} } +func (m *SplitRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRequest) ProtoMessage() {} +func (*SplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{22} +} +func (m *SplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitRequest.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 *SplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRequest.Merge(m, src) +} +func (m *SplitRequest) XXX_Size() int { + return m.Size() +} +func (m *SplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRequest.DiscardUnknown(m) } -func (m *SplitRequest) Reset() { *m = SplitRequest{} } -func (m *SplitRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRequest) ProtoMessage() {} -func (*SplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{22} } +var xxx_messageInfo_SplitRequest proto.InternalMessageInfo func (m *SplitRequest) GetSplitKey() []byte { if m != nil { @@ -811,6 +1463,7 @@ func (m *SplitRequest) GetNewPeerIds() []uint64 { return nil } +// Deprecated: Do not use. func (m *SplitRequest) GetRightDerive() bool { if m != nil { return m.RightDerive @@ -826,14 +1479,45 @@ func (m *SplitRequest) GetShareSourceRegionSize() bool { } type SplitResponse struct { - Left *metapb.Region `protobuf:"bytes,1,opt,name=left" json:"left,omitempty"` - Right *metapb.Region `protobuf:"bytes,2,opt,name=right" json:"right,omitempty"` + Left *metapb.Region `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitResponse) Reset() { *m = SplitResponse{} } +func (m *SplitResponse) String() string { return proto.CompactTextString(m) } +func (*SplitResponse) ProtoMessage() {} +func (*SplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{23} +} +func (m *SplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitResponse.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 *SplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitResponse.Merge(m, src) +} +func (m *SplitResponse) XXX_Size() int { + return m.Size() +} +func (m *SplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitResponse.DiscardUnknown(m) } -func (m *SplitResponse) Reset() { *m = SplitResponse{} } -func (m *SplitResponse) String() string { return proto.CompactTextString(m) } -func (*SplitResponse) ProtoMessage() {} -func (*SplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{23} } +var xxx_messageInfo_SplitResponse proto.InternalMessageInfo func (m *SplitResponse) GetLeft() *metapb.Region { if m != nil { @@ -850,7 +1534,7 @@ func (m *SplitResponse) GetRight() *metapb.Region { } type BatchSplitRequest struct { - Requests []*SplitRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` + Requests []*SplitRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // If true, the last region derive the origin region_id, // other regions use new ids. RightDerive bool `protobuf:"varint,2,opt,name=right_derive,json=rightDerive,proto3" json:"right_derive,omitempty"` @@ -858,13 +1542,44 @@ type BatchSplitRequest struct { // the new region's will not share the source region size, so it's region size is zero. // It should be true iff the region's load reaches the threshold such as size, keys, load check etc, // the new region's size will share the origin region, so it's region size is half of the source region. - ShareSourceRegionSize bool `protobuf:"varint,3,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` + ShareSourceRegionSize bool `protobuf:"varint,3,opt,name=share_source_region_size,json=shareSourceRegionSize,proto3" json:"share_source_region_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchSplitRequest) Reset() { *m = BatchSplitRequest{} } +func (m *BatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*BatchSplitRequest) ProtoMessage() {} +func (*BatchSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{24} +} +func (m *BatchSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSplitRequest.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 *BatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSplitRequest.Merge(m, src) +} +func (m *BatchSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSplitRequest.DiscardUnknown(m) } -func (m *BatchSplitRequest) Reset() { *m = BatchSplitRequest{} } -func (m *BatchSplitRequest) String() string { return proto.CompactTextString(m) } -func (*BatchSplitRequest) ProtoMessage() {} -func (*BatchSplitRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{24} } +var xxx_messageInfo_BatchSplitRequest proto.InternalMessageInfo func (m *BatchSplitRequest) GetRequests() []*SplitRequest { if m != nil { @@ -888,13 +1603,44 @@ func (m *BatchSplitRequest) GetShareSourceRegionSize() bool { } type BatchSplitResponse struct { - Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchSplitResponse) Reset() { *m = BatchSplitResponse{} } +func (m *BatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*BatchSplitResponse) ProtoMessage() {} +func (*BatchSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{25} +} +func (m *BatchSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSplitResponse.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 *BatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSplitResponse.Merge(m, src) +} +func (m *BatchSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSplitResponse.DiscardUnknown(m) } -func (m *BatchSplitResponse) Reset() { *m = BatchSplitResponse{} } -func (m *BatchSplitResponse) String() string { return proto.CompactTextString(m) } -func (*BatchSplitResponse) ProtoMessage() {} -func (*BatchSplitResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{25} } +var xxx_messageInfo_BatchSplitResponse proto.InternalMessageInfo func (m *BatchSplitResponse) GetRegions() []*metapb.Region { if m != nil { @@ -904,15 +1650,46 @@ func (m *BatchSplitResponse) GetRegions() []*metapb.Region { } type CompactLogRequest struct { - CompactIndex uint64 `protobuf:"varint,1,opt,name=compact_index,json=compactIndex,proto3" json:"compact_index,omitempty"` - CompactTerm uint64 `protobuf:"varint,2,opt,name=compact_term,json=compactTerm,proto3" json:"compact_term,omitempty"` - VoterReplicatedIndex uint64 `protobuf:"varint,3,opt,name=voter_replicated_index,json=voterReplicatedIndex,proto3" json:"voter_replicated_index,omitempty"` + CompactIndex uint64 `protobuf:"varint,1,opt,name=compact_index,json=compactIndex,proto3" json:"compact_index,omitempty"` + CompactTerm uint64 `protobuf:"varint,2,opt,name=compact_term,json=compactTerm,proto3" json:"compact_term,omitempty"` + VoterReplicatedIndex uint64 `protobuf:"varint,3,opt,name=voter_replicated_index,json=voterReplicatedIndex,proto3" json:"voter_replicated_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactLogRequest) Reset() { *m = CompactLogRequest{} } +func (m *CompactLogRequest) String() string { return proto.CompactTextString(m) } +func (*CompactLogRequest) ProtoMessage() {} +func (*CompactLogRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{26} +} +func (m *CompactLogRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactLogRequest.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 *CompactLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactLogRequest.Merge(m, src) +} +func (m *CompactLogRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactLogRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactLogRequest.DiscardUnknown(m) } -func (m *CompactLogRequest) Reset() { *m = CompactLogRequest{} } -func (m *CompactLogRequest) String() string { return proto.CompactTextString(m) } -func (*CompactLogRequest) ProtoMessage() {} -func (*CompactLogRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{26} } +var xxx_messageInfo_CompactLogRequest proto.InternalMessageInfo func (m *CompactLogRequest) GetCompactIndex() uint64 { if m != nil { @@ -936,22 +1713,84 @@ func (m *CompactLogRequest) GetVoterReplicatedIndex() uint64 { } type CompactLogResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompactLogResponse) Reset() { *m = CompactLogResponse{} } +func (m *CompactLogResponse) String() string { return proto.CompactTextString(m) } +func (*CompactLogResponse) ProtoMessage() {} +func (*CompactLogResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{27} +} +func (m *CompactLogResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactLogResponse.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 *CompactLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactLogResponse.Merge(m, src) +} +func (m *CompactLogResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactLogResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactLogResponse.DiscardUnknown(m) } -func (m *CompactLogResponse) Reset() { *m = CompactLogResponse{} } -func (m *CompactLogResponse) String() string { return proto.CompactTextString(m) } -func (*CompactLogResponse) ProtoMessage() {} -func (*CompactLogResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{27} } +var xxx_messageInfo_CompactLogResponse proto.InternalMessageInfo type TransferLeaderRequest struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` - Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransferLeaderRequest) Reset() { *m = TransferLeaderRequest{} } +func (m *TransferLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*TransferLeaderRequest) ProtoMessage() {} +func (*TransferLeaderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{28} +} +func (m *TransferLeaderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransferLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransferLeaderRequest.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 *TransferLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeaderRequest.Merge(m, src) +} +func (m *TransferLeaderRequest) XXX_Size() int { + return m.Size() +} +func (m *TransferLeaderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TransferLeaderRequest.DiscardUnknown(m) } -func (m *TransferLeaderRequest) Reset() { *m = TransferLeaderRequest{} } -func (m *TransferLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*TransferLeaderRequest) ProtoMessage() {} -func (*TransferLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{28} } +var xxx_messageInfo_TransferLeaderRequest proto.InternalMessageInfo func (m *TransferLeaderRequest) GetPeer() *metapb.Peer { if m != nil { @@ -968,23 +1807,83 @@ func (m *TransferLeaderRequest) GetPeers() []*metapb.Peer { } type TransferLeaderResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TransferLeaderResponse) Reset() { *m = TransferLeaderResponse{} } func (m *TransferLeaderResponse) String() string { return proto.CompactTextString(m) } func (*TransferLeaderResponse) ProtoMessage() {} func (*TransferLeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{29} + return fileDescriptor_661741b5e7485333, []int{29} +} +func (m *TransferLeaderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransferLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransferLeaderResponse.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 *TransferLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeaderResponse.Merge(m, src) +} +func (m *TransferLeaderResponse) XXX_Size() int { + return m.Size() +} +func (m *TransferLeaderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransferLeaderResponse.DiscardUnknown(m) } +var xxx_messageInfo_TransferLeaderResponse proto.InternalMessageInfo + type ComputeHashRequest struct { - Context []byte `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context []byte `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComputeHashRequest) Reset() { *m = ComputeHashRequest{} } +func (m *ComputeHashRequest) String() string { return proto.CompactTextString(m) } +func (*ComputeHashRequest) ProtoMessage() {} +func (*ComputeHashRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{30} +} +func (m *ComputeHashRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComputeHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComputeHashRequest.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 *ComputeHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComputeHashRequest.Merge(m, src) +} +func (m *ComputeHashRequest) XXX_Size() int { + return m.Size() +} +func (m *ComputeHashRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ComputeHashRequest.DiscardUnknown(m) } -func (m *ComputeHashRequest) Reset() { *m = ComputeHashRequest{} } -func (m *ComputeHashRequest) String() string { return proto.CompactTextString(m) } -func (*ComputeHashRequest) ProtoMessage() {} -func (*ComputeHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{30} } +var xxx_messageInfo_ComputeHashRequest proto.InternalMessageInfo func (m *ComputeHashRequest) GetContext() []byte { if m != nil { @@ -994,15 +1893,46 @@ func (m *ComputeHashRequest) GetContext() []byte { } type VerifyHashRequest struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VerifyHashRequest) Reset() { *m = VerifyHashRequest{} } +func (m *VerifyHashRequest) String() string { return proto.CompactTextString(m) } +func (*VerifyHashRequest) ProtoMessage() {} +func (*VerifyHashRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{31} +} +func (m *VerifyHashRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VerifyHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VerifyHashRequest.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 *VerifyHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyHashRequest.Merge(m, src) +} +func (m *VerifyHashRequest) XXX_Size() int { + return m.Size() +} +func (m *VerifyHashRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyHashRequest.DiscardUnknown(m) } -func (m *VerifyHashRequest) Reset() { *m = VerifyHashRequest{} } -func (m *VerifyHashRequest) String() string { return proto.CompactTextString(m) } -func (*VerifyHashRequest) ProtoMessage() {} -func (*VerifyHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{31} } +var xxx_messageInfo_VerifyHashRequest proto.InternalMessageInfo func (m *VerifyHashRequest) GetIndex() uint64 { if m != nil { @@ -1026,22 +1956,84 @@ func (m *VerifyHashRequest) GetContext() []byte { } type VerifyHashResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VerifyHashResponse) Reset() { *m = VerifyHashResponse{} } +func (m *VerifyHashResponse) String() string { return proto.CompactTextString(m) } +func (*VerifyHashResponse) ProtoMessage() {} +func (*VerifyHashResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{32} +} +func (m *VerifyHashResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VerifyHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VerifyHashResponse.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 *VerifyHashResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyHashResponse.Merge(m, src) +} +func (m *VerifyHashResponse) XXX_Size() int { + return m.Size() +} +func (m *VerifyHashResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyHashResponse.DiscardUnknown(m) } -func (m *VerifyHashResponse) Reset() { *m = VerifyHashResponse{} } -func (m *VerifyHashResponse) String() string { return proto.CompactTextString(m) } -func (*VerifyHashResponse) ProtoMessage() {} -func (*VerifyHashResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{32} } +var xxx_messageInfo_VerifyHashResponse proto.InternalMessageInfo type PrepareMergeRequest struct { - MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` - Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` + MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrepareMergeRequest) Reset() { *m = PrepareMergeRequest{} } +func (m *PrepareMergeRequest) String() string { return proto.CompactTextString(m) } +func (*PrepareMergeRequest) ProtoMessage() {} +func (*PrepareMergeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{33} +} +func (m *PrepareMergeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareMergeRequest.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 *PrepareMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareMergeRequest.Merge(m, src) +} +func (m *PrepareMergeRequest) XXX_Size() int { + return m.Size() +} +func (m *PrepareMergeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareMergeRequest.DiscardUnknown(m) } -func (m *PrepareMergeRequest) Reset() { *m = PrepareMergeRequest{} } -func (m *PrepareMergeRequest) String() string { return proto.CompactTextString(m) } -func (*PrepareMergeRequest) ProtoMessage() {} -func (*PrepareMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{33} } +var xxx_messageInfo_PrepareMergeRequest proto.InternalMessageInfo func (m *PrepareMergeRequest) GetMinIndex() uint64 { if m != nil { @@ -1058,24 +2050,84 @@ func (m *PrepareMergeRequest) GetTarget() *metapb.Region { } type PrepareMergeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrepareMergeResponse) Reset() { *m = PrepareMergeResponse{} } +func (m *PrepareMergeResponse) String() string { return proto.CompactTextString(m) } +func (*PrepareMergeResponse) ProtoMessage() {} +func (*PrepareMergeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{34} +} +func (m *PrepareMergeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareMergeResponse.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 *PrepareMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareMergeResponse.Merge(m, src) +} +func (m *PrepareMergeResponse) XXX_Size() int { + return m.Size() +} +func (m *PrepareMergeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareMergeResponse.DiscardUnknown(m) } -func (m *PrepareMergeResponse) Reset() { *m = PrepareMergeResponse{} } -func (m *PrepareMergeResponse) String() string { return proto.CompactTextString(m) } -func (*PrepareMergeResponse) ProtoMessage() {} -func (*PrepareMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{34} } +var xxx_messageInfo_PrepareMergeResponse proto.InternalMessageInfo type PrepareFlashbackRequest struct { // The start_ts that the current flashback progress is using. - StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PrepareFlashbackRequest) Reset() { *m = PrepareFlashbackRequest{} } func (m *PrepareFlashbackRequest) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackRequest) ProtoMessage() {} func (*PrepareFlashbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{35} + return fileDescriptor_661741b5e7485333, []int{35} +} +func (m *PrepareFlashbackRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareFlashbackRequest.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 *PrepareFlashbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackRequest.Merge(m, src) +} +func (m *PrepareFlashbackRequest) XXX_Size() int { + return m.Size() } +func (m *PrepareFlashbackRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareFlashbackRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PrepareFlashbackRequest proto.InternalMessageInfo func (m *PrepareFlashbackRequest) GetStartTs() uint64 { if m != nil { @@ -1085,47 +2137,165 @@ func (m *PrepareFlashbackRequest) GetStartTs() uint64 { } type PrepareFlashbackResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PrepareFlashbackResponse) Reset() { *m = PrepareFlashbackResponse{} } func (m *PrepareFlashbackResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackResponse) ProtoMessage() {} func (*PrepareFlashbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{36} + return fileDescriptor_661741b5e7485333, []int{36} +} +func (m *PrepareFlashbackResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrepareFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrepareFlashbackResponse.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 *PrepareFlashbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackResponse.Merge(m, src) +} +func (m *PrepareFlashbackResponse) XXX_Size() int { + return m.Size() +} +func (m *PrepareFlashbackResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PrepareFlashbackResponse.DiscardUnknown(m) } +var xxx_messageInfo_PrepareFlashbackResponse proto.InternalMessageInfo + type FinishFlashbackRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FinishFlashbackRequest) Reset() { *m = FinishFlashbackRequest{} } func (m *FinishFlashbackRequest) String() string { return proto.CompactTextString(m) } func (*FinishFlashbackRequest) ProtoMessage() {} func (*FinishFlashbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{37} + return fileDescriptor_661741b5e7485333, []int{37} } - +func (m *FinishFlashbackRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FinishFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FinishFlashbackRequest.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 *FinishFlashbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishFlashbackRequest.Merge(m, src) +} +func (m *FinishFlashbackRequest) XXX_Size() int { + return m.Size() +} +func (m *FinishFlashbackRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FinishFlashbackRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FinishFlashbackRequest proto.InternalMessageInfo + type FinishFlashbackResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FinishFlashbackResponse) Reset() { *m = FinishFlashbackResponse{} } func (m *FinishFlashbackResponse) String() string { return proto.CompactTextString(m) } func (*FinishFlashbackResponse) ProtoMessage() {} func (*FinishFlashbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{38} + return fileDescriptor_661741b5e7485333, []int{38} +} +func (m *FinishFlashbackResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FinishFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FinishFlashbackResponse.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 *FinishFlashbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishFlashbackResponse.Merge(m, src) +} +func (m *FinishFlashbackResponse) XXX_Size() int { + return m.Size() +} +func (m *FinishFlashbackResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FinishFlashbackResponse.DiscardUnknown(m) } +var xxx_messageInfo_FinishFlashbackResponse proto.InternalMessageInfo + type CommitMergeRequest struct { - Source *metapb.Region `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` + Source *metapb.Region `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Commit uint64 `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"` - Entries []*eraftpb.Entry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` + Entries []*eraftpb.Entry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` // Used in v2. When it's present, `source` and `commit` will not be set. - SourceState *raft_serverpb.RegionLocalState `protobuf:"bytes,4,opt,name=source_state,json=sourceState" json:"source_state,omitempty"` + SourceState *raft_serverpb.RegionLocalState `protobuf:"bytes,4,opt,name=source_state,json=sourceState,proto3" json:"source_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitMergeRequest) Reset() { *m = CommitMergeRequest{} } +func (m *CommitMergeRequest) String() string { return proto.CompactTextString(m) } +func (*CommitMergeRequest) ProtoMessage() {} +func (*CommitMergeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{39} +} +func (m *CommitMergeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitMergeRequest.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 *CommitMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitMergeRequest.Merge(m, src) +} +func (m *CommitMergeRequest) XXX_Size() int { + return m.Size() +} +func (m *CommitMergeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CommitMergeRequest.DiscardUnknown(m) } -func (m *CommitMergeRequest) Reset() { *m = CommitMergeRequest{} } -func (m *CommitMergeRequest) String() string { return proto.CompactTextString(m) } -func (*CommitMergeRequest) ProtoMessage() {} -func (*CommitMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{39} } +var xxx_messageInfo_CommitMergeRequest proto.InternalMessageInfo func (m *CommitMergeRequest) GetSource() *metapb.Region { if m != nil { @@ -1156,21 +2326,83 @@ func (m *CommitMergeRequest) GetSourceState() *raft_serverpb.RegionLocalState { } type CommitMergeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommitMergeResponse) Reset() { *m = CommitMergeResponse{} } +func (m *CommitMergeResponse) String() string { return proto.CompactTextString(m) } +func (*CommitMergeResponse) ProtoMessage() {} +func (*CommitMergeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{40} +} +func (m *CommitMergeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CommitMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CommitMergeResponse.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 *CommitMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitMergeResponse.Merge(m, src) +} +func (m *CommitMergeResponse) XXX_Size() int { + return m.Size() +} +func (m *CommitMergeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CommitMergeResponse.DiscardUnknown(m) } -func (m *CommitMergeResponse) Reset() { *m = CommitMergeResponse{} } -func (m *CommitMergeResponse) String() string { return proto.CompactTextString(m) } -func (*CommitMergeResponse) ProtoMessage() {} -func (*CommitMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{40} } +var xxx_messageInfo_CommitMergeResponse proto.InternalMessageInfo type RollbackMergeRequest struct { - Commit uint64 `protobuf:"varint,1,opt,name=commit,proto3" json:"commit,omitempty"` + Commit uint64 `protobuf:"varint,1,opt,name=commit,proto3" json:"commit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RollbackMergeRequest) Reset() { *m = RollbackMergeRequest{} } +func (m *RollbackMergeRequest) String() string { return proto.CompactTextString(m) } +func (*RollbackMergeRequest) ProtoMessage() {} +func (*RollbackMergeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{41} +} +func (m *RollbackMergeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RollbackMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RollbackMergeRequest.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 *RollbackMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollbackMergeRequest.Merge(m, src) +} +func (m *RollbackMergeRequest) XXX_Size() int { + return m.Size() +} +func (m *RollbackMergeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RollbackMergeRequest.DiscardUnknown(m) } -func (m *RollbackMergeRequest) Reset() { *m = RollbackMergeRequest{} } -func (m *RollbackMergeRequest) String() string { return proto.CompactTextString(m) } -func (*RollbackMergeRequest) ProtoMessage() {} -func (*RollbackMergeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{41} } +var xxx_messageInfo_RollbackMergeRequest proto.InternalMessageInfo func (m *RollbackMergeRequest) GetCommit() uint64 { if m != nil { @@ -1180,22 +2412,84 @@ func (m *RollbackMergeRequest) GetCommit() uint64 { } type RollbackMergeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RollbackMergeResponse) Reset() { *m = RollbackMergeResponse{} } +func (m *RollbackMergeResponse) String() string { return proto.CompactTextString(m) } +func (*RollbackMergeResponse) ProtoMessage() {} +func (*RollbackMergeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{42} +} +func (m *RollbackMergeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RollbackMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RollbackMergeResponse.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 *RollbackMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollbackMergeResponse.Merge(m, src) +} +func (m *RollbackMergeResponse) XXX_Size() int { + return m.Size() +} +func (m *RollbackMergeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RollbackMergeResponse.DiscardUnknown(m) } -func (m *RollbackMergeResponse) Reset() { *m = RollbackMergeResponse{} } -func (m *RollbackMergeResponse) String() string { return proto.CompactTextString(m) } -func (*RollbackMergeResponse) ProtoMessage() {} -func (*RollbackMergeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{42} } +var xxx_messageInfo_RollbackMergeResponse proto.InternalMessageInfo type SwitchWitnessRequest struct { - PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + PeerId uint64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + IsWitness bool `protobuf:"varint,2,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchWitnessRequest) Reset() { *m = SwitchWitnessRequest{} } +func (m *SwitchWitnessRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchWitnessRequest) ProtoMessage() {} +func (*SwitchWitnessRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{43} +} +func (m *SwitchWitnessRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwitchWitnessRequest.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 *SwitchWitnessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWitnessRequest.Merge(m, src) +} +func (m *SwitchWitnessRequest) XXX_Size() int { + return m.Size() +} +func (m *SwitchWitnessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchWitnessRequest.DiscardUnknown(m) } -func (m *SwitchWitnessRequest) Reset() { *m = SwitchWitnessRequest{} } -func (m *SwitchWitnessRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchWitnessRequest) ProtoMessage() {} -func (*SwitchWitnessRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{43} } +var xxx_messageInfo_SwitchWitnessRequest proto.InternalMessageInfo func (m *SwitchWitnessRequest) GetPeerId() uint64 { if m != nil { @@ -1212,15 +2506,44 @@ func (m *SwitchWitnessRequest) GetIsWitness() bool { } type BatchSwitchWitnessRequest struct { - SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` + SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BatchSwitchWitnessRequest) Reset() { *m = BatchSwitchWitnessRequest{} } func (m *BatchSwitchWitnessRequest) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessRequest) ProtoMessage() {} func (*BatchSwitchWitnessRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{44} + return fileDescriptor_661741b5e7485333, []int{44} +} +func (m *BatchSwitchWitnessRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwitchWitnessRequest.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 *BatchSwitchWitnessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitnessRequest.Merge(m, src) +} +func (m *BatchSwitchWitnessRequest) XXX_Size() int { + return m.Size() } +func (m *BatchSwitchWitnessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwitchWitnessRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchSwitchWitnessRequest proto.InternalMessageInfo func (m *BatchSwitchWitnessRequest) GetSwitchWitnesses() []*SwitchWitnessRequest { if m != nil { @@ -1230,23 +2553,83 @@ func (m *BatchSwitchWitnessRequest) GetSwitchWitnesses() []*SwitchWitnessRequest } type BatchSwitchWitnessResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BatchSwitchWitnessResponse) Reset() { *m = BatchSwitchWitnessResponse{} } func (m *BatchSwitchWitnessResponse) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessResponse) ProtoMessage() {} func (*BatchSwitchWitnessResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRaftCmdpb, []int{45} + return fileDescriptor_661741b5e7485333, []int{45} +} +func (m *BatchSwitchWitnessResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwitchWitnessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwitchWitnessResponse.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 *BatchSwitchWitnessResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitnessResponse.Merge(m, src) +} +func (m *BatchSwitchWitnessResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchSwitchWitnessResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwitchWitnessResponse.DiscardUnknown(m) } +var xxx_messageInfo_BatchSwitchWitnessResponse proto.InternalMessageInfo + type UpdateGcPeerRequest struct { - PeerId []uint64 `protobuf:"varint,1,rep,packed,name=peer_id,json=peerId" json:"peer_id,omitempty"` + PeerId []uint64 `protobuf:"varint,1,rep,packed,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateGcPeerRequest) Reset() { *m = UpdateGcPeerRequest{} } +func (m *UpdateGcPeerRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateGcPeerRequest) ProtoMessage() {} +func (*UpdateGcPeerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{46} +} +func (m *UpdateGcPeerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateGcPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateGcPeerRequest.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 *UpdateGcPeerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGcPeerRequest.Merge(m, src) +} +func (m *UpdateGcPeerRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateGcPeerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateGcPeerRequest.DiscardUnknown(m) } -func (m *UpdateGcPeerRequest) Reset() { *m = UpdateGcPeerRequest{} } -func (m *UpdateGcPeerRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateGcPeerRequest) ProtoMessage() {} -func (*UpdateGcPeerRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{46} } +var xxx_messageInfo_UpdateGcPeerRequest proto.InternalMessageInfo func (m *UpdateGcPeerRequest) GetPeerId() []uint64 { if m != nil { @@ -1256,28 +2639,59 @@ func (m *UpdateGcPeerRequest) GetPeerId() []uint64 { } type AdminRequest struct { - CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` - ChangePeer *ChangePeerRequest `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` - Split *SplitRequest `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"` - CompactLog *CompactLogRequest `protobuf:"bytes,4,opt,name=compact_log,json=compactLog" json:"compact_log,omitempty"` - TransferLeader *TransferLeaderRequest `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` - VerifyHash *VerifyHashRequest `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash" json:"verify_hash,omitempty"` - PrepareMerge *PrepareMergeRequest `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge" json:"prepare_merge,omitempty"` - CommitMerge *CommitMergeRequest `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge" json:"commit_merge,omitempty"` - RollbackMerge *RollbackMergeRequest `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge" json:"rollback_merge,omitempty"` - Splits *BatchSplitRequest `protobuf:"bytes,10,opt,name=splits" json:"splits,omitempty"` - ChangePeerV2 *ChangePeerV2Request `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` - ComputeHash *ComputeHashRequest `protobuf:"bytes,12,opt,name=compute_hash,json=computeHash" json:"compute_hash,omitempty"` - PrepareFlashback *PrepareFlashbackRequest `protobuf:"bytes,13,opt,name=prepare_flashback,json=prepareFlashback" json:"prepare_flashback,omitempty"` - FinishFlashback *FinishFlashbackRequest `protobuf:"bytes,14,opt,name=finish_flashback,json=finishFlashback" json:"finish_flashback,omitempty"` - SwitchWitnesses *BatchSwitchWitnessRequest `protobuf:"bytes,15,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` - UpdateGcPeers *UpdateGcPeerRequest `protobuf:"bytes,16,opt,name=update_gc_peers,json=updateGcPeers" json:"update_gc_peers,omitempty"` -} - -func (m *AdminRequest) Reset() { *m = AdminRequest{} } -func (m *AdminRequest) String() string { return proto.CompactTextString(m) } -func (*AdminRequest) ProtoMessage() {} -func (*AdminRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{47} } + CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` + ChangePeer *ChangePeerRequest `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` + Split *SplitRequest `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"` // Deprecated: Do not use. + CompactLog *CompactLogRequest `protobuf:"bytes,4,opt,name=compact_log,json=compactLog,proto3" json:"compact_log,omitempty"` + TransferLeader *TransferLeaderRequest `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` + VerifyHash *VerifyHashRequest `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash,proto3" json:"verify_hash,omitempty"` + PrepareMerge *PrepareMergeRequest `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge,proto3" json:"prepare_merge,omitempty"` + CommitMerge *CommitMergeRequest `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge,proto3" json:"commit_merge,omitempty"` + RollbackMerge *RollbackMergeRequest `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge,proto3" json:"rollback_merge,omitempty"` + Splits *BatchSplitRequest `protobuf:"bytes,10,opt,name=splits,proto3" json:"splits,omitempty"` + ChangePeerV2 *ChangePeerV2Request `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` + ComputeHash *ComputeHashRequest `protobuf:"bytes,12,opt,name=compute_hash,json=computeHash,proto3" json:"compute_hash,omitempty"` + PrepareFlashback *PrepareFlashbackRequest `protobuf:"bytes,13,opt,name=prepare_flashback,json=prepareFlashback,proto3" json:"prepare_flashback,omitempty"` + FinishFlashback *FinishFlashbackRequest `protobuf:"bytes,14,opt,name=finish_flashback,json=finishFlashback,proto3" json:"finish_flashback,omitempty"` + SwitchWitnesses *BatchSwitchWitnessRequest `protobuf:"bytes,15,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + UpdateGcPeers *UpdateGcPeerRequest `protobuf:"bytes,16,opt,name=update_gc_peers,json=updateGcPeers,proto3" json:"update_gc_peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdminRequest) Reset() { *m = AdminRequest{} } +func (m *AdminRequest) String() string { return proto.CompactTextString(m) } +func (*AdminRequest) ProtoMessage() {} +func (*AdminRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{47} +} +func (m *AdminRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AdminRequest.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 *AdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminRequest.Merge(m, src) +} +func (m *AdminRequest) XXX_Size() int { + return m.Size() +} +func (m *AdminRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AdminRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AdminRequest proto.InternalMessageInfo func (m *AdminRequest) GetCmdType() AdminCmdType { if m != nil { @@ -1293,6 +2707,7 @@ func (m *AdminRequest) GetChangePeer() *ChangePeerRequest { return nil } +// Deprecated: Do not use. func (m *AdminRequest) GetSplit() *SplitRequest { if m != nil { return m.Split @@ -1392,26 +2807,57 @@ func (m *AdminRequest) GetUpdateGcPeers() *UpdateGcPeerRequest { } type AdminResponse struct { - CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` - ChangePeer *ChangePeerResponse `protobuf:"bytes,2,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` - Split *SplitResponse `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"` - CompactLog *CompactLogResponse `protobuf:"bytes,4,opt,name=compact_log,json=compactLog" json:"compact_log,omitempty"` - TransferLeader *TransferLeaderResponse `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` - VerifyHash *VerifyHashResponse `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash" json:"verify_hash,omitempty"` - PrepareMerge *PrepareMergeResponse `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge" json:"prepare_merge,omitempty"` - CommitMerge *CommitMergeResponse `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge" json:"commit_merge,omitempty"` - RollbackMerge *RollbackMergeResponse `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge" json:"rollback_merge,omitempty"` - Splits *BatchSplitResponse `protobuf:"bytes,10,opt,name=splits" json:"splits,omitempty"` - ChangePeerV2 *ChangePeerV2Response `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` - PrepareFlashback *PrepareFlashbackResponse `protobuf:"bytes,12,opt,name=prepare_flashback,json=prepareFlashback" json:"prepare_flashback,omitempty"` - FinishFlashback *FinishFlashbackResponse `protobuf:"bytes,13,opt,name=finish_flashback,json=finishFlashback" json:"finish_flashback,omitempty"` - SwitchWitnesses *BatchSwitchWitnessResponse `protobuf:"bytes,14,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` -} - -func (m *AdminResponse) Reset() { *m = AdminResponse{} } -func (m *AdminResponse) String() string { return proto.CompactTextString(m) } -func (*AdminResponse) ProtoMessage() {} -func (*AdminResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{48} } + CmdType AdminCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.AdminCmdType" json:"cmd_type,omitempty"` + ChangePeer *ChangePeerResponse `protobuf:"bytes,2,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` + Split *SplitResponse `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"` // Deprecated: Do not use. + CompactLog *CompactLogResponse `protobuf:"bytes,4,opt,name=compact_log,json=compactLog,proto3" json:"compact_log,omitempty"` + TransferLeader *TransferLeaderResponse `protobuf:"bytes,5,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` + VerifyHash *VerifyHashResponse `protobuf:"bytes,6,opt,name=verify_hash,json=verifyHash,proto3" json:"verify_hash,omitempty"` + PrepareMerge *PrepareMergeResponse `protobuf:"bytes,7,opt,name=prepare_merge,json=prepareMerge,proto3" json:"prepare_merge,omitempty"` + CommitMerge *CommitMergeResponse `protobuf:"bytes,8,opt,name=commit_merge,json=commitMerge,proto3" json:"commit_merge,omitempty"` + RollbackMerge *RollbackMergeResponse `protobuf:"bytes,9,opt,name=rollback_merge,json=rollbackMerge,proto3" json:"rollback_merge,omitempty"` + Splits *BatchSplitResponse `protobuf:"bytes,10,opt,name=splits,proto3" json:"splits,omitempty"` + ChangePeerV2 *ChangePeerV2Response `protobuf:"bytes,11,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` + PrepareFlashback *PrepareFlashbackResponse `protobuf:"bytes,12,opt,name=prepare_flashback,json=prepareFlashback,proto3" json:"prepare_flashback,omitempty"` + FinishFlashback *FinishFlashbackResponse `protobuf:"bytes,13,opt,name=finish_flashback,json=finishFlashback,proto3" json:"finish_flashback,omitempty"` + SwitchWitnesses *BatchSwitchWitnessResponse `protobuf:"bytes,14,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdminResponse) Reset() { *m = AdminResponse{} } +func (m *AdminResponse) String() string { return proto.CompactTextString(m) } +func (*AdminResponse) ProtoMessage() {} +func (*AdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{48} +} +func (m *AdminResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AdminResponse.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 *AdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminResponse.Merge(m, src) +} +func (m *AdminResponse) XXX_Size() int { + return m.Size() +} +func (m *AdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AdminResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AdminResponse proto.InternalMessageInfo func (m *AdminResponse) GetCmdType() AdminCmdType { if m != nil { @@ -1427,6 +2873,7 @@ func (m *AdminResponse) GetChangePeer() *ChangePeerResponse { return nil } +// Deprecated: Do not use. func (m *AdminResponse) GetSplit() *SplitResponse { if m != nil { return m.Split @@ -1513,21 +2960,83 @@ func (m *AdminResponse) GetSwitchWitnesses() *BatchSwitchWitnessResponse { // For get the leader of the region. type RegionLeaderRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionLeaderRequest) Reset() { *m = RegionLeaderRequest{} } +func (m *RegionLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*RegionLeaderRequest) ProtoMessage() {} +func (*RegionLeaderRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{49} +} +func (m *RegionLeaderRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionLeaderRequest.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 *RegionLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLeaderRequest.Merge(m, src) +} +func (m *RegionLeaderRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionLeaderRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionLeaderRequest.DiscardUnknown(m) } -func (m *RegionLeaderRequest) Reset() { *m = RegionLeaderRequest{} } -func (m *RegionLeaderRequest) String() string { return proto.CompactTextString(m) } -func (*RegionLeaderRequest) ProtoMessage() {} -func (*RegionLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{49} } +var xxx_messageInfo_RegionLeaderRequest proto.InternalMessageInfo type RegionLeaderResponse struct { - Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionLeaderResponse) Reset() { *m = RegionLeaderResponse{} } +func (m *RegionLeaderResponse) String() string { return proto.CompactTextString(m) } +func (*RegionLeaderResponse) ProtoMessage() {} +func (*RegionLeaderResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{50} +} +func (m *RegionLeaderResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionLeaderResponse.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 *RegionLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLeaderResponse.Merge(m, src) +} +func (m *RegionLeaderResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionLeaderResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionLeaderResponse.DiscardUnknown(m) } -func (m *RegionLeaderResponse) Reset() { *m = RegionLeaderResponse{} } -func (m *RegionLeaderResponse) String() string { return proto.CompactTextString(m) } -func (*RegionLeaderResponse) ProtoMessage() {} -func (*RegionLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{50} } +var xxx_messageInfo_RegionLeaderResponse proto.InternalMessageInfo func (m *RegionLeaderResponse) GetLeader() *metapb.Peer { if m != nil { @@ -1546,22 +3055,84 @@ func (m *RegionLeaderResponse) GetLeader() *metapb.Peer { // Peer10, we can think this ChangePeer is finished, and can pop this job from job list // directly. type RegionDetailRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionDetailRequest) Reset() { *m = RegionDetailRequest{} } +func (m *RegionDetailRequest) String() string { return proto.CompactTextString(m) } +func (*RegionDetailRequest) ProtoMessage() {} +func (*RegionDetailRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{51} +} +func (m *RegionDetailRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionDetailRequest.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 *RegionDetailRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionDetailRequest.Merge(m, src) +} +func (m *RegionDetailRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionDetailRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionDetailRequest.DiscardUnknown(m) } -func (m *RegionDetailRequest) Reset() { *m = RegionDetailRequest{} } -func (m *RegionDetailRequest) String() string { return proto.CompactTextString(m) } -func (*RegionDetailRequest) ProtoMessage() {} -func (*RegionDetailRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{51} } +var xxx_messageInfo_RegionDetailRequest proto.InternalMessageInfo type RegionDetailResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` - Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionDetailResponse) Reset() { *m = RegionDetailResponse{} } +func (m *RegionDetailResponse) String() string { return proto.CompactTextString(m) } +func (*RegionDetailResponse) ProtoMessage() {} +func (*RegionDetailResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{52} +} +func (m *RegionDetailResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionDetailResponse.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 *RegionDetailResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionDetailResponse.Merge(m, src) +} +func (m *RegionDetailResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionDetailResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionDetailResponse.DiscardUnknown(m) } -func (m *RegionDetailResponse) Reset() { *m = RegionDetailResponse{} } -func (m *RegionDetailResponse) String() string { return proto.CompactTextString(m) } -func (*RegionDetailResponse) ProtoMessage() {} -func (*RegionDetailResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{52} } +var xxx_messageInfo_RegionDetailResponse proto.InternalMessageInfo func (m *RegionDetailResponse) GetRegion() *metapb.Region { if m != nil { @@ -1578,15 +3149,46 @@ func (m *RegionDetailResponse) GetLeader() *metapb.Peer { } type StatusRequest struct { - CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` - RegionLeader *RegionLeaderRequest `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader" json:"region_leader,omitempty"` - RegionDetail *RegionDetailRequest `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail" json:"region_detail,omitempty"` + CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` + RegionLeader *RegionLeaderRequest `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader,proto3" json:"region_leader,omitempty"` + RegionDetail *RegionDetailRequest `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail,proto3" json:"region_detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatusRequest) Reset() { *m = StatusRequest{} } +func (m *StatusRequest) String() string { return proto.CompactTextString(m) } +func (*StatusRequest) ProtoMessage() {} +func (*StatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{53} +} +func (m *StatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatusRequest.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 *StatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusRequest.Merge(m, src) +} +func (m *StatusRequest) XXX_Size() int { + return m.Size() +} +func (m *StatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatusRequest.DiscardUnknown(m) } -func (m *StatusRequest) Reset() { *m = StatusRequest{} } -func (m *StatusRequest) String() string { return proto.CompactTextString(m) } -func (*StatusRequest) ProtoMessage() {} -func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{53} } +var xxx_messageInfo_StatusRequest proto.InternalMessageInfo func (m *StatusRequest) GetCmdType() StatusCmdType { if m != nil { @@ -1610,15 +3212,46 @@ func (m *StatusRequest) GetRegionDetail() *RegionDetailRequest { } type StatusResponse struct { - CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` - RegionLeader *RegionLeaderResponse `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader" json:"region_leader,omitempty"` - RegionDetail *RegionDetailResponse `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail" json:"region_detail,omitempty"` + CmdType StatusCmdType `protobuf:"varint,1,opt,name=cmd_type,json=cmdType,proto3,enum=raft_cmdpb.StatusCmdType" json:"cmd_type,omitempty"` + RegionLeader *RegionLeaderResponse `protobuf:"bytes,2,opt,name=region_leader,json=regionLeader,proto3" json:"region_leader,omitempty"` + RegionDetail *RegionDetailResponse `protobuf:"bytes,3,opt,name=region_detail,json=regionDetail,proto3" json:"region_detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatusResponse) Reset() { *m = StatusResponse{} } +func (m *StatusResponse) String() string { return proto.CompactTextString(m) } +func (*StatusResponse) ProtoMessage() {} +func (*StatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{54} +} +func (m *StatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatusResponse.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 *StatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusResponse.Merge(m, src) +} +func (m *StatusResponse) XXX_Size() int { + return m.Size() +} +func (m *StatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatusResponse.DiscardUnknown(m) } -func (m *StatusResponse) Reset() { *m = StatusResponse{} } -func (m *StatusResponse) String() string { return proto.CompactTextString(m) } -func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{54} } +var xxx_messageInfo_StatusResponse proto.InternalMessageInfo func (m *StatusResponse) GetCmdType() StatusCmdType { if m != nil { @@ -1643,28 +3276,59 @@ func (m *StatusResponse) GetRegionDetail() *RegionDetailResponse { type RaftRequestHeader struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` // true for read linearization ReadQuorum bool `protobuf:"varint,3,opt,name=read_quorum,json=readQuorum,proto3" json:"read_quorum,omitempty"` // 16 bytes, to distinguish request. Uuid []byte `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` Term uint64 `protobuf:"varint,6,opt,name=term,proto3" json:"term,omitempty"` SyncLog bool `protobuf:"varint,7,opt,name=sync_log,json=syncLog,proto3" json:"sync_log,omitempty"` ReplicaRead bool `protobuf:"varint,8,opt,name=replica_read,json=replicaRead,proto3" json:"replica_read,omitempty"` // Read requests can be responsed directly after the Raft applys to `applied_index`. AppliedIndex uint64 `protobuf:"varint,9,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` // Custom flags for this raft request. - Flags uint64 `protobuf:"varint,10,opt,name=flags,proto3" json:"flags,omitempty"` - FlagData []byte `protobuf:"bytes,11,opt,name=flag_data,json=flagData,proto3" json:"flag_data,omitempty"` - Priority kvrpcpb.CommandPri `protobuf:"varint,12,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` - ResourceGroupName string `protobuf:"bytes,13,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + Flags uint64 `protobuf:"varint,10,opt,name=flags,proto3" json:"flags,omitempty"` + FlagData []byte `protobuf:"bytes,11,opt,name=flag_data,json=flagData,proto3" json:"flag_data,omitempty"` + Priority kvrpcpb.CommandPri `protobuf:"varint,12,opt,name=priority,proto3,enum=kvrpcpb.CommandPri" json:"priority,omitempty"` + ResourceGroupName string `protobuf:"bytes,13,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftRequestHeader) Reset() { *m = RaftRequestHeader{} } +func (m *RaftRequestHeader) String() string { return proto.CompactTextString(m) } +func (*RaftRequestHeader) ProtoMessage() {} +func (*RaftRequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{55} +} +func (m *RaftRequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftRequestHeader.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 *RaftRequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftRequestHeader.Merge(m, src) +} +func (m *RaftRequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RaftRequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RaftRequestHeader.DiscardUnknown(m) } -func (m *RaftRequestHeader) Reset() { *m = RaftRequestHeader{} } -func (m *RaftRequestHeader) String() string { return proto.CompactTextString(m) } -func (*RaftRequestHeader) ProtoMessage() {} -func (*RaftRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{55} } +var xxx_messageInfo_RaftRequestHeader proto.InternalMessageInfo func (m *RaftRequestHeader) GetRegionId() uint64 { if m != nil { @@ -1758,15 +3422,46 @@ func (m *RaftRequestHeader) GetResourceGroupName() string { } type RaftResponseHeader struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - CurrentTerm uint64 `protobuf:"varint,3,opt,name=current_term,json=currentTerm,proto3" json:"current_term,omitempty"` + Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` + CurrentTerm uint64 `protobuf:"varint,3,opt,name=current_term,json=currentTerm,proto3" json:"current_term,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftResponseHeader) Reset() { *m = RaftResponseHeader{} } +func (m *RaftResponseHeader) String() string { return proto.CompactTextString(m) } +func (*RaftResponseHeader) ProtoMessage() {} +func (*RaftResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{56} +} +func (m *RaftResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftResponseHeader.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 *RaftResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftResponseHeader.Merge(m, src) +} +func (m *RaftResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *RaftResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RaftResponseHeader.DiscardUnknown(m) } -func (m *RaftResponseHeader) Reset() { *m = RaftResponseHeader{} } -func (m *RaftResponseHeader) String() string { return proto.CompactTextString(m) } -func (*RaftResponseHeader) ProtoMessage() {} -func (*RaftResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{56} } +var xxx_messageInfo_RaftResponseHeader proto.InternalMessageInfo func (m *RaftResponseHeader) GetError() *errorpb.Error { if m != nil { @@ -1790,18 +3485,49 @@ func (m *RaftResponseHeader) GetCurrentTerm() uint64 { } type RaftCmdRequest struct { - Header *RaftRequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *RaftRequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // We can't enclose normal requests and administrator request // at same time. - Requests []*Request `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"` - AdminRequest *AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest" json:"admin_request,omitempty"` - StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest" json:"status_request,omitempty"` + Requests []*Request `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + AdminRequest *AdminRequest `protobuf:"bytes,3,opt,name=admin_request,json=adminRequest,proto3" json:"admin_request,omitempty"` + StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest,proto3" json:"status_request,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftCmdRequest) Reset() { *m = RaftCmdRequest{} } +func (m *RaftCmdRequest) String() string { return proto.CompactTextString(m) } +func (*RaftCmdRequest) ProtoMessage() {} +func (*RaftCmdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{57} +} +func (m *RaftCmdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftCmdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftCmdRequest.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 *RaftCmdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftCmdRequest.Merge(m, src) +} +func (m *RaftCmdRequest) XXX_Size() int { + return m.Size() +} +func (m *RaftCmdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RaftCmdRequest.DiscardUnknown(m) } -func (m *RaftCmdRequest) Reset() { *m = RaftCmdRequest{} } -func (m *RaftCmdRequest) String() string { return proto.CompactTextString(m) } -func (*RaftCmdRequest) ProtoMessage() {} -func (*RaftCmdRequest) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{57} } +var xxx_messageInfo_RaftCmdRequest proto.InternalMessageInfo func (m *RaftCmdRequest) GetHeader() *RaftRequestHeader { if m != nil { @@ -1832,16 +3558,47 @@ func (m *RaftCmdRequest) GetStatusRequest() *StatusRequest { } type RaftCmdResponse struct { - Header *RaftResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Responses []*Response `protobuf:"bytes,2,rep,name=responses" json:"responses,omitempty"` - AdminResponse *AdminResponse `protobuf:"bytes,3,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` - StatusResponse *StatusResponse `protobuf:"bytes,4,opt,name=status_response,json=statusResponse" json:"status_response,omitempty"` + Header *RaftResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Responses []*Response `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` + AdminResponse *AdminResponse `protobuf:"bytes,3,opt,name=admin_response,json=adminResponse,proto3" json:"admin_response,omitempty"` + StatusResponse *StatusResponse `protobuf:"bytes,4,opt,name=status_response,json=statusResponse,proto3" json:"status_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftCmdResponse) Reset() { *m = RaftCmdResponse{} } +func (m *RaftCmdResponse) String() string { return proto.CompactTextString(m) } +func (*RaftCmdResponse) ProtoMessage() {} +func (*RaftCmdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_661741b5e7485333, []int{58} +} +func (m *RaftCmdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftCmdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftCmdResponse.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 *RaftCmdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftCmdResponse.Merge(m, src) +} +func (m *RaftCmdResponse) XXX_Size() int { + return m.Size() +} +func (m *RaftCmdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RaftCmdResponse.DiscardUnknown(m) } -func (m *RaftCmdResponse) Reset() { *m = RaftCmdResponse{} } -func (m *RaftCmdResponse) String() string { return proto.CompactTextString(m) } -func (*RaftCmdResponse) ProtoMessage() {} -func (*RaftCmdResponse) Descriptor() ([]byte, []int) { return fileDescriptorRaftCmdpb, []int{58} } +var xxx_messageInfo_RaftCmdResponse proto.InternalMessageInfo func (m *RaftCmdResponse) GetHeader() *RaftResponseHeader { if m != nil { @@ -1872,6 +3629,9 @@ func (m *RaftCmdResponse) GetStatusResponse() *StatusResponse { } func init() { + proto.RegisterEnum("raft_cmdpb.CmdType", CmdType_name, CmdType_value) + proto.RegisterEnum("raft_cmdpb.AdminCmdType", AdminCmdType_name, AdminCmdType_value) + proto.RegisterEnum("raft_cmdpb.StatusCmdType", StatusCmdType_name, StatusCmdType_value) proto.RegisterType((*GetRequest)(nil), "raft_cmdpb.GetRequest") proto.RegisterType((*GetResponse)(nil), "raft_cmdpb.GetResponse") proto.RegisterType((*PutRequest)(nil), "raft_cmdpb.PutRequest") @@ -1931,216 +3691,469 @@ func init() { proto.RegisterType((*RaftResponseHeader)(nil), "raft_cmdpb.RaftResponseHeader") proto.RegisterType((*RaftCmdRequest)(nil), "raft_cmdpb.RaftCmdRequest") proto.RegisterType((*RaftCmdResponse)(nil), "raft_cmdpb.RaftCmdResponse") - proto.RegisterEnum("raft_cmdpb.CmdType", CmdType_name, CmdType_value) - proto.RegisterEnum("raft_cmdpb.AdminCmdType", AdminCmdType_name, AdminCmdType_value) - proto.RegisterEnum("raft_cmdpb.StatusCmdType", StatusCmdType_name, StatusCmdType_value) -} -func (m *GetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - return i, nil -} - -func (m *GetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Value) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - return i, nil -} - -func (m *PutRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if len(m.Value) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - return i, nil -} - -func (m *PutResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil } -func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - return i, nil -} - -func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +func init() { proto.RegisterFile("raft_cmdpb.proto", fileDescriptor_661741b5e7485333) } -func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) - } - if len(m.Key) > 0 { - dAtA[i] = 0x12 - i++ +var fileDescriptor_661741b5e7485333 = []byte{ + // 2790 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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0x64, 0x97, 0x17, 0xb1, 0xec, 0x25, 0x48, 0xc9, 0xe5, 0xa5, 0x48, 0x0f, + 0xfc, 0x84, 0x52, 0x32, 0x74, 0x1f, 0x06, 0x54, 0xee, 0x17, 0x09, 0x22, 0xaa, 0xda, 0xcc, 0x3a, + 0x2d, 0xdb, 0x81, 0xb8, 0x4f, 0x75, 0x29, 0x7a, 0x07, 0x9a, 0x3c, 0x4d, 0x51, 0x59, 0x61, 0x5b, + 0xa8, 0x24, 0xb0, 0x54, 0x46, 0x07, 0x30, 0xd0, 0x16, 0x92, 0x75, 0xb6, 0x37, 0xee, 0x16, 0x23, + 0x51, 0x52, 0x48, 0xe2, 0x9e, 0xa3, 0x09, 0x65, 0x24, 0xd8, 0x19, 0x25, 0x12, 0xd2, 0x2b, 0x8d, + 0x44, 0xee, 0x0c, 0x13, 0x67, 0xb5, 0x94, 0xa1, 0x43, 0x58, 0x57, 0x29, 0x99, 0x28, 0xa6, 0x1d, + 0xf7, 0x39, 0xce, 0xf5, 0x92, 0xb4, 0xe4, 0x79, 0x1a, 0x1b, 0x61, 0xae, 0x03, 0x3d, 0x06, 0x63, + 0xc2, 0x99, 0x5b, 0x03, 0x1c, 0x70, 0x40, 0x53, 0x07, 0x2c, 0xe7, 0x7d, 0xbc, 0x36, 0xc9, 0xca, + 0xd1, 0x61, 0x09, 0xa9, 0xac, 0x71, 0xb8, 0xd7, 0x8a, 0xb1, 0x7e, 0x11, 0x66, 0x41, 0xf7, 0x61, + 0x6d, 0xc1, 0xb9, 0xc3, 0x3a, 0x71, 0x2c, 0x51, 0x21, 0x18, 0xc5, 0xe8, 0x97, 0xd0, 0x0b, 0xee, + 0x2f, 0x34, 0x61, 0x64, 0xfe, 0xd8, 0x82, 0xbe, 0x24, 0x15, 0x59, 0x81, 0xfd, 0x2c, 0x56, 0xf9, + 0xb0, 0x8c, 0x55, 0xb6, 0x56, 0xb1, 0x8a, 0xba, 0x9f, 0x69, 0xb4, 0xf2, 0x56, 0x96, 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 0x79, 0xb6, 0x55, 0xf9, + 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, + 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, + 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, +} + +func (m *GetRequest) 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 *GetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + i-- + dAtA[i] = 0x12 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } -func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { +func (m *GetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { +func (m *PutRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x1a + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + } if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + i-- + dAtA[i] = 0xa } - if len(m.StartKey) > 0 { + return len(dAtA) - i, nil +} + +func (m *PutResponse) 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 *PutResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *DeleteRequest) 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 *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) } - if len(m.EndKey) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeleteResponse) 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 *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *DeleteRangeRequest) 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 *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.NotifyOnly { - dAtA[i] = 0x20 - i++ + i-- if m.NotifyOnly { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x1a } - return i, nil + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2148,17 +4161,26 @@ func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *SnapRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2166,17 +4188,26 @@ func (m *SnapRequest) Marshal() (dAtA []byte, err error) { } func (m *SnapRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *SnapResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2184,27 +4215,38 @@ func (m *SnapResponse) Marshal() (dAtA []byte, err error) { } func (m *SnapResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) - n1, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2212,35 +4254,47 @@ func (m *PrewriteRequest) Marshal() (dAtA []byte, err error) { } func (m *PrewriteRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrewriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Lock) > 0 { + i -= len(m.Lock) + copy(dAtA[i:], m.Lock) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Lock))) + i-- + dAtA[i] = 0x1a } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - if len(m.Lock) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Lock))) - i += copy(dAtA[i:], m.Lock) + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2248,17 +4302,26 @@ func (m *PrewriteResponse) Marshal() (dAtA []byte, err error) { } func (m *PrewriteResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrewriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *IngestSSTRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2266,27 +4329,38 @@ func (m *IngestSSTRequest) Marshal() (dAtA []byte, err error) { } func (m *IngestSSTRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngestSSTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Sst != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Sst.Size())) - n2, err := m.Sst.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *IngestSSTResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2294,17 +4368,26 @@ func (m *IngestSSTResponse) Marshal() (dAtA []byte, err error) { } func (m *IngestSSTResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngestSSTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2312,34 +4395,45 @@ func (m *ReadIndexRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.KeyRanges) > 0 { - for _, msg := range m.KeyRanges { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.KeyRanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.KeyRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if m.StartTs != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2347,32 +4441,43 @@ func (m *ReadIndexResponse) Marshal() (dAtA []byte, err error) { } func (m *ReadIndexResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ReadIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Locked != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Locked.Size())) - n3, err := m.Locked.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.ReadIndex != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2380,102 +4485,127 @@ func (m *Request) Marshal() (dAtA []byte, err error) { } func (m *Request) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Get != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Get.Size())) - n4, err := m.Get.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ReadIndex != nil { + { + size, err := m.ReadIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x52 } - if m.Put != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Put.Size())) - n5, err := m.Put.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.IngestSst != nil { + { + size, err := m.IngestSst.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x4a } - if m.Delete != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Delete.Size())) - n6, err := m.Delete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.DeleteRange != nil { + { + size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.Prewrite != nil { + { + size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x3a } if m.Snap != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) - n7, err := m.Snap.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Snap.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x32 } - if m.Prewrite != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Prewrite.Size())) - n8, err := m.Prewrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Delete != nil { + { + size, err := m.Delete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x2a } - if m.DeleteRange != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.DeleteRange.Size())) - n9, err := m.DeleteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Put != nil { + { + size, err := m.Put.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x22 } - if m.IngestSst != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.IngestSst.Size())) - n10, err := m.IngestSst.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Get != nil { + { + size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x12 } - if m.ReadIndex != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex.Size())) - n11, err := m.ReadIndex.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2483,102 +4613,127 @@ func (m *Response) Marshal() (dAtA []byte, err error) { } func (m *Response) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Get != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Get.Size())) - n12, err := m.Get.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if m.Put != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Put.Size())) - n13, err := m.Put.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ReadIndex != nil { + { + size, err := m.ReadIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x52 } - if m.Delete != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Delete.Size())) - n14, err := m.Delete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.IngestSst != nil { + { + size, err := m.IngestSst.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x4a } - if m.Snap != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) - n15, err := m.Snap.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.DelteRange != nil { + { + size, err := m.DelteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x42 } if m.Prewrite != nil { + { + size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x3a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Prewrite.Size())) - n16, err := m.Prewrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Snap != nil { + { + size, err := m.Snap.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x32 } - if m.DelteRange != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.DelteRange.Size())) - n17, err := m.DelteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Delete != nil { + { + size, err := m.Delete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x2a } - if m.IngestSst != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.IngestSst.Size())) - n18, err := m.IngestSst.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Put != nil { + { + size, err := m.Put.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0x22 } - if m.ReadIndex != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ReadIndex.Size())) - n19, err := m.ReadIndex.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Get != nil { + { + size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ChangePeerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2586,32 +4741,43 @@ func (m *ChangePeerRequest) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ChangeType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangeType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Peer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) - n20, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.ChangeType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangeType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ChangePeerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2619,27 +4785,38 @@ func (m *ChangePeerResponse) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) - n21, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ChangePeerV2Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2647,29 +4824,40 @@ func (m *ChangePeerV2Request) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerV2Request) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeerV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Changes) > 0 { - for _, msg := range m.Changes { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *ChangePeerV2Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2677,27 +4865,38 @@ func (m *ChangePeerV2Response) Marshal() (dAtA []byte, err error) { } func (m *ChangePeerV2Response) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ChangePeerV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) - n22, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2705,20 +4904,38 @@ func (m *SplitRequest) Marshal() (dAtA []byte, err error) { } func (m *SplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.SplitKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.SplitKey))) - i += copy(dAtA[i:], m.SplitKey) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.NewRegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.NewRegionId)) + if m.ShareSourceRegionSize { + i-- + if m.ShareSourceRegionSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.RightDerive { + i-- + if m.RightDerive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 } if len(m.NewPeerIds) > 0 { dAtA24 := make([]byte, len(m.NewPeerIds)*10) @@ -2732,38 +4949,31 @@ func (m *SplitRequest) MarshalTo(dAtA []byte) (int, error) { dAtA24[j23] = uint8(num) j23++ } - dAtA[i] = 0x1a - i++ + i -= j23 + copy(dAtA[i:], dAtA24[:j23]) i = encodeVarintRaftCmdpb(dAtA, i, uint64(j23)) - i += copy(dAtA[i:], dAtA24[:j23]) + i-- + dAtA[i] = 0x1a } - if m.RightDerive { - dAtA[i] = 0x20 - i++ - if m.RightDerive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.NewRegionId != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.NewRegionId)) + i-- + dAtA[i] = 0x10 } - if m.ShareSourceRegionSize { - dAtA[i] = 0x28 - i++ - if m.ShareSourceRegionSize { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if len(m.SplitKey) > 0 { + i -= len(m.SplitKey) + copy(dAtA[i:], m.SplitKey) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.SplitKey))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2771,37 +4981,50 @@ func (m *SplitResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Left != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Left.Size())) - n25, err := m.Left.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n25 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Right != nil { + { + size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Right.Size())) - n26, err := m.Right.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Left != nil { + { + size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n26 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2809,49 +5032,60 @@ func (m *BatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RightDerive { - dAtA[i] = 0x10 - i++ - if m.RightDerive { + if m.ShareSourceRegionSize { + i-- + if m.ShareSourceRegionSize { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.ShareSourceRegionSize { + i-- dAtA[i] = 0x18 - i++ - if m.ShareSourceRegionSize { + } + if m.RightDerive { + i-- + if m.RightDerive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *BatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2859,29 +5093,40 @@ func (m *BatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Regions) > 0 { - for _, msg := range m.Regions { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *CompactLogRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2889,32 +5134,41 @@ func (m *CompactLogRequest) Marshal() (dAtA []byte, err error) { } func (m *CompactLogRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CompactIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VoterReplicatedIndex != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VoterReplicatedIndex)) + i-- + dAtA[i] = 0x18 } if m.CompactTerm != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactTerm)) + i-- + dAtA[i] = 0x10 } - if m.VoterReplicatedIndex != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VoterReplicatedIndex)) + if m.CompactIndex != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactIndex)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CompactLogResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2922,17 +5176,26 @@ func (m *CompactLogResponse) Marshal() (dAtA []byte, err error) { } func (m *CompactLogResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *TransferLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2940,39 +5203,52 @@ func (m *TransferLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *TransferLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransferLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Peer != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) - n27, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n27 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Peers) > 0 { - for _, msg := range m.Peers { + 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Peer != nil { + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TransferLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2980,17 +5256,26 @@ func (m *TransferLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *TransferLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransferLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ComputeHashRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2998,23 +5283,33 @@ func (m *ComputeHashRequest) Marshal() (dAtA []byte, err error) { } func (m *ComputeHashRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComputeHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Context) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Context) + copy(dAtA[i:], m.Context) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *VerifyHashRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3022,34 +5317,45 @@ func (m *VerifyHashRequest) Marshal() (dAtA []byte, err error) { } func (m *VerifyHashRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VerifyHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Index != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Index)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Context) > 0 { + i -= len(m.Context) + copy(dAtA[i:], m.Context) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) + i-- + dAtA[i] = 0x1a } if len(m.Hash) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Hash))) - i += copy(dAtA[i:], m.Hash) + i-- + dAtA[i] = 0x12 } - if len(m.Context) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Context))) - i += copy(dAtA[i:], m.Context) + if m.Index != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *VerifyHashResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3057,17 +5363,26 @@ func (m *VerifyHashResponse) Marshal() (dAtA []byte, err error) { } func (m *VerifyHashResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VerifyHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *PrepareMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3075,32 +5390,43 @@ func (m *PrepareMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareMergeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MinIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.MinIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Target != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Target.Size())) - n28, err := m.Target.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n28 + i-- + dAtA[i] = 0x12 + } + if m.MinIndex != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.MinIndex)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PrepareMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3108,17 +5434,26 @@ func (m *PrepareMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareMergeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *PrepareFlashbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3126,22 +5461,31 @@ func (m *PrepareFlashbackRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareFlashbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.StartTs != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StartTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PrepareFlashbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3149,17 +5493,26 @@ func (m *PrepareFlashbackResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareFlashbackResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrepareFlashbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *FinishFlashbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3167,17 +5520,26 @@ func (m *FinishFlashbackRequest) Marshal() (dAtA []byte, err error) { } func (m *FinishFlashbackRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FinishFlashbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *FinishFlashbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3185,17 +5547,26 @@ func (m *FinishFlashbackResponse) Marshal() (dAtA []byte, err error) { } func (m *FinishFlashbackResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FinishFlashbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *CommitMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3203,54 +5574,69 @@ func (m *CommitMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *CommitMergeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Source != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Source.Size())) - n29, err := m.Source.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SourceState != nil { + { + size, err := m.SourceState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Entries) > 0 { + for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n29 } if m.Commit != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x10 } - if len(m.Entries) > 0 { - for _, msg := range m.Entries { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Source != nil { + { + size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n - } - } - if m.SourceState != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SourceState.Size())) - n30, err := m.SourceState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n30 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommitMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3258,17 +5644,26 @@ func (m *CommitMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *CommitMergeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommitMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *RollbackMergeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3276,22 +5671,31 @@ func (m *RollbackMergeRequest) Marshal() (dAtA []byte, err error) { } func (m *RollbackMergeRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RollbackMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Commit != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RollbackMergeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3299,17 +5703,26 @@ func (m *RollbackMergeResponse) Marshal() (dAtA []byte, err error) { } func (m *RollbackMergeResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RollbackMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *SwitchWitnessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3317,32 +5730,41 @@ func (m *SwitchWitnessRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchWitnessRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchWitnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.PeerId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PeerId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.IsWitness { - dAtA[i] = 0x10 - i++ + i-- if m.IsWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if m.PeerId != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PeerId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchSwitchWitnessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3350,29 +5772,40 @@ func (m *BatchSwitchWitnessRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchSwitchWitnessRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSwitchWitnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.SwitchWitnesses) > 0 { - for _, msg := range m.SwitchWitnesses { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *BatchSwitchWitnessResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3380,17 +5813,26 @@ func (m *BatchSwitchWitnessResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchSwitchWitnessResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSwitchWitnessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *UpdateGcPeerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3398,10 +5840,19 @@ func (m *UpdateGcPeerRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGcPeerRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateGcPeerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.PeerId) > 0 { dAtA32 := make([]byte, len(m.PeerId)*10) var j31 int @@ -3414,18 +5865,19 @@ func (m *UpdateGcPeerRequest) MarshalTo(dAtA []byte) (int, error) { dAtA32[j31] = uint8(num) j31++ } - dAtA[i] = 0xa - i++ + i -= j31 + copy(dAtA[i:], dAtA32[:j31]) i = encodeVarintRaftCmdpb(dAtA, i, uint64(j31)) - i += copy(dAtA[i:], dAtA32[:j31]) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *AdminRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3433,174 +5885,213 @@ func (m *AdminRequest) Marshal() (dAtA []byte, err error) { } func (m *AdminRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ChangePeer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeer.Size())) - n33, err := m.ChangePeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.UpdateGcPeers != nil { + { + size, err := m.UpdateGcPeers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n33 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - if m.Split != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Split.Size())) - n34, err := m.Split.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SwitchWitnesses != nil { + { + size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n34 + i-- + dAtA[i] = 0x7a } - if m.CompactLog != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactLog.Size())) - n35, err := m.CompactLog.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.FinishFlashback != nil { + { + size, err := m.FinishFlashback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n35 + i-- + dAtA[i] = 0x72 } - if m.TransferLeader != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.TransferLeader.Size())) - n36, err := m.TransferLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.PrepareFlashback != nil { + { + size, err := m.PrepareFlashback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n36 + i-- + dAtA[i] = 0x6a } - if m.VerifyHash != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VerifyHash.Size())) - n37, err := m.VerifyHash.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ComputeHash != nil { + { + size, err := m.ComputeHash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n37 + i-- + dAtA[i] = 0x62 } - if m.PrepareMerge != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareMerge.Size())) - n38, err := m.PrepareMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeerV2 != nil { + { + size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n38 + i-- + dAtA[i] = 0x5a } - if m.CommitMerge != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CommitMerge.Size())) - n39, err := m.CommitMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Splits != nil { + { + size, err := m.Splits.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n39 + i-- + dAtA[i] = 0x52 } if m.RollbackMerge != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RollbackMerge.Size())) - n40, err := m.RollbackMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RollbackMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n40 + i-- + dAtA[i] = 0x4a } - if m.Splits != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Splits.Size())) - n41, err := m.Splits.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CommitMerge != nil { + { + size, err := m.CommitMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n41 + i-- + dAtA[i] = 0x42 } - if m.ChangePeerV2 != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) - n42, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.PrepareMerge != nil { + { + size, err := m.PrepareMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n42 + i-- + dAtA[i] = 0x3a } - if m.ComputeHash != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ComputeHash.Size())) - n43, err := m.ComputeHash.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.VerifyHash != nil { + { + size, err := m.VerifyHash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n43 + i-- + dAtA[i] = 0x32 } - if m.PrepareFlashback != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareFlashback.Size())) - n44, err := m.PrepareFlashback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TransferLeader != nil { + { + size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n44 + i-- + dAtA[i] = 0x2a } - if m.FinishFlashback != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.FinishFlashback.Size())) - n45, err := m.FinishFlashback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CompactLog != nil { + { + size, err := m.CompactLog.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n45 + i-- + dAtA[i] = 0x22 } - if m.SwitchWitnesses != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) - n46, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Split != nil { + { + size, err := m.Split.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n46 + i-- + dAtA[i] = 0x1a } - if m.UpdateGcPeers != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.UpdateGcPeers.Size())) - n47, err := m.UpdateGcPeers.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeer != nil { + { + size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n47 + i-- + dAtA[i] = 0x12 + } + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *AdminResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3608,152 +6099,187 @@ func (m *AdminResponse) Marshal() (dAtA []byte, err error) { } func (m *AdminResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ChangePeer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeer.Size())) - n48, err := m.ChangePeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SwitchWitnesses != nil { + { + size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n48 + i-- + dAtA[i] = 0x72 } - if m.Split != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Split.Size())) - n49, err := m.Split.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.FinishFlashback != nil { + { + size, err := m.FinishFlashback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n49 + i-- + dAtA[i] = 0x6a } - if m.CompactLog != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CompactLog.Size())) - n50, err := m.CompactLog.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.PrepareFlashback != nil { + { + size, err := m.PrepareFlashback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n50 + i-- + dAtA[i] = 0x62 } - if m.TransferLeader != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.TransferLeader.Size())) - n51, err := m.TransferLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeerV2 != nil { + { + size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n51 + i-- + dAtA[i] = 0x5a } - if m.VerifyHash != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.VerifyHash.Size())) - n52, err := m.VerifyHash.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Splits != nil { + { + size, err := m.Splits.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n52 + i-- + dAtA[i] = 0x52 } - if m.PrepareMerge != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareMerge.Size())) - n53, err := m.PrepareMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RollbackMerge != nil { + { + size, err := m.RollbackMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n53 + i-- + dAtA[i] = 0x4a } if m.CommitMerge != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CommitMerge.Size())) - n54, err := m.CommitMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CommitMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n54 + i-- + dAtA[i] = 0x42 } - if m.RollbackMerge != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RollbackMerge.Size())) - n55, err := m.RollbackMerge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.PrepareMerge != nil { + { + size, err := m.PrepareMerge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n55 + i-- + dAtA[i] = 0x3a } - if m.Splits != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Splits.Size())) - n56, err := m.Splits.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.VerifyHash != nil { + { + size, err := m.VerifyHash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n56 + i-- + dAtA[i] = 0x32 } - if m.ChangePeerV2 != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) - n57, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TransferLeader != nil { + { + size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n57 + i-- + dAtA[i] = 0x2a } - if m.PrepareFlashback != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PrepareFlashback.Size())) - n58, err := m.PrepareFlashback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.CompactLog != nil { + { + size, err := m.CompactLog.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n58 + i-- + dAtA[i] = 0x22 } - if m.FinishFlashback != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.FinishFlashback.Size())) - n59, err := m.FinishFlashback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Split != nil { + { + size, err := m.Split.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n59 + i-- + dAtA[i] = 0x1a } - if m.SwitchWitnesses != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) - n60, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeer != nil { + { + size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n60 + i-- + dAtA[i] = 0x12 + } + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionLeaderRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3761,17 +6287,26 @@ func (m *RegionLeaderRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionLeaderRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *RegionLeaderResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3779,27 +6314,38 @@ func (m *RegionLeaderResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionLeaderResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Leader != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Leader.Size())) - n61, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n61 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionDetailRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3807,17 +6353,26 @@ func (m *RegionDetailRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionDetailRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionDetailRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *RegionDetailResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3825,37 +6380,50 @@ func (m *RegionDetailResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionDetailResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionDetailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Region.Size())) - n62, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n62 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Leader != nil { + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Leader.Size())) - n63, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n63 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3863,42 +6431,55 @@ func (m *StatusRequest) Marshal() (dAtA []byte, err error) { } func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - } - if m.RegionLeader != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) - n64, err := m.RegionLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n64 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.RegionDetail != nil { + { + size, err := m.RegionDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionDetail.Size())) - n65, err := m.RegionDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.RegionLeader != nil { + { + size, err := m.RegionLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n65 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *StatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3906,42 +6487,55 @@ func (m *StatusResponse) Marshal() (dAtA []byte, err error) { } func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.CmdType != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - } - if m.RegionLeader != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) - n66, err := m.RegionLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n66 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.RegionDetail != nil { + { + size, err := m.RegionDetail.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionDetail.Size())) - n67, err := m.RegionDetail.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.RegionLeader != nil { + { + size, err := m.RegionLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n67 + i-- + dAtA[i] = 0x12 + } + if m.CmdType != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RaftRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3949,110 +6543,126 @@ func (m *RaftRequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RaftRequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftRequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ResourceGroupName) > 0 { + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.ResourceGroupName))) + i-- + dAtA[i] = 0x6a + } + if m.Priority != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) + i-- + dAtA[i] = 0x60 + } + if len(m.FlagData) > 0 { + i -= len(m.FlagData) + copy(dAtA[i:], m.FlagData) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.FlagData))) + i-- + dAtA[i] = 0x5a } - if m.Peer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) - n68, err := m.Peer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n68 + if m.Flags != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) + i-- + dAtA[i] = 0x50 } - if m.ReadQuorum { - dAtA[i] = 0x18 - i++ - if m.ReadQuorum { + if m.AppliedIndex != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x48 + } + if m.ReplicaRead { + i-- + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Uuid) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) - } - if m.RegionEpoch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n69, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n69 - } - if m.Term != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x40 } if m.SyncLog { - dAtA[i] = 0x38 - i++ + i-- if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 + } + if m.Term != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x30 + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - if m.ReplicaRead { - dAtA[i] = 0x40 - i++ - if m.ReplicaRead { + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0x22 + } + if m.ReadQuorum { + i-- + if m.ReadQuorum { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.AppliedIndex != 0 { - dAtA[i] = 0x48 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) - } - if m.Flags != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) - } - if len(m.FlagData) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.FlagData))) - i += copy(dAtA[i:], m.FlagData) + i-- + dAtA[i] = 0x18 } - if m.Priority != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) + if m.Peer != nil { + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + if m.RegionId != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RaftResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4060,38 +6670,50 @@ func (m *RaftResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *RaftResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Error.Size())) - n70, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n70 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentTerm != 0 { + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CurrentTerm)) + i-- + dAtA[i] = 0x18 } if len(m.Uuid) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) - i += copy(dAtA[i:], m.Uuid) + i-- + dAtA[i] = 0x12 } - if m.CurrentTerm != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CurrentTerm)) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RaftCmdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4099,59 +6721,76 @@ func (m *RaftCmdRequest) Marshal() (dAtA []byte, err error) { } func (m *RaftCmdRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftCmdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Header.Size())) - n71, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n71 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.StatusRequest != nil { + { + size, err := m.StatusRequest.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } if m.AdminRequest != nil { + { + size, err := m.AdminRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AdminRequest.Size())) - n72, err := m.AdminRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i += n72 } - if m.StatusRequest != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StatusRequest.Size())) - n73, err := m.StatusRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n73 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RaftCmdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4159,65 +6798,87 @@ func (m *RaftCmdResponse) Marshal() (dAtA []byte, err error) { } func (m *RaftCmdResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftCmdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Header.Size())) - n74, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n74 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Responses) > 0 { - for _, msg := range m.Responses { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.StatusResponse != nil { + { + size, err := m.StatusResponse.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } if m.AdminResponse != nil { + { + size, err := m.AdminResponse.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AdminResponse.Size())) - n75, err := m.AdminResponse.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.Responses) > 0 { + for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i += n75 } - if m.StatusResponse != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.StatusResponse.Size())) - n76, err := m.StatusResponse.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) } - i += n76 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintRaftCmdpb(dAtA []byte, offset int, v uint64) int { + offset -= sovRaftCmdpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *GetRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -4228,20 +6889,32 @@ func (m *GetRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Value) if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -4256,16 +6929,28 @@ func (m *PutRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -4276,16 +6961,28 @@ func (m *DeleteRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRangeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -4303,32 +7000,56 @@ func (m *DeleteRangeRequest) Size() (n int) { if m.NotifyOnly { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteRangeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrewriteRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -4343,32 +7064,56 @@ func (m *PrewriteRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrewriteResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IngestSSTRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Sst != nil { l = m.Sst.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *IngestSSTResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadIndexRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { @@ -4380,10 +7125,16 @@ func (m *ReadIndexRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ReadIndexResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ReadIndex != 0 { @@ -4393,10 +7144,16 @@ func (m *ReadIndexResponse) Size() (n int) { l = m.Locked.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Request) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4434,10 +7191,16 @@ func (m *Request) Size() (n int) { l = m.ReadIndex.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Response) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4475,10 +7238,16 @@ func (m *Response) Size() (n int) { l = m.ReadIndex.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangePeerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ChangeType != 0 { @@ -4488,20 +7257,32 @@ func (m *ChangePeerRequest) Size() (n int) { l = m.Peer.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangePeerResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangePeerV2Request) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Changes) > 0 { @@ -4510,20 +7291,32 @@ func (m *ChangePeerV2Request) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ChangePeerV2Response) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { l = m.Region.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SplitRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.SplitKey) @@ -4546,10 +7339,16 @@ func (m *SplitRequest) Size() (n int) { if m.ShareSourceRegionSize { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SplitResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Left != nil { @@ -4560,10 +7359,16 @@ func (m *SplitResponse) Size() (n int) { l = m.Right.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchSplitRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Requests) > 0 { @@ -4578,10 +7383,16 @@ func (m *BatchSplitRequest) Size() (n int) { if m.ShareSourceRegionSize { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchSplitResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Regions) > 0 { @@ -4590,10 +7401,16 @@ func (m *BatchSplitResponse) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactLogRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CompactIndex != 0 { @@ -4605,16 +7422,28 @@ func (m *CompactLogRequest) Size() (n int) { if m.VoterReplicatedIndex != 0 { n += 1 + sovRaftCmdpb(uint64(m.VoterReplicatedIndex)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CompactLogResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TransferLeaderRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Peer != nil { @@ -4627,26 +7456,44 @@ func (m *TransferLeaderRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TransferLeaderResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ComputeHashRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Context) if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *VerifyHashRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Index != 0 { @@ -4660,16 +7507,28 @@ func (m *VerifyHashRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *VerifyHashResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareMergeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MinIndex != 0 { @@ -4679,43 +7538,79 @@ func (m *PrepareMergeRequest) Size() (n int) { l = m.Target.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareMergeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareFlashbackRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StartTs != 0 { n += 1 + sovRaftCmdpb(uint64(m.StartTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PrepareFlashbackResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FinishFlashbackRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FinishFlashbackResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitMergeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Source != nil { @@ -4735,31 +7630,55 @@ func (m *CommitMergeRequest) Size() (n int) { l = m.SourceState.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CommitMergeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RollbackMergeRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Commit != 0 { n += 1 + sovRaftCmdpb(uint64(m.Commit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RollbackMergeResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SwitchWitnessRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PeerId != 0 { @@ -4768,10 +7687,16 @@ func (m *SwitchWitnessRequest) Size() (n int) { if m.IsWitness { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchSwitchWitnessRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.SwitchWitnesses) > 0 { @@ -4780,16 +7705,28 @@ func (m *BatchSwitchWitnessRequest) Size() (n int) { n += 1 + l + sovRaftCmdpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchSwitchWitnessResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *UpdateGcPeerRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.PeerId) > 0 { @@ -4799,10 +7736,16 @@ func (m *UpdateGcPeerRequest) Size() (n int) { } n += 1 + sovRaftCmdpb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AdminRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4868,10 +7811,16 @@ func (m *AdminRequest) Size() (n int) { l = m.UpdateGcPeers.Size() n += 2 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AdminResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4929,32 +7878,56 @@ func (m *AdminResponse) Size() (n int) { l = m.SwitchWitnesses.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionLeaderRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionLeaderResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Leader != nil { l = m.Leader.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionDetailRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionDetailResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { @@ -4965,10 +7938,16 @@ func (m *RegionDetailResponse) Size() (n int) { l = m.Leader.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StatusRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4982,10 +7961,16 @@ func (m *StatusRequest) Size() (n int) { l = m.RegionDetail.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StatusResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CmdType != 0 { @@ -4999,10 +7984,16 @@ func (m *StatusResponse) Size() (n int) { l = m.RegionDetail.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftRequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -5049,10 +8040,16 @@ func (m *RaftRequestHeader) Size() (n int) { if l > 0 { n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -5066,10 +8063,16 @@ func (m *RaftResponseHeader) Size() (n int) { if m.CurrentTerm != 0 { n += 1 + sovRaftCmdpb(uint64(m.CurrentTerm)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftCmdRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -5090,10 +8093,16 @@ func (m *RaftCmdRequest) Size() (n int) { l = m.StatusRequest.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftCmdResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -5114,18 +8123,14 @@ func (m *RaftCmdResponse) Size() (n int) { l = m.StatusResponse.Size() n += 1 + l + sovRaftCmdpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovRaftCmdpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozRaftCmdpb(x uint64) (n int) { return sovRaftCmdpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -5145,7 +8150,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5173,7 +8178,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5183,6 +8188,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5202,7 +8210,7 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5211,6 +8219,9 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5225,12 +8236,13 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5255,7 +8267,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5283,7 +8295,7 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5292,6 +8304,9 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5306,12 +8321,13 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5336,7 +8352,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5364,7 +8380,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5374,6 +8390,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5393,7 +8412,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5402,6 +8421,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5424,7 +8446,7 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5433,6 +8455,9 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5447,12 +8472,13 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5477,7 +8503,7 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5497,12 +8523,13 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5527,7 +8554,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5555,7 +8582,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5565,6 +8592,9 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5584,7 +8614,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5593,6 +8623,9 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5607,12 +8640,13 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5637,7 +8671,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5657,12 +8691,13 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5687,7 +8722,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5715,7 +8750,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5725,6 +8760,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5744,7 +8782,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5753,6 +8791,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5775,7 +8816,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5784,6 +8825,9 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5806,7 +8850,7 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5818,12 +8862,13 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5848,7 +8893,7 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5868,12 +8913,13 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5898,7 +8944,7 @@ func (m *SnapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5918,12 +8964,13 @@ func (m *SnapRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5948,7 +8995,7 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5976,7 +9023,7 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5985,6 +9032,9 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6001,12 +9051,13 @@ func (m *SnapResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6031,7 +9082,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6059,7 +9110,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6068,6 +9119,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6090,7 +9144,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6099,6 +9153,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6121,7 +9178,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6130,6 +9187,9 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6144,12 +9204,13 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6174,7 +9235,7 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6194,12 +9255,13 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6224,7 +9286,7 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6252,7 +9314,7 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6261,6 +9323,9 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6277,12 +9342,13 @@ func (m *IngestSSTRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6307,7 +9373,7 @@ func (m *IngestSSTResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6327,12 +9393,13 @@ func (m *IngestSSTResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6357,7 +9424,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6385,7 +9452,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6404,7 +9471,7 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6413,6 +9480,9 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6427,12 +9497,13 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6457,7 +9528,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6485,7 +9556,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadIndex |= (uint64(b) & 0x7F) << shift + m.ReadIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6504,7 +9575,7 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6513,6 +9584,9 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6529,12 +9603,13 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6559,7 +9634,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6587,7 +9662,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (CmdType(b) & 0x7F) << shift + m.CmdType |= CmdType(b&0x7F) << shift if b < 0x80 { break } @@ -6606,7 +9681,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6615,6 +9690,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6639,7 +9717,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6648,6 +9726,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6672,7 +9753,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6681,6 +9762,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6705,7 +9789,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6714,6 +9798,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6738,7 +9825,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6747,6 +9834,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6771,7 +9861,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6780,6 +9870,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6804,7 +9897,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6813,6 +9906,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6837,7 +9933,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6846,6 +9942,9 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6862,12 +9961,13 @@ func (m *Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6892,7 +9992,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6920,7 +10020,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (CmdType(b) & 0x7F) << shift + m.CmdType |= CmdType(b&0x7F) << shift if b < 0x80 { break } @@ -6939,7 +10039,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6948,6 +10048,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6972,7 +10075,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6981,6 +10084,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7005,7 +10111,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7014,6 +10120,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7038,7 +10147,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7047,6 +10156,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7071,7 +10183,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7080,6 +10192,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7104,7 +10219,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7113,6 +10228,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7137,7 +10255,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7146,6 +10264,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7170,7 +10291,7 @@ func (m *Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7179,6 +10300,9 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7195,12 +10319,13 @@ func (m *Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7225,7 +10350,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7253,7 +10378,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChangeType |= (eraftpb.ConfChangeType(b) & 0x7F) << shift + m.ChangeType |= eraftpb.ConfChangeType(b&0x7F) << shift if b < 0x80 { break } @@ -7272,7 +10397,7 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7281,6 +10406,9 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7297,12 +10425,13 @@ func (m *ChangePeerRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7327,7 +10456,7 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7355,7 +10484,7 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7364,6 +10493,9 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7380,12 +10512,13 @@ func (m *ChangePeerResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7410,7 +10543,7 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7438,7 +10571,7 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7447,6 +10580,9 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7461,12 +10597,13 @@ func (m *ChangePeerV2Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7491,7 +10628,7 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7519,7 +10656,7 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7528,6 +10665,9 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7544,12 +10684,13 @@ func (m *ChangePeerV2Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7574,7 +10715,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7602,7 +10743,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7611,6 +10752,9 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7633,7 +10777,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= (uint64(b) & 0x7F) << shift + m.NewRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7650,7 +10794,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7667,7 +10811,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7676,9 +10820,23 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } 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 { @@ -7690,7 +10848,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7714,7 +10872,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7734,7 +10892,7 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7746,12 +10904,13 @@ func (m *SplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7776,7 +10935,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7804,7 +10963,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7813,6 +10972,9 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7837,7 +10999,7 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7846,6 +11008,9 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7862,12 +11027,13 @@ func (m *SplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7892,7 +11058,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7920,7 +11086,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7929,6 +11095,9 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7951,7 +11120,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7971,7 +11140,7 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7983,12 +11152,13 @@ func (m *BatchSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8013,7 +11183,7 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8041,7 +11211,7 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8050,6 +11220,9 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8064,12 +11237,13 @@ func (m *BatchSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8094,7 +11268,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8122,7 +11296,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactIndex |= (uint64(b) & 0x7F) << shift + m.CompactIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8141,7 +11315,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactTerm |= (uint64(b) & 0x7F) << shift + m.CompactTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8160,7 +11334,7 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VoterReplicatedIndex |= (uint64(b) & 0x7F) << shift + m.VoterReplicatedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8171,12 +11345,13 @@ func (m *CompactLogRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8201,7 +11376,7 @@ func (m *CompactLogResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8221,12 +11396,13 @@ func (m *CompactLogResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8251,7 +11427,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8279,7 +11455,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8288,6 +11464,9 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8312,7 +11491,7 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8321,6 +11500,9 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8335,12 +11517,13 @@ func (m *TransferLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8365,7 +11548,7 @@ func (m *TransferLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8385,12 +11568,13 @@ func (m *TransferLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8415,7 +11599,7 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8443,7 +11627,7 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8452,6 +11636,9 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8466,12 +11653,13 @@ func (m *ComputeHashRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8496,7 +11684,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8524,7 +11712,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8543,7 +11731,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8552,6 +11740,9 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8574,7 +11765,7 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8583,6 +11774,9 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8597,12 +11791,13 @@ func (m *VerifyHashRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8627,7 +11822,7 @@ func (m *VerifyHashResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8647,12 +11842,13 @@ func (m *VerifyHashResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8677,7 +11873,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8705,7 +11901,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinIndex |= (uint64(b) & 0x7F) << shift + m.MinIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8724,7 +11920,7 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8733,6 +11929,9 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8749,12 +11948,13 @@ func (m *PrepareMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8779,7 +11979,7 @@ func (m *PrepareMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8799,12 +11999,13 @@ func (m *PrepareMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8829,7 +12030,7 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8857,7 +12058,7 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= (uint64(b) & 0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8868,12 +12069,13 @@ func (m *PrepareFlashbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8898,7 +12100,7 @@ func (m *PrepareFlashbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8918,12 +12120,13 @@ func (m *PrepareFlashbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8948,7 +12151,7 @@ func (m *FinishFlashbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8968,12 +12171,13 @@ func (m *FinishFlashbackRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8998,7 +12202,7 @@ func (m *FinishFlashbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9018,12 +12222,13 @@ func (m *FinishFlashbackResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9048,7 +12253,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9076,7 +12281,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9085,6 +12290,9 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9109,7 +12317,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift + m.Commit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9128,7 +12336,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9137,6 +12345,9 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9159,7 +12370,7 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9168,6 +12379,9 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9184,12 +12398,13 @@ func (m *CommitMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9214,7 +12429,7 @@ func (m *CommitMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9234,12 +12449,13 @@ func (m *CommitMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9264,7 +12480,7 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9292,7 +12508,7 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift + m.Commit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9303,12 +12519,13 @@ func (m *RollbackMergeRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9333,7 +12550,7 @@ func (m *RollbackMergeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9353,12 +12570,13 @@ func (m *RollbackMergeResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9383,7 +12601,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9411,7 +12629,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= (uint64(b) & 0x7F) << shift + m.PeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9430,7 +12648,7 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9442,12 +12660,13 @@ func (m *SwitchWitnessRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9472,7 +12691,7 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9500,7 +12719,7 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9509,6 +12728,9 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9523,12 +12745,13 @@ func (m *BatchSwitchWitnessRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9553,7 +12776,7 @@ func (m *BatchSwitchWitnessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9573,12 +12796,13 @@ func (m *BatchSwitchWitnessResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9603,7 +12827,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9629,7 +12853,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9646,7 +12870,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9655,9 +12879,23 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } 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.PeerId) == 0 { + m.PeerId = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -9669,7 +12907,7 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9685,12 +12923,13 @@ func (m *UpdateGcPeerRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9715,7 +12954,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9743,7 +12982,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (AdminCmdType(b) & 0x7F) << shift + m.CmdType |= AdminCmdType(b&0x7F) << shift if b < 0x80 { break } @@ -9762,7 +13001,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9771,6 +13010,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9795,7 +13037,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9804,6 +13046,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9828,7 +13073,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9837,6 +13082,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9861,7 +13109,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9870,6 +13118,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9894,7 +13145,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9903,6 +13154,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9927,7 +13181,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9936,6 +13190,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9960,7 +13217,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9969,6 +13226,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9993,7 +13253,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10002,6 +13262,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10026,7 +13289,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10035,6 +13298,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10059,7 +13325,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10068,6 +13334,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10092,7 +13361,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10101,6 +13370,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10125,7 +13397,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10134,6 +13406,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10158,7 +13433,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10167,6 +13442,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10191,7 +13469,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10200,6 +13478,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10224,7 +13505,7 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10233,6 +13514,9 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10249,12 +13533,13 @@ func (m *AdminRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10279,7 +13564,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10307,7 +13592,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (AdminCmdType(b) & 0x7F) << shift + m.CmdType |= AdminCmdType(b&0x7F) << shift if b < 0x80 { break } @@ -10326,7 +13611,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10335,6 +13620,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10359,7 +13647,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10368,6 +13656,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10392,7 +13683,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10401,6 +13692,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10425,7 +13719,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10434,6 +13728,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10458,7 +13755,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10467,6 +13764,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10491,7 +13791,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10500,6 +13800,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10524,7 +13827,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10533,6 +13836,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10557,7 +13863,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10566,6 +13872,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10590,7 +13899,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10599,6 +13908,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10623,7 +13935,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10632,6 +13944,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10656,7 +13971,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10665,6 +13980,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10689,7 +14007,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10698,6 +14016,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10722,7 +14043,7 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10731,6 +14052,9 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10747,12 +14071,13 @@ func (m *AdminResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10777,7 +14102,7 @@ func (m *RegionLeaderRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10797,12 +14122,13 @@ func (m *RegionLeaderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10827,7 +14153,7 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10855,7 +14181,7 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10864,6 +14190,9 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10880,12 +14209,13 @@ func (m *RegionLeaderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10910,7 +14240,7 @@ func (m *RegionDetailRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10930,12 +14260,13 @@ func (m *RegionDetailRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -10960,7 +14291,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10988,7 +14319,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10997,6 +14328,9 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11021,7 +14355,7 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11030,6 +14364,9 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11046,12 +14383,13 @@ func (m *RegionDetailResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11076,7 +14414,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11104,7 +14442,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (StatusCmdType(b) & 0x7F) << shift + m.CmdType |= StatusCmdType(b&0x7F) << shift if b < 0x80 { break } @@ -11123,7 +14461,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11132,6 +14470,9 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11156,7 +14497,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11165,6 +14506,9 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11181,12 +14525,13 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11211,7 +14556,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11239,7 +14584,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CmdType |= (StatusCmdType(b) & 0x7F) << shift + m.CmdType |= StatusCmdType(b&0x7F) << shift if b < 0x80 { break } @@ -11258,7 +14603,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11267,6 +14612,9 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11291,7 +14639,7 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11300,6 +14648,9 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11316,12 +14667,13 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11346,7 +14698,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11374,7 +14726,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11393,7 +14745,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11402,6 +14754,9 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11426,7 +14781,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11446,7 +14801,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11455,6 +14810,9 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11477,7 +14835,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11486,6 +14844,9 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11510,7 +14871,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11529,7 +14890,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11549,7 +14910,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11569,7 +14930,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11588,7 +14949,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Flags |= (uint64(b) & 0x7F) << shift + m.Flags |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11607,7 +14968,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11616,6 +14977,9 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11638,7 +15002,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= (kvrpcpb.CommandPri(b) & 0x7F) << shift + m.Priority |= kvrpcpb.CommandPri(b&0x7F) << shift if b < 0x80 { break } @@ -11657,7 +15021,7 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11667,6 +15031,9 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11678,12 +15045,13 @@ func (m *RaftRequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11708,7 +15076,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11736,7 +15104,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11745,6 +15113,9 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11769,7 +15140,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11778,6 +15149,9 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11800,7 +15174,7 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentTerm |= (uint64(b) & 0x7F) << shift + m.CurrentTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11811,12 +15185,13 @@ func (m *RaftResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -11841,7 +15216,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11869,7 +15244,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11878,6 +15253,9 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11902,7 +15280,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11911,6 +15289,9 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11933,7 +15314,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11942,6 +15323,9 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11966,7 +15350,7 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11975,6 +15359,9 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11991,12 +15378,13 @@ func (m *RaftCmdRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12021,7 +15409,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12049,7 +15437,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12058,6 +15446,9 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12082,7 +15473,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12091,6 +15482,9 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12113,7 +15507,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12122,6 +15516,9 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12146,7 +15543,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12155,6 +15552,9 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftCmdpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftCmdpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12171,12 +15571,13 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftCmdpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -12189,6 +15590,7 @@ func (m *RaftCmdResponse) Unmarshal(dAtA []byte) error { func skipRaftCmdpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -12220,10 +15622,8 @@ func skipRaftCmdpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -12240,234 +15640,34 @@ func skipRaftCmdpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthRaftCmdpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRaftCmdpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipRaftCmdpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRaftCmdpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthRaftCmdpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthRaftCmdpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRaftCmdpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthRaftCmdpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRaftCmdpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRaftCmdpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("raft_cmdpb.proto", fileDescriptorRaftCmdpb) } - -var fileDescriptorRaftCmdpb = []byte{ - // 2790 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x5a, 0x4b, 0x73, 0xdc, 0xc6, - 0xf1, 0xd7, 0xbe, 0x77, 0x7b, 0x1f, 0x04, 0x67, 0x57, 0xe4, 0x4a, 0xb2, 0x29, 0x0a, 0x92, 0xf5, - 0xa7, 0xfd, 0x4f, 0x31, 0x31, 0x6d, 0xcb, 0xae, 0xb2, 0xe2, 0x87, 0x44, 0x4a, 0x96, 0xf5, 0x08, - 0x3d, 0x64, 0xec, 0x4a, 0xaa, 0x5c, 0x28, 0x18, 0x98, 0xe5, 0xa2, 0xb8, 0x0b, 0xc0, 0x03, 0x2c, - 0xe5, 0xb5, 0xaf, 0xa9, 0xdc, 0x73, 0xcb, 0x17, 0x48, 0x55, 0xae, 0xf9, 0x16, 0x71, 0x4e, 0x71, - 0xca, 0x87, 0x1c, 0x53, 0xf2, 0x2d, 0x9f, 0x22, 0x35, 0x2f, 0x60, 0xf0, 0x58, 0x4a, 0xf2, 0x89, - 0x98, 0x9e, 0xee, 0xdf, 0xf4, 0x74, 0xcf, 0xfc, 0xa6, 0x67, 0x96, 0x60, 0x50, 0x7b, 0x12, 0x5b, - 0xce, 0xdc, 0x0d, 0xbf, 0xda, 0x0d, 0x69, 0x10, 0x07, 0x08, 0x52, 0xc9, 0xe5, 0xde, 0x9c, 0xc4, - 0xb6, 0xea, 0xb9, 0xdc, 0x27, 0x94, 0x06, 0x54, 0x6f, 0xda, 0x93, 0x38, 0x6d, 0x9e, 0x9e, 0xd1, - 0xd0, 0x49, 0x9a, 0xc8, 0x9b, 0x87, 0x01, 0x8d, 0xad, 0x28, 0x4a, 0x55, 0x86, 0x1c, 0x3a, 0x22, - 0xf4, 0x8c, 0xa4, 0x30, 0x6b, 0x74, 0x11, 0xc5, 0xfc, 0x53, 0x08, 0xcc, 0x5d, 0x80, 0xfb, 0x24, - 0xc6, 0xe4, 0xeb, 0x05, 0x89, 0x62, 0x34, 0x80, 0xaa, 0x33, 0x19, 0x57, 0xb6, 0x2b, 0x3b, 0x1d, - 0x5c, 0x75, 0x26, 0xc8, 0x80, 0xda, 0x29, 0x59, 0x8e, 0xab, 0xdb, 0x95, 0x9d, 0x1e, 0x66, 0x9f, - 0xe6, 0x75, 0xe8, 0x72, 0xfd, 0x28, 0x0c, 0xfc, 0x88, 0xa0, 0x11, 0x34, 0xce, 0xec, 0xd9, 0x82, - 0x70, 0x9b, 0x1e, 0x16, 0x0d, 0x73, 0x1f, 0xe0, 0x70, 0xf1, 0xe2, 0xa0, 0x29, 0x4a, 0x4d, 0x47, - 0xe9, 0x43, 0x97, 0xa3, 0x88, 0xa1, 0xcc, 0x37, 0xa1, 0xbf, 0x4f, 0x66, 0x24, 0x26, 0x2f, 0xee, - 0xac, 0x01, 0x03, 0x65, 0x22, 0x41, 0xbe, 0x03, 0x24, 0x25, 0xb6, 0x7f, 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9, 0x47, 0x04, 0xa7, 0x31, 0x00, 0x75, 0xa0, 0x1c, 0xf8, 0x31, 0x5d, 0x62, 0xd5, 0x8d, 0xee, - 0x40, 0x4f, 0x6e, 0xd8, 0x28, 0xb6, 0x63, 0x22, 0x2b, 0x04, 0x79, 0xa4, 0x26, 0x57, 0x3c, 0x31, - 0xec, 0xa3, 0xc0, 0xb1, 0x67, 0x47, 0x4c, 0x0d, 0x77, 0x85, 0x11, 0x6f, 0x7c, 0xda, 0x68, 0xbb, - 0xc6, 0xf7, 0x15, 0x76, 0x09, 0xc9, 0x4c, 0x25, 0x59, 0x7c, 0x23, 0x1c, 0xcc, 0x66, 0x6c, 0xda, - 0x99, 0x39, 0xa6, 0xbe, 0x57, 0x74, 0xdf, 0xcd, 0x4d, 0xb8, 0x98, 0xd3, 0x97, 0x40, 0x4f, 0x60, - 0x74, 0xf4, 0xd4, 0x8b, 0x9d, 0xe9, 0x17, 0x5e, 0xec, 0x93, 0x28, 0x52, 0x40, 0x9b, 0xd0, 0x92, - 0x0c, 0xae, 0x90, 0x42, 0xce, 0xde, 0xac, 0x18, 0xf7, 0x22, 0xeb, 0xa9, 0xd0, 0x96, 0x9c, 0xd5, - 0xf1, 0x22, 0x69, 0x6e, 0x4e, 0xe1, 0x92, 0x20, 0x9e, 0x32, 0xd0, 0x87, 0x60, 0x44, 0x5c, 0xae, - 0xec, 0x93, 0xe3, 0x6e, 0x3b, 0xc3, 0x97, 0x25, 0xb6, 0x78, 0x2d, 0xd2, 0xa5, 0x24, 0x32, 0x5f, - 0x81, 0xcb, 0x65, 0x23, 0x25, 0x01, 0x1a, 0xfe, 0x36, 0x74, 0xed, 0x98, 0xdc, 0x77, 0xf4, 0xc2, - 0x20, 0x33, 0xad, 0x5a, 0x3a, 0x2d, 0xf3, 0x5f, 0x6d, 0xe8, 0x7d, 0xec, 0xce, 0x3d, 0x5f, 0x69, - 0xbe, 0x55, 0xa8, 0x1b, 0x33, 0x9c, 0xce, 0x75, 0x0b, 0xc5, 0xe3, 0x07, 0x49, 0xdd, 0xa1, 0x15, - 0x11, 0xcf, 0x39, 0xca, 0x65, 0xf5, 0xc1, 0x44, 0x68, 0x0f, 0x1a, 0xfc, 0xac, 0xe5, 0x5b, 0xfc, - 0x9c, 0x53, 0x84, 0x1f, 0x96, 0x42, 0x95, 0x8f, 0x29, 0xf9, 0x76, 0x16, 0x9c, 0xc8, 0xb5, 0x96, - 0x1d, 0x33, 0x4f, 0xe4, 0x18, 0x9c, 0x44, 0x84, 0x3e, 0x85, 0xb5, 0x58, 0x32, 0x9c, 0x35, 0xe3, - 0x14, 0x27, 0x6b, 0xd4, 0x6b, 0x3a, 0x46, 0x29, 0xc7, 0xe2, 0x41, 0x9c, 0x11, 0x33, 0x5f, 0xce, - 0x38, 0x15, 0x59, 0x9c, 0xbf, 0x9a, 0x45, 0x5f, 0x0a, 0x14, 0x88, 0xe1, 0x2c, 0x11, 0xa1, 0x7d, - 0xe8, 0x87, 0x82, 0x0a, 0xac, 0x39, 0x5b, 0xa6, 0xb2, 0x92, 0xbd, 0x9a, 0xab, 0x64, 0xf3, 0xac, - 0x86, 0x7b, 0xa1, 0x26, 0x64, 0x97, 0x17, 0xb1, 0xec, 0x25, 0x48, 0xc9, 0xe5, 0xa5, 0x48, 0x0f, - 0xfc, 0x84, 0x52, 0x32, 0x74, 0x1f, 0x06, 0x54, 0xee, 0x17, 0x09, 0x22, 0xaa, 0xda, 0xcc, 0x3a, - 0x2d, 0xdb, 0x81, 0xb8, 0x4f, 0x75, 0x29, 0x7a, 0x07, 0x9a, 0x3c, 0x4d, 0x51, 0x59, 0x61, 0x5b, - 0xa8, 0x24, 0xb0, 0x54, 0x46, 0x07, 0x30, 0xd0, 0x16, 0x92, 0x75, 0xb6, 0x37, 0xee, 0x16, 0x23, - 0x51, 0x52, 0x48, 0xe2, 0x9e, 0xa3, 0x09, 0x65, 0x24, 0xd8, 0x19, 0x25, 0x12, 0xd2, 0x2b, 0x8d, - 0x44, 0xee, 0x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xa5, 0xd5, 0xa2, 0xd1, 0x64, 0xa3, 0xea, 0xa5, 0x9f, 0xd1, 0x92, 0x26, 0xaa, 0x62, 0x33, - 0xda, 0x68, 0x1d, 0xfa, 0x99, 0x8a, 0xcc, 0xe8, 0x30, 0x94, 0xb4, 0xc4, 0x32, 0x80, 0xa1, 0xe8, - 0x25, 0x93, 0xd1, 0x45, 0x23, 0xfe, 0xa3, 0x6c, 0xa6, 0xbe, 0x31, 0x7a, 0x68, 0x08, 0x6b, 0xb9, - 0xea, 0xc5, 0xe8, 0xa3, 0x0d, 0xf5, 0x60, 0xab, 0xd7, 0x1a, 0xc6, 0x80, 0x81, 0xea, 0x17, 0x0d, - 0x63, 0xed, 0x8d, 0x7b, 0xea, 0xa8, 0x56, 0x31, 0x5b, 0x87, 0xbe, 0x8c, 0x99, 0x90, 0x1b, 0x17, - 0x98, 0x95, 0x7e, 0x22, 0x19, 0x95, 0x54, 0x22, 0x8e, 0x11, 0xa3, 0x7a, 0xe7, 0xe6, 0xbf, 0xff, - 0xda, 0xae, 0xfc, 0xfd, 0xd9, 0x56, 0xe5, 0x9f, 0xcf, 0xb6, 0x2a, 0xff, 0x79, 0xb6, 0x55, 0xf9, - 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, - 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, - 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, -} diff --git a/pkg/raft_serverpb/raft_serverpb.pb.go b/pkg/raft_serverpb/raft_serverpb.pb.go index b36c4c765..cdc685a1a 100644 --- a/pkg/raft_serverpb/raft_serverpb.pb.go +++ b/pkg/raft_serverpb/raft_serverpb.pb.go @@ -1,62 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: raft_serverpb.proto -/* -Package raft_serverpb is a generated protocol buffer package. - -It is generated from these files: - - raft_serverpb.proto - -It has these top-level messages: - - RaftMessage - RaftTruncatedState - SnapshotCFFile - SnapshotMeta - SnapshotChunk - Done - TabletSnapshotFileMeta - TabletSnapshotPreview - TabletSnapshotFileChunk - TabletSnapshotHead - TabletSnapshotEnd - TabletSnapshotRequest - AcceptedSnapshotFiles - TabletSnapshotResponse - KeyValue - RaftSnapshotData - StoreIdent - StoreRecoverState - RaftLocalState - RaftApplyState - MergeState - MergedRecord - RegionLocalState - RegionSequenceNumberRelation - AvailabilityContext - FlushMemtable - RefreshBuckets - CheckGcPeer - ExtraMessage -*/ package raft_serverpb import ( "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" - eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" - - metapb "github.com/pingcap/kvproto/pkg/metapb" - - kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - disk_usage "github.com/pingcap/kvproto/pkg/disk_usage" - encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" + eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" ) // Reference imports to suppress errors if they are not otherwise used. @@ -68,7 +26,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PeerState int32 @@ -91,6 +49,7 @@ var PeerState_name = map[int32]string{ 3: "Merging", 4: "Unavailable", } + var PeerState_value = map[string]int32{ "Normal": 0, "Applying": 1, @@ -102,7 +61,10 @@ var PeerState_value = map[string]int32{ func (x PeerState) String() string { return proto.EnumName(PeerState_name, int32(x)) } -func (PeerState) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{0} } + +func (PeerState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{0} +} type ExtraMessageType int32 @@ -144,6 +106,7 @@ var ExtraMessageType_name = map[int32]string{ 13: "MsgFlushMemtable", 14: "MsgRefreshBuckets", } + var ExtraMessageType_value = map[string]int32{ "MsgRegionWakeUp": 0, "MsgWantRollbackMerge": 1, @@ -165,30 +128,64 @@ var ExtraMessageType_value = map[string]int32{ func (x ExtraMessageType) String() string { return proto.EnumName(ExtraMessageType_name, int32(x)) } -func (ExtraMessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{1} } + +func (ExtraMessageType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{1} +} type RaftMessage struct { RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - FromPeer *metapb.Peer `protobuf:"bytes,2,opt,name=from_peer,json=fromPeer" json:"from_peer,omitempty"` - ToPeer *metapb.Peer `protobuf:"bytes,3,opt,name=to_peer,json=toPeer" json:"to_peer,omitempty"` - Message *eraftpb.Message `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + FromPeer *metapb.Peer `protobuf:"bytes,2,opt,name=from_peer,json=fromPeer,proto3" json:"from_peer,omitempty"` + ToPeer *metapb.Peer `protobuf:"bytes,3,opt,name=to_peer,json=toPeer,proto3" json:"to_peer,omitempty"` + Message *eraftpb.Message `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` // true means to_peer is a tombstone peer and it should remove itself. IsTombstone bool `protobuf:"varint,6,opt,name=is_tombstone,json=isTombstone,proto3" json:"is_tombstone,omitempty"` // Region key range [start_key, end_key). StartKey []byte `protobuf:"bytes,7,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,8,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` // If it has value, to_peer should be removed if merge is never going to complete. - MergeTarget *metapb.Region `protobuf:"bytes,9,opt,name=merge_target,json=mergeTarget" json:"merge_target,omitempty"` - ExtraMsg *ExtraMessage `protobuf:"bytes,10,opt,name=extra_msg,json=extraMsg" json:"extra_msg,omitempty"` - ExtraCtx []byte `protobuf:"bytes,11,opt,name=extra_ctx,json=extraCtx,proto3" json:"extra_ctx,omitempty"` - DiskUsage disk_usage.DiskUsage `protobuf:"varint,12,opt,name=disk_usage,json=diskUsage,proto3,enum=disk_usage.DiskUsage" json:"disk_usage,omitempty"` + MergeTarget *metapb.Region `protobuf:"bytes,9,opt,name=merge_target,json=mergeTarget,proto3" json:"merge_target,omitempty"` + ExtraMsg *ExtraMessage `protobuf:"bytes,10,opt,name=extra_msg,json=extraMsg,proto3" json:"extra_msg,omitempty"` + ExtraCtx []byte `protobuf:"bytes,11,opt,name=extra_ctx,json=extraCtx,proto3" json:"extra_ctx,omitempty"` + DiskUsage disk_usage.DiskUsage `protobuf:"varint,12,opt,name=disk_usage,json=diskUsage,proto3,enum=disk_usage.DiskUsage" json:"disk_usage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftMessage) Reset() { *m = RaftMessage{} } +func (m *RaftMessage) String() string { return proto.CompactTextString(m) } +func (*RaftMessage) ProtoMessage() {} +func (*RaftMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{0} +} +func (m *RaftMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftMessage.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 *RaftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftMessage.Merge(m, src) +} +func (m *RaftMessage) XXX_Size() int { + return m.Size() +} +func (m *RaftMessage) XXX_DiscardUnknown() { + xxx_messageInfo_RaftMessage.DiscardUnknown(m) } -func (m *RaftMessage) Reset() { *m = RaftMessage{} } -func (m *RaftMessage) String() string { return proto.CompactTextString(m) } -func (*RaftMessage) ProtoMessage() {} -func (*RaftMessage) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{0} } +var xxx_messageInfo_RaftMessage proto.InternalMessageInfo func (m *RaftMessage) GetRegionId() uint64 { if m != nil { @@ -275,14 +272,45 @@ func (m *RaftMessage) GetDiskUsage() disk_usage.DiskUsage { } type RaftTruncatedState struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"` + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Term uint64 `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftTruncatedState) Reset() { *m = RaftTruncatedState{} } +func (m *RaftTruncatedState) String() string { return proto.CompactTextString(m) } +func (*RaftTruncatedState) ProtoMessage() {} +func (*RaftTruncatedState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{1} +} +func (m *RaftTruncatedState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftTruncatedState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftTruncatedState.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 *RaftTruncatedState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftTruncatedState.Merge(m, src) +} +func (m *RaftTruncatedState) XXX_Size() int { + return m.Size() +} +func (m *RaftTruncatedState) XXX_DiscardUnknown() { + xxx_messageInfo_RaftTruncatedState.DiscardUnknown(m) } -func (m *RaftTruncatedState) Reset() { *m = RaftTruncatedState{} } -func (m *RaftTruncatedState) String() string { return proto.CompactTextString(m) } -func (*RaftTruncatedState) ProtoMessage() {} -func (*RaftTruncatedState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{1} } +var xxx_messageInfo_RaftTruncatedState proto.InternalMessageInfo func (m *RaftTruncatedState) GetIndex() uint64 { if m != nil { @@ -299,15 +327,46 @@ func (m *RaftTruncatedState) GetTerm() uint64 { } type SnapshotCFFile struct { - Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` - Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Checksum uint32 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` + Cf string `protobuf:"bytes,1,opt,name=cf,proto3" json:"cf,omitempty"` + Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Checksum uint32 `protobuf:"varint,3,opt,name=checksum,proto3" json:"checksum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotCFFile) Reset() { *m = SnapshotCFFile{} } +func (m *SnapshotCFFile) String() string { return proto.CompactTextString(m) } +func (*SnapshotCFFile) ProtoMessage() {} +func (*SnapshotCFFile) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{2} +} +func (m *SnapshotCFFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotCFFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotCFFile.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 *SnapshotCFFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotCFFile.Merge(m, src) +} +func (m *SnapshotCFFile) XXX_Size() int { + return m.Size() +} +func (m *SnapshotCFFile) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotCFFile.DiscardUnknown(m) } -func (m *SnapshotCFFile) Reset() { *m = SnapshotCFFile{} } -func (m *SnapshotCFFile) String() string { return proto.CompactTextString(m) } -func (*SnapshotCFFile) ProtoMessage() {} -func (*SnapshotCFFile) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{2} } +var xxx_messageInfo_SnapshotCFFile proto.InternalMessageInfo func (m *SnapshotCFFile) GetCf() string { if m != nil { @@ -331,7 +390,7 @@ func (m *SnapshotCFFile) GetChecksum() uint32 { } type SnapshotMeta struct { - CfFiles []*SnapshotCFFile `protobuf:"bytes,1,rep,name=cf_files,json=cfFiles" json:"cf_files,omitempty"` + CfFiles []*SnapshotCFFile `protobuf:"bytes,1,rep,name=cf_files,json=cfFiles,proto3" json:"cf_files,omitempty"` // true means this snapshot is triggered for load balance ForBalance bool `protobuf:"varint,2,opt,name=for_balance,json=forBalance,proto3" json:"for_balance,omitempty"` // true means this is an empty snapshot for witness @@ -346,13 +405,44 @@ type SnapshotMeta struct { // A hint of the latest commit index on leader when sending snapshot. // It should only be used for v2 to send snapshot to v1. // See https://github.com/pingcap/tiflash/issues/7568 - CommitIndexHint uint64 `protobuf:"varint,7,opt,name=commit_index_hint,json=commitIndexHint,proto3" json:"commit_index_hint,omitempty"` + CommitIndexHint uint64 `protobuf:"varint,7,opt,name=commit_index_hint,json=commitIndexHint,proto3" json:"commit_index_hint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotMeta) Reset() { *m = SnapshotMeta{} } +func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) } +func (*SnapshotMeta) ProtoMessage() {} +func (*SnapshotMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{3} +} +func (m *SnapshotMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotMeta.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 *SnapshotMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotMeta.Merge(m, src) +} +func (m *SnapshotMeta) XXX_Size() int { + return m.Size() +} +func (m *SnapshotMeta) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotMeta.DiscardUnknown(m) } -func (m *SnapshotMeta) Reset() { *m = SnapshotMeta{} } -func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) } -func (*SnapshotMeta) ProtoMessage() {} -func (*SnapshotMeta) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{3} } +var xxx_messageInfo_SnapshotMeta proto.InternalMessageInfo func (m *SnapshotMeta) GetCfFiles() []*SnapshotCFFile { if m != nil { @@ -404,14 +494,45 @@ func (m *SnapshotMeta) GetCommitIndexHint() uint64 { } type SnapshotChunk struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SnapshotChunk) Reset() { *m = SnapshotChunk{} } +func (m *SnapshotChunk) String() string { return proto.CompactTextString(m) } +func (*SnapshotChunk) ProtoMessage() {} +func (*SnapshotChunk) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{4} +} +func (m *SnapshotChunk) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SnapshotChunk.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 *SnapshotChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotChunk.Merge(m, src) +} +func (m *SnapshotChunk) XXX_Size() int { + return m.Size() +} +func (m *SnapshotChunk) XXX_DiscardUnknown() { + xxx_messageInfo_SnapshotChunk.DiscardUnknown(m) } -func (m *SnapshotChunk) Reset() { *m = SnapshotChunk{} } -func (m *SnapshotChunk) String() string { return proto.CompactTextString(m) } -func (*SnapshotChunk) ProtoMessage() {} -func (*SnapshotChunk) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{4} } +var xxx_messageInfo_SnapshotChunk proto.InternalMessageInfo func (m *SnapshotChunk) GetMessage() *RaftMessage { if m != nil { @@ -428,12 +549,43 @@ func (m *SnapshotChunk) GetData() []byte { } type Done struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Done) Reset() { *m = Done{} } +func (m *Done) String() string { return proto.CompactTextString(m) } +func (*Done) ProtoMessage() {} +func (*Done) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{5} +} +func (m *Done) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Done) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Done.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 *Done) XXX_Merge(src proto.Message) { + xxx_messageInfo_Done.Merge(m, src) +} +func (m *Done) XXX_Size() int { + return m.Size() +} +func (m *Done) XXX_DiscardUnknown() { + xxx_messageInfo_Done.DiscardUnknown(m) } -func (m *Done) Reset() { *m = Done{} } -func (m *Done) String() string { return proto.CompactTextString(m) } -func (*Done) ProtoMessage() {} -func (*Done) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{5} } +var xxx_messageInfo_Done proto.InternalMessageInfo type TabletSnapshotFileMeta struct { FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` @@ -441,16 +593,45 @@ type TabletSnapshotFileMeta struct { // Some block data. Unencrypted. HeadChunk []byte `protobuf:"bytes,3,opt,name=head_chunk,json=headChunk,proto3" json:"head_chunk,omitempty"` // trailing data including checksum. Unencrypted. - TrailingChunk []byte `protobuf:"bytes,4,opt,name=trailing_chunk,json=trailingChunk,proto3" json:"trailing_chunk,omitempty"` + TrailingChunk []byte `protobuf:"bytes,4,opt,name=trailing_chunk,json=trailingChunk,proto3" json:"trailing_chunk,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TabletSnapshotFileMeta) Reset() { *m = TabletSnapshotFileMeta{} } func (m *TabletSnapshotFileMeta) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotFileMeta) ProtoMessage() {} func (*TabletSnapshotFileMeta) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{6} + return fileDescriptor_130ebc2f2c37a342, []int{6} +} +func (m *TabletSnapshotFileMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotFileMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotFileMeta.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 *TabletSnapshotFileMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotFileMeta.Merge(m, src) +} +func (m *TabletSnapshotFileMeta) XXX_Size() int { + return m.Size() +} +func (m *TabletSnapshotFileMeta) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotFileMeta.DiscardUnknown(m) } +var xxx_messageInfo_TabletSnapshotFileMeta proto.InternalMessageInfo + func (m *TabletSnapshotFileMeta) GetFileSize() uint64 { if m != nil { return m.FileSize @@ -484,18 +665,47 @@ func (m *TabletSnapshotFileMeta) GetTrailingChunk() []byte { // keep sending specified files. Only SST files can be skipped, all // other files should always be sent. type TabletSnapshotPreview struct { - Metas []*TabletSnapshotFileMeta `protobuf:"bytes,1,rep,name=metas" json:"metas,omitempty"` + Metas []*TabletSnapshotFileMeta `protobuf:"bytes,1,rep,name=metas,proto3" json:"metas,omitempty"` // There may be too many metas, use a flag to indicate all metas // are sent. - End bool `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` + End bool `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TabletSnapshotPreview) Reset() { *m = TabletSnapshotPreview{} } func (m *TabletSnapshotPreview) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotPreview) ProtoMessage() {} func (*TabletSnapshotPreview) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{7} + return fileDescriptor_130ebc2f2c37a342, []int{7} +} +func (m *TabletSnapshotPreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotPreview.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 *TabletSnapshotPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotPreview.Merge(m, src) +} +func (m *TabletSnapshotPreview) XXX_Size() int { + return m.Size() } +func (m *TabletSnapshotPreview) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotPreview.DiscardUnknown(m) +} + +var xxx_messageInfo_TabletSnapshotPreview proto.InternalMessageInfo func (m *TabletSnapshotPreview) GetMetas() []*TabletSnapshotFileMeta { if m != nil { @@ -517,17 +727,46 @@ type TabletSnapshotFileChunk struct { // Encrypted. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // Initial vector if encryption is enabled. - Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` - Key *encryptionpb.DataKey `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"` + Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"` + Key *encryptionpb.DataKey `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TabletSnapshotFileChunk) Reset() { *m = TabletSnapshotFileChunk{} } func (m *TabletSnapshotFileChunk) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotFileChunk) ProtoMessage() {} func (*TabletSnapshotFileChunk) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{8} + return fileDescriptor_130ebc2f2c37a342, []int{8} +} +func (m *TabletSnapshotFileChunk) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotFileChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotFileChunk.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 *TabletSnapshotFileChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotFileChunk.Merge(m, src) +} +func (m *TabletSnapshotFileChunk) XXX_Size() int { + return m.Size() +} +func (m *TabletSnapshotFileChunk) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotFileChunk.DiscardUnknown(m) } +var xxx_messageInfo_TabletSnapshotFileChunk proto.InternalMessageInfo + func (m *TabletSnapshotFileChunk) GetFileSize() uint64 { if m != nil { return m.FileSize @@ -564,14 +803,45 @@ func (m *TabletSnapshotFileChunk) GetKey() *encryptionpb.DataKey { } type TabletSnapshotHead struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` - UseCache bool `protobuf:"varint,2,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` + Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + UseCache bool `protobuf:"varint,2,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TabletSnapshotHead) Reset() { *m = TabletSnapshotHead{} } +func (m *TabletSnapshotHead) String() string { return proto.CompactTextString(m) } +func (*TabletSnapshotHead) ProtoMessage() {} +func (*TabletSnapshotHead) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{9} +} +func (m *TabletSnapshotHead) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotHead.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 *TabletSnapshotHead) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotHead.Merge(m, src) +} +func (m *TabletSnapshotHead) XXX_Size() int { + return m.Size() +} +func (m *TabletSnapshotHead) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotHead.DiscardUnknown(m) } -func (m *TabletSnapshotHead) Reset() { *m = TabletSnapshotHead{} } -func (m *TabletSnapshotHead) String() string { return proto.CompactTextString(m) } -func (*TabletSnapshotHead) ProtoMessage() {} -func (*TabletSnapshotHead) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{9} } +var xxx_messageInfo_TabletSnapshotHead proto.InternalMessageInfo func (m *TabletSnapshotHead) GetMessage() *RaftMessage { if m != nil { @@ -590,13 +860,44 @@ func (m *TabletSnapshotHead) GetUseCache() bool { type TabletSnapshotEnd struct { // Checksum of all data sent in `TabletSnapshotFileChunk.data` and // `TabletSnapshotFileChunk.file_name`. - Checksum uint64 `protobuf:"varint,1,opt,name=checksum,proto3" json:"checksum,omitempty"` + Checksum uint64 `protobuf:"varint,1,opt,name=checksum,proto3" json:"checksum,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TabletSnapshotEnd) Reset() { *m = TabletSnapshotEnd{} } +func (m *TabletSnapshotEnd) String() string { return proto.CompactTextString(m) } +func (*TabletSnapshotEnd) ProtoMessage() {} +func (*TabletSnapshotEnd) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{10} +} +func (m *TabletSnapshotEnd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotEnd.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 *TabletSnapshotEnd) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotEnd.Merge(m, src) +} +func (m *TabletSnapshotEnd) XXX_Size() int { + return m.Size() +} +func (m *TabletSnapshotEnd) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotEnd.DiscardUnknown(m) } -func (m *TabletSnapshotEnd) Reset() { *m = TabletSnapshotEnd{} } -func (m *TabletSnapshotEnd) String() string { return proto.CompactTextString(m) } -func (*TabletSnapshotEnd) ProtoMessage() {} -func (*TabletSnapshotEnd) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{10} } +var xxx_messageInfo_TabletSnapshotEnd proto.InternalMessageInfo func (m *TabletSnapshotEnd) GetChecksum() uint64 { if m != nil { @@ -611,15 +912,44 @@ type TabletSnapshotRequest struct { // *TabletSnapshotRequest_Preview // *TabletSnapshotRequest_Chunk // *TabletSnapshotRequest_End - Payload isTabletSnapshotRequest_Payload `protobuf_oneof:"payload"` + Payload isTabletSnapshotRequest_Payload `protobuf_oneof:"payload"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TabletSnapshotRequest) Reset() { *m = TabletSnapshotRequest{} } func (m *TabletSnapshotRequest) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotRequest) ProtoMessage() {} func (*TabletSnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{11} + return fileDescriptor_130ebc2f2c37a342, []int{11} +} +func (m *TabletSnapshotRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotRequest.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 *TabletSnapshotRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotRequest.Merge(m, src) +} +func (m *TabletSnapshotRequest) XXX_Size() int { + return m.Size() +} +func (m *TabletSnapshotRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TabletSnapshotRequest proto.InternalMessageInfo type isTabletSnapshotRequest_Payload interface { isTabletSnapshotRequest_Payload() @@ -628,16 +958,16 @@ type isTabletSnapshotRequest_Payload interface { } type TabletSnapshotRequest_Head struct { - Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,oneof"` + Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,proto3,oneof" json:"head,omitempty"` } type TabletSnapshotRequest_Preview struct { - Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,oneof"` + Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,proto3,oneof" json:"preview,omitempty"` } type TabletSnapshotRequest_Chunk struct { - Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,oneof"` + Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,proto3,oneof" json:"chunk,omitempty"` } type TabletSnapshotRequest_End struct { - End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,oneof"` + End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,proto3,oneof" json:"end,omitempty"` } func (*TabletSnapshotRequest_Head) isTabletSnapshotRequest_Payload() {} @@ -680,9 +1010,9 @@ func (m *TabletSnapshotRequest) GetEnd() *TabletSnapshotEnd { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TabletSnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TabletSnapshotRequest_OneofMarshaler, _TabletSnapshotRequest_OneofUnmarshaler, _TabletSnapshotRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TabletSnapshotRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*TabletSnapshotRequest_Head)(nil), (*TabletSnapshotRequest_Preview)(nil), (*TabletSnapshotRequest_Chunk)(nil), @@ -690,119 +1020,46 @@ func (*TabletSnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto } } -func _TabletSnapshotRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TabletSnapshotRequest) - // payload - switch x := m.Payload.(type) { - case *TabletSnapshotRequest_Head: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Head); err != nil { - return err - } - case *TabletSnapshotRequest_Preview: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Preview); err != nil { - return err - } - case *TabletSnapshotRequest_Chunk: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Chunk); err != nil { - return err - } - case *TabletSnapshotRequest_End: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.End); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("TabletSnapshotRequest.Payload has unexpected type %T", x) - } - return nil -} - -func _TabletSnapshotRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TabletSnapshotRequest) - switch tag { - case 1: // payload.head - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TabletSnapshotHead) - err := b.DecodeMessage(msg) - m.Payload = &TabletSnapshotRequest_Head{msg} - return true, err - case 2: // payload.preview - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TabletSnapshotPreview) - err := b.DecodeMessage(msg) - m.Payload = &TabletSnapshotRequest_Preview{msg} - return true, err - case 3: // payload.chunk - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TabletSnapshotFileChunk) - err := b.DecodeMessage(msg) - m.Payload = &TabletSnapshotRequest_Chunk{msg} - return true, err - case 4: // payload.end - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TabletSnapshotEnd) - err := b.DecodeMessage(msg) - m.Payload = &TabletSnapshotRequest_End{msg} - return true, err - default: - return false, nil - } -} - -func _TabletSnapshotRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TabletSnapshotRequest) - // payload - switch x := m.Payload.(type) { - case *TabletSnapshotRequest_Head: - s := proto.Size(x.Head) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TabletSnapshotRequest_Preview: - s := proto.Size(x.Preview) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TabletSnapshotRequest_Chunk: - s := proto.Size(x.Chunk) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TabletSnapshotRequest_End: - s := proto.Size(x.End) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type AcceptedSnapshotFiles struct { - FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName" json:"file_name,omitempty"` + FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AcceptedSnapshotFiles) Reset() { *m = AcceptedSnapshotFiles{} } func (m *AcceptedSnapshotFiles) String() string { return proto.CompactTextString(m) } func (*AcceptedSnapshotFiles) ProtoMessage() {} func (*AcceptedSnapshotFiles) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{12} + return fileDescriptor_130ebc2f2c37a342, []int{12} +} +func (m *AcceptedSnapshotFiles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AcceptedSnapshotFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AcceptedSnapshotFiles.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 *AcceptedSnapshotFiles) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptedSnapshotFiles.Merge(m, src) +} +func (m *AcceptedSnapshotFiles) XXX_Size() int { + return m.Size() +} +func (m *AcceptedSnapshotFiles) XXX_DiscardUnknown() { + xxx_messageInfo_AcceptedSnapshotFiles.DiscardUnknown(m) } +var xxx_messageInfo_AcceptedSnapshotFiles proto.InternalMessageInfo + func (m *AcceptedSnapshotFiles) GetFileName() []string { if m != nil { return m.FileName @@ -811,15 +1068,44 @@ func (m *AcceptedSnapshotFiles) GetFileName() []string { } type TabletSnapshotResponse struct { - Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files" json:"files,omitempty"` + Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TabletSnapshotResponse) Reset() { *m = TabletSnapshotResponse{} } func (m *TabletSnapshotResponse) String() string { return proto.CompactTextString(m) } func (*TabletSnapshotResponse) ProtoMessage() {} func (*TabletSnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{13} + return fileDescriptor_130ebc2f2c37a342, []int{13} +} +func (m *TabletSnapshotResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TabletSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TabletSnapshotResponse.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 *TabletSnapshotResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotResponse.Merge(m, src) +} +func (m *TabletSnapshotResponse) XXX_Size() int { + return m.Size() } +func (m *TabletSnapshotResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TabletSnapshotResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TabletSnapshotResponse proto.InternalMessageInfo func (m *TabletSnapshotResponse) GetFiles() *AcceptedSnapshotFiles { if m != nil { @@ -829,14 +1115,45 @@ func (m *TabletSnapshotResponse) GetFiles() *AcceptedSnapshotFiles { } type KeyValue struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{14} +} +func (m *KeyValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyValue.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 *KeyValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValue.Merge(m, src) +} +func (m *KeyValue) XXX_Size() int { + return m.Size() +} +func (m *KeyValue) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValue.DiscardUnknown(m) } -func (m *KeyValue) Reset() { *m = KeyValue{} } -func (m *KeyValue) String() string { return proto.CompactTextString(m) } -func (*KeyValue) ProtoMessage() {} -func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{14} } +var xxx_messageInfo_KeyValue proto.InternalMessageInfo func (m *KeyValue) GetKey() []byte { if m != nil { @@ -853,19 +1170,50 @@ func (m *KeyValue) GetValue() []byte { } type RaftSnapshotData struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` - FileSize uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` - Data []*KeyValue `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"` - Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - Meta *SnapshotMeta `protobuf:"bytes,5,opt,name=meta" json:"meta,omitempty"` - RemovedRecords []*metapb.Peer `protobuf:"bytes,6,rep,name=removed_records,json=removedRecords" json:"removed_records,omitempty"` - MergedRecords []*MergedRecord `protobuf:"bytes,7,rep,name=merged_records,json=mergedRecords" json:"merged_records,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + FileSize uint64 `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` + Data []*KeyValue `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + Meta *SnapshotMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` + RemovedRecords []*metapb.Peer `protobuf:"bytes,6,rep,name=removed_records,json=removedRecords,proto3" json:"removed_records,omitempty"` + MergedRecords []*MergedRecord `protobuf:"bytes,7,rep,name=merged_records,json=mergedRecords,proto3" json:"merged_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftSnapshotData) Reset() { *m = RaftSnapshotData{} } +func (m *RaftSnapshotData) String() string { return proto.CompactTextString(m) } +func (*RaftSnapshotData) ProtoMessage() {} +func (*RaftSnapshotData) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{15} +} +func (m *RaftSnapshotData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftSnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftSnapshotData.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 *RaftSnapshotData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftSnapshotData.Merge(m, src) +} +func (m *RaftSnapshotData) XXX_Size() int { + return m.Size() +} +func (m *RaftSnapshotData) XXX_DiscardUnknown() { + xxx_messageInfo_RaftSnapshotData.DiscardUnknown(m) } -func (m *RaftSnapshotData) Reset() { *m = RaftSnapshotData{} } -func (m *RaftSnapshotData) String() string { return proto.CompactTextString(m) } -func (*RaftSnapshotData) ProtoMessage() {} -func (*RaftSnapshotData) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{15} } +var xxx_messageInfo_RaftSnapshotData proto.InternalMessageInfo func (m *RaftSnapshotData) GetRegion() *metapb.Region { if m != nil { @@ -917,15 +1265,46 @@ func (m *RaftSnapshotData) GetMergedRecords() []*MergedRecord { } type StoreIdent struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - ApiVersion kvrpcpb.APIVersion `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + ApiVersion kvrpcpb.APIVersion `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3,enum=kvrpcpb.APIVersion" json:"api_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreIdent) Reset() { *m = StoreIdent{} } +func (m *StoreIdent) String() string { return proto.CompactTextString(m) } +func (*StoreIdent) ProtoMessage() {} +func (*StoreIdent) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{16} +} +func (m *StoreIdent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreIdent.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 *StoreIdent) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreIdent.Merge(m, src) +} +func (m *StoreIdent) XXX_Size() int { + return m.Size() +} +func (m *StoreIdent) XXX_DiscardUnknown() { + xxx_messageInfo_StoreIdent.DiscardUnknown(m) } -func (m *StoreIdent) Reset() { *m = StoreIdent{} } -func (m *StoreIdent) String() string { return proto.CompactTextString(m) } -func (*StoreIdent) ProtoMessage() {} -func (*StoreIdent) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{16} } +var xxx_messageInfo_StoreIdent proto.InternalMessageInfo func (m *StoreIdent) GetClusterId() uint64 { if m != nil { @@ -954,13 +1333,44 @@ type StoreRecoverState struct { // all raft logs which corresponding seqno smaller than the seqno here. // After TiKV replays all raft logs and flushed KV data, the seqno here must // be updated. - Seqno uint64 `protobuf:"varint,1,opt,name=seqno,proto3" json:"seqno,omitempty"` + Seqno uint64 `protobuf:"varint,1,opt,name=seqno,proto3" json:"seqno,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StoreRecoverState) Reset() { *m = StoreRecoverState{} } +func (m *StoreRecoverState) String() string { return proto.CompactTextString(m) } +func (*StoreRecoverState) ProtoMessage() {} +func (*StoreRecoverState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{17} +} +func (m *StoreRecoverState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreRecoverState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreRecoverState.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 *StoreRecoverState) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreRecoverState.Merge(m, src) +} +func (m *StoreRecoverState) XXX_Size() int { + return m.Size() +} +func (m *StoreRecoverState) XXX_DiscardUnknown() { + xxx_messageInfo_StoreRecoverState.DiscardUnknown(m) } -func (m *StoreRecoverState) Reset() { *m = StoreRecoverState{} } -func (m *StoreRecoverState) String() string { return proto.CompactTextString(m) } -func (*StoreRecoverState) ProtoMessage() {} -func (*StoreRecoverState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{17} } +var xxx_messageInfo_StoreRecoverState proto.InternalMessageInfo func (m *StoreRecoverState) GetSeqno() uint64 { if m != nil { @@ -970,14 +1380,45 @@ func (m *StoreRecoverState) GetSeqno() uint64 { } type RaftLocalState struct { - HardState *eraftpb.HardState `protobuf:"bytes,1,opt,name=hard_state,json=hardState" json:"hard_state,omitempty"` - LastIndex uint64 `protobuf:"varint,2,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` + HardState *eraftpb.HardState `protobuf:"bytes,1,opt,name=hard_state,json=hardState,proto3" json:"hard_state,omitempty"` + LastIndex uint64 `protobuf:"varint,2,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftLocalState) Reset() { *m = RaftLocalState{} } +func (m *RaftLocalState) String() string { return proto.CompactTextString(m) } +func (*RaftLocalState) ProtoMessage() {} +func (*RaftLocalState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{18} +} +func (m *RaftLocalState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftLocalState.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 *RaftLocalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLocalState.Merge(m, src) +} +func (m *RaftLocalState) XXX_Size() int { + return m.Size() +} +func (m *RaftLocalState) XXX_DiscardUnknown() { + xxx_messageInfo_RaftLocalState.DiscardUnknown(m) } -func (m *RaftLocalState) Reset() { *m = RaftLocalState{} } -func (m *RaftLocalState) String() string { return proto.CompactTextString(m) } -func (*RaftLocalState) ProtoMessage() {} -func (*RaftLocalState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{18} } +var xxx_messageInfo_RaftLocalState proto.InternalMessageInfo func (m *RaftLocalState) GetHardState() *eraftpb.HardState { if m != nil { @@ -994,17 +1435,48 @@ func (m *RaftLocalState) GetLastIndex() uint64 { } type RaftApplyState struct { - AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` - LastCommitIndex uint64 `protobuf:"varint,3,opt,name=last_commit_index,json=lastCommitIndex,proto3" json:"last_commit_index,omitempty"` - CommitIndex uint64 `protobuf:"varint,4,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` - CommitTerm uint64 `protobuf:"varint,5,opt,name=commit_term,json=commitTerm,proto3" json:"commit_term,omitempty"` - TruncatedState *RaftTruncatedState `protobuf:"bytes,2,opt,name=truncated_state,json=truncatedState" json:"truncated_state,omitempty"` + AppliedIndex uint64 `protobuf:"varint,1,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"` + LastCommitIndex uint64 `protobuf:"varint,3,opt,name=last_commit_index,json=lastCommitIndex,proto3" json:"last_commit_index,omitempty"` + CommitIndex uint64 `protobuf:"varint,4,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` + CommitTerm uint64 `protobuf:"varint,5,opt,name=commit_term,json=commitTerm,proto3" json:"commit_term,omitempty"` + TruncatedState *RaftTruncatedState `protobuf:"bytes,2,opt,name=truncated_state,json=truncatedState,proto3" json:"truncated_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RaftApplyState) Reset() { *m = RaftApplyState{} } +func (m *RaftApplyState) String() string { return proto.CompactTextString(m) } +func (*RaftApplyState) ProtoMessage() {} +func (*RaftApplyState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{19} +} +func (m *RaftApplyState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RaftApplyState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RaftApplyState.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 *RaftApplyState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftApplyState.Merge(m, src) +} +func (m *RaftApplyState) XXX_Size() int { + return m.Size() +} +func (m *RaftApplyState) XXX_DiscardUnknown() { + xxx_messageInfo_RaftApplyState.DiscardUnknown(m) } -func (m *RaftApplyState) Reset() { *m = RaftApplyState{} } -func (m *RaftApplyState) String() string { return proto.CompactTextString(m) } -func (*RaftApplyState) ProtoMessage() {} -func (*RaftApplyState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{19} } +var xxx_messageInfo_RaftApplyState proto.InternalMessageInfo func (m *RaftApplyState) GetAppliedIndex() uint64 { if m != nil { @@ -1042,15 +1514,46 @@ func (m *RaftApplyState) GetTruncatedState() *RaftTruncatedState { } type MergeState struct { - MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` - Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` - Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` + MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MergeState) Reset() { *m = MergeState{} } +func (m *MergeState) String() string { return proto.CompactTextString(m) } +func (*MergeState) ProtoMessage() {} +func (*MergeState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{20} +} +func (m *MergeState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MergeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MergeState.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 *MergeState) XXX_Merge(src proto.Message) { + xxx_messageInfo_MergeState.Merge(m, src) +} +func (m *MergeState) XXX_Size() int { + return m.Size() +} +func (m *MergeState) XXX_DiscardUnknown() { + xxx_messageInfo_MergeState.DiscardUnknown(m) } -func (m *MergeState) Reset() { *m = MergeState{} } -func (m *MergeState) String() string { return proto.CompactTextString(m) } -func (*MergeState) ProtoMessage() {} -func (*MergeState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{20} } +var xxx_messageInfo_MergeState proto.InternalMessageInfo func (m *MergeState) GetMinIndex() uint64 { if m != nil { @@ -1075,24 +1578,55 @@ func (m *MergeState) GetCommit() uint64 { type MergedRecord struct { SourceRegionId uint64 `protobuf:"varint,1,opt,name=source_region_id,json=sourceRegionId,proto3" json:"source_region_id,omitempty"` - SourceEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=source_epoch,json=sourceEpoch" json:"source_epoch,omitempty"` + SourceEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=source_epoch,json=sourceEpoch,proto3" json:"source_epoch,omitempty"` // Peers of source region when merge is committed. - SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers" json:"source_peers,omitempty"` + SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers,proto3" json:"source_peers,omitempty"` // Removed peers (by confchange) of source region when merge is committed. - SourceRemovedRecords []*metapb.Peer `protobuf:"bytes,9,rep,name=source_removed_records,json=sourceRemovedRecords" json:"source_removed_records,omitempty"` + SourceRemovedRecords []*metapb.Peer `protobuf:"bytes,9,rep,name=source_removed_records,json=sourceRemovedRecords,proto3" json:"source_removed_records,omitempty"` TargetRegionId uint64 `protobuf:"varint,4,opt,name=target_region_id,json=targetRegionId,proto3" json:"target_region_id,omitempty"` - TargetEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=target_epoch,json=targetEpoch" json:"target_epoch,omitempty"` - TargetPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=target_peers,json=targetPeers" json:"target_peers,omitempty"` + TargetEpoch *metapb.RegionEpoch `protobuf:"bytes,5,opt,name=target_epoch,json=targetEpoch,proto3" json:"target_epoch,omitempty"` + TargetPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=target_peers,json=targetPeers,proto3" json:"target_peers,omitempty"` // Commit merge index. Index uint64 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` // Prepare merge index. - SourceIndex uint64 `protobuf:"varint,8,opt,name=source_index,json=sourceIndex,proto3" json:"source_index,omitempty"` + SourceIndex uint64 `protobuf:"varint,8,opt,name=source_index,json=sourceIndex,proto3" json:"source_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MergedRecord) Reset() { *m = MergedRecord{} } +func (m *MergedRecord) String() string { return proto.CompactTextString(m) } +func (*MergedRecord) ProtoMessage() {} +func (*MergedRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{21} +} +func (m *MergedRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MergedRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MergedRecord.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 *MergedRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_MergedRecord.Merge(m, src) +} +func (m *MergedRecord) XXX_Size() int { + return m.Size() +} +func (m *MergedRecord) XXX_DiscardUnknown() { + xxx_messageInfo_MergedRecord.DiscardUnknown(m) } -func (m *MergedRecord) Reset() { *m = MergedRecord{} } -func (m *MergedRecord) String() string { return proto.CompactTextString(m) } -func (*MergedRecord) ProtoMessage() {} -func (*MergedRecord) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{21} } +var xxx_messageInfo_MergedRecord proto.InternalMessageInfo func (m *MergedRecord) GetSourceRegionId() uint64 { if m != nil { @@ -1159,24 +1693,55 @@ func (m *MergedRecord) GetSourceIndex() uint64 { type RegionLocalState struct { State PeerState `protobuf:"varint,1,opt,name=state,proto3,enum=raft_serverpb.PeerState" json:"state,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` - MergeState *MergeState `protobuf:"bytes,3,opt,name=merge_state,json=mergeState" json:"merge_state,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + MergeState *MergeState `protobuf:"bytes,3,opt,name=merge_state,json=mergeState,proto3" json:"merge_state,omitempty"` // The apply index corresponding to the storage when it's initialized. TabletIndex uint64 `protobuf:"varint,4,opt,name=tablet_index,json=tabletIndex,proto3" json:"tablet_index,omitempty"` // Raft doesn't guarantee peer will be removed in the end. In v1, peer finds // out its destiny by logs or broadcast; in v2, leader is responsible to // ensure removed peers are destroyed. // Note: only peers who has been part of this region can be in this list. - RemovedRecords []*metapb.Peer `protobuf:"bytes,5,rep,name=removed_records,json=removedRecords" json:"removed_records,omitempty"` + RemovedRecords []*metapb.Peer `protobuf:"bytes,5,rep,name=removed_records,json=removedRecords,proto3" json:"removed_records,omitempty"` // Merged peer can't be deleted like gc peers. Instead, leader needs to // query target peer to decide whether source peer can be destroyed. - MergedRecords []*MergedRecord `protobuf:"bytes,6,rep,name=merged_records,json=mergedRecords" json:"merged_records,omitempty"` + MergedRecords []*MergedRecord `protobuf:"bytes,6,rep,name=merged_records,json=mergedRecords,proto3" json:"merged_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionLocalState) Reset() { *m = RegionLocalState{} } +func (m *RegionLocalState) String() string { return proto.CompactTextString(m) } +func (*RegionLocalState) ProtoMessage() {} +func (*RegionLocalState) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{22} +} +func (m *RegionLocalState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionLocalState.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 *RegionLocalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLocalState.Merge(m, src) +} +func (m *RegionLocalState) XXX_Size() int { + return m.Size() +} +func (m *RegionLocalState) XXX_DiscardUnknown() { + xxx_messageInfo_RegionLocalState.DiscardUnknown(m) } -func (m *RegionLocalState) Reset() { *m = RegionLocalState{} } -func (m *RegionLocalState) String() string { return proto.CompactTextString(m) } -func (*RegionLocalState) ProtoMessage() {} -func (*RegionLocalState) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{22} } +var xxx_messageInfo_RegionLocalState proto.InternalMessageInfo func (m *RegionLocalState) GetState() PeerState { if m != nil { @@ -1221,19 +1786,48 @@ func (m *RegionLocalState) GetMergedRecords() []*MergedRecord { } type RegionSequenceNumberRelation struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` - ApplyState *RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState" json:"apply_state,omitempty"` - RegionState *RegionLocalState `protobuf:"bytes,4,opt,name=region_state,json=regionState" json:"region_state,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + ApplyState *RaftApplyState `protobuf:"bytes,3,opt,name=apply_state,json=applyState,proto3" json:"apply_state,omitempty"` + RegionState *RegionLocalState `protobuf:"bytes,4,opt,name=region_state,json=regionState,proto3" json:"region_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionSequenceNumberRelation) Reset() { *m = RegionSequenceNumberRelation{} } func (m *RegionSequenceNumberRelation) String() string { return proto.CompactTextString(m) } func (*RegionSequenceNumberRelation) ProtoMessage() {} func (*RegionSequenceNumberRelation) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{23} + return fileDescriptor_130ebc2f2c37a342, []int{23} +} +func (m *RegionSequenceNumberRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionSequenceNumberRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionSequenceNumberRelation.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 *RegionSequenceNumberRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSequenceNumberRelation.Merge(m, src) +} +func (m *RegionSequenceNumberRelation) XXX_Size() int { + return m.Size() +} +func (m *RegionSequenceNumberRelation) XXX_DiscardUnknown() { + xxx_messageInfo_RegionSequenceNumberRelation.DiscardUnknown(m) } +var xxx_messageInfo_RegionSequenceNumberRelation proto.InternalMessageInfo + func (m *RegionSequenceNumberRelation) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -1263,18 +1857,47 @@ func (m *RegionSequenceNumberRelation) GetRegionState() *RegionLocalState { } type AvailabilityContext struct { - FromRegionId uint64 `protobuf:"varint,1,opt,name=from_region_id,json=fromRegionId,proto3" json:"from_region_id,omitempty"` - FromRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=from_region_epoch,json=fromRegionEpoch" json:"from_region_epoch,omitempty"` - Unavailable bool `protobuf:"varint,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"` - Trimmed bool `protobuf:"varint,4,opt,name=trimmed,proto3" json:"trimmed,omitempty"` + FromRegionId uint64 `protobuf:"varint,1,opt,name=from_region_id,json=fromRegionId,proto3" json:"from_region_id,omitempty"` + FromRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=from_region_epoch,json=fromRegionEpoch,proto3" json:"from_region_epoch,omitempty"` + Unavailable bool `protobuf:"varint,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"` + Trimmed bool `protobuf:"varint,4,opt,name=trimmed,proto3" json:"trimmed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AvailabilityContext) Reset() { *m = AvailabilityContext{} } func (m *AvailabilityContext) String() string { return proto.CompactTextString(m) } func (*AvailabilityContext) ProtoMessage() {} func (*AvailabilityContext) Descriptor() ([]byte, []int) { - return fileDescriptorRaftServerpb, []int{24} + return fileDescriptor_130ebc2f2c37a342, []int{24} +} +func (m *AvailabilityContext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AvailabilityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AvailabilityContext.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 *AvailabilityContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_AvailabilityContext.Merge(m, src) +} +func (m *AvailabilityContext) XXX_Size() int { + return m.Size() } +func (m *AvailabilityContext) XXX_DiscardUnknown() { + xxx_messageInfo_AvailabilityContext.DiscardUnknown(m) +} + +var xxx_messageInfo_AvailabilityContext proto.InternalMessageInfo func (m *AvailabilityContext) GetFromRegionId() uint64 { if m != nil { @@ -1305,13 +1928,44 @@ func (m *AvailabilityContext) GetTrimmed() bool { } type FlushMemtable struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlushMemtable) Reset() { *m = FlushMemtable{} } +func (m *FlushMemtable) String() string { return proto.CompactTextString(m) } +func (*FlushMemtable) ProtoMessage() {} +func (*FlushMemtable) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{25} +} +func (m *FlushMemtable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlushMemtable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlushMemtable.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 *FlushMemtable) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushMemtable.Merge(m, src) +} +func (m *FlushMemtable) XXX_Size() int { + return m.Size() +} +func (m *FlushMemtable) XXX_DiscardUnknown() { + xxx_messageInfo_FlushMemtable.DiscardUnknown(m) } -func (m *FlushMemtable) Reset() { *m = FlushMemtable{} } -func (m *FlushMemtable) String() string { return proto.CompactTextString(m) } -func (*FlushMemtable) ProtoMessage() {} -func (*FlushMemtable) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{25} } +var xxx_messageInfo_FlushMemtable proto.InternalMessageInfo func (m *FlushMemtable) GetRegionId() uint64 { if m != nil { @@ -1321,15 +1975,46 @@ func (m *FlushMemtable) GetRegionId() uint64 { } type RefreshBuckets struct { - Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` - Sizes []uint64 `protobuf:"varint,3,rep,packed,name=sizes" json:"sizes,omitempty"` + Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Sizes []uint64 `protobuf:"varint,3,rep,packed,name=sizes,proto3" json:"sizes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RefreshBuckets) Reset() { *m = RefreshBuckets{} } +func (m *RefreshBuckets) String() string { return proto.CompactTextString(m) } +func (*RefreshBuckets) ProtoMessage() {} +func (*RefreshBuckets) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{26} +} +func (m *RefreshBuckets) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RefreshBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RefreshBuckets.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 *RefreshBuckets) XXX_Merge(src proto.Message) { + xxx_messageInfo_RefreshBuckets.Merge(m, src) +} +func (m *RefreshBuckets) XXX_Size() int { + return m.Size() +} +func (m *RefreshBuckets) XXX_DiscardUnknown() { + xxx_messageInfo_RefreshBuckets.DiscardUnknown(m) } -func (m *RefreshBuckets) Reset() { *m = RefreshBuckets{} } -func (m *RefreshBuckets) String() string { return proto.CompactTextString(m) } -func (*RefreshBuckets) ProtoMessage() {} -func (*RefreshBuckets) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{26} } +var xxx_messageInfo_RefreshBuckets proto.InternalMessageInfo func (m *RefreshBuckets) GetVersion() uint64 { if m != nil { @@ -1359,15 +2044,46 @@ type CheckGcPeer struct { // The region ID to be checked if should be destroyed. CheckRegionId uint64 `protobuf:"varint,2,opt,name=check_region_id,json=checkRegionId,proto3" json:"check_region_id,omitempty"` // The epoch of the region to be checked. - CheckRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=check_region_epoch,json=checkRegionEpoch" json:"check_region_epoch,omitempty"` + CheckRegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=check_region_epoch,json=checkRegionEpoch,proto3" json:"check_region_epoch,omitempty"` // The peer to be checked. - CheckPeer *metapb.Peer `protobuf:"bytes,4,opt,name=check_peer,json=checkPeer" json:"check_peer,omitempty"` + CheckPeer *metapb.Peer `protobuf:"bytes,4,opt,name=check_peer,json=checkPeer,proto3" json:"check_peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CheckGcPeer) Reset() { *m = CheckGcPeer{} } +func (m *CheckGcPeer) String() string { return proto.CompactTextString(m) } +func (*CheckGcPeer) ProtoMessage() {} +func (*CheckGcPeer) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{27} +} +func (m *CheckGcPeer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckGcPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckGcPeer.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 *CheckGcPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckGcPeer.Merge(m, src) +} +func (m *CheckGcPeer) XXX_Size() int { + return m.Size() +} +func (m *CheckGcPeer) XXX_DiscardUnknown() { + xxx_messageInfo_CheckGcPeer.DiscardUnknown(m) } -func (m *CheckGcPeer) Reset() { *m = CheckGcPeer{} } -func (m *CheckGcPeer) String() string { return proto.CompactTextString(m) } -func (*CheckGcPeer) ProtoMessage() {} -func (*CheckGcPeer) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{27} } +var xxx_messageInfo_CheckGcPeer proto.InternalMessageInfo func (m *CheckGcPeer) GetFromRegionId() uint64 { if m != nil { @@ -1404,22 +2120,53 @@ type ExtraMessage struct { // it's the voter_replicated_index. Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // In `MsgCheckStalePeerResponse`, it's the peers that receiver can continue to query. - CheckPeers []*metapb.Peer `protobuf:"bytes,3,rep,name=check_peers,json=checkPeers" json:"check_peers,omitempty"` + CheckPeers []*metapb.Peer `protobuf:"bytes,3,rep,name=check_peers,json=checkPeers,proto3" json:"check_peers,omitempty"` WaitData bool `protobuf:"varint,4,opt,name=wait_data,json=waitData,proto3" json:"wait_data,omitempty"` // Flag for forcely wake up hibernate regions if true. ForcelyAwaken bool `protobuf:"varint,5,opt,name=forcely_awaken,json=forcelyAwaken,proto3" json:"forcely_awaken,omitempty"` - CheckGcPeer *CheckGcPeer `protobuf:"bytes,6,opt,name=check_gc_peer,json=checkGcPeer" json:"check_gc_peer,omitempty"` - FlushMemtable *FlushMemtable `protobuf:"bytes,7,opt,name=flush_memtable,json=flushMemtable" json:"flush_memtable,omitempty"` + CheckGcPeer *CheckGcPeer `protobuf:"bytes,6,opt,name=check_gc_peer,json=checkGcPeer,proto3" json:"check_gc_peer,omitempty"` + FlushMemtable *FlushMemtable `protobuf:"bytes,7,opt,name=flush_memtable,json=flushMemtable,proto3" json:"flush_memtable,omitempty"` // Used by `MsgAvailabilityRequest` and `MsgAvailabilityResponse` in v2. - AvailabilityContext *AvailabilityContext `protobuf:"bytes,8,opt,name=availability_context,json=availabilityContext" json:"availability_context,omitempty"` + AvailabilityContext *AvailabilityContext `protobuf:"bytes,8,opt,name=availability_context,json=availabilityContext,proto3" json:"availability_context,omitempty"` // notice the peer to refresh buckets version - RefreshBuckets *RefreshBuckets `protobuf:"bytes,9,opt,name=refresh_buckets,json=refreshBuckets" json:"refresh_buckets,omitempty"` + RefreshBuckets *RefreshBuckets `protobuf:"bytes,9,opt,name=refresh_buckets,json=refreshBuckets,proto3" json:"refresh_buckets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtraMessage) Reset() { *m = ExtraMessage{} } +func (m *ExtraMessage) String() string { return proto.CompactTextString(m) } +func (*ExtraMessage) ProtoMessage() {} +func (*ExtraMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_130ebc2f2c37a342, []int{28} +} +func (m *ExtraMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExtraMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExtraMessage.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 *ExtraMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtraMessage.Merge(m, src) +} +func (m *ExtraMessage) XXX_Size() int { + return m.Size() +} +func (m *ExtraMessage) XXX_DiscardUnknown() { + xxx_messageInfo_ExtraMessage.DiscardUnknown(m) } -func (m *ExtraMessage) Reset() { *m = ExtraMessage{} } -func (m *ExtraMessage) String() string { return proto.CompactTextString(m) } -func (*ExtraMessage) ProtoMessage() {} -func (*ExtraMessage) Descriptor() ([]byte, []int) { return fileDescriptorRaftServerpb, []int{28} } +var xxx_messageInfo_ExtraMessage proto.InternalMessageInfo func (m *ExtraMessage) GetType() ExtraMessageType { if m != nil { @@ -1485,6 +2232,8 @@ func (m *ExtraMessage) GetRefreshBuckets() *RefreshBuckets { } func init() { + proto.RegisterEnum("raft_serverpb.PeerState", PeerState_name, PeerState_value) + proto.RegisterEnum("raft_serverpb.ExtraMessageType", ExtraMessageType_name, ExtraMessageType_value) proto.RegisterType((*RaftMessage)(nil), "raft_serverpb.RaftMessage") proto.RegisterType((*RaftTruncatedState)(nil), "raft_serverpb.RaftTruncatedState") proto.RegisterType((*SnapshotCFFile)(nil), "raft_serverpb.SnapshotCFFile") @@ -1514,13 +2263,163 @@ func init() { proto.RegisterType((*RefreshBuckets)(nil), "raft_serverpb.RefreshBuckets") proto.RegisterType((*CheckGcPeer)(nil), "raft_serverpb.CheckGcPeer") proto.RegisterType((*ExtraMessage)(nil), "raft_serverpb.ExtraMessage") - proto.RegisterEnum("raft_serverpb.PeerState", PeerState_name, PeerState_value) - proto.RegisterEnum("raft_serverpb.ExtraMessageType", ExtraMessageType_name, ExtraMessageType_value) } + +func init() { proto.RegisterFile("raft_serverpb.proto", fileDescriptor_130ebc2f2c37a342) } + +var fileDescriptor_130ebc2f2c37a342 = []byte{ + // 2320 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1b, 0x59, + 0xf5, 0xb7, 0x1e, 0xd6, 0xe3, 0xe8, 0x61, 0xe5, 0x3a, 0x4e, 0x34, 0xf1, 0x24, 0x71, 0x3a, 0x93, + 0xc4, 0x93, 0xf9, 0xff, 0x9d, 0x1a, 0x4f, 0x18, 0xa6, 0x86, 0xaa, 0x80, 0xed, 0x24, 0x38, 0x04, + 0xa5, 0x52, 0xd7, 0x4e, 0x52, 0xac, 0xba, 0xae, 0x5a, 0x47, 0x52, 0xa3, 0x7e, 0x4d, 0xdf, 0x2b, + 0x25, 0x9a, 0xe2, 0x5b, 0xb0, 0x99, 0x25, 0x4b, 0x8a, 0x0d, 0xc5, 0x8e, 0x0f, 0xc0, 0x82, 0x82, + 0x0d, 0x4b, 0x96, 0x54, 0xd8, 0xb0, 0x84, 0x25, 0x3b, 0xea, 0x3e, 0xba, 0xd5, 0x2d, 0x2b, 0x0e, + 0x64, 0xa5, 0x7b, 0xcf, 0xe3, 0xde, 0xf3, 0xf8, 0x9d, 0x73, 0x4f, 0x0b, 0x36, 0x63, 0x36, 0x14, + 0x36, 0xc7, 0x78, 0x86, 0x71, 0xd4, 0xdf, 0x8b, 0xe2, 0x50, 0x84, 0xa4, 0x95, 0x23, 0x5e, 0x69, + 0xa1, 0xdc, 0x27, 0xdc, 0x2b, 0x4d, 0x1f, 0x05, 0x4b, 0x77, 0xad, 0xc9, 0x2c, 0x8e, 0x9c, 0x74, + 0xdb, 0x19, 0xb8, 0x7c, 0x62,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0, 0x4c, 0x8e, 0xec, 0xa1, 0x60, 0xe4, 0x2b, 0xa8, 0x39, 0x43, 0x7b, 0xe8, 0x7a, 0xc8, + 0xbb, 0x85, 0x9d, 0xd2, 0x6e, 0x63, 0xff, 0xea, 0x52, 0xb8, 0xf2, 0x16, 0xd0, 0xaa, 0x33, 0x94, + 0xbf, 0x9c, 0x5c, 0x87, 0xc6, 0x30, 0x8c, 0xed, 0x3e, 0xf3, 0x58, 0xe0, 0x68, 0x0b, 0x6a, 0x14, + 0x86, 0x61, 0x7c, 0xa8, 0x29, 0x89, 0xc0, 0x6b, 0x57, 0x04, 0xc8, 0xb9, 0x32, 0x45, 0x0b, 0xbc, + 0xd2, 0x14, 0x19, 0x08, 0x85, 0x01, 0x85, 0xcc, 0x32, 0xd5, 0x1b, 0xb2, 0x0f, 0x5b, 0x23, 0x0c, + 0x30, 0x66, 0x02, 0xed, 0xc1, 0x34, 0x66, 0xb2, 0xbc, 0x6c, 0x8e, 0x8e, 0x82, 0x63, 0x99, 0x6e, + 0x26, 0xcc, 0x87, 0x86, 0x77, 0x82, 0x0e, 0xd9, 0x85, 0x8e, 0x60, 0x7d, 0x0f, 0x85, 0xcd, 0x03, + 0x16, 0xd9, 0x11, 0x13, 0x63, 0x85, 0xc2, 0x3a, 0x6d, 0x6b, 0xba, 0x74, 0xe2, 0x39, 0x13, 0x63, + 0x72, 0x17, 0x2e, 0x38, 0xa1, 0xef, 0xbb, 0xc2, 0x56, 0x61, 0xb7, 0xc7, 0x6e, 0x20, 0x14, 0x20, + 0xcb, 0x74, 0x43, 0x33, 0x9e, 0x48, 0xfa, 0xb1, 0x1b, 0x08, 0xeb, 0x67, 0xd0, 0x4a, 0x9d, 0x1f, + 0x4f, 0x83, 0x09, 0xb9, 0xbf, 0x28, 0xa6, 0x82, 0x82, 0xd6, 0x95, 0xa5, 0x58, 0x65, 0x0a, 0x7d, + 0x51, 0x56, 0x04, 0xca, 0x03, 0x26, 0x98, 0x8a, 0x50, 0x93, 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 0x40, 0x02, 0x07, 0x9f, 0x4d, 0xfd, 0x3e, + 0xc6, 0x14, 0x3d, 0x35, 0xa6, 0x9f, 0xff, 0xe1, 0x7b, 0x07, 0x36, 0xb8, 0x51, 0xb3, 0x03, 0xa5, + 0x67, 0x7a, 0x57, 0x9b, 0xe7, 0x4e, 0x23, 0x0f, 0x64, 0x17, 0x8e, 0xbc, 0x79, 0x2e, 0x80, 0x57, + 0x57, 0x34, 0x85, 0x45, 0x87, 0x93, 0xfd, 0x38, 0xed, 0x76, 0x87, 0xe9, 0x37, 0xae, 0x3e, 0x40, + 0x0f, 0x19, 0xd7, 0x97, 0x0f, 0x58, 0xc2, 0x43, 0xf2, 0xbd, 0xab, 0x1b, 0xca, 0xef, 0x0b, 0xb0, + 0x79, 0x30, 0x63, 0xae, 0xc7, 0xfa, 0xae, 0xe7, 0x8a, 0xf9, 0x51, 0x18, 0x08, 0x7c, 0x23, 0xc8, + 0x27, 0xd0, 0x56, 0x5f, 0xef, 0xcb, 0x6e, 0x36, 0x25, 0x35, 0xad, 0x88, 0x1f, 0xc2, 0x85, 0xac, + 0xd4, 0x7b, 0xab, 0x7d, 0x63, 0xa1, 0xad, 0x4b, 0x63, 0x07, 0x1a, 0xd3, 0x80, 0xe9, 0xfb, 0x3d, + 0x34, 0xdf, 0x55, 0x59, 0x92, 0x7c, 0xb8, 0x45, 0xec, 0xfa, 0x3e, 0xea, 0xaa, 0xac, 0xd1, 0x64, + 0x6b, 0xfd, 0x1f, 0xb4, 0x1e, 0x7b, 0x53, 0x3e, 0xee, 0xa1, 0xaf, 0x70, 0x73, 0x6e, 0x56, 0xac, + 0x53, 0x68, 0x53, 0x1c, 0xc6, 0xc8, 0xc7, 0x87, 0x53, 0x67, 0x82, 0x82, 0x67, 0x47, 0x82, 0x42, + 0x7e, 0x24, 0x20, 0x50, 0x9e, 0xe0, 0x9c, 0x77, 0x8b, 0x3b, 0x25, 0x39, 0x70, 0xcb, 0xb5, 0x7a, + 0xe7, 0xdc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9, 0x5c, 0x94, 0x61, 0x18, + 0x95, 0x75, 0x72, 0x07, 0x6e, 0x2a, 0xbb, 0x7e, 0x8e, 0x8e, 0xd0, 0x23, 0xeb, 0xe8, 0x88, 0x4d, + 0x39, 0x0e, 0x0e, 0xe7, 0x3d, 0xf4, 0xc3, 0x78, 0xae, 0xfe, 0xfe, 0xea, 0x54, 0xc8, 0x15, 0xb8, + 0xd4, 0xe3, 0xa3, 0x6c, 0x82, 0x92, 0xe3, 0xab, 0x64, 0x1b, 0x2e, 0x9f, 0xe1, 0x99, 0x1b, 0x6a, + 0xc4, 0x82, 0x6b, 0x3d, 0x3e, 0x7a, 0x19, 0x0a, 0x69, 0x6a, 0xe4, 0xb9, 0x6a, 0x9c, 0x53, 0x6f, + 0x5c, 0x72, 0x40, 0x9d, 0xdc, 0x84, 0xeb, 0xef, 0x94, 0x31, 0x07, 0x01, 0xb9, 0x08, 0x9d, 0x1e, + 0x1f, 0x19, 0xa4, 0x1a, 0xd5, 0x86, 0x89, 0x54, 0x42, 0x35, 0xc2, 0x4d, 0x23, 0x9c, 0x83, 0x66, + 0xa7, 0x65, 0x84, 0xf3, 0x98, 0xe8, 0xb4, 0x0f, 0x6f, 0xff, 0xf5, 0xd7, 0xb5, 0xc2, 0x1f, 0xdf, + 0x5e, 0x2b, 0xfc, 0xe5, 0xed, 0xb5, 0xc2, 0xdf, 0xde, 0x5e, 0x2b, 0x7c, 0xf7, 0xf7, 0x6b, 0x6b, + 0xd0, 0x09, 0xe3, 0xd1, 0x9e, 0x70, 0x27, 0xb3, 0xbd, 0xc9, 0x4c, 0xfd, 0x01, 0xdc, 0xaf, 0xa8, + 0x9f, 0x2f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x00, 0x13, 0x20, 0xd2, 0x90, 0x16, 0x00, 0x00, +} + func (m *RaftMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1528,115 +2427,139 @@ func (m *RaftMessage) Marshal() (dAtA []byte, err error) { } func (m *RaftMessage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.FromPeer != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromPeer.Size())) - n1, err := m.FromPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.DiskUsage != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) + i-- + dAtA[i] = 0x60 } - if m.ToPeer != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ToPeer.Size())) - n2, err := m.ToPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if len(m.ExtraCtx) > 0 { + i -= len(m.ExtraCtx) + copy(dAtA[i:], m.ExtraCtx) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.ExtraCtx))) + i-- + dAtA[i] = 0x5a } - if m.Message != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) - n3, err := m.Message.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ExtraMsg != nil { + { + size, err := m.ExtraMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x52 } - if m.RegionEpoch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n4, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.MergeTarget != nil { + { + size, err := m.MergeTarget.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0x4a + } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x42 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x3a } if m.IsTombstone { - dAtA[i] = 0x30 - i++ + i-- if m.IsTombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.StartKey) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + i-- + dAtA[i] = 0x30 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - if m.MergeTarget != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MergeTarget.Size())) - n5, err := m.MergeTarget.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Message != nil { + { + size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x22 } - if m.ExtraMsg != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ExtraMsg.Size())) - n6, err := m.ExtraMsg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ToPeer != nil { + { + size, err := m.ToPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } - if len(m.ExtraCtx) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.ExtraCtx))) - i += copy(dAtA[i:], m.ExtraCtx) + if m.FromPeer != nil { + { + size, err := m.FromPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.DiskUsage != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) + if m.RegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RaftTruncatedState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1644,27 +2567,36 @@ func (m *RaftTruncatedState) Marshal() (dAtA []byte, err error) { } func (m *RaftTruncatedState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftTruncatedState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Index != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Term != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x10 + } + if m.Index != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotCFFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1672,33 +2604,43 @@ func (m *SnapshotCFFile) Marshal() (dAtA []byte, err error) { } func (m *SnapshotCFFile) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotCFFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Cf) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Cf))) - i += copy(dAtA[i:], m.Cf) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Checksum != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) + i-- + dAtA[i] = 0x18 } if m.Size_ != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Size_)) + i-- + dAtA[i] = 0x10 } - if m.Checksum != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) + if len(m.Cf) > 0 { + i -= len(m.Cf) + copy(dAtA[i:], m.Cf) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Cf))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1706,70 +2648,82 @@ func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { } func (m *SnapshotMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.CfFiles) > 0 { - for _, msg := range m.CfFiles { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ForBalance { - dAtA[i] = 0x10 - i++ - if m.ForBalance { + if m.CommitIndexHint != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndexHint)) + i-- + dAtA[i] = 0x38 + } + if len(m.TabletSnapPath) > 0 { + i -= len(m.TabletSnapPath) + copy(dAtA[i:], m.TabletSnapPath) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TabletSnapPath))) + i-- + dAtA[i] = 0x32 + } + if m.GenerateDurationSec != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) + i-- + dAtA[i] = 0x28 + } + if m.Start != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) + i-- + dAtA[i] = 0x20 + } + if m.ForWitness { + i-- + if m.ForWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.ForWitness { + i-- dAtA[i] = 0x18 - i++ - if m.ForWitness { + } + if m.ForBalance { + i-- + if m.ForBalance { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Start != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) - } - if m.GenerateDurationSec != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) - } - if len(m.TabletSnapPath) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TabletSnapPath))) - i += copy(dAtA[i:], m.TabletSnapPath) + i-- + dAtA[i] = 0x10 } - if m.CommitIndexHint != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndexHint)) + if len(m.CfFiles) > 0 { + for iNdEx := len(m.CfFiles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CfFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *SnapshotChunk) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1777,33 +2731,45 @@ func (m *SnapshotChunk) Marshal() (dAtA []byte, err error) { } func (m *SnapshotChunk) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Message != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) - n7, err := m.Message.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Data) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x12 + } + if m.Message != nil { + { + size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Done) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1811,17 +2777,26 @@ func (m *Done) Marshal() (dAtA []byte, err error) { } func (m *Done) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Done) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *TabletSnapshotFileMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1829,40 +2804,52 @@ func (m *TabletSnapshotFileMeta) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotFileMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotFileMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FileSize != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.FileName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) - i += copy(dAtA[i:], m.FileName) + if len(m.TrailingChunk) > 0 { + i -= len(m.TrailingChunk) + copy(dAtA[i:], m.TrailingChunk) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TrailingChunk))) + i-- + dAtA[i] = 0x22 } if len(m.HeadChunk) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.HeadChunk) + copy(dAtA[i:], m.HeadChunk) i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.HeadChunk))) - i += copy(dAtA[i:], m.HeadChunk) + i-- + dAtA[i] = 0x1a } - if len(m.TrailingChunk) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TrailingChunk))) - i += copy(dAtA[i:], m.TrailingChunk) + if len(m.FileName) > 0 { + i -= len(m.FileName) + copy(dAtA[i:], m.FileName) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) + i-- + dAtA[i] = 0x12 + } + if m.FileSize != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotPreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1870,39 +2857,50 @@ func (m *TabletSnapshotPreview) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotPreview) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Metas) > 0 { - for _, msg := range m.Metas { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.End { - dAtA[i] = 0x10 - i++ + i-- if m.End { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if len(m.Metas) > 0 { + for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotFileChunk) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1910,50 +2908,64 @@ func (m *TabletSnapshotFileChunk) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotFileChunk) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotFileChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FileSize != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.FileName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) - i += copy(dAtA[i:], m.FileName) + if m.Key != nil { + { + size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Iv) > 0 { + i -= len(m.Iv) + copy(dAtA[i:], m.Iv) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Iv))) + i-- + dAtA[i] = 0x22 } if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Data) + copy(dAtA[i:], m.Data) i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i-- + dAtA[i] = 0x1a } - if len(m.Iv) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Iv))) - i += copy(dAtA[i:], m.Iv) + if len(m.FileName) > 0 { + i -= len(m.FileName) + copy(dAtA[i:], m.FileName) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName))) + i-- + dAtA[i] = 0x12 } - if m.Key != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Key.Size())) - n8, err := m.Key.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + if m.FileSize != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotHead) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1961,37 +2973,48 @@ func (m *TabletSnapshotHead) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotHead) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotHead) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Message != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Message.Size())) - n9, err := m.Message.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.UseCache { - dAtA[i] = 0x10 - i++ + i-- if m.UseCache { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 + } + if m.Message != nil { + { + size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotEnd) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1999,22 +3022,31 @@ func (m *TabletSnapshotEnd) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotEnd) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotEnd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Checksum != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Checksum)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2022,80 +3054,119 @@ func (m *TabletSnapshotRequest) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Payload != nil { - nn10, err := m.Payload.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn10 } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotRequest_Head) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotRequest_Head) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Head != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Head.Size())) - n11, err := m.Head.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Head.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotRequest_Preview) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotRequest_Preview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Preview != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Preview.Size())) - n12, err := m.Preview.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Preview.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotRequest_Chunk) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotRequest_Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Chunk != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Chunk.Size())) - n13, err := m.Chunk.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Chunk.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotRequest_End) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotRequest_End) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.End != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.End.Size())) - n14, err := m.End.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *AcceptedSnapshotFiles) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2103,32 +3174,35 @@ func (m *AcceptedSnapshotFiles) Marshal() (dAtA []byte, err error) { } func (m *AcceptedSnapshotFiles) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AcceptedSnapshotFiles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.FileName) > 0 { - for _, s := range m.FileName { + for iNdEx := len(m.FileName) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FileName[iNdEx]) + copy(dAtA[i:], m.FileName[iNdEx]) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.FileName[iNdEx]))) + i-- dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + return len(dAtA) - i, nil } func (m *TabletSnapshotResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2136,27 +3210,38 @@ func (m *TabletSnapshotResponse) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TabletSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Files != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Files.Size())) - n15, err := m.Files.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Files.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *KeyValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2164,29 +3249,40 @@ func (m *KeyValue) Marshal() (dAtA []byte, err error) { } func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RaftSnapshotData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2194,83 +3290,102 @@ func (m *RaftSnapshotData) Marshal() (dAtA []byte, err error) { } func (m *RaftSnapshotData) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftSnapshotData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Region != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Region.Size())) - n16, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.MergedRecords) > 0 { + for iNdEx := len(m.MergedRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MergedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a } - i += n16 } - if m.FileSize != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + if len(m.RemovedRecords) > 0 { + for iNdEx := len(m.RemovedRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RemovedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - if len(m.Data) > 0 { - for _, msg := range m.Data { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } if m.Version != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x20 } - if m.Meta != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Meta.Size())) - n17, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if len(m.RemovedRecords) > 0 { - for _, msg := range m.RemovedRecords { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.Data) > 0 { + for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if len(m.MergedRecords) > 0 { - for _, msg := range m.MergedRecords { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.FileSize != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FileSize)) + i-- + dAtA[i] = 0x10 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StoreIdent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2278,32 +3393,41 @@ func (m *StoreIdent) Marshal() (dAtA []byte, err error) { } func (m *StoreIdent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreIdent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ApiVersion != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApiVersion)) + i-- + dAtA[i] = 0x18 } if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 } - if m.ApiVersion != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApiVersion)) + if m.ClusterId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *StoreRecoverState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2311,22 +3435,31 @@ func (m *StoreRecoverState) Marshal() (dAtA []byte, err error) { } func (m *StoreRecoverState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreRecoverState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Seqno != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Seqno)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RaftLocalState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2334,32 +3467,43 @@ func (m *RaftLocalState) Marshal() (dAtA []byte, err error) { } func (m *RaftLocalState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftLocalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.HardState != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.HardState.Size())) - n18, err := m.HardState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.LastIndex != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastIndex)) + i-- + dAtA[i] = 0x10 + } + if m.HardState != nil { + { + size, err := m.HardState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RaftApplyState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2367,47 +3511,58 @@ func (m *RaftApplyState) Marshal() (dAtA []byte, err error) { } func (m *RaftApplyState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RaftApplyState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.AppliedIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AppliedIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.TruncatedState != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TruncatedState.Size())) - n19, err := m.TruncatedState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 + if m.CommitTerm != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitTerm)) + i-- + dAtA[i] = 0x28 + } + if m.CommitIndex != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndex)) + i-- + dAtA[i] = 0x20 } if m.LastCommitIndex != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.LastCommitIndex)) + i-- + dAtA[i] = 0x18 } - if m.CommitIndex != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndex)) + if m.TruncatedState != nil { + { + size, err := m.TruncatedState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.CommitTerm != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitTerm)) + if m.AppliedIndex != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AppliedIndex)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MergeState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2415,37 +3570,48 @@ func (m *MergeState) Marshal() (dAtA []byte, err error) { } func (m *MergeState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MergeState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.MinIndex != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MinIndex)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Commit != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x18 } if m.Target != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Target.Size())) - n20, err := m.Target.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x12 } - if m.Commit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Commit)) + if m.MinIndex != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MinIndex)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *MergedRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2453,93 +3619,112 @@ func (m *MergedRecord) Marshal() (dAtA []byte, err error) { } func (m *MergedRecord) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MergedRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SourceRegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceRegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.SourceEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceEpoch.Size())) - n21, err := m.SourceEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.SourceRemovedRecords) > 0 { + for iNdEx := len(m.SourceRemovedRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SourceRemovedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a } - i += n21 } - if len(m.SourcePeers) > 0 { - for _, msg := range m.SourcePeers { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.TargetRegionId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetRegionId)) + if m.SourceIndex != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) + i-- + dAtA[i] = 0x40 } - if m.TargetEpoch != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetEpoch.Size())) - n22, err := m.TargetEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 + if m.Index != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x38 } if len(m.TargetPeers) > 0 { - for _, msg := range m.TargetPeers { + for iNdEx := len(m.TargetPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TargetPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.TargetEpoch != nil { + { + size, err := m.TargetEpoch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } - if m.Index != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + if m.TargetRegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetRegionId)) + i-- + dAtA[i] = 0x20 } - if m.SourceIndex != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) + if len(m.SourcePeers) > 0 { + for iNdEx := len(m.SourcePeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SourcePeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - if len(m.SourceRemovedRecords) > 0 { - for _, msg := range m.SourceRemovedRecords { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.SourceEpoch != nil { + { + size, err := m.SourceEpoch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 + } + if m.SourceRegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceRegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionLocalState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2547,71 +3732,88 @@ func (m *RegionLocalState) Marshal() (dAtA []byte, err error) { } func (m *RegionLocalState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionLocalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.State != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.State)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Region.Size())) - n23, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.MergedRecords) > 0 { + for iNdEx := len(m.MergedRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MergedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 } - i += n23 } - if m.MergeState != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.MergeState.Size())) - n24, err := m.MergeState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.RemovedRecords) > 0 { + for iNdEx := len(m.RemovedRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RemovedRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - i += n24 } if m.TabletIndex != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TabletIndex)) + i-- + dAtA[i] = 0x20 } - if len(m.RemovedRecords) > 0 { - for _, msg := range m.RemovedRecords { - dAtA[i] = 0x2a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.MergeState != nil { + { + size, err := m.MergeState.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if len(m.MergedRecords) > 0 { - for _, msg := range m.MergedRecords { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 + } + if m.State != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RegionSequenceNumberRelation) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2619,47 +3821,60 @@ func (m *RegionSequenceNumberRelation) Marshal() (dAtA []byte, err error) { } func (m *RegionSequenceNumberRelation) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionSequenceNumberRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.SequenceNumber != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SequenceNumber)) + if m.RegionState != nil { + { + size, err := m.RegionState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if m.ApplyState != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.ApplyState.Size())) - n25, err := m.ApplyState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ApplyState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n25 + i-- + dAtA[i] = 0x1a } - if m.RegionState != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionState.Size())) - n26, err := m.RegionState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n26 + if m.SequenceNumber != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SequenceNumber)) + i-- + dAtA[i] = 0x10 + } + if m.RegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *AvailabilityContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2667,52 +3882,63 @@ func (m *AvailabilityContext) Marshal() (dAtA []byte, err error) { } func (m *AvailabilityContext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AvailabilityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FromRegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.FromRegionEpoch != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionEpoch.Size())) - n27, err := m.FromRegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Trimmed { + i-- + if m.Trimmed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n27 + i-- + dAtA[i] = 0x20 } if m.Unavailable { - dAtA[i] = 0x18 - i++ + i-- if m.Unavailable { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if m.Trimmed { - dAtA[i] = 0x20 - i++ - if m.Trimmed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.FromRegionEpoch != nil { + { + size, err := m.FromRegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0x12 } - return i, nil + if m.FromRegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *FlushMemtable) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2720,22 +3946,31 @@ func (m *FlushMemtable) Marshal() (dAtA []byte, err error) { } func (m *FlushMemtable) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlushMemtable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RefreshBuckets) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2743,47 +3978,58 @@ func (m *RefreshBuckets) Marshal() (dAtA []byte, err error) { } func (m *RefreshBuckets) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RefreshBuckets) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Version != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) - } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - dAtA[i] = 0x12 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(b))) - i += copy(dAtA[i:], b) - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Sizes) > 0 { - dAtA29 := make([]byte, len(m.Sizes)*10) - var j28 int + dAtA28 := make([]byte, len(m.Sizes)*10) + var j27 int for _, num := range m.Sizes { for num >= 1<<7 { - dAtA29[j28] = uint8(uint64(num)&0x7f | 0x80) + dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j28++ + j27++ } - dAtA29[j28] = uint8(num) - j28++ + dAtA28[j27] = uint8(num) + j27++ } + i -= j27 + copy(dAtA[i:], dAtA28[:j27]) + i = encodeVarintRaftServerpb(dAtA, i, uint64(j27)) + i-- dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(j28)) - i += copy(dAtA[i:], dAtA29[:j28]) } - return i, nil + 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 = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if m.Version != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CheckGcPeer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2791,47 +4037,60 @@ func (m *CheckGcPeer) Marshal() (dAtA []byte, err error) { } func (m *CheckGcPeer) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckGcPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FromRegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.CheckRegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionId)) + if m.CheckPeer != nil { + { + size, err := m.CheckPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if m.CheckRegionEpoch != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionEpoch.Size())) - n30, err := m.CheckRegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CheckRegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i += n30 + i-- + dAtA[i] = 0x1a } - if m.CheckPeer != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckPeer.Size())) - n31, err := m.CheckPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n31 + if m.CheckRegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckRegionId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.FromRegionId != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ExtraMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2839,105 +4098,129 @@ func (m *ExtraMessage) Marshal() (dAtA []byte, err error) { } func (m *ExtraMessage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExtraMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Index != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + if m.RefreshBuckets != nil { + { + size, err := m.RefreshBuckets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a } - if len(m.CheckPeers) > 0 { - for _, msg := range m.CheckPeers { - dAtA[i] = 0x1a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.AvailabilityContext != nil { + { + size, err := m.AvailabilityContext.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x42 } - if m.WaitData { - dAtA[i] = 0x20 - i++ - if m.WaitData { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.FlushMemtable != nil { + { + size, err := m.FlushMemtable.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.CheckGcPeer != nil { + { + size, err := m.CheckGcPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0x32 } if m.ForcelyAwaken { - dAtA[i] = 0x28 - i++ + i-- if m.ForcelyAwaken { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.CheckGcPeer != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckGcPeer.Size())) - n32, err := m.CheckGcPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n32 - } - if m.FlushMemtable != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FlushMemtable.Size())) - n33, err := m.FlushMemtable.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n33 + i-- + dAtA[i] = 0x28 } - if m.AvailabilityContext != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.AvailabilityContext.Size())) - n34, err := m.AvailabilityContext.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.WaitData { + i-- + if m.WaitData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n34 + i-- + dAtA[i] = 0x20 } - if m.RefreshBuckets != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RefreshBuckets.Size())) - n35, err := m.RefreshBuckets.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.CheckPeers) > 0 { + for iNdEx := len(m.CheckPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CheckPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i += n35 } - return i, nil + if m.Index != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x10 + } + if m.Type != 0 { + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func encodeVarintRaftServerpb(dAtA []byte, offset int, v uint64) int { + offset -= sovRaftServerpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *RaftMessage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -2985,10 +4268,16 @@ func (m *RaftMessage) Size() (n int) { if m.DiskUsage != 0 { n += 1 + sovRaftServerpb(uint64(m.DiskUsage)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftTruncatedState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Index != 0 { @@ -2997,10 +4286,16 @@ func (m *RaftTruncatedState) Size() (n int) { if m.Term != 0 { n += 1 + sovRaftServerpb(uint64(m.Term)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotCFFile) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Cf) @@ -3013,10 +4308,16 @@ func (m *SnapshotCFFile) Size() (n int) { if m.Checksum != 0 { n += 1 + sovRaftServerpb(uint64(m.Checksum)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.CfFiles) > 0 { @@ -3044,10 +4345,16 @@ func (m *SnapshotMeta) Size() (n int) { if m.CommitIndexHint != 0 { n += 1 + sovRaftServerpb(uint64(m.CommitIndexHint)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SnapshotChunk) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Message != nil { @@ -3058,16 +4365,28 @@ func (m *SnapshotChunk) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Done) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotFileMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FileSize != 0 { @@ -3085,10 +4404,16 @@ func (m *TabletSnapshotFileMeta) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotPreview) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Metas) > 0 { @@ -3100,10 +4425,16 @@ func (m *TabletSnapshotPreview) Size() (n int) { if m.End { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotFileChunk) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FileSize != 0 { @@ -3125,10 +4456,16 @@ func (m *TabletSnapshotFileChunk) Size() (n int) { l = m.Key.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotHead) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Message != nil { @@ -3138,28 +4475,46 @@ func (m *TabletSnapshotHead) Size() (n int) { if m.UseCache { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotEnd) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Checksum != 0 { n += 1 + sovRaftServerpb(uint64(m.Checksum)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Payload != nil { n += m.Payload.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotRequest_Head) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Head != nil { @@ -3169,6 +4524,9 @@ func (m *TabletSnapshotRequest_Head) Size() (n int) { return n } func (m *TabletSnapshotRequest_Preview) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Preview != nil { @@ -3178,6 +4536,9 @@ func (m *TabletSnapshotRequest_Preview) Size() (n int) { return n } func (m *TabletSnapshotRequest_Chunk) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Chunk != nil { @@ -3187,6 +4548,9 @@ func (m *TabletSnapshotRequest_Chunk) Size() (n int) { return n } func (m *TabletSnapshotRequest_End) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.End != nil { @@ -3196,6 +4560,9 @@ func (m *TabletSnapshotRequest_End) Size() (n int) { return n } func (m *AcceptedSnapshotFiles) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.FileName) > 0 { @@ -3204,20 +4571,32 @@ func (m *AcceptedSnapshotFiles) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TabletSnapshotResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Files != nil { l = m.Files.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -3228,10 +4607,16 @@ func (m *KeyValue) Size() (n int) { if l > 0 { n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftSnapshotData) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Region != nil { @@ -3266,10 +4651,16 @@ func (m *RaftSnapshotData) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreIdent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -3281,19 +4672,31 @@ func (m *StoreIdent) Size() (n int) { if m.ApiVersion != 0 { n += 1 + sovRaftServerpb(uint64(m.ApiVersion)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreRecoverState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Seqno != 0 { n += 1 + sovRaftServerpb(uint64(m.Seqno)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftLocalState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.HardState != nil { @@ -3303,10 +4706,16 @@ func (m *RaftLocalState) Size() (n int) { if m.LastIndex != 0 { n += 1 + sovRaftServerpb(uint64(m.LastIndex)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RaftApplyState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.AppliedIndex != 0 { @@ -3325,10 +4734,16 @@ func (m *RaftApplyState) Size() (n int) { if m.CommitTerm != 0 { n += 1 + sovRaftServerpb(uint64(m.CommitTerm)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MergeState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.MinIndex != 0 { @@ -3341,10 +4756,16 @@ func (m *MergeState) Size() (n int) { if m.Commit != 0 { n += 1 + sovRaftServerpb(uint64(m.Commit)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *MergedRecord) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SourceRegionId != 0 { @@ -3385,10 +4806,16 @@ func (m *MergedRecord) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionLocalState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.State != 0 { @@ -3417,10 +4844,16 @@ func (m *RegionLocalState) Size() (n int) { n += 1 + l + sovRaftServerpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionSequenceNumberRelation) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -3437,10 +4870,16 @@ func (m *RegionSequenceNumberRelation) Size() (n int) { l = m.RegionState.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *AvailabilityContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FromRegionId != 0 { @@ -3456,19 +4895,31 @@ func (m *AvailabilityContext) Size() (n int) { if m.Trimmed { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FlushMemtable) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { n += 1 + sovRaftServerpb(uint64(m.RegionId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RefreshBuckets) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Version != 0 { @@ -3487,10 +4938,16 @@ func (m *RefreshBuckets) Size() (n int) { } n += 1 + sovRaftServerpb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *CheckGcPeer) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FromRegionId != 0 { @@ -3507,10 +4964,16 @@ func (m *CheckGcPeer) Size() (n int) { l = m.CheckPeer.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ExtraMessage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -3547,18 +5010,14 @@ func (m *ExtraMessage) Size() (n int) { l = m.RefreshBuckets.Size() n += 1 + l + sovRaftServerpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovRaftServerpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozRaftServerpb(x uint64) (n int) { return sovRaftServerpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3578,7 +5037,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3606,7 +5065,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3625,7 +5084,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3634,6 +5093,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3658,7 +5120,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3667,6 +5129,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3691,7 +5156,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3700,6 +5165,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3724,7 +5192,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3733,6 +5201,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3757,7 +5228,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3777,7 +5248,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3786,6 +5257,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3808,7 +5282,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3817,6 +5291,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3839,7 +5316,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3848,6 +5325,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3872,7 +5352,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3881,6 +5361,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3905,7 +5388,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3914,6 +5397,9 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3936,7 +5422,7 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DiskUsage |= (disk_usage.DiskUsage(b) & 0x7F) << shift + m.DiskUsage |= disk_usage.DiskUsage(b&0x7F) << shift if b < 0x80 { break } @@ -3947,12 +5433,13 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3977,7 +5464,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4005,7 +5492,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4024,7 +5511,7 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4035,12 +5522,13 @@ func (m *RaftTruncatedState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4065,7 +5553,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4093,7 +5581,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4103,6 +5591,9 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4122,7 +5613,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= (uint64(b) & 0x7F) << shift + m.Size_ |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4141,7 +5632,7 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= (uint32(b) & 0x7F) << shift + m.Checksum |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -4152,12 +5643,13 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4182,7 +5674,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4210,7 +5702,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4219,6 +5711,9 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4241,7 +5736,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4261,7 +5756,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4281,7 +5776,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Start |= (uint64(b) & 0x7F) << shift + m.Start |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4300,7 +5795,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GenerateDurationSec |= (uint64(b) & 0x7F) << shift + m.GenerateDurationSec |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4319,7 +5814,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4329,6 +5824,9 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4348,7 +5846,7 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndexHint |= (uint64(b) & 0x7F) << shift + m.CommitIndexHint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4359,12 +5857,13 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4389,7 +5888,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4417,7 +5916,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4426,6 +5925,9 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4450,7 +5952,7 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4459,6 +5961,9 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4473,12 +5978,13 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4503,7 +6009,7 @@ func (m *Done) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4523,12 +6029,13 @@ func (m *Done) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4553,7 +6060,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4581,7 +6088,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= (uint64(b) & 0x7F) << shift + m.FileSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4600,7 +6107,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4610,6 +6117,9 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4629,7 +6139,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4638,6 +6148,9 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4660,7 +6173,7 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4669,6 +6182,9 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4683,12 +6199,13 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4713,7 +6230,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4741,7 +6258,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4750,6 +6267,9 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4772,7 +6292,7 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4784,12 +6304,13 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4814,7 +6335,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4842,7 +6363,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= (uint64(b) & 0x7F) << shift + m.FileSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4861,7 +6382,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4871,6 +6392,9 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4890,7 +6414,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4899,6 +6423,9 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4921,7 +6448,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4930,6 +6457,9 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4952,7 +6482,7 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4961,6 +6491,9 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4977,12 +6510,13 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5007,7 +6541,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5035,7 +6569,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5044,6 +6578,9 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5068,7 +6605,7 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5080,12 +6617,13 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5110,7 +6648,7 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5138,7 +6676,7 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Checksum |= (uint64(b) & 0x7F) << shift + m.Checksum |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5149,12 +6687,13 @@ func (m *TabletSnapshotEnd) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5179,7 +6718,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5207,7 +6746,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5216,6 +6755,9 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5239,7 +6781,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5248,6 +6790,9 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5271,7 +6816,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5280,6 +6825,9 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5303,7 +6851,7 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5312,6 +6860,9 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5327,12 +6878,13 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5357,7 +6909,7 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5385,7 +6937,7 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5395,6 +6947,9 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5406,12 +6961,13 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5436,7 +6992,7 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5464,7 +7020,7 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5473,6 +7029,9 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5489,12 +7048,13 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5519,7 +7079,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5547,7 +7107,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5556,6 +7116,9 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5578,7 +7141,7 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5587,6 +7150,9 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5601,12 +7167,13 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5631,7 +7198,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5659,7 +7226,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5668,6 +7235,9 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5692,7 +7262,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FileSize |= (uint64(b) & 0x7F) << shift + m.FileSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5711,7 +7281,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5720,6 +7290,9 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5742,7 +7315,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5761,7 +7334,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5770,6 +7343,9 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5794,7 +7370,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5803,6 +7379,9 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5825,7 +7404,7 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5834,6 +7413,9 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5848,12 +7430,13 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5878,7 +7461,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5906,7 +7489,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5925,7 +7508,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5944,7 +7527,7 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApiVersion |= (kvrpcpb.APIVersion(b) & 0x7F) << shift + m.ApiVersion |= kvrpcpb.APIVersion(b&0x7F) << shift if b < 0x80 { break } @@ -5955,12 +7538,13 @@ func (m *StoreIdent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5985,7 +7569,7 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6013,7 +7597,7 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Seqno |= (uint64(b) & 0x7F) << shift + m.Seqno |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6024,12 +7608,13 @@ func (m *StoreRecoverState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6054,7 +7639,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6082,7 +7667,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6091,6 +7676,9 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6115,7 +7703,7 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastIndex |= (uint64(b) & 0x7F) << shift + m.LastIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6126,12 +7714,13 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6156,7 +7745,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6184,7 +7773,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= (uint64(b) & 0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6203,7 +7792,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6212,6 +7801,9 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6236,7 +7828,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastCommitIndex |= (uint64(b) & 0x7F) << shift + m.LastCommitIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6255,7 +7847,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndex |= (uint64(b) & 0x7F) << shift + m.CommitIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6274,7 +7866,7 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTerm |= (uint64(b) & 0x7F) << shift + m.CommitTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6285,12 +7877,13 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6315,7 +7908,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6343,7 +7936,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinIndex |= (uint64(b) & 0x7F) << shift + m.MinIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6362,7 +7955,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6371,6 +7964,9 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6395,7 +7991,7 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Commit |= (uint64(b) & 0x7F) << shift + m.Commit |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6406,12 +8002,13 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6436,7 +8033,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6464,7 +8061,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SourceRegionId |= (uint64(b) & 0x7F) << shift + m.SourceRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6483,7 +8080,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6492,6 +8089,9 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6516,7 +8116,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6525,6 +8125,9 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6547,7 +8150,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TargetRegionId |= (uint64(b) & 0x7F) << shift + m.TargetRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6566,7 +8169,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6575,6 +8178,9 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6599,7 +8205,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6608,6 +8214,9 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6630,7 +8239,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6649,7 +8258,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SourceIndex |= (uint64(b) & 0x7F) << shift + m.SourceIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6668,7 +8277,7 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6677,6 +8286,9 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6691,12 +8303,13 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6721,7 +8334,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6749,7 +8362,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (PeerState(b) & 0x7F) << shift + m.State |= PeerState(b&0x7F) << shift if b < 0x80 { break } @@ -6768,7 +8381,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6777,6 +8390,9 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6801,7 +8417,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6810,6 +8426,9 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6834,7 +8453,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TabletIndex |= (uint64(b) & 0x7F) << shift + m.TabletIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6853,7 +8472,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6862,6 +8481,9 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6884,7 +8506,7 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6893,6 +8515,9 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6907,12 +8532,13 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6937,7 +8563,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6965,7 +8591,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6984,7 +8610,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SequenceNumber |= (uint64(b) & 0x7F) << shift + m.SequenceNumber |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7003,7 +8629,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7012,6 +8638,9 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7036,7 +8665,7 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7045,6 +8674,9 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7061,12 +8693,13 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7091,7 +8724,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7119,7 +8752,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FromRegionId |= (uint64(b) & 0x7F) << shift + m.FromRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7138,7 +8771,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7147,6 +8780,9 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7171,7 +8807,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7191,7 +8827,7 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7203,12 +8839,13 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7233,7 +8870,7 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7261,7 +8898,7 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7272,12 +8909,13 @@ func (m *FlushMemtable) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7302,7 +8940,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7330,7 +8968,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7349,7 +8987,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7358,6 +8996,9 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7376,7 +9017,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7393,7 +9034,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7402,9 +9043,23 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } 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.Sizes) == 0 { + m.Sizes = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -7416,7 +9071,7 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7432,12 +9087,13 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7462,7 +9118,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7490,7 +9146,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FromRegionId |= (uint64(b) & 0x7F) << shift + m.FromRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7509,7 +9165,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CheckRegionId |= (uint64(b) & 0x7F) << shift + m.CheckRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7528,7 +9184,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7537,6 +9193,9 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7561,7 +9220,7 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7570,6 +9229,9 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7586,12 +9248,13 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7616,7 +9279,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7644,7 +9307,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ExtraMessageType(b) & 0x7F) << shift + m.Type |= ExtraMessageType(b&0x7F) << shift if b < 0x80 { break } @@ -7663,7 +9326,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= (uint64(b) & 0x7F) << shift + m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7682,7 +9345,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7691,6 +9354,9 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7713,7 +9379,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7733,7 +9399,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7753,7 +9419,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7762,6 +9428,9 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7786,7 +9455,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7795,6 +9464,9 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7819,7 +9491,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7828,6 +9500,9 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7852,7 +9527,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7861,6 +9536,9 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRaftServerpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7877,12 +9555,13 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRaftServerpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -7895,6 +9574,7 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { func skipRaftServerpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -7926,10 +9606,8 @@ func skipRaftServerpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -7946,205 +9624,34 @@ func skipRaftServerpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthRaftServerpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRaftServerpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipRaftServerpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRaftServerpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthRaftServerpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthRaftServerpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRaftServerpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthRaftServerpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRaftServerpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRaftServerpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("raft_serverpb.proto", fileDescriptorRaftServerpb) } - -var fileDescriptorRaftServerpb = []byte{ - // 2321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1c, 0x49, - 0x11, 0xd6, 0x3c, 0x34, 0x8f, 0x9c, 0x87, 0x46, 0x25, 0xcb, 0x1e, 0x5b, 0x6b, 0x5b, 0x6e, 0xaf, - 0x6d, 0xad, 0x17, 0xe4, 0x58, 0xad, 0x59, 0x36, 0x96, 0x08, 0x83, 0x24, 0xdb, 0xc8, 0x98, 0x71, - 0x38, 0x4a, 0xb2, 0x1d, 0x9c, 0x3a, 0x4a, 0x3d, 0x39, 0x33, 0xcd, 0xf4, 0x6b, 0xbb, 0x6a, 0xc6, - 0x9e, 0x0d, 0xfe, 0x05, 0x97, 0x3d, 0x72, 0x24, 0xb8, 0x10, 0xdc, 0xf8, 0x01, 0x1c, 0x08, 0xb8, - 0x70, 0xe4, 0x48, 0x98, 0x0b, 0x47, 0x38, 0x72, 0x23, 0xea, 0xd1, 0x3d, 0xdd, 0xa3, 0xb1, 0xcc, - 0xfa, 0xd4, 0x55, 0xf9, 0xa8, 0xca, 0xca, 0xfc, 0x32, 0x2b, 0xab, 0x61, 0x23, 0x66, 0x03, 0x61, - 0x73, 0x8c, 0xa7, 0x18, 0x47, 0xa7, 0xbb, 0x51, 0x1c, 0x8a, 0x90, 0xb4, 0x72, 0xc4, 0x2b, 0x2d, - 0x94, 0xf3, 0x84, 0x7b, 0xa5, 0xe9, 0xa3, 0x60, 0xe9, 0xac, 0x35, 0x9e, 0xc6, 0x91, 0x93, 0x4e, - 0x3b, 0x7d, 0x97, 0x8f, 0xed, 0x09, 0x67, 0x43, 0x34, 0x14, 0x82, 0x81, 0x13, 0xcf, 0x22, 0xe1, - 0x86, 0x41, 0x2a, 0xb5, 0x16, 0x4f, 0xb8, 0x50, 0x43, 0x4d, 0xb0, 0xfe, 0x5b, 0x82, 0x06, 0x65, - 0x03, 0xd1, 0x43, 0x2e, 0x55, 0xc9, 0x16, 0xd4, 0x63, 0x1c, 0xba, 0x61, 0x60, 0xbb, 0xfd, 0x6e, - 0x61, 0xbb, 0xb0, 0x53, 0xa6, 0x35, 0x4d, 0x78, 0xd2, 0x27, 0x9f, 0x40, 0x7d, 0x10, 0x87, 0xbe, - 0x1d, 0x21, 0xc6, 0xdd, 0xe2, 0x76, 0x61, 0xa7, 0xb1, 0xd7, 0xdc, 0x35, 0x46, 0x3d, 0x47, 0x8c, - 0x69, 0x4d, 0xb2, 0xe5, 0x88, 0xdc, 0x82, 0xaa, 0x08, 0xb5, 0x60, 0x69, 0x89, 0x60, 0x45, 0x84, - 0x4a, 0xec, 0x2e, 0x54, 0x7d, 0xbd, 0x73, 0xb7, 0xac, 0xc4, 0x3a, 0xbb, 0xc9, 0x99, 0x8d, 0x45, - 0x34, 0x11, 0x20, 0x5f, 0x40, 0xd3, 0x98, 0x86, 0x51, 0xe8, 0x8c, 0xba, 0xab, 0x4a, 0x61, 0x23, - 0x59, 0x97, 0x2a, 0xde, 0x23, 0xc9, 0xa2, 0x8d, 0x78, 0x3e, 0x21, 0x37, 0xa0, 0xe9, 0x72, 0x5b, - 0x84, 0xfe, 0x29, 0x17, 0x61, 0x80, 0xdd, 0xca, 0x76, 0x61, 0xa7, 0x46, 0x1b, 0x2e, 0x3f, 0x49, - 0x48, 0xf2, 0xd4, 0x5c, 0xb0, 0x58, 0xd8, 0x63, 0x9c, 0x75, 0xab, 0xdb, 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, 0x90, 0x16, 0x00, - 0x00, -} diff --git a/pkg/recoverdatapb/recoverdatapb.pb.go b/pkg/recoverdatapb/recoverdatapb.pb.go index 2e50cb876..5783f762b 100644 --- a/pkg/recoverdatapb/recoverdatapb.pb.go +++ b/pkg/recoverdatapb/recoverdatapb.pb.go @@ -1,38 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: recoverdatapb.proto -/* -Package recover_data is a generated protocol buffer package. - -It is generated from these files: - - recoverdatapb.proto - -It has these top-level messages: - - ReadRegionMetaRequest - Error - RegionMeta - RecoverRegionRequest - RecoverRegionResponse - WaitApplyRequest - WaitApplyResponse - ResolveKvDataRequest - ResolveKvDataResponse -*/ package recover_data import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -44,19 +26,48 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // request to read region meata from a store type ReadRegionMetaRequest struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ReadRegionMetaRequest) Reset() { *m = ReadRegionMetaRequest{} } func (m *ReadRegionMetaRequest) String() string { return proto.CompactTextString(m) } func (*ReadRegionMetaRequest) ProtoMessage() {} func (*ReadRegionMetaRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRecoverdatapb, []int{0} + return fileDescriptor_6853a92ee81110ca, []int{0} +} +func (m *ReadRegionMetaRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadRegionMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadRegionMetaRequest.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 *ReadRegionMetaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadRegionMetaRequest.Merge(m, src) +} +func (m *ReadRegionMetaRequest) XXX_Size() int { + return m.Size() } +func (m *ReadRegionMetaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReadRegionMetaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReadRegionMetaRequest proto.InternalMessageInfo func (m *ReadRegionMetaRequest) GetStoreId() uint64 { if m != nil { @@ -66,13 +77,44 @@ func (m *ReadRegionMetaRequest) GetStoreId() uint64 { } type Error struct { - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_6853a92ee81110ca, []int{1} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{1} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetMsg() string { if m != nil { @@ -82,21 +124,52 @@ func (m *Error) GetMsg() string { } type RegionMeta struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - LastLogTerm uint64 `protobuf:"varint,3,opt,name=last_log_term,json=lastLogTerm,proto3" json:"last_log_term,omitempty"` - LastIndex uint64 `protobuf:"varint,4,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` - CommitIndex uint64 `protobuf:"varint,5,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` - Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - Tombstone bool `protobuf:"varint,7,opt,name=tombstone,proto3" json:"tombstone,omitempty"` - StartKey []byte `protobuf:"bytes,8,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,9,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` -} - -func (m *RegionMeta) Reset() { *m = RegionMeta{} } -func (m *RegionMeta) String() string { return proto.CompactTextString(m) } -func (*RegionMeta) ProtoMessage() {} -func (*RegionMeta) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{2} } + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + PeerId uint64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + LastLogTerm uint64 `protobuf:"varint,3,opt,name=last_log_term,json=lastLogTerm,proto3" json:"last_log_term,omitempty"` + LastIndex uint64 `protobuf:"varint,4,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"` + CommitIndex uint64 `protobuf:"varint,5,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"` + Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + Tombstone bool `protobuf:"varint,7,opt,name=tombstone,proto3" json:"tombstone,omitempty"` + StartKey []byte `protobuf:"bytes,8,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,9,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionMeta) Reset() { *m = RegionMeta{} } +func (m *RegionMeta) String() string { return proto.CompactTextString(m) } +func (*RegionMeta) ProtoMessage() {} +func (*RegionMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_6853a92ee81110ca, []int{2} +} +func (m *RegionMeta) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionMeta.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 *RegionMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionMeta.Merge(m, src) +} +func (m *RegionMeta) XXX_Size() int { + return m.Size() +} +func (m *RegionMeta) XXX_DiscardUnknown() { + xxx_messageInfo_RegionMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionMeta proto.InternalMessageInfo func (m *RegionMeta) GetRegionId() uint64 { if m != nil { @@ -163,18 +236,47 @@ func (m *RegionMeta) GetEndKey() []byte { // command to store for recover region type RecoverRegionRequest struct { - RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - AsLeader bool `protobuf:"varint,2,opt,name=as_leader,json=asLeader,proto3" json:"as_leader,omitempty"` - Tombstone bool `protobuf:"varint,3,opt,name=tombstone,proto3" json:"tombstone,omitempty"` + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + AsLeader bool `protobuf:"varint,2,opt,name=as_leader,json=asLeader,proto3" json:"as_leader,omitempty"` + Tombstone bool `protobuf:"varint,3,opt,name=tombstone,proto3" json:"tombstone,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RecoverRegionRequest) Reset() { *m = RecoverRegionRequest{} } func (m *RecoverRegionRequest) String() string { return proto.CompactTextString(m) } func (*RecoverRegionRequest) ProtoMessage() {} func (*RecoverRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRecoverdatapb, []int{3} + return fileDescriptor_6853a92ee81110ca, []int{3} +} +func (m *RecoverRegionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoverRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoverRegionRequest.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 *RecoverRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverRegionRequest.Merge(m, src) +} +func (m *RecoverRegionRequest) XXX_Size() int { + return m.Size() +} +func (m *RecoverRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RecoverRegionRequest.DiscardUnknown(m) } +var xxx_messageInfo_RecoverRegionRequest proto.InternalMessageInfo + func (m *RecoverRegionRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -197,17 +299,46 @@ func (m *RecoverRegionRequest) GetTombstone() bool { } type RecoverRegionResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RecoverRegionResponse) Reset() { *m = RecoverRegionResponse{} } func (m *RecoverRegionResponse) String() string { return proto.CompactTextString(m) } func (*RecoverRegionResponse) ProtoMessage() {} func (*RecoverRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRecoverdatapb, []int{4} + return fileDescriptor_6853a92ee81110ca, []int{4} +} +func (m *RecoverRegionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecoverRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecoverRegionResponse.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 *RecoverRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverRegionResponse.Merge(m, src) +} +func (m *RecoverRegionResponse) XXX_Size() int { + return m.Size() +} +func (m *RecoverRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RecoverRegionResponse.DiscardUnknown(m) } +var xxx_messageInfo_RecoverRegionResponse proto.InternalMessageInfo + func (m *RecoverRegionResponse) GetError() *Error { if m != nil { return m.Error @@ -224,13 +355,44 @@ func (m *RecoverRegionResponse) GetStoreId() uint64 { // wait apply to last index type WaitApplyRequest struct { - StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + StoreId uint64 `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WaitApplyRequest) Reset() { *m = WaitApplyRequest{} } +func (m *WaitApplyRequest) String() string { return proto.CompactTextString(m) } +func (*WaitApplyRequest) ProtoMessage() {} +func (*WaitApplyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6853a92ee81110ca, []int{5} +} +func (m *WaitApplyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitApplyRequest.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 *WaitApplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitApplyRequest.Merge(m, src) +} +func (m *WaitApplyRequest) XXX_Size() int { + return m.Size() +} +func (m *WaitApplyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WaitApplyRequest.DiscardUnknown(m) } -func (m *WaitApplyRequest) Reset() { *m = WaitApplyRequest{} } -func (m *WaitApplyRequest) String() string { return proto.CompactTextString(m) } -func (*WaitApplyRequest) ProtoMessage() {} -func (*WaitApplyRequest) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{5} } +var xxx_messageInfo_WaitApplyRequest proto.InternalMessageInfo func (m *WaitApplyRequest) GetStoreId() uint64 { if m != nil { @@ -240,13 +402,44 @@ func (m *WaitApplyRequest) GetStoreId() uint64 { } type WaitApplyResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WaitApplyResponse) Reset() { *m = WaitApplyResponse{} } +func (m *WaitApplyResponse) String() string { return proto.CompactTextString(m) } +func (*WaitApplyResponse) ProtoMessage() {} +func (*WaitApplyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6853a92ee81110ca, []int{6} +} +func (m *WaitApplyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WaitApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WaitApplyResponse.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 *WaitApplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitApplyResponse.Merge(m, src) +} +func (m *WaitApplyResponse) XXX_Size() int { + return m.Size() +} +func (m *WaitApplyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WaitApplyResponse.DiscardUnknown(m) } -func (m *WaitApplyResponse) Reset() { *m = WaitApplyResponse{} } -func (m *WaitApplyResponse) String() string { return proto.CompactTextString(m) } -func (*WaitApplyResponse) ProtoMessage() {} -func (*WaitApplyResponse) Descriptor() ([]byte, []int) { return fileDescriptorRecoverdatapb, []int{6} } +var xxx_messageInfo_WaitApplyResponse proto.InternalMessageInfo func (m *WaitApplyResponse) GetError() *Error { if m != nil { @@ -257,16 +450,45 @@ func (m *WaitApplyResponse) GetError() *Error { // resolve data by resolved_ts type ResolveKvDataRequest struct { - ResolvedTs uint64 `protobuf:"varint,1,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + ResolvedTs uint64 `protobuf:"varint,1,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ResolveKvDataRequest) Reset() { *m = ResolveKvDataRequest{} } func (m *ResolveKvDataRequest) String() string { return proto.CompactTextString(m) } func (*ResolveKvDataRequest) ProtoMessage() {} func (*ResolveKvDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRecoverdatapb, []int{7} + return fileDescriptor_6853a92ee81110ca, []int{7} +} +func (m *ResolveKvDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResolveKvDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResolveKvDataRequest.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 *ResolveKvDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveKvDataRequest.Merge(m, src) +} +func (m *ResolveKvDataRequest) XXX_Size() int { + return m.Size() +} +func (m *ResolveKvDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResolveKvDataRequest.DiscardUnknown(m) } +var xxx_messageInfo_ResolveKvDataRequest proto.InternalMessageInfo + func (m *ResolveKvDataRequest) GetResolvedTs() uint64 { if m != nil { return m.ResolvedTs @@ -275,21 +497,50 @@ func (m *ResolveKvDataRequest) GetResolvedTs() uint64 { } type ResolveKvDataResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` ResolvedKeyCount uint64 `protobuf:"varint,3,opt,name=resolved_key_count,json=resolvedKeyCount,proto3" json:"resolved_key_count,omitempty"` // cursor of delete key.commit_ts, reserved for progress of restore // progress is (current_commit_ts - resolved_ts) / (backup_ts - resolved_ts) x 100% - CurrentCommitTs uint64 `protobuf:"varint,4,opt,name=current_commit_ts,json=currentCommitTs,proto3" json:"current_commit_ts,omitempty"` + CurrentCommitTs uint64 `protobuf:"varint,4,opt,name=current_commit_ts,json=currentCommitTs,proto3" json:"current_commit_ts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ResolveKvDataResponse) Reset() { *m = ResolveKvDataResponse{} } func (m *ResolveKvDataResponse) String() string { return proto.CompactTextString(m) } func (*ResolveKvDataResponse) ProtoMessage() {} func (*ResolveKvDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRecoverdatapb, []int{8} + return fileDescriptor_6853a92ee81110ca, []int{8} +} +func (m *ResolveKvDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResolveKvDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResolveKvDataResponse.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 *ResolveKvDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveKvDataResponse.Merge(m, src) +} +func (m *ResolveKvDataResponse) XXX_Size() int { + return m.Size() +} +func (m *ResolveKvDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ResolveKvDataResponse.DiscardUnknown(m) } +var xxx_messageInfo_ResolveKvDataResponse proto.InternalMessageInfo + func (m *ResolveKvDataResponse) GetError() *Error { if m != nil { return m.Error @@ -330,6 +581,50 @@ func init() { proto.RegisterType((*ResolveKvDataResponse)(nil), "recover_data.ResolveKvDataResponse") } +func init() { proto.RegisterFile("recoverdatapb.proto", fileDescriptor_6853a92ee81110ca) } + +var fileDescriptor_6853a92ee81110ca = []byte{ + // 608 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x41, 0x6e, 0xd3, 0x40, + 0x14, 0xad, 0xd3, 0x36, 0xb1, 0x7f, 0x5a, 0xda, 0x4e, 0x8b, 0x70, 0x53, 0x48, 0x83, 0xbb, 0x09, + 0x08, 0x02, 0x0a, 0x0b, 0x76, 0x48, 0x50, 0x58, 0x44, 0x29, 0x2c, 0x4c, 0x24, 0x36, 0x20, 0xcb, + 0x89, 0xbf, 0x2c, 0xab, 0xb1, 0xc7, 0xcc, 0x4c, 0x22, 0x7c, 0x11, 0xc4, 0x11, 0xb8, 0x01, 0x57, + 0x60, 0xc9, 0x92, 0x25, 0x0a, 0x7b, 0xce, 0x80, 0x66, 0xc6, 0x6e, 0xe2, 0xa4, 0x54, 0x20, 0xb1, + 0x9b, 0xff, 0xde, 0xf3, 0xcc, 0x9f, 0xf7, 0xdf, 0x18, 0xf6, 0x19, 0x8e, 0xe8, 0x14, 0x59, 0xe0, + 0x0b, 0x3f, 0x1d, 0x76, 0x52, 0x46, 0x05, 0x25, 0x5b, 0x39, 0xe8, 0x49, 0xb4, 0x71, 0x10, 0xd2, + 0x90, 0x2a, 0xe2, 0x81, 0x5c, 0x69, 0x4d, 0x63, 0x87, 0x4d, 0xb8, 0x50, 0x4b, 0x0d, 0x38, 0x5d, + 0xb8, 0xee, 0xa2, 0x1f, 0xb8, 0x18, 0x46, 0x34, 0x79, 0x89, 0xc2, 0x77, 0xf1, 0xfd, 0x04, 0xb9, + 0x20, 0x87, 0x60, 0x72, 0x41, 0x19, 0x7a, 0x51, 0x60, 0x1b, 0x2d, 0xa3, 0xbd, 0xe1, 0xd6, 0x54, + 0xdd, 0x0b, 0x9c, 0x43, 0xd8, 0x7c, 0xc1, 0x18, 0x65, 0x64, 0x17, 0xd6, 0x63, 0x1e, 0x2a, 0xda, + 0x72, 0xe5, 0xd2, 0xf9, 0x58, 0x01, 0x98, 0xef, 0x45, 0x8e, 0xc0, 0x62, 0xaa, 0x9a, 0xef, 0x62, + 0x6a, 0xa0, 0x17, 0x90, 0x1b, 0x50, 0x4b, 0x11, 0x99, 0xa4, 0x2a, 0x8a, 0xaa, 0xca, 0xb2, 0x17, + 0x10, 0x07, 0xb6, 0xc7, 0x3e, 0x17, 0xde, 0x98, 0x86, 0x9e, 0x40, 0x16, 0xdb, 0xeb, 0x8a, 0xae, + 0x4b, 0xf0, 0x8c, 0x86, 0x03, 0x64, 0x31, 0xb9, 0x05, 0xa0, 0x34, 0x51, 0x12, 0xe0, 0x07, 0x7b, + 0x43, 0x09, 0x2c, 0x89, 0xf4, 0x24, 0x40, 0x6e, 0xc3, 0xd6, 0x88, 0xc6, 0x71, 0x54, 0x08, 0x36, + 0xf5, 0x0e, 0x1a, 0xd3, 0x12, 0x1b, 0x6a, 0x53, 0x64, 0x3c, 0xa2, 0x89, 0x5d, 0xd5, 0xf7, 0xcb, + 0x4b, 0x72, 0x13, 0x2c, 0x41, 0xe3, 0x21, 0x17, 0x34, 0x41, 0xbb, 0xd6, 0x32, 0xda, 0xa6, 0x3b, + 0x07, 0xe4, 0x9d, 0xb8, 0xf0, 0x99, 0xf0, 0xce, 0x31, 0xb3, 0xcd, 0x96, 0xd1, 0xde, 0x72, 0x4d, + 0x05, 0xf4, 0x31, 0x93, 0x77, 0xc2, 0x24, 0x50, 0x94, 0xa5, 0xa8, 0x2a, 0x26, 0x41, 0x1f, 0x33, + 0x27, 0x81, 0x03, 0x57, 0x8f, 0x47, 0xdb, 0x53, 0xd8, 0x7c, 0xa5, 0x43, 0x47, 0x60, 0xf9, 0xdc, + 0x1b, 0xa3, 0x1f, 0x20, 0x53, 0x1e, 0x99, 0xae, 0xe9, 0xf3, 0x33, 0x55, 0x97, 0xbb, 0x5c, 0x5f, + 0xea, 0xd2, 0x79, 0x27, 0xe7, 0x5a, 0x3a, 0x8f, 0xa7, 0x34, 0xe1, 0x48, 0xee, 0xc0, 0x26, 0xca, + 0xe1, 0xa9, 0xc3, 0xea, 0xdd, 0xfd, 0xce, 0x62, 0x6a, 0x3a, 0x6a, 0xae, 0xae, 0x56, 0x94, 0x22, + 0x50, 0x29, 0x47, 0xe0, 0x3e, 0xec, 0xbe, 0xf1, 0x23, 0xf1, 0x34, 0x4d, 0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0xac, + 0x69, 0x7c, 0x9b, 0x35, 0x8d, 0x1f, 0xb3, 0xa6, 0xf1, 0xe9, 0x67, 0x73, 0x6d, 0x58, 0x55, 0xbf, + 0xc9, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0xe7, 0x69, 0x54, 0x72, 0x05, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -338,8 +633,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for RecoverData service - +// RecoverDataClient is the client API for RecoverData service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RecoverDataClient interface { // read region meta to ready region meta ReadRegionMeta(ctx context.Context, in *ReadRegionMetaRequest, opts ...grpc.CallOption) (RecoverData_ReadRegionMetaClient, error) @@ -360,7 +656,7 @@ func NewRecoverDataClient(cc *grpc.ClientConn) RecoverDataClient { } func (c *recoverDataClient) ReadRegionMeta(ctx context.Context, in *ReadRegionMetaRequest, opts ...grpc.CallOption) (RecoverData_ReadRegionMetaClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[0], c.cc, "/recover_data.RecoverData/ReadRegionMeta", opts...) + stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[0], "/recover_data.RecoverData/ReadRegionMeta", opts...) if err != nil { return nil, err } @@ -392,7 +688,7 @@ func (x *recoverDataReadRegionMetaClient) Recv() (*RegionMeta, error) { } func (c *recoverDataClient) RecoverRegion(ctx context.Context, opts ...grpc.CallOption) (RecoverData_RecoverRegionClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[1], c.cc, "/recover_data.RecoverData/RecoverRegion", opts...) + stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[1], "/recover_data.RecoverData/RecoverRegion", opts...) if err != nil { return nil, err } @@ -427,7 +723,7 @@ func (x *recoverDataRecoverRegionClient) CloseAndRecv() (*RecoverRegionResponse, func (c *recoverDataClient) WaitApply(ctx context.Context, in *WaitApplyRequest, opts ...grpc.CallOption) (*WaitApplyResponse, error) { out := new(WaitApplyResponse) - err := grpc.Invoke(ctx, "/recover_data.RecoverData/WaitApply", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/recover_data.RecoverData/WaitApply", in, out, opts...) if err != nil { return nil, err } @@ -435,7 +731,7 @@ func (c *recoverDataClient) WaitApply(ctx context.Context, in *WaitApplyRequest, } func (c *recoverDataClient) ResolveKvData(ctx context.Context, in *ResolveKvDataRequest, opts ...grpc.CallOption) (RecoverData_ResolveKvDataClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RecoverData_serviceDesc.Streams[2], c.cc, "/recover_data.RecoverData/ResolveKvData", opts...) + stream, err := c.cc.NewStream(ctx, &_RecoverData_serviceDesc.Streams[2], "/recover_data.RecoverData/ResolveKvData", opts...) if err != nil { return nil, err } @@ -466,8 +762,7 @@ func (x *recoverDataResolveKvDataClient) Recv() (*ResolveKvDataResponse, error) return m, nil } -// Server API for RecoverData service - +// RecoverDataServer is the server API for RecoverData service. type RecoverDataServer interface { // read region meta to ready region meta ReadRegionMeta(*ReadRegionMetaRequest, RecoverData_ReadRegionMetaServer) error @@ -479,6 +774,23 @@ type RecoverDataServer interface { ResolveKvData(*ResolveKvDataRequest, RecoverData_ResolveKvDataServer) error } +// UnimplementedRecoverDataServer can be embedded to have forward compatible implementations. +type UnimplementedRecoverDataServer struct { +} + +func (*UnimplementedRecoverDataServer) ReadRegionMeta(req *ReadRegionMetaRequest, srv RecoverData_ReadRegionMetaServer) error { + return status.Errorf(codes.Unimplemented, "method ReadRegionMeta not implemented") +} +func (*UnimplementedRecoverDataServer) RecoverRegion(srv RecoverData_RecoverRegionServer) error { + return status.Errorf(codes.Unimplemented, "method RecoverRegion not implemented") +} +func (*UnimplementedRecoverDataServer) WaitApply(ctx context.Context, req *WaitApplyRequest) (*WaitApplyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WaitApply not implemented") +} +func (*UnimplementedRecoverDataServer) ResolveKvData(req *ResolveKvDataRequest, srv RecoverData_ResolveKvDataServer) error { + return status.Errorf(codes.Unimplemented, "method ResolveKvData not implemented") +} + func RegisterRecoverDataServer(s *grpc.Server, srv RecoverDataServer) { s.RegisterService(&_RecoverData_serviceDesc, srv) } @@ -601,7 +913,7 @@ var _RecoverData_serviceDesc = grpc.ServiceDesc{ func (m *ReadRegionMetaRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -609,22 +921,31 @@ func (m *ReadRegionMetaRequest) Marshal() (dAtA []byte, err error) { } func (m *ReadRegionMetaRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadRegionMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.StoreId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -632,23 +953,33 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -656,69 +987,80 @@ func (m *RegionMeta) Marshal() (dAtA []byte, err error) { } func (m *RegionMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.PeerId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.PeerId)) - } - if m.LastLogTerm != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastLogTerm)) - } - if m.LastIndex != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastIndex)) - } - if m.CommitIndex != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CommitIndex)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x4a } - if m.Version != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Version)) + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x42 } if m.Tombstone { - dAtA[i] = 0x38 - i++ + i-- if m.Tombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x38 } - if len(m.StartKey) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.StartKey))) - i += copy(dAtA[i:], m.StartKey) + if m.Version != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x30 } - if len(m.EndKey) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.EndKey))) - i += copy(dAtA[i:], m.EndKey) + if m.CommitIndex != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CommitIndex)) + i-- + dAtA[i] = 0x28 + } + if m.LastIndex != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastIndex)) + i-- + dAtA[i] = 0x20 + } + if m.LastLogTerm != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastLogTerm)) + i-- + dAtA[i] = 0x18 + } + if m.PeerId != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.PeerId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RecoverRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -726,42 +1068,51 @@ func (m *RecoverRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *RecoverRegionRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoverRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.AsLeader { - dAtA[i] = 0x10 - i++ - if m.AsLeader { + if m.Tombstone { + i-- + if m.Tombstone { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Tombstone { + i-- dAtA[i] = 0x18 - i++ - if m.Tombstone { + } + if m.AsLeader { + i-- + if m.AsLeader { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if m.RegionId != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RecoverRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -769,32 +1120,43 @@ func (m *RecoverRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *RecoverRegionResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecoverRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *WaitApplyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -802,22 +1164,31 @@ func (m *WaitApplyRequest) Marshal() (dAtA []byte, err error) { } func (m *WaitApplyRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitApplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.StoreId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *WaitApplyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -825,27 +1196,38 @@ func (m *WaitApplyResponse) Marshal() (dAtA []byte, err error) { } func (m *WaitApplyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WaitApplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) - n2, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ResolveKvDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -853,22 +1235,31 @@ func (m *ResolveKvDataRequest) Marshal() (dAtA []byte, err error) { } func (m *ResolveKvDataRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResolveKvDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.ResolvedTs != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedTs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ResolveKvDataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -876,67 +1267,95 @@ func (m *ResolveKvDataResponse) Marshal() (dAtA []byte, err error) { } func (m *ResolveKvDataResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResolveKvDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Error.Size())) - n3, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StoreId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) + if m.CurrentCommitTs != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CurrentCommitTs)) + i-- + dAtA[i] = 0x20 } if m.ResolvedKeyCount != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.ResolvedKeyCount)) + i-- + dAtA[i] = 0x18 } - if m.CurrentCommitTs != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CurrentCommitTs)) + if m.StoreId != 0 { + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRecoverdatapb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintRecoverdatapb(dAtA []byte, offset int, v uint64) int { + offset -= sovRecoverdatapb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ReadRegionMetaRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Msg) if l > 0 { n += 1 + l + sovRecoverdatapb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionMeta) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -968,10 +1387,16 @@ func (m *RegionMeta) Size() (n int) { if l > 0 { n += 1 + l + sovRecoverdatapb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RecoverRegionRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RegionId != 0 { @@ -983,10 +1408,16 @@ func (m *RecoverRegionRequest) Size() (n int) { if m.Tombstone { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RecoverRegionResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -996,38 +1427,62 @@ func (m *RecoverRegionResponse) Size() (n int) { if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitApplyRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StoreId != 0 { n += 1 + sovRecoverdatapb(uint64(m.StoreId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *WaitApplyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { l = m.Error.Size() n += 1 + l + sovRecoverdatapb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResolveKvDataRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ResolvedTs != 0 { n += 1 + sovRecoverdatapb(uint64(m.ResolvedTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResolveKvDataResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -1043,18 +1498,14 @@ func (m *ResolveKvDataResponse) Size() (n int) { if m.CurrentCommitTs != 0 { n += 1 + sovRecoverdatapb(uint64(m.CurrentCommitTs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovRecoverdatapb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozRecoverdatapb(x uint64) (n int) { return sovRecoverdatapb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1074,7 +1525,7 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1102,7 +1553,7 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1113,12 +1564,13 @@ func (m *ReadRegionMetaRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1143,7 +1595,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1171,7 +1623,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1181,6 +1633,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1192,12 +1647,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1222,7 +1678,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1250,7 +1706,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1269,7 +1725,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= (uint64(b) & 0x7F) << shift + m.PeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1288,7 +1744,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastLogTerm |= (uint64(b) & 0x7F) << shift + m.LastLogTerm |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1307,7 +1763,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastIndex |= (uint64(b) & 0x7F) << shift + m.LastIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1326,7 +1782,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitIndex |= (uint64(b) & 0x7F) << shift + m.CommitIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1345,7 +1801,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= (uint64(b) & 0x7F) << shift + m.Version |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1364,7 +1820,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1384,7 +1840,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1393,6 +1849,9 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1415,7 +1874,7 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1424,6 +1883,9 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1438,12 +1900,13 @@ func (m *RegionMeta) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1468,7 +1931,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1496,7 +1959,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1515,7 +1978,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1535,7 +1998,7 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1547,12 +2010,13 @@ func (m *RecoverRegionRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1577,7 +2041,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1605,7 +2069,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1614,6 +2078,9 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1638,7 +2105,7 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1649,12 +2116,13 @@ func (m *RecoverRegionResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1679,7 +2147,7 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1707,7 +2175,7 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1718,12 +2186,13 @@ func (m *WaitApplyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1748,7 +2217,7 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1776,7 +2245,7 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1785,6 +2254,9 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1801,12 +2273,13 @@ func (m *WaitApplyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1831,7 +2304,7 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1859,7 +2332,7 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= (uint64(b) & 0x7F) << shift + m.ResolvedTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1870,12 +2343,13 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1900,7 +2374,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1928,7 +2402,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1937,6 +2411,9 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRecoverdatapb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRecoverdatapb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1961,7 +2438,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= (uint64(b) & 0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1980,7 +2457,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedKeyCount |= (uint64(b) & 0x7F) << shift + m.ResolvedKeyCount |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1999,7 +2476,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentCommitTs |= (uint64(b) & 0x7F) << shift + m.CurrentCommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2010,12 +2487,13 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRecoverdatapb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2028,6 +2506,7 @@ func (m *ResolveKvDataResponse) Unmarshal(dAtA []byte) error { func skipRecoverdatapb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2059,10 +2538,8 @@ func skipRecoverdatapb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2079,97 +2556,34 @@ func skipRecoverdatapb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthRecoverdatapb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRecoverdatapb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipRecoverdatapb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRecoverdatapb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthRecoverdatapb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthRecoverdatapb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRecoverdatapb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthRecoverdatapb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRecoverdatapb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRecoverdatapb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("recoverdatapb.proto", fileDescriptorRecoverdatapb) } - -var fileDescriptorRecoverdatapb = []byte{ - // 608 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x41, 0x6e, 0xd3, 0x40, - 0x14, 0xad, 0xd3, 0x36, 0xb1, 0x7f, 0x5a, 0xda, 0x4e, 0x8b, 0x70, 0x53, 0x48, 0x83, 0xbb, 0x09, - 0x08, 0x02, 0x0a, 0x0b, 0x76, 0x48, 0x50, 0x58, 0x44, 0x29, 0x2c, 0x4c, 0x24, 0x36, 0x20, 0xcb, - 0x89, 0xbf, 0x2c, 0xab, 0xb1, 0xc7, 0xcc, 0x4c, 0x22, 0x7c, 0x11, 0xc4, 0x11, 0xb8, 0x01, 0x57, - 0x60, 0xc9, 0x92, 0x25, 0x0a, 0x7b, 0xce, 0x80, 0x66, 0xc6, 0x6e, 0xe2, 0xa4, 0x54, 0x20, 0xb1, - 0x9b, 0xff, 0xde, 0xf3, 0xcc, 0x9f, 0xf7, 0xdf, 0x18, 0xf6, 0x19, 0x8e, 0xe8, 0x14, 0x59, 0xe0, - 0x0b, 0x3f, 0x1d, 0x76, 0x52, 0x46, 0x05, 0x25, 0x5b, 0x39, 0xe8, 0x49, 0xb4, 0x71, 0x10, 0xd2, - 0x90, 0x2a, 0xe2, 0x81, 0x5c, 0x69, 0x4d, 0x63, 0x87, 0x4d, 0xb8, 0x50, 0x4b, 0x0d, 0x38, 0x5d, - 0xb8, 0xee, 0xa2, 0x1f, 0xb8, 0x18, 0x46, 0x34, 0x79, 0x89, 0xc2, 0x77, 0xf1, 0xfd, 0x04, 0xb9, - 0x20, 0x87, 0x60, 0x72, 0x41, 0x19, 0x7a, 0x51, 0x60, 0x1b, 0x2d, 0xa3, 0xbd, 0xe1, 0xd6, 0x54, - 0xdd, 0x0b, 0x9c, 0x43, 0xd8, 0x7c, 0xc1, 0x18, 0x65, 0x64, 0x17, 0xd6, 0x63, 0x1e, 0x2a, 0xda, - 0x72, 0xe5, 0xd2, 0xf9, 0x58, 0x01, 0x98, 0xef, 0x45, 0x8e, 0xc0, 0x62, 0xaa, 0x9a, 0xef, 0x62, - 0x6a, 0xa0, 0x17, 0x90, 0x1b, 0x50, 0x4b, 0x11, 0x99, 0xa4, 0x2a, 0x8a, 0xaa, 0xca, 0xb2, 0x17, - 0x10, 0x07, 0xb6, 0xc7, 0x3e, 0x17, 0xde, 0x98, 0x86, 0x9e, 0x40, 0x16, 0xdb, 0xeb, 0x8a, 0xae, - 0x4b, 0xf0, 0x8c, 0x86, 0x03, 0x64, 0x31, 0xb9, 0x05, 0xa0, 0x34, 0x51, 0x12, 0xe0, 0x07, 0x7b, - 0x43, 0x09, 0x2c, 0x89, 0xf4, 0x24, 0x40, 0x6e, 0xc3, 0xd6, 0x88, 0xc6, 0x71, 0x54, 0x08, 0x36, - 0xf5, 0x0e, 0x1a, 0xd3, 0x12, 0x1b, 0x6a, 0x53, 0x64, 0x3c, 0xa2, 0x89, 0x5d, 0xd5, 0xf7, 0xcb, - 0x4b, 0x72, 0x13, 0x2c, 0x41, 0xe3, 0x21, 0x17, 0x34, 0x41, 0xbb, 0xd6, 0x32, 0xda, 0xa6, 0x3b, - 0x07, 0xe4, 0x9d, 0xb8, 0xf0, 0x99, 0xf0, 0xce, 0x31, 0xb3, 0xcd, 0x96, 0xd1, 0xde, 0x72, 0x4d, - 0x05, 0xf4, 0x31, 0x93, 0x77, 0xc2, 0x24, 0x50, 0x94, 0xa5, 0xa8, 0x2a, 0x26, 0x41, 0x1f, 0x33, - 0x27, 0x81, 0x03, 0x57, 0x8f, 0x47, 0xdb, 0x53, 0xd8, 0x7c, 0xa5, 0x43, 0x47, 0x60, 0xf9, 0xdc, - 0x1b, 0xa3, 0x1f, 0x20, 0x53, 0x1e, 0x99, 0xae, 0xe9, 0xf3, 0x33, 0x55, 0x97, 0xbb, 0x5c, 0x5f, - 0xea, 0xd2, 0x79, 0x27, 0xe7, 0x5a, 0x3a, 0x8f, 0xa7, 0x34, 0xe1, 0x48, 0xee, 0xc0, 0x26, 0xca, - 0xe1, 0xa9, 0xc3, 0xea, 0xdd, 0xfd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xb7, 0x0b, 0xb3, 0x5c, 0xed, 0x76, 0x35, - 0x22, 0xab, 0xdd, 0x5e, 0x12, 0x06, 0xe9, 0xc5, 0xb3, 0x83, 0xef, 0x9f, 0x4d, 0xe3, 0xeb, 0xac, - 0x69, 0x7c, 0x9b, 0x35, 0x8d, 0x1f, 0xb3, 0xa6, 0xf1, 0xe9, 0x67, 0x73, 0x6d, 0x58, 0x55, 0xbf, - 0xc9, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0xe7, 0x69, 0x54, 0x72, 0x05, 0x00, 0x00, -} diff --git a/pkg/replication_modepb/replication_modepb.pb.go b/pkg/replication_modepb/replication_modepb.pb.go index bdbfb9699..d4a507cc3 100644 --- a/pkg/replication_modepb/replication_modepb.pb.go +++ b/pkg/replication_modepb/replication_modepb.pb.go @@ -1,26 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: replication_modepb.proto -/* -Package replication_modepb is a generated protocol buffer package. - -It is generated from these files: - - replication_modepb.proto - -It has these top-level messages: - - ReplicationStatus - DRAutoSync - RegionReplicationStatus - StoreDRAutoSyncStatus -*/ package replication_modepb import ( "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -34,7 +21,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ReplicationMode int32 @@ -49,6 +36,7 @@ var ReplicationMode_name = map[int32]string{ 0: "MAJORITY", 1: "DR_AUTO_SYNC", } + var ReplicationMode_value = map[string]int32{ "MAJORITY": 0, "DR_AUTO_SYNC": 1, @@ -57,8 +45,9 @@ var ReplicationMode_value = map[string]int32{ func (x ReplicationMode) String() string { return proto.EnumName(ReplicationMode_name, int32(x)) } + func (ReplicationMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{0} + return fileDescriptor_405bb93d9863dfea, []int{0} } type DRAutoSyncState int32 @@ -80,6 +69,7 @@ var DRAutoSyncState_name = map[int32]string{ 2: "ASYNC", 3: "SYNC_RECOVER", } + var DRAutoSyncState_value = map[string]int32{ "SYNC": 0, "ASYNC_WAIT": 1, @@ -90,8 +80,9 @@ var DRAutoSyncState_value = map[string]int32{ func (x DRAutoSyncState) String() string { return proto.EnumName(DRAutoSyncState_name, int32(x)) } + func (DRAutoSyncState) EnumDescriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{1} + return fileDescriptor_405bb93d9863dfea, []int{1} } type RegionReplicationState int32 @@ -110,6 +101,7 @@ var RegionReplicationState_name = map[int32]string{ 1: "SIMPLE_MAJORITY", 2: "INTEGRITY_OVER_LABEL", } + var RegionReplicationState_value = map[string]int32{ "UNKNOWN": 0, "SIMPLE_MAJORITY": 1, @@ -119,22 +111,52 @@ var RegionReplicationState_value = map[string]int32{ func (x RegionReplicationState) String() string { return proto.EnumName(RegionReplicationState_name, int32(x)) } + func (RegionReplicationState) EnumDescriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{2} + return fileDescriptor_405bb93d9863dfea, []int{2} } // The replication status sync from PD to TiKV. type ReplicationStatus struct { - Mode ReplicationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=replication_modepb.ReplicationMode" json:"mode,omitempty"` - DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync" json:"dr_auto_sync,omitempty"` + Mode ReplicationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=replication_modepb.ReplicationMode" json:"mode,omitempty"` + DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync,proto3" json:"dr_auto_sync,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ReplicationStatus) Reset() { *m = ReplicationStatus{} } func (m *ReplicationStatus) String() string { return proto.CompactTextString(m) } func (*ReplicationStatus) ProtoMessage() {} func (*ReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{0} + return fileDescriptor_405bb93d9863dfea, []int{0} +} +func (m *ReplicationStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReplicationStatus.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 *ReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplicationStatus.Merge(m, src) +} +func (m *ReplicationStatus) XXX_Size() int { + return m.Size() } +func (m *ReplicationStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ReplicationStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ReplicationStatus proto.InternalMessageInfo func (m *ReplicationStatus) GetMode() ReplicationMode { if m != nil { @@ -160,15 +182,46 @@ type DRAutoSync struct { // Duration to wait before switching to SYNC by force (in seconds) WaitSyncTimeoutHint int32 `protobuf:"varint,4,opt,name=wait_sync_timeout_hint,json=waitSyncTimeoutHint,proto3" json:"wait_sync_timeout_hint,omitempty"` // Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT. - AvailableStores []uint64 `protobuf:"varint,5,rep,packed,name=available_stores,json=availableStores" json:"available_stores,omitempty"` + AvailableStores []uint64 `protobuf:"varint,5,rep,packed,name=available_stores,json=availableStores,proto3" json:"available_stores,omitempty"` // Stores should forbid region split. - PauseRegionSplit bool `protobuf:"varint,6,opt,name=pause_region_split,json=pauseRegionSplit,proto3" json:"pause_region_split,omitempty"` + PauseRegionSplit bool `protobuf:"varint,6,opt,name=pause_region_split,json=pauseRegionSplit,proto3" json:"pause_region_split,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } +func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } +func (*DRAutoSync) ProtoMessage() {} +func (*DRAutoSync) Descriptor() ([]byte, []int) { + return fileDescriptor_405bb93d9863dfea, []int{1} +} +func (m *DRAutoSync) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DRAutoSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DRAutoSync.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 *DRAutoSync) XXX_Merge(src proto.Message) { + xxx_messageInfo_DRAutoSync.Merge(m, src) +} +func (m *DRAutoSync) XXX_Size() int { + return m.Size() +} +func (m *DRAutoSync) XXX_DiscardUnknown() { + xxx_messageInfo_DRAutoSync.DiscardUnknown(m) } -func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } -func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } -func (*DRAutoSync) ProtoMessage() {} -func (*DRAutoSync) Descriptor() ([]byte, []int) { return fileDescriptorReplicationModepb, []int{1} } +var xxx_messageInfo_DRAutoSync proto.InternalMessageInfo func (m *DRAutoSync) GetLabelKey() string { if m != nil { @@ -216,15 +269,44 @@ func (m *DRAutoSync) GetPauseRegionSplit() bool { type RegionReplicationStatus struct { State RegionReplicationState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.RegionReplicationState" json:"state,omitempty"` // Unique ID of the state, it increases after each state transfer. - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionReplicationStatus) Reset() { *m = RegionReplicationStatus{} } func (m *RegionReplicationStatus) String() string { return proto.CompactTextString(m) } func (*RegionReplicationStatus) ProtoMessage() {} func (*RegionReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{2} + return fileDescriptor_405bb93d9863dfea, []int{2} +} +func (m *RegionReplicationStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionReplicationStatus.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 *RegionReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionReplicationStatus.Merge(m, src) +} +func (m *RegionReplicationStatus) XXX_Size() int { + return m.Size() } +func (m *RegionReplicationStatus) XXX_DiscardUnknown() { + xxx_messageInfo_RegionReplicationStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionReplicationStatus proto.InternalMessageInfo func (m *RegionReplicationStatus) GetState() RegionReplicationState { if m != nil { @@ -241,17 +323,46 @@ func (m *RegionReplicationStatus) GetStateId() uint64 { } type StoreDRAutoSyncStatus struct { - State DRAutoSyncState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.DRAutoSyncState" json:"state,omitempty"` - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + State DRAutoSyncState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.DRAutoSyncState" json:"state,omitempty"` + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StoreDRAutoSyncStatus) Reset() { *m = StoreDRAutoSyncStatus{} } func (m *StoreDRAutoSyncStatus) String() string { return proto.CompactTextString(m) } func (*StoreDRAutoSyncStatus) ProtoMessage() {} func (*StoreDRAutoSyncStatus) Descriptor() ([]byte, []int) { - return fileDescriptorReplicationModepb, []int{3} + return fileDescriptor_405bb93d9863dfea, []int{3} +} +func (m *StoreDRAutoSyncStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreDRAutoSyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreDRAutoSyncStatus.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 *StoreDRAutoSyncStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreDRAutoSyncStatus.Merge(m, src) +} +func (m *StoreDRAutoSyncStatus) XXX_Size() int { + return m.Size() +} +func (m *StoreDRAutoSyncStatus) XXX_DiscardUnknown() { + xxx_messageInfo_StoreDRAutoSyncStatus.DiscardUnknown(m) } +var xxx_messageInfo_StoreDRAutoSyncStatus proto.InternalMessageInfo + func (m *StoreDRAutoSyncStatus) GetState() DRAutoSyncState { if m != nil { return m.State @@ -267,18 +378,57 @@ func (m *StoreDRAutoSyncStatus) GetStateId() uint64 { } func init() { + proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) + proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) + proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) proto.RegisterType((*ReplicationStatus)(nil), "replication_modepb.ReplicationStatus") proto.RegisterType((*DRAutoSync)(nil), "replication_modepb.DRAutoSync") proto.RegisterType((*RegionReplicationStatus)(nil), "replication_modepb.RegionReplicationStatus") proto.RegisterType((*StoreDRAutoSyncStatus)(nil), "replication_modepb.StoreDRAutoSyncStatus") - proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) - proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) - proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) } + +func init() { proto.RegisterFile("replication_modepb.proto", fileDescriptor_405bb93d9863dfea) } + +var fileDescriptor_405bb93d9863dfea = []byte{ + // 501 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xcd, 0xe4, 0xa7, 0x4d, 0x6e, 0xa3, 0x66, 0xbe, 0xe9, 0x47, 0x31, 0x42, 0x8a, 0xac, 0xb0, + 0x31, 0x11, 0xaa, 0x44, 0xbb, 0x40, 0xec, 0xea, 0xb6, 0x16, 0x35, 0x4d, 0x1c, 0x34, 0x76, 0xa9, + 0xba, 0x1a, 0x4d, 0xe2, 0x11, 0x58, 0x38, 0xb6, 0x65, 0x8f, 0x8b, 0xf2, 0x10, 0xb0, 0xe6, 0x91, + 0x58, 0xf2, 0x08, 0x28, 0xbc, 0x08, 0x9a, 0x89, 0xda, 0x90, 0xd6, 0xac, 0xd8, 0xcd, 0x3d, 0x47, + 0xf7, 0xdc, 0x73, 0xcf, 0xb5, 0xc1, 0xc8, 0x45, 0x16, 0x47, 0x33, 0x2e, 0xa3, 0x34, 0x61, 0xf3, + 0x34, 0x14, 0xd9, 0xf4, 0x20, 0xcb, 0x53, 0x99, 0x12, 0xf2, 0x90, 0x19, 0x7c, 0x45, 0xf0, 0x1f, + 0x5d, 0xc3, 0xbe, 0xe4, 0xb2, 0x2c, 0xc8, 0x2b, 0x68, 0x2a, 0xde, 0x40, 0x26, 0xb2, 0x76, 0x0f, + 0x9f, 0x1d, 0x54, 0x48, 0xfe, 0xd1, 0x34, 0x4e, 0x43, 0x41, 0x75, 0x03, 0x39, 0x86, 0x6e, 0x98, + 0x33, 0x5e, 0xca, 0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0x95, 0x29, 0xd4, 0x37, 0x52, + 0x18, 0xcc, 0xe1, 0x91, 0xf6, 0xbb, 0x99, 0x5f, 0x59, 0xac, 0x43, 0x47, 0xff, 0x14, 0xfa, 0xe6, + 0xb8, 0xe1, 0x4b, 0xe8, 0xdd, 0xfb, 0xa2, 0x48, 0x17, 0xda, 0x63, 0xfb, 0xed, 0x84, 0xba, 0xc1, + 0x35, 0xae, 0x11, 0x0c, 0xdd, 0x33, 0xca, 0xec, 0xcb, 0x60, 0xc2, 0xfc, 0x6b, 0xef, 0x14, 0xa3, + 0xe1, 0x39, 0xf4, 0xee, 0xcd, 0x21, 0x6d, 0x68, 0x6a, 0xb2, 0x46, 0x76, 0x01, 0x6c, 0xf5, 0x64, + 0x57, 0xb6, 0x1b, 0x60, 0x44, 0x3a, 0xd0, 0xd2, 0x35, 0xae, 0x2b, 0x25, 0xcd, 0x50, 0xe7, 0x74, + 0xf2, 0xde, 0xa1, 0xb8, 0x31, 0x0c, 0x60, 0xbf, 0x3a, 0x27, 0xb2, 0x03, 0xdb, 0x97, 0xde, 0x85, + 0x37, 0xb9, 0xf2, 0x70, 0x8d, 0xec, 0x41, 0xcf, 0x77, 0xc7, 0xef, 0x46, 0x0e, 0xbb, 0xf3, 0x85, + 0x88, 0x01, 0xff, 0xbb, 0x5e, 0xe0, 0xbc, 0x51, 0x25, 0x53, 0x7a, 0x6c, 0x64, 0x9f, 0x38, 0x23, + 0x5c, 0x3f, 0xc1, 0xdf, 0x97, 0x7d, 0xf4, 0x63, 0xd9, 0x47, 0x3f, 0x97, 0x7d, 0xf4, 0xed, 0x57, + 0xbf, 0x36, 0xdd, 0xd2, 0xff, 0xe1, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x3f, 0x6c, + 0x86, 0xa3, 0x03, 0x00, 0x00, +} + func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -286,32 +436,43 @@ func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { } func (m *ReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Mode != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.Mode)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.DrAutoSync != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.DrAutoSync.Size())) - n1, err := m.DrAutoSync.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.DrAutoSync.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReplicationModepb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Mode != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -319,30 +480,28 @@ func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { } func (m *DRAutoSync) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DRAutoSync) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.LabelKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(len(m.LabelKey))) - i += copy(dAtA[i:], m.LabelKey) - } - if m.State != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.StateId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) - } - if m.WaitSyncTimeoutHint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.WaitSyncTimeoutHint)) + if m.PauseRegionSplit { + i-- + if m.PauseRegionSplit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 } if len(m.AvailableStores) > 0 { dAtA3 := make([]byte, len(m.AvailableStores)*10) @@ -356,28 +515,41 @@ func (m *DRAutoSync) MarshalTo(dAtA []byte) (int, error) { dAtA3[j2] = uint8(num) j2++ } - dAtA[i] = 0x2a - i++ + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) i = encodeVarintReplicationModepb(dAtA, i, uint64(j2)) - i += copy(dAtA[i:], dAtA3[:j2]) + i-- + dAtA[i] = 0x2a } - if m.PauseRegionSplit { - dAtA[i] = 0x30 - i++ - if m.PauseRegionSplit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.WaitSyncTimeoutHint != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.WaitSyncTimeoutHint)) + i-- + dAtA[i] = 0x20 + } + if m.StateId != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + i-- + dAtA[i] = 0x18 + } + if m.State != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.LabelKey) > 0 { + i -= len(m.LabelKey) + copy(dAtA[i:], m.LabelKey) + i = encodeVarintReplicationModepb(dAtA, i, uint64(len(m.LabelKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *RegionReplicationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -385,27 +557,36 @@ func (m *RegionReplicationStatus) Marshal() (dAtA []byte, err error) { } func (m *RegionReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.State != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StateId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + i-- + dAtA[i] = 0x10 + } + if m.State != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *StoreDRAutoSyncStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -413,33 +594,47 @@ func (m *StoreDRAutoSyncStatus) Marshal() (dAtA []byte, err error) { } func (m *StoreDRAutoSyncStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreDRAutoSyncStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.State != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.StateId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.State != 0 { + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func encodeVarintReplicationModepb(dAtA []byte, offset int, v uint64) int { + offset -= sovReplicationModepb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ReplicationStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Mode != 0 { @@ -449,10 +644,16 @@ func (m *ReplicationStatus) Size() (n int) { l = m.DrAutoSync.Size() n += 1 + l + sovReplicationModepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DRAutoSync) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.LabelKey) @@ -478,10 +679,16 @@ func (m *DRAutoSync) Size() (n int) { if m.PauseRegionSplit { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionReplicationStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.State != 0 { @@ -490,10 +697,16 @@ func (m *RegionReplicationStatus) Size() (n int) { if m.StateId != 0 { n += 1 + sovReplicationModepb(uint64(m.StateId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreDRAutoSyncStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.State != 0 { @@ -502,18 +715,14 @@ func (m *StoreDRAutoSyncStatus) Size() (n int) { if m.StateId != 0 { n += 1 + sovReplicationModepb(uint64(m.StateId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovReplicationModepb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozReplicationModepb(x uint64) (n int) { return sovReplicationModepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -533,7 +742,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -561,7 +770,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (ReplicationMode(b) & 0x7F) << shift + m.Mode |= ReplicationMode(b&0x7F) << shift if b < 0x80 { break } @@ -580,7 +789,7 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -589,6 +798,9 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplicationModepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -605,12 +817,13 @@ func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -635,7 +848,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -663,7 +876,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -673,6 +886,9 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReplicationModepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -692,7 +908,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (DRAutoSyncState(b) & 0x7F) << shift + m.State |= DRAutoSyncState(b&0x7F) << shift if b < 0x80 { break } @@ -711,7 +927,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= (uint64(b) & 0x7F) << shift + m.StateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -730,7 +946,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitSyncTimeoutHint |= (int32(b) & 0x7F) << shift + m.WaitSyncTimeoutHint |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -747,7 +963,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -764,7 +980,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -773,9 +989,23 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplicationModepb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthReplicationModepb + } 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.AvailableStores) == 0 { + m.AvailableStores = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -787,7 +1017,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -811,7 +1041,7 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -823,12 +1053,13 @@ func (m *DRAutoSync) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -853,7 +1084,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -881,7 +1112,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (RegionReplicationState(b) & 0x7F) << shift + m.State |= RegionReplicationState(b&0x7F) << shift if b < 0x80 { break } @@ -900,7 +1131,7 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= (uint64(b) & 0x7F) << shift + m.StateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -911,12 +1142,13 @@ func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -941,7 +1173,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -969,7 +1201,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (DRAutoSyncState(b) & 0x7F) << shift + m.State |= DRAutoSyncState(b&0x7F) << shift if b < 0x80 { break } @@ -988,7 +1220,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StateId |= (uint64(b) & 0x7F) << shift + m.StateId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -999,12 +1231,13 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthReplicationModepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1017,6 +1250,7 @@ func (m *StoreDRAutoSyncStatus) Unmarshal(dAtA []byte) error { func skipReplicationModepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1048,10 +1282,8 @@ func skipReplicationModepb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1068,91 +1300,34 @@ func skipReplicationModepb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthReplicationModepb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplicationModepb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipReplicationModepb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupReplicationModepb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthReplicationModepb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthReplicationModepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowReplicationModepb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthReplicationModepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowReplicationModepb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupReplicationModepb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("replication_modepb.proto", fileDescriptorReplicationModepb) } - -var fileDescriptorReplicationModepb = []byte{ - // 501 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xcd, 0xe4, 0xa7, 0x4d, 0x6e, 0xa3, 0x66, 0xbe, 0xe9, 0x47, 0x31, 0x42, 0x8a, 0xac, 0xb0, - 0x31, 0x11, 0xaa, 0x44, 0xbb, 0x40, 0xec, 0xea, 0xb6, 0x16, 0x35, 0x4d, 0x1c, 0x34, 0x76, 0xa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23, 0xd8, 0xff, 0xcc, 0x23, 0xa9, 0x17, 0x60, 0x32, 0x9a, - 0x8b, 0xb4, 0x94, 0xec, 0x63, 0x94, 0x48, 0xa3, 0x69, 0x22, 0xab, 0x45, 0xf7, 0x14, 0xab, 0x04, - 0x83, 0x15, 0x77, 0x1e, 0x25, 0x92, 0x3c, 0x07, 0xcc, 0x6f, 0x78, 0x14, 0xf3, 0x69, 0x2c, 0x58, - 0x21, 0xd3, 0x5c, 0x14, 0x46, 0xcb, 0x6c, 0x58, 0x4d, 0xda, 0xbb, 0xc3, 0x7d, 0x0d, 0x93, 0x17, - 0x40, 0x32, 0x5e, 0x16, 0x82, 0xe5, 0xe2, 0x83, 0x32, 0x5a, 0x64, 0x71, 0x24, 0x8d, 0x2d, 0x13, - 0x59, 0x6d, 0x8a, 0x35, 0x43, 0x35, 0xe1, 0x2b, 0x7c, 0x70, 0x03, 0x8f, 0x57, 0xe5, 0xc3, 0x2b, - 0x1d, 0xdf, 0xae, 0xbf, 0x3a, 0xd3, 0xb0, 0xfa, 0x4c, 0x15, 0xbd, 0x95, 0x29, 0xd4, 0x37, 0x52, - 0x18, 0xcc, 0xe1, 0x91, 0xf6, 0xbb, 0x99, 0x5f, 0x59, 0xac, 0x43, 0x47, 0xff, 0x14, 0xfa, 0xe6, - 0xb8, 0xe1, 0x4b, 0xe8, 0xdd, 0xfb, 0xa2, 0x48, 0x17, 0xda, 0x63, 0xfb, 0xed, 0x84, 0xba, 0xc1, - 0x35, 0xae, 0x11, 0x0c, 0xdd, 0x33, 0xca, 0xec, 0xcb, 0x60, 0xc2, 0xfc, 0x6b, 0xef, 0x14, 0xa3, - 0xe1, 0x39, 0xf4, 0xee, 0xcd, 0x21, 0x6d, 0x68, 0x6a, 0xb2, 0x46, 0x76, 0x01, 0x6c, 0xf5, 0x64, - 0x57, 0xb6, 0x1b, 0x60, 0x44, 0x3a, 0xd0, 0xd2, 0x35, 0xae, 0x2b, 0x25, 0xcd, 0x50, 0xe7, 0x74, - 0xf2, 0xde, 0xa1, 0xb8, 0x31, 0x0c, 0x60, 0xbf, 0x3a, 0x27, 0xb2, 0x03, 0xdb, 0x97, 0xde, 0x85, - 0x37, 0xb9, 0xf2, 0x70, 0x8d, 0xec, 0x41, 0xcf, 0x77, 0xc7, 0xef, 0x46, 0x0e, 0xbb, 0xf3, 0x85, - 0x88, 0x01, 0xff, 0xbb, 0x5e, 0xe0, 0xbc, 0x51, 0x25, 0x53, 0x7a, 0x6c, 0x64, 0x9f, 0x38, 0x23, - 0x5c, 0x3f, 0xc1, 0xdf, 0x97, 0x7d, 0xf4, 0x63, 0xd9, 0x47, 0x3f, 0x97, 0x7d, 0xf4, 0xed, 0x57, - 0xbf, 0x36, 0xdd, 0xd2, 0xff, 0xe1, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x3f, 0x6c, - 0x86, 0xa3, 0x03, 0x00, 0x00, -} diff --git a/pkg/resource_manager/resource_manager.pb.go b/pkg/resource_manager/resource_manager.pb.go index aaae0eadc..4209f5e62 100644 --- a/pkg/resource_manager/resource_manager.pb.go +++ b/pkg/resource_manager/resource_manager.pb.go @@ -1,59 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: resource_manager.proto -/* -Package resource_manager is a generated protocol buffer package. - -It is generated from these files: - - resource_manager.proto - -It has these top-level messages: - - ListResourceGroupsRequest - ListResourceGroupsResponse - GetResourceGroupRequest - GetResourceGroupResponse - DeleteResourceGroupRequest - DeleteResourceGroupResponse - PutResourceGroupRequest - PutResourceGroupResponse - TokenBucketsRequest - TokenBucketRequest - TokenBucketsResponse - TokenBucketResponse - GrantedRUTokenBucket - GrantedRawResourceTokenBucket - Consumption - RequestUnitItem - RawResourceItem - ResourceGroup - GroupRequestUnitSettings - GroupRawResourceSettings - TokenBucket - TokenLimitSettings - Error - RunawayRule - RunawayWatch - RunawaySettings - BackgroundSettings - Participant -*/ package resource_manager import ( + "context" + encoding_binary "encoding/binary" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - - encoding_binary "encoding/binary" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -65,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type RequestUnitType int32 @@ -76,6 +38,7 @@ const ( var RequestUnitType_name = map[int32]string{ 0: "RU", } + var RequestUnitType_value = map[string]int32{ "RU": 0, } @@ -83,8 +46,9 @@ var RequestUnitType_value = map[string]int32{ func (x RequestUnitType) String() string { return proto.EnumName(RequestUnitType_name, int32(x)) } + func (RequestUnitType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{0} + return fileDescriptor_7048dd9233ee965d, []int{0} } type RawResourceType int32 @@ -100,6 +64,7 @@ var RawResourceType_name = map[int32]string{ 1: "IOReadFlow", 2: "IOWriteFlow", } + var RawResourceType_value = map[string]int32{ "CPU": 0, "IOReadFlow": 1, @@ -109,8 +74,9 @@ var RawResourceType_value = map[string]int32{ func (x RawResourceType) String() string { return proto.EnumName(RawResourceType_name, int32(x)) } + func (RawResourceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{1} + return fileDescriptor_7048dd9233ee965d, []int{1} } type GroupMode int32 @@ -126,6 +92,7 @@ var GroupMode_name = map[int32]string{ 1: "RUMode", 2: "RawMode", } + var GroupMode_value = map[string]int32{ "Unknown": 0, "RUMode": 1, @@ -135,7 +102,10 @@ var GroupMode_value = map[string]int32{ func (x GroupMode) String() string { return proto.EnumName(GroupMode_name, int32(x)) } -func (GroupMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{2} } + +func (GroupMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{2} +} type RunawayAction int32 @@ -152,6 +122,7 @@ var RunawayAction_name = map[int32]string{ 2: "CoolDown", 3: "Kill", } + var RunawayAction_value = map[string]int32{ "NoneAction": 0, "DryRun": 1, @@ -162,7 +133,10 @@ var RunawayAction_value = map[string]int32{ func (x RunawayAction) String() string { return proto.EnumName(RunawayAction_name, int32(x)) } -func (RunawayAction) EnumDescriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{3} } + +func (RunawayAction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{3} +} type RunawayWatchType int32 @@ -179,6 +153,7 @@ var RunawayWatchType_name = map[int32]string{ 2: "Similar", 3: "Plan", } + var RunawayWatchType_value = map[string]int32{ "NoneWatch": 0, "Exact": 1, @@ -189,32 +164,91 @@ var RunawayWatchType_value = map[string]int32{ func (x RunawayWatchType) String() string { return proto.EnumName(RunawayWatchType_name, int32(x)) } + func (RunawayWatchType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{4} + return fileDescriptor_7048dd9233ee965d, []int{4} } type ListResourceGroupsRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListResourceGroupsRequest) Reset() { *m = ListResourceGroupsRequest{} } func (m *ListResourceGroupsRequest) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsRequest) ProtoMessage() {} func (*ListResourceGroupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{0} + return fileDescriptor_7048dd9233ee965d, []int{0} +} +func (m *ListResourceGroupsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListResourceGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListResourceGroupsRequest.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 *ListResourceGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourceGroupsRequest.Merge(m, src) +} +func (m *ListResourceGroupsRequest) XXX_Size() int { + return m.Size() } +func (m *ListResourceGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListResourceGroupsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListResourceGroupsRequest proto.InternalMessageInfo type ListResourceGroupsResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Groups []*ResourceGroup `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Groups []*ResourceGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ListResourceGroupsResponse) Reset() { *m = ListResourceGroupsResponse{} } func (m *ListResourceGroupsResponse) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsResponse) ProtoMessage() {} func (*ListResourceGroupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{1} + return fileDescriptor_7048dd9233ee965d, []int{1} +} +func (m *ListResourceGroupsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListResourceGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListResourceGroupsResponse.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 *ListResourceGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourceGroupsResponse.Merge(m, src) +} +func (m *ListResourceGroupsResponse) XXX_Size() int { + return m.Size() +} +func (m *ListResourceGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListResourceGroupsResponse.DiscardUnknown(m) } +var xxx_messageInfo_ListResourceGroupsResponse proto.InternalMessageInfo + func (m *ListResourceGroupsResponse) GetError() *Error { if m != nil { return m.Error @@ -230,16 +264,45 @@ func (m *ListResourceGroupsResponse) GetGroups() []*ResourceGroup { } type GetResourceGroupRequest struct { - ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetResourceGroupRequest) Reset() { *m = GetResourceGroupRequest{} } func (m *GetResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*GetResourceGroupRequest) ProtoMessage() {} func (*GetResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{2} + return fileDescriptor_7048dd9233ee965d, []int{2} +} +func (m *GetResourceGroupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResourceGroupRequest.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 *GetResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResourceGroupRequest.Merge(m, src) +} +func (m *GetResourceGroupRequest) XXX_Size() int { + return m.Size() +} +func (m *GetResourceGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetResourceGroupRequest.DiscardUnknown(m) } +var xxx_messageInfo_GetResourceGroupRequest proto.InternalMessageInfo + func (m *GetResourceGroupRequest) GetResourceGroupName() string { if m != nil { return m.ResourceGroupName @@ -248,16 +311,45 @@ func (m *GetResourceGroupRequest) GetResourceGroupName() string { } type GetResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Group *ResourceGroup `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Group *ResourceGroup `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetResourceGroupResponse) Reset() { *m = GetResourceGroupResponse{} } func (m *GetResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*GetResourceGroupResponse) ProtoMessage() {} func (*GetResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{3} + return fileDescriptor_7048dd9233ee965d, []int{3} +} +func (m *GetResourceGroupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetResourceGroupResponse.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 *GetResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResourceGroupResponse.Merge(m, src) +} +func (m *GetResourceGroupResponse) XXX_Size() int { + return m.Size() } +func (m *GetResourceGroupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResourceGroupResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetResourceGroupResponse proto.InternalMessageInfo func (m *GetResourceGroupResponse) GetError() *Error { if m != nil { @@ -274,15 +366,44 @@ func (m *GetResourceGroupResponse) GetGroup() *ResourceGroup { } type DeleteResourceGroupRequest struct { - ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteResourceGroupRequest) Reset() { *m = DeleteResourceGroupRequest{} } func (m *DeleteResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupRequest) ProtoMessage() {} func (*DeleteResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{4} + return fileDescriptor_7048dd9233ee965d, []int{4} +} +func (m *DeleteResourceGroupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *DeleteResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteResourceGroupRequest.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 *DeleteResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResourceGroupRequest.Merge(m, src) +} +func (m *DeleteResourceGroupRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteResourceGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResourceGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteResourceGroupRequest proto.InternalMessageInfo func (m *DeleteResourceGroupRequest) GetResourceGroupName() string { if m != nil { @@ -292,17 +413,46 @@ func (m *DeleteResourceGroupRequest) GetResourceGroupName() string { } type DeleteResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DeleteResourceGroupResponse) Reset() { *m = DeleteResourceGroupResponse{} } func (m *DeleteResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupResponse) ProtoMessage() {} func (*DeleteResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{5} + return fileDescriptor_7048dd9233ee965d, []int{5} +} +func (m *DeleteResourceGroupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteResourceGroupResponse.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 *DeleteResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResourceGroupResponse.Merge(m, src) +} +func (m *DeleteResourceGroupResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteResourceGroupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteResourceGroupResponse.DiscardUnknown(m) } +var xxx_messageInfo_DeleteResourceGroupResponse proto.InternalMessageInfo + func (m *DeleteResourceGroupResponse) GetError() *Error { if m != nil { return m.Error @@ -318,15 +468,44 @@ func (m *DeleteResourceGroupResponse) GetBody() string { } type PutResourceGroupRequest struct { - Group *ResourceGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"` + Group *ResourceGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResourceGroupRequest) Reset() { *m = PutResourceGroupRequest{} } func (m *PutResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*PutResourceGroupRequest) ProtoMessage() {} func (*PutResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{6} + return fileDescriptor_7048dd9233ee965d, []int{6} +} +func (m *PutResourceGroupRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutResourceGroupRequest.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 *PutResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResourceGroupRequest.Merge(m, src) +} +func (m *PutResourceGroupRequest) XXX_Size() int { + return m.Size() } +func (m *PutResourceGroupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutResourceGroupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PutResourceGroupRequest proto.InternalMessageInfo func (m *PutResourceGroupRequest) GetGroup() *ResourceGroup { if m != nil { @@ -336,17 +515,46 @@ func (m *PutResourceGroupRequest) GetGroup() *ResourceGroup { } type PutResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PutResourceGroupResponse) Reset() { *m = PutResourceGroupResponse{} } func (m *PutResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*PutResourceGroupResponse) ProtoMessage() {} func (*PutResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{7} + return fileDescriptor_7048dd9233ee965d, []int{7} +} +func (m *PutResourceGroupResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PutResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PutResourceGroupResponse.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 *PutResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResourceGroupResponse.Merge(m, src) +} +func (m *PutResourceGroupResponse) XXX_Size() int { + return m.Size() +} +func (m *PutResourceGroupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutResourceGroupResponse.DiscardUnknown(m) } +var xxx_messageInfo_PutResourceGroupResponse proto.InternalMessageInfo + func (m *PutResourceGroupResponse) GetError() *Error { if m != nil { return m.Error @@ -362,17 +570,46 @@ func (m *PutResourceGroupResponse) GetBody() string { } type TokenBucketsRequest struct { - Requests []*TokenBucketRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` + Requests []*TokenBucketRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` TargetRequestPeriodMs uint64 `protobuf:"varint,2,opt,name=target_request_period_ms,json=targetRequestPeriodMs,proto3" json:"target_request_period_ms,omitempty"` ClientUniqueId uint64 `protobuf:"varint,3,opt,name=client_unique_id,json=clientUniqueId,proto3" json:"client_unique_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketsRequest) Reset() { *m = TokenBucketsRequest{} } func (m *TokenBucketsRequest) String() string { return proto.CompactTextString(m) } func (*TokenBucketsRequest) ProtoMessage() {} func (*TokenBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{8} + return fileDescriptor_7048dd9233ee965d, []int{8} +} +func (m *TokenBucketsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketsRequest.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 *TokenBucketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketsRequest.Merge(m, src) +} +func (m *TokenBucketsRequest) XXX_Size() int { + return m.Size() +} +func (m *TokenBucketsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenBucketsRequest proto.InternalMessageInfo func (m *TokenBucketsRequest) GetRequests() []*TokenBucketRequest { if m != nil { @@ -402,19 +639,48 @@ type TokenBucketRequest struct { // *TokenBucketRequest_RawResourceItems Request isTokenBucketRequest_Request `protobuf_oneof:"request"` // Aggregate statistics in group level. - ConsumptionSinceLastRequest *Consumption `protobuf:"bytes,4,opt,name=consumption_since_last_request,json=consumptionSinceLastRequest" json:"consumption_since_last_request,omitempty"` + ConsumptionSinceLastRequest *Consumption `protobuf:"bytes,4,opt,name=consumption_since_last_request,json=consumptionSinceLastRequest,proto3" json:"consumption_since_last_request,omitempty"` // label background request. - IsBackground bool `protobuf:"varint,5,opt,name=is_background,json=isBackground,proto3" json:"is_background,omitempty"` - IsTiflash bool `protobuf:"varint,6,opt,name=is_tiflash,json=isTiflash,proto3" json:"is_tiflash,omitempty"` + IsBackground bool `protobuf:"varint,5,opt,name=is_background,json=isBackground,proto3" json:"is_background,omitempty"` + IsTiflash bool `protobuf:"varint,6,opt,name=is_tiflash,json=isTiflash,proto3" json:"is_tiflash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketRequest) Reset() { *m = TokenBucketRequest{} } func (m *TokenBucketRequest) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest) ProtoMessage() {} func (*TokenBucketRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{9} + return fileDescriptor_7048dd9233ee965d, []int{9} +} +func (m *TokenBucketRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketRequest.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 *TokenBucketRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest.Merge(m, src) +} +func (m *TokenBucketRequest) XXX_Size() int { + return m.Size() +} +func (m *TokenBucketRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketRequest.DiscardUnknown(m) } +var xxx_messageInfo_TokenBucketRequest proto.InternalMessageInfo + type isTokenBucketRequest_Request interface { isTokenBucketRequest_Request() MarshalTo([]byte) (int, error) @@ -422,10 +688,10 @@ type isTokenBucketRequest_Request interface { } type TokenBucketRequest_RuItems struct { - RuItems *TokenBucketRequest_RequestRU `protobuf:"bytes,2,opt,name=ru_items,json=ruItems,oneof"` + RuItems *TokenBucketRequest_RequestRU `protobuf:"bytes,2,opt,name=ru_items,json=ruItems,proto3,oneof" json:"ru_items,omitempty"` } type TokenBucketRequest_RawResourceItems struct { - RawResourceItems *TokenBucketRequest_RequestRawResource `protobuf:"bytes,3,opt,name=raw_resource_items,json=rawResourceItems,oneof"` + RawResourceItems *TokenBucketRequest_RequestRawResource `protobuf:"bytes,3,opt,name=raw_resource_items,json=rawResourceItems,proto3,oneof" json:"raw_resource_items,omitempty"` } func (*TokenBucketRequest_RuItems) isTokenBucketRequest_Request() {} @@ -480,90 +746,53 @@ func (m *TokenBucketRequest) GetIsTiflash() bool { return false } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TokenBucketRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TokenBucketRequest_OneofMarshaler, _TokenBucketRequest_OneofUnmarshaler, _TokenBucketRequest_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TokenBucketRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*TokenBucketRequest_RuItems)(nil), (*TokenBucketRequest_RawResourceItems)(nil), } } -func _TokenBucketRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TokenBucketRequest) - // request - switch x := m.Request.(type) { - case *TokenBucketRequest_RuItems: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RuItems); err != nil { - return err - } - case *TokenBucketRequest_RawResourceItems: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawResourceItems); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("TokenBucketRequest.Request has unexpected type %T", x) - } - return nil -} - -func _TokenBucketRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TokenBucketRequest) - switch tag { - case 2: // request.ru_items - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TokenBucketRequest_RequestRU) - err := b.DecodeMessage(msg) - m.Request = &TokenBucketRequest_RuItems{msg} - return true, err - case 3: // request.raw_resource_items - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(TokenBucketRequest_RequestRawResource) - err := b.DecodeMessage(msg) - m.Request = &TokenBucketRequest_RawResourceItems{msg} - return true, err - default: - return false, nil - } -} - -func _TokenBucketRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TokenBucketRequest) - // request - switch x := m.Request.(type) { - case *TokenBucketRequest_RuItems: - s := proto.Size(x.RuItems) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TokenBucketRequest_RawResourceItems: - s := proto.Size(x.RawResourceItems) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type TokenBucketRequest_RequestRU struct { - RequestRU []*RequestUnitItem `protobuf:"bytes,1,rep,name=request_r_u,json=requestRU" json:"request_r_u,omitempty"` + RequestRU []*RequestUnitItem `protobuf:"bytes,1,rep,name=request_r_u,json=requestRU,proto3" json:"request_r_u,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketRequest_RequestRU) Reset() { *m = TokenBucketRequest_RequestRU{} } func (m *TokenBucketRequest_RequestRU) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest_RequestRU) ProtoMessage() {} func (*TokenBucketRequest_RequestRU) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{9, 0} + return fileDescriptor_7048dd9233ee965d, []int{9, 0} +} +func (m *TokenBucketRequest_RequestRU) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *TokenBucketRequest_RequestRU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketRequest_RequestRU.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 *TokenBucketRequest_RequestRU) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest_RequestRU.Merge(m, src) +} +func (m *TokenBucketRequest_RequestRU) XXX_Size() int { + return m.Size() +} +func (m *TokenBucketRequest_RequestRU) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketRequest_RequestRU.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenBucketRequest_RequestRU proto.InternalMessageInfo func (m *TokenBucketRequest_RequestRU) GetRequestRU() []*RequestUnitItem { if m != nil { @@ -573,16 +802,45 @@ func (m *TokenBucketRequest_RequestRU) GetRequestRU() []*RequestUnitItem { } type TokenBucketRequest_RequestRawResource struct { - RequestRawResource []*RawResourceItem `protobuf:"bytes,1,rep,name=request_raw_resource,json=requestRawResource" json:"request_raw_resource,omitempty"` + RequestRawResource []*RawResourceItem `protobuf:"bytes,1,rep,name=request_raw_resource,json=requestRawResource,proto3" json:"request_raw_resource,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketRequest_RequestRawResource) Reset() { *m = TokenBucketRequest_RequestRawResource{} } func (m *TokenBucketRequest_RequestRawResource) String() string { return proto.CompactTextString(m) } func (*TokenBucketRequest_RequestRawResource) ProtoMessage() {} func (*TokenBucketRequest_RequestRawResource) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{9, 1} + return fileDescriptor_7048dd9233ee965d, []int{9, 1} +} +func (m *TokenBucketRequest_RequestRawResource) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucketRequest_RequestRawResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketRequest_RequestRawResource.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 *TokenBucketRequest_RequestRawResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest_RequestRawResource.Merge(m, src) +} +func (m *TokenBucketRequest_RequestRawResource) XXX_Size() int { + return m.Size() +} +func (m *TokenBucketRequest_RequestRawResource) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketRequest_RequestRawResource.DiscardUnknown(m) } +var xxx_messageInfo_TokenBucketRequest_RequestRawResource proto.InternalMessageInfo + func (m *TokenBucketRequest_RequestRawResource) GetRequestRawResource() []*RawResourceItem { if m != nil { return m.RequestRawResource @@ -591,16 +849,45 @@ func (m *TokenBucketRequest_RequestRawResource) GetRequestRawResource() []*RawRe } type TokenBucketsResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` - Responses []*TokenBucketResponse `protobuf:"bytes,2,rep,name=responses" json:"responses,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Responses []*TokenBucketResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketsResponse) Reset() { *m = TokenBucketsResponse{} } func (m *TokenBucketsResponse) String() string { return proto.CompactTextString(m) } func (*TokenBucketsResponse) ProtoMessage() {} func (*TokenBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{10} + return fileDescriptor_7048dd9233ee965d, []int{10} +} +func (m *TokenBucketsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketsResponse.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 *TokenBucketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketsResponse.Merge(m, src) +} +func (m *TokenBucketsResponse) XXX_Size() int { + return m.Size() } +func (m *TokenBucketsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenBucketsResponse proto.InternalMessageInfo func (m *TokenBucketsResponse) GetError() *Error { if m != nil { @@ -619,18 +906,47 @@ func (m *TokenBucketsResponse) GetResponses() []*TokenBucketResponse { type TokenBucketResponse struct { ResourceGroupName string `protobuf:"bytes,1,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` // RU mode - GrantedRUTokens []*GrantedRUTokenBucket `protobuf:"bytes,2,rep,name=granted_r_u_tokens,json=grantedRUTokens" json:"granted_r_u_tokens,omitempty"` + GrantedRUTokens []*GrantedRUTokenBucket `protobuf:"bytes,2,rep,name=granted_r_u_tokens,json=grantedRUTokens,proto3" json:"granted_r_u_tokens,omitempty"` // Raw mode - GrantedResourceTokens []*GrantedRawResourceTokenBucket `protobuf:"bytes,3,rep,name=granted_resource_tokens,json=grantedResourceTokens" json:"granted_resource_tokens,omitempty"` + GrantedResourceTokens []*GrantedRawResourceTokenBucket `protobuf:"bytes,3,rep,name=granted_resource_tokens,json=grantedResourceTokens,proto3" json:"granted_resource_tokens,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenBucketResponse) Reset() { *m = TokenBucketResponse{} } func (m *TokenBucketResponse) String() string { return proto.CompactTextString(m) } func (*TokenBucketResponse) ProtoMessage() {} func (*TokenBucketResponse) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{11} + return fileDescriptor_7048dd9233ee965d, []int{11} +} +func (m *TokenBucketResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucketResponse.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 *TokenBucketResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketResponse.Merge(m, src) +} +func (m *TokenBucketResponse) XXX_Size() int { + return m.Size() +} +func (m *TokenBucketResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucketResponse.DiscardUnknown(m) } +var xxx_messageInfo_TokenBucketResponse proto.InternalMessageInfo + func (m *TokenBucketResponse) GetResourceGroupName() string { if m != nil { return m.ResourceGroupName @@ -653,17 +969,46 @@ func (m *TokenBucketResponse) GetGrantedResourceTokens() []*GrantedRawResourceTo } type GrantedRUTokenBucket struct { - Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` - GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens" json:"granted_tokens,omitempty"` - TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` + Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` + GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens,proto3" json:"granted_tokens,omitempty"` + TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GrantedRUTokenBucket) Reset() { *m = GrantedRUTokenBucket{} } func (m *GrantedRUTokenBucket) String() string { return proto.CompactTextString(m) } func (*GrantedRUTokenBucket) ProtoMessage() {} func (*GrantedRUTokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{12} + return fileDescriptor_7048dd9233ee965d, []int{12} +} +func (m *GrantedRUTokenBucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantedRUTokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GrantedRUTokenBucket.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 *GrantedRUTokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantedRUTokenBucket.Merge(m, src) +} +func (m *GrantedRUTokenBucket) XXX_Size() int { + return m.Size() +} +func (m *GrantedRUTokenBucket) XXX_DiscardUnknown() { + xxx_messageInfo_GrantedRUTokenBucket.DiscardUnknown(m) +} + +var xxx_messageInfo_GrantedRUTokenBucket proto.InternalMessageInfo func (m *GrantedRUTokenBucket) GetType() RequestUnitType { if m != nil { @@ -687,18 +1032,47 @@ func (m *GrantedRUTokenBucket) GetTrickleTimeMs() int64 { } type GrantedRawResourceTokenBucket struct { - Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` - GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens" json:"granted_tokens,omitempty"` - TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` + Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` + GrantedTokens *TokenBucket `protobuf:"bytes,2,opt,name=granted_tokens,json=grantedTokens,proto3" json:"granted_tokens,omitempty"` + TrickleTimeMs int64 `protobuf:"varint,3,opt,name=trickle_time_ms,json=trickleTimeMs,proto3" json:"trickle_time_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GrantedRawResourceTokenBucket) Reset() { *m = GrantedRawResourceTokenBucket{} } func (m *GrantedRawResourceTokenBucket) String() string { return proto.CompactTextString(m) } func (*GrantedRawResourceTokenBucket) ProtoMessage() {} func (*GrantedRawResourceTokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{13} + return fileDescriptor_7048dd9233ee965d, []int{13} +} +func (m *GrantedRawResourceTokenBucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GrantedRawResourceTokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GrantedRawResourceTokenBucket.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 *GrantedRawResourceTokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantedRawResourceTokenBucket.Merge(m, src) +} +func (m *GrantedRawResourceTokenBucket) XXX_Size() int { + return m.Size() +} +func (m *GrantedRawResourceTokenBucket) XXX_DiscardUnknown() { + xxx_messageInfo_GrantedRawResourceTokenBucket.DiscardUnknown(m) } +var xxx_messageInfo_GrantedRawResourceTokenBucket proto.InternalMessageInfo + func (m *GrantedRawResourceTokenBucket) GetType() RawResourceType { if m != nil { return m.Type @@ -721,20 +1095,51 @@ func (m *GrantedRawResourceTokenBucket) GetTrickleTimeMs() int64 { } type Consumption struct { - RRU float64 `protobuf:"fixed64,1,opt,name=r_r_u,json=rRU,proto3" json:"r_r_u,omitempty"` - WRU float64 `protobuf:"fixed64,2,opt,name=w_r_u,json=wRU,proto3" json:"w_r_u,omitempty"` - ReadBytes float64 `protobuf:"fixed64,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` - WriteBytes float64 `protobuf:"fixed64,4,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` - TotalCpuTimeMs float64 `protobuf:"fixed64,5,opt,name=total_cpu_time_ms,json=totalCpuTimeMs,proto3" json:"total_cpu_time_ms,omitempty"` - SqlLayerCpuTimeMs float64 `protobuf:"fixed64,6,opt,name=sql_layer_cpu_time_ms,json=sqlLayerCpuTimeMs,proto3" json:"sql_layer_cpu_time_ms,omitempty"` - KvReadRpcCount float64 `protobuf:"fixed64,7,opt,name=kv_read_rpc_count,json=kvReadRpcCount,proto3" json:"kv_read_rpc_count,omitempty"` - KvWriteRpcCount float64 `protobuf:"fixed64,8,opt,name=kv_write_rpc_count,json=kvWriteRpcCount,proto3" json:"kv_write_rpc_count,omitempty"` + RRU float64 `protobuf:"fixed64,1,opt,name=r_r_u,json=rRU,proto3" json:"r_r_u,omitempty"` + WRU float64 `protobuf:"fixed64,2,opt,name=w_r_u,json=wRU,proto3" json:"w_r_u,omitempty"` + ReadBytes float64 `protobuf:"fixed64,3,opt,name=read_bytes,json=readBytes,proto3" json:"read_bytes,omitempty"` + WriteBytes float64 `protobuf:"fixed64,4,opt,name=write_bytes,json=writeBytes,proto3" json:"write_bytes,omitempty"` + TotalCpuTimeMs float64 `protobuf:"fixed64,5,opt,name=total_cpu_time_ms,json=totalCpuTimeMs,proto3" json:"total_cpu_time_ms,omitempty"` + SqlLayerCpuTimeMs float64 `protobuf:"fixed64,6,opt,name=sql_layer_cpu_time_ms,json=sqlLayerCpuTimeMs,proto3" json:"sql_layer_cpu_time_ms,omitempty"` + KvReadRpcCount float64 `protobuf:"fixed64,7,opt,name=kv_read_rpc_count,json=kvReadRpcCount,proto3" json:"kv_read_rpc_count,omitempty"` + KvWriteRpcCount float64 `protobuf:"fixed64,8,opt,name=kv_write_rpc_count,json=kvWriteRpcCount,proto3" json:"kv_write_rpc_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Consumption) Reset() { *m = Consumption{} } +func (m *Consumption) String() string { return proto.CompactTextString(m) } +func (*Consumption) ProtoMessage() {} +func (*Consumption) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{14} +} +func (m *Consumption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Consumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Consumption.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 *Consumption) XXX_Merge(src proto.Message) { + xxx_messageInfo_Consumption.Merge(m, src) +} +func (m *Consumption) XXX_Size() int { + return m.Size() +} +func (m *Consumption) XXX_DiscardUnknown() { + xxx_messageInfo_Consumption.DiscardUnknown(m) } -func (m *Consumption) Reset() { *m = Consumption{} } -func (m *Consumption) String() string { return proto.CompactTextString(m) } -func (*Consumption) ProtoMessage() {} -func (*Consumption) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{14} } +var xxx_messageInfo_Consumption proto.InternalMessageInfo func (m *Consumption) GetRRU() float64 { if m != nil { @@ -793,14 +1198,45 @@ func (m *Consumption) GetKvWriteRpcCount() float64 { } type RequestUnitItem struct { - Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` - Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` + Type RequestUnitType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RequestUnitType" json:"type,omitempty"` + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestUnitItem) Reset() { *m = RequestUnitItem{} } +func (m *RequestUnitItem) String() string { return proto.CompactTextString(m) } +func (*RequestUnitItem) ProtoMessage() {} +func (*RequestUnitItem) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{15} +} +func (m *RequestUnitItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestUnitItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestUnitItem.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 *RequestUnitItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestUnitItem.Merge(m, src) +} +func (m *RequestUnitItem) XXX_Size() int { + return m.Size() +} +func (m *RequestUnitItem) XXX_DiscardUnknown() { + xxx_messageInfo_RequestUnitItem.DiscardUnknown(m) } -func (m *RequestUnitItem) Reset() { *m = RequestUnitItem{} } -func (m *RequestUnitItem) String() string { return proto.CompactTextString(m) } -func (*RequestUnitItem) ProtoMessage() {} -func (*RequestUnitItem) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{15} } +var xxx_messageInfo_RequestUnitItem proto.InternalMessageInfo func (m *RequestUnitItem) GetType() RequestUnitType { if m != nil { @@ -817,14 +1253,45 @@ func (m *RequestUnitItem) GetValue() float64 { } type RawResourceItem struct { - Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` - Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` + Type RawResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=resource_manager.RawResourceType" json:"type,omitempty"` + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawResourceItem) Reset() { *m = RawResourceItem{} } +func (m *RawResourceItem) String() string { return proto.CompactTextString(m) } +func (*RawResourceItem) ProtoMessage() {} +func (*RawResourceItem) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{16} +} +func (m *RawResourceItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawResourceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RawResourceItem.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 *RawResourceItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawResourceItem.Merge(m, src) +} +func (m *RawResourceItem) XXX_Size() int { + return m.Size() +} +func (m *RawResourceItem) XXX_DiscardUnknown() { + xxx_messageInfo_RawResourceItem.DiscardUnknown(m) } -func (m *RawResourceItem) Reset() { *m = RawResourceItem{} } -func (m *RawResourceItem) String() string { return proto.CompactTextString(m) } -func (*RawResourceItem) ProtoMessage() {} -func (*RawResourceItem) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{16} } +var xxx_messageInfo_RawResourceItem proto.InternalMessageInfo func (m *RawResourceItem) GetType() RawResourceType { if m != nil { @@ -845,20 +1312,51 @@ type ResourceGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mode GroupMode `protobuf:"varint,2,opt,name=mode,proto3,enum=resource_manager.GroupMode" json:"mode,omitempty"` // Used in RU mode, group settings with WRU/RRU etc resource abstract unit. - RUSettings *GroupRequestUnitSettings `protobuf:"bytes,3,opt,name=r_u_settings,json=rUSettings" json:"r_u_settings,omitempty"` + RUSettings *GroupRequestUnitSettings `protobuf:"bytes,3,opt,name=r_u_settings,json=rUSettings,proto3" json:"r_u_settings,omitempty"` // Used in Raw mode, group settings with CPU/IO etc resource unit. - RawResourceSettings *GroupRawResourceSettings `protobuf:"bytes,4,opt,name=raw_resource_settings,json=rawResourceSettings" json:"raw_resource_settings,omitempty"` + RawResourceSettings *GroupRawResourceSettings `protobuf:"bytes,4,opt,name=raw_resource_settings,json=rawResourceSettings,proto3" json:"raw_resource_settings,omitempty"` // The task scheduling priority Priority uint32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` // Runaway queries settings - RunawaySettings *RunawaySettings `protobuf:"bytes,6,opt,name=runaway_settings,json=runawaySettings" json:"runaway_settings,omitempty"` - BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings" json:"background_settings,omitempty"` + RunawaySettings *RunawaySettings `protobuf:"bytes,6,opt,name=runaway_settings,json=runawaySettings,proto3" json:"runaway_settings,omitempty"` + BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings,proto3" json:"background_settings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceGroup) Reset() { *m = ResourceGroup{} } +func (m *ResourceGroup) String() string { return proto.CompactTextString(m) } +func (*ResourceGroup) ProtoMessage() {} +func (*ResourceGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{17} +} +func (m *ResourceGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResourceGroup.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 *ResourceGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceGroup.Merge(m, src) +} +func (m *ResourceGroup) XXX_Size() int { + return m.Size() +} +func (m *ResourceGroup) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceGroup.DiscardUnknown(m) } -func (m *ResourceGroup) Reset() { *m = ResourceGroup{} } -func (m *ResourceGroup) String() string { return proto.CompactTextString(m) } -func (*ResourceGroup) ProtoMessage() {} -func (*ResourceGroup) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{17} } +var xxx_messageInfo_ResourceGroup proto.InternalMessageInfo func (m *ResourceGroup) GetName() string { if m != nil { @@ -910,15 +1408,44 @@ func (m *ResourceGroup) GetBackgroundSettings() *BackgroundSettings { } type GroupRequestUnitSettings struct { - RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU" json:"r_u,omitempty"` + RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU,proto3" json:"r_u,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupRequestUnitSettings) Reset() { *m = GroupRequestUnitSettings{} } func (m *GroupRequestUnitSettings) String() string { return proto.CompactTextString(m) } func (*GroupRequestUnitSettings) ProtoMessage() {} func (*GroupRequestUnitSettings) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{18} + return fileDescriptor_7048dd9233ee965d, []int{18} +} +func (m *GroupRequestUnitSettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupRequestUnitSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupRequestUnitSettings.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 *GroupRequestUnitSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupRequestUnitSettings.Merge(m, src) +} +func (m *GroupRequestUnitSettings) XXX_Size() int { + return m.Size() } +func (m *GroupRequestUnitSettings) XXX_DiscardUnknown() { + xxx_messageInfo_GroupRequestUnitSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupRequestUnitSettings proto.InternalMessageInfo func (m *GroupRequestUnitSettings) GetRU() *TokenBucket { if m != nil { @@ -928,18 +1455,47 @@ func (m *GroupRequestUnitSettings) GetRU() *TokenBucket { } type GroupRawResourceSettings struct { - Cpu *TokenBucket `protobuf:"bytes,1,opt,name=cpu" json:"cpu,omitempty"` - IoRead *TokenBucket `protobuf:"bytes,2,opt,name=io_read,json=ioRead" json:"io_read,omitempty"` - IoWrite *TokenBucket `protobuf:"bytes,3,opt,name=io_write,json=ioWrite" json:"io_write,omitempty"` + Cpu *TokenBucket `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` + IoRead *TokenBucket `protobuf:"bytes,2,opt,name=io_read,json=ioRead,proto3" json:"io_read,omitempty"` + IoWrite *TokenBucket `protobuf:"bytes,3,opt,name=io_write,json=ioWrite,proto3" json:"io_write,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupRawResourceSettings) Reset() { *m = GroupRawResourceSettings{} } func (m *GroupRawResourceSettings) String() string { return proto.CompactTextString(m) } func (*GroupRawResourceSettings) ProtoMessage() {} func (*GroupRawResourceSettings) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{19} + return fileDescriptor_7048dd9233ee965d, []int{19} +} +func (m *GroupRawResourceSettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupRawResourceSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupRawResourceSettings.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 *GroupRawResourceSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupRawResourceSettings.Merge(m, src) +} +func (m *GroupRawResourceSettings) XXX_Size() int { + return m.Size() +} +func (m *GroupRawResourceSettings) XXX_DiscardUnknown() { + xxx_messageInfo_GroupRawResourceSettings.DiscardUnknown(m) } +var xxx_messageInfo_GroupRawResourceSettings proto.InternalMessageInfo + func (m *GroupRawResourceSettings) GetCpu() *TokenBucket { if m != nil { return m.Cpu @@ -962,15 +1518,46 @@ func (m *GroupRawResourceSettings) GetIoWrite() *TokenBucket { } type TokenBucket struct { - Settings *TokenLimitSettings `protobuf:"bytes,1,opt,name=settings" json:"settings,omitempty"` + Settings *TokenLimitSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // Once used to reconfigure, the tokens is delta tokens. - Tokens float64 `protobuf:"fixed64,2,opt,name=tokens,proto3" json:"tokens,omitempty"` + Tokens float64 `protobuf:"fixed64,2,opt,name=tokens,proto3" json:"tokens,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TokenBucket) Reset() { *m = TokenBucket{} } +func (m *TokenBucket) String() string { return proto.CompactTextString(m) } +func (*TokenBucket) ProtoMessage() {} +func (*TokenBucket) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{20} +} +func (m *TokenBucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenBucket.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 *TokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucket.Merge(m, src) +} +func (m *TokenBucket) XXX_Size() int { + return m.Size() +} +func (m *TokenBucket) XXX_DiscardUnknown() { + xxx_messageInfo_TokenBucket.DiscardUnknown(m) } -func (m *TokenBucket) Reset() { *m = TokenBucket{} } -func (m *TokenBucket) String() string { return proto.CompactTextString(m) } -func (*TokenBucket) ProtoMessage() {} -func (*TokenBucket) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{20} } +var xxx_messageInfo_TokenBucket proto.InternalMessageInfo func (m *TokenBucket) GetSettings() *TokenLimitSettings { if m != nil { @@ -987,17 +1574,46 @@ func (m *TokenBucket) GetTokens() float64 { } type TokenLimitSettings struct { - FillRate uint64 `protobuf:"varint,1,opt,name=fill_rate,json=fillRate,proto3" json:"fill_rate,omitempty"` - BurstLimit int64 `protobuf:"varint,2,opt,name=burst_limit,json=burstLimit,proto3" json:"burst_limit,omitempty"` - MaxTokens float64 `protobuf:"fixed64,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` + FillRate uint64 `protobuf:"varint,1,opt,name=fill_rate,json=fillRate,proto3" json:"fill_rate,omitempty"` + BurstLimit int64 `protobuf:"varint,2,opt,name=burst_limit,json=burstLimit,proto3" json:"burst_limit,omitempty"` + MaxTokens float64 `protobuf:"fixed64,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TokenLimitSettings) Reset() { *m = TokenLimitSettings{} } func (m *TokenLimitSettings) String() string { return proto.CompactTextString(m) } func (*TokenLimitSettings) ProtoMessage() {} func (*TokenLimitSettings) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{21} + return fileDescriptor_7048dd9233ee965d, []int{21} +} +func (m *TokenLimitSettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenLimitSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenLimitSettings.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 *TokenLimitSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenLimitSettings.Merge(m, src) +} +func (m *TokenLimitSettings) XXX_Size() int { + return m.Size() } +func (m *TokenLimitSettings) XXX_DiscardUnknown() { + xxx_messageInfo_TokenLimitSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenLimitSettings proto.InternalMessageInfo func (m *TokenLimitSettings) GetFillRate() uint64 { if m != nil { @@ -1021,13 +1637,44 @@ func (m *TokenLimitSettings) GetMaxTokens() float64 { } type Error struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{22} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{22} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetMessage() string { if m != nil { @@ -1037,13 +1684,44 @@ func (m *Error) GetMessage() string { } type RunawayRule struct { - ExecElapsedTimeMs uint64 `protobuf:"varint,1,opt,name=exec_elapsed_time_ms,json=execElapsedTimeMs,proto3" json:"exec_elapsed_time_ms,omitempty"` + ExecElapsedTimeMs uint64 `protobuf:"varint,1,opt,name=exec_elapsed_time_ms,json=execElapsedTimeMs,proto3" json:"exec_elapsed_time_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunawayRule) Reset() { *m = RunawayRule{} } +func (m *RunawayRule) String() string { return proto.CompactTextString(m) } +func (*RunawayRule) ProtoMessage() {} +func (*RunawayRule) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{23} +} +func (m *RunawayRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RunawayRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RunawayRule.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 *RunawayRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawayRule.Merge(m, src) +} +func (m *RunawayRule) XXX_Size() int { + return m.Size() +} +func (m *RunawayRule) XXX_DiscardUnknown() { + xxx_messageInfo_RunawayRule.DiscardUnknown(m) } -func (m *RunawayRule) Reset() { *m = RunawayRule{} } -func (m *RunawayRule) String() string { return proto.CompactTextString(m) } -func (*RunawayRule) ProtoMessage() {} -func (*RunawayRule) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{23} } +var xxx_messageInfo_RunawayRule proto.InternalMessageInfo func (m *RunawayRule) GetExecElapsedTimeMs() uint64 { if m != nil { @@ -1054,14 +1732,45 @@ func (m *RunawayRule) GetExecElapsedTimeMs() uint64 { type RunawayWatch struct { // how long would the watch last - LastingDurationMs int64 `protobuf:"varint,1,opt,name=lasting_duration_ms,json=lastingDurationMs,proto3" json:"lasting_duration_ms,omitempty"` - Type RunawayWatchType `protobuf:"varint,2,opt,name=type,proto3,enum=resource_manager.RunawayWatchType" json:"type,omitempty"` + LastingDurationMs int64 `protobuf:"varint,1,opt,name=lasting_duration_ms,json=lastingDurationMs,proto3" json:"lasting_duration_ms,omitempty"` + Type RunawayWatchType `protobuf:"varint,2,opt,name=type,proto3,enum=resource_manager.RunawayWatchType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunawayWatch) Reset() { *m = RunawayWatch{} } +func (m *RunawayWatch) String() string { return proto.CompactTextString(m) } +func (*RunawayWatch) ProtoMessage() {} +func (*RunawayWatch) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{24} +} +func (m *RunawayWatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RunawayWatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RunawayWatch.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 *RunawayWatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawayWatch.Merge(m, src) +} +func (m *RunawayWatch) XXX_Size() int { + return m.Size() +} +func (m *RunawayWatch) XXX_DiscardUnknown() { + xxx_messageInfo_RunawayWatch.DiscardUnknown(m) } -func (m *RunawayWatch) Reset() { *m = RunawayWatch{} } -func (m *RunawayWatch) String() string { return proto.CompactTextString(m) } -func (*RunawayWatch) ProtoMessage() {} -func (*RunawayWatch) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{24} } +var xxx_messageInfo_RunawayWatch proto.InternalMessageInfo func (m *RunawayWatch) GetLastingDurationMs() int64 { if m != nil { @@ -1078,15 +1787,46 @@ func (m *RunawayWatch) GetType() RunawayWatchType { } type RunawaySettings struct { - Rule *RunawayRule `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"` - Action RunawayAction `protobuf:"varint,2,opt,name=action,proto3,enum=resource_manager.RunawayAction" json:"action,omitempty"` - Watch *RunawayWatch `protobuf:"bytes,3,opt,name=watch" json:"watch,omitempty"` + Rule *RunawayRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + Action RunawayAction `protobuf:"varint,2,opt,name=action,proto3,enum=resource_manager.RunawayAction" json:"action,omitempty"` + Watch *RunawayWatch `protobuf:"bytes,3,opt,name=watch,proto3" json:"watch,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunawaySettings) Reset() { *m = RunawaySettings{} } +func (m *RunawaySettings) String() string { return proto.CompactTextString(m) } +func (*RunawaySettings) ProtoMessage() {} +func (*RunawaySettings) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{25} +} +func (m *RunawaySettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RunawaySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RunawaySettings.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 *RunawaySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawaySettings.Merge(m, src) +} +func (m *RunawaySettings) XXX_Size() int { + return m.Size() +} +func (m *RunawaySettings) XXX_DiscardUnknown() { + xxx_messageInfo_RunawaySettings.DiscardUnknown(m) } -func (m *RunawaySettings) Reset() { *m = RunawaySettings{} } -func (m *RunawaySettings) String() string { return proto.CompactTextString(m) } -func (*RunawaySettings) ProtoMessage() {} -func (*RunawaySettings) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{25} } +var xxx_messageInfo_RunawaySettings proto.InternalMessageInfo func (m *RunawaySettings) GetRule() *RunawayRule { if m != nil { @@ -1110,17 +1850,46 @@ func (m *RunawaySettings) GetWatch() *RunawayWatch { } type BackgroundSettings struct { - JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes" json:"job_types,omitempty"` + JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes,proto3" json:"job_types,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BackgroundSettings) Reset() { *m = BackgroundSettings{} } func (m *BackgroundSettings) String() string { return proto.CompactTextString(m) } func (*BackgroundSettings) ProtoMessage() {} func (*BackgroundSettings) Descriptor() ([]byte, []int) { - return fileDescriptorResourceManager, []int{26} + return fileDescriptor_7048dd9233ee965d, []int{26} } - -func (m *BackgroundSettings) GetJobTypes() []string { +func (m *BackgroundSettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BackgroundSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BackgroundSettings.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 *BackgroundSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackgroundSettings.Merge(m, src) +} +func (m *BackgroundSettings) XXX_Size() int { + return m.Size() +} +func (m *BackgroundSettings) XXX_DiscardUnknown() { + xxx_messageInfo_BackgroundSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_BackgroundSettings proto.InternalMessageInfo + +func (m *BackgroundSettings) GetJobTypes() []string { if m != nil { return m.JobTypes } @@ -1134,13 +1903,44 @@ type Participant struct { Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // listen_urls is the serivce endpoint list in the url format. // listen_urls[0] is primary service endpoint. - ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls,proto3" json:"listen_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Participant) Reset() { *m = Participant{} } +func (m *Participant) String() string { return proto.CompactTextString(m) } +func (*Participant) ProtoMessage() {} +func (*Participant) Descriptor() ([]byte, []int) { + return fileDescriptor_7048dd9233ee965d, []int{27} +} +func (m *Participant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Participant.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 *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(m, src) +} +func (m *Participant) XXX_Size() int { + return m.Size() +} +func (m *Participant) XXX_DiscardUnknown() { + xxx_messageInfo_Participant.DiscardUnknown(m) } -func (m *Participant) Reset() { *m = Participant{} } -func (m *Participant) String() string { return proto.CompactTextString(m) } -func (*Participant) ProtoMessage() {} -func (*Participant) Descriptor() ([]byte, []int) { return fileDescriptorResourceManager, []int{27} } +var xxx_messageInfo_Participant proto.InternalMessageInfo func (m *Participant) GetName() string { if m != nil { @@ -1164,6 +1964,11 @@ func (m *Participant) GetListenUrls() []string { } func init() { + proto.RegisterEnum("resource_manager.RequestUnitType", RequestUnitType_name, RequestUnitType_value) + proto.RegisterEnum("resource_manager.RawResourceType", RawResourceType_name, RawResourceType_value) + proto.RegisterEnum("resource_manager.GroupMode", GroupMode_name, GroupMode_value) + proto.RegisterEnum("resource_manager.RunawayAction", RunawayAction_name, RunawayAction_value) + proto.RegisterEnum("resource_manager.RunawayWatchType", RunawayWatchType_name, RunawayWatchType_value) proto.RegisterType((*ListResourceGroupsRequest)(nil), "resource_manager.ListResourceGroupsRequest") proto.RegisterType((*ListResourceGroupsResponse)(nil), "resource_manager.ListResourceGroupsResponse") proto.RegisterType((*GetResourceGroupRequest)(nil), "resource_manager.GetResourceGroupRequest") @@ -1194,11 +1999,122 @@ func init() { proto.RegisterType((*RunawaySettings)(nil), "resource_manager.RunawaySettings") proto.RegisterType((*BackgroundSettings)(nil), "resource_manager.BackgroundSettings") proto.RegisterType((*Participant)(nil), "resource_manager.Participant") - proto.RegisterEnum("resource_manager.RequestUnitType", RequestUnitType_name, RequestUnitType_value) - proto.RegisterEnum("resource_manager.RawResourceType", RawResourceType_name, RawResourceType_value) - proto.RegisterEnum("resource_manager.GroupMode", GroupMode_name, GroupMode_value) - proto.RegisterEnum("resource_manager.RunawayAction", RunawayAction_name, RunawayAction_value) - proto.RegisterEnum("resource_manager.RunawayWatchType", RunawayWatchType_name, RunawayWatchType_value) +} + +func init() { proto.RegisterFile("resource_manager.proto", fileDescriptor_7048dd9233ee965d) } + +var fileDescriptor_7048dd9233ee965d = []byte{ + // 1746 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08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+ 0x02, 0x76, 0xbf, 0x86, 0x95, 0x0b, 0x83, 0xed, 0xa6, 0xb5, 0xba, 0x0e, 0xa5, 0x73, 0x12, 0xc4, + 0xd4, 0xa6, 0xd4, 0xbc, 0x68, 0xfe, 0xe9, 0xb1, 0x76, 0xd3, 0x22, 0x9a, 0xcf, 0xff, 0xd7, 0x02, + 0x2c, 0x4d, 0x9d, 0x44, 0xd4, 0x91, 0x22, 0x33, 0x62, 0xf4, 0x33, 0x7a, 0x04, 0xc5, 0x41, 0xd4, + 0x35, 0xaa, 0xcb, 0xbb, 0x1b, 0xf3, 0xba, 0x3d, 0x8a, 0x87, 0xc7, 0x51, 0x97, 0x62, 0x0d, 0x44, + 0x47, 0x70, 0x4b, 0x8d, 0x1f, 0x41, 0xa5, 0x64, 0x61, 0x2f, 0xd9, 0x2c, 0xb7, 0x17, 0x28, 0x66, + 0x12, 0x72, 0x6a, 0x35, 0x30, 0xf0, 0x76, 0xf2, 0x8c, 0xbe, 0x86, 0xdb, 0x53, 0x1b, 0x70, 0x4a, + 0x5b, 0xbc, 0x9c, 0x76, 0x92, 0x87, 0x94, 0x76, 0x8d, 0xcf, 0x0a, 0x51, 0x0b, 0xaa, 0x43, 0xce, + 0x22, 0xce, 0xe4, 0x58, 0x17, 0xdc, 0x12, 0x4e, 0xdf, 0xd1, 0x11, 0x34, 0x78, 0x1c, 0x92, 0x11, + 0x19, 0x4f, 0xcc, 0x96, 0xb5, 0xd9, 0x79, 0x99, 0x37, 0xc8, 0xd4, 0xda, 0x0a, 0x9f, 0x16, 0xa0, + 0x36, 0xac, 0x4d, 0xb6, 0xde, 0x09, 0x61, 0x45, 0x13, 0xce, 0x39, 0x8e, 0x4d, 0xf6, 0xe4, 0x94, + 0x13, 0x75, 0x66, 0x64, 0xee, 0xcf, 0xa0, 0xb9, 0x28, 0x91, 0x68, 0x07, 0x0a, 0x49, 0xf3, 0x5e, + 0x39, 0x31, 0xf2, 0xbc, 0xed, 0xfe, 0xc5, 0x49, 0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xa2, 0x9b, 0x0a, 0x37, 0x87, + 0x42, 0x58, 0x3b, 0x8e, 0xba, 0xec, 0xd5, 0xf8, 0x7f, 0x64, 0x4f, 0xc2, 0xda, 0x9c, 0xbb, 0x1e, + 0x34, 0xe7, 0x83, 0x2c, 0xbe, 0x60, 0x6a, 0x7d, 0x74, 0x4d, 0x74, 0x6a, 0xf5, 0x35, 0xac, 0x3d, + 0xf5, 0xcf, 0x62, 0xc6, 0xb3, 0x27, 0x79, 0x81, 0x2e, 0xff, 0xc5, 0x4b, 0xab, 0xe5, 0xc1, 0x55, + 0xb0, 0xc4, 0xce, 0x96, 0xf3, 0xb1, 0xb3, 0xb7, 0xfe, 0xcf, 0xdf, 0x55, 0x9d, 0xbf, 0xbf, 0xdd, + 0x74, 0xfe, 0xf1, 0x76, 0xd3, 0xf9, 0xd7, 0xdb, 0x4d, 0xe7, 0xb7, 0xff, 0xde, 0xcc, 0x75, 0xca, + 0xfa, 0xaa, 0xf2, 0x07, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x91, 0x73, 0xf9, 0x24, 0xfd, 0x14, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1209,8 +2125,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for ResourceManager service - +// ResourceManagerClient is the client API for ResourceManager service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ResourceManagerClient interface { ListResourceGroups(ctx context.Context, in *ListResourceGroupsRequest, opts ...grpc.CallOption) (*ListResourceGroupsResponse, error) GetResourceGroup(ctx context.Context, in *GetResourceGroupRequest, opts ...grpc.CallOption) (*GetResourceGroupResponse, error) @@ -1230,7 +2147,7 @@ func NewResourceManagerClient(cc *grpc.ClientConn) ResourceManagerClient { func (c *resourceManagerClient) ListResourceGroups(ctx context.Context, in *ListResourceGroupsRequest, opts ...grpc.CallOption) (*ListResourceGroupsResponse, error) { out := new(ListResourceGroupsResponse) - err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/ListResourceGroups", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/ListResourceGroups", in, out, opts...) if err != nil { return nil, err } @@ -1239,7 +2156,7 @@ func (c *resourceManagerClient) ListResourceGroups(ctx context.Context, in *List func (c *resourceManagerClient) GetResourceGroup(ctx context.Context, in *GetResourceGroupRequest, opts ...grpc.CallOption) (*GetResourceGroupResponse, error) { out := new(GetResourceGroupResponse) - err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/GetResourceGroup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/GetResourceGroup", in, out, opts...) if err != nil { return nil, err } @@ -1248,7 +2165,7 @@ func (c *resourceManagerClient) GetResourceGroup(ctx context.Context, in *GetRes func (c *resourceManagerClient) AddResourceGroup(ctx context.Context, in *PutResourceGroupRequest, opts ...grpc.CallOption) (*PutResourceGroupResponse, error) { out := new(PutResourceGroupResponse) - err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/AddResourceGroup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/AddResourceGroup", in, out, opts...) if err != nil { return nil, err } @@ -1257,7 +2174,7 @@ func (c *resourceManagerClient) AddResourceGroup(ctx context.Context, in *PutRes func (c *resourceManagerClient) ModifyResourceGroup(ctx context.Context, in *PutResourceGroupRequest, opts ...grpc.CallOption) (*PutResourceGroupResponse, error) { out := new(PutResourceGroupResponse) - err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/ModifyResourceGroup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/ModifyResourceGroup", in, out, opts...) if err != nil { return nil, err } @@ -1266,7 +2183,7 @@ func (c *resourceManagerClient) ModifyResourceGroup(ctx context.Context, in *Put func (c *resourceManagerClient) DeleteResourceGroup(ctx context.Context, in *DeleteResourceGroupRequest, opts ...grpc.CallOption) (*DeleteResourceGroupResponse, error) { out := new(DeleteResourceGroupResponse) - err := grpc.Invoke(ctx, "/resource_manager.ResourceManager/DeleteResourceGroup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/resource_manager.ResourceManager/DeleteResourceGroup", in, out, opts...) if err != nil { return nil, err } @@ -1274,7 +2191,7 @@ func (c *resourceManagerClient) DeleteResourceGroup(ctx context.Context, in *Del } func (c *resourceManagerClient) AcquireTokenBuckets(ctx context.Context, opts ...grpc.CallOption) (ResourceManager_AcquireTokenBucketsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ResourceManager_serviceDesc.Streams[0], c.cc, "/resource_manager.ResourceManager/AcquireTokenBuckets", opts...) + stream, err := c.cc.NewStream(ctx, &_ResourceManager_serviceDesc.Streams[0], "/resource_manager.ResourceManager/AcquireTokenBuckets", opts...) if err != nil { return nil, err } @@ -1304,8 +2221,7 @@ func (x *resourceManagerAcquireTokenBucketsClient) Recv() (*TokenBucketsResponse return m, nil } -// Server API for ResourceManager service - +// ResourceManagerServer is the server API for ResourceManager service. type ResourceManagerServer interface { ListResourceGroups(context.Context, *ListResourceGroupsRequest) (*ListResourceGroupsResponse, error) GetResourceGroup(context.Context, *GetResourceGroupRequest) (*GetResourceGroupResponse, error) @@ -1315,6 +2231,29 @@ type ResourceManagerServer interface { AcquireTokenBuckets(ResourceManager_AcquireTokenBucketsServer) error } +// UnimplementedResourceManagerServer can be embedded to have forward compatible implementations. +type UnimplementedResourceManagerServer struct { +} + +func (*UnimplementedResourceManagerServer) ListResourceGroups(ctx context.Context, req *ListResourceGroupsRequest) (*ListResourceGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListResourceGroups not implemented") +} +func (*UnimplementedResourceManagerServer) GetResourceGroup(ctx context.Context, req *GetResourceGroupRequest) (*GetResourceGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResourceGroup not implemented") +} +func (*UnimplementedResourceManagerServer) AddResourceGroup(ctx context.Context, req *PutResourceGroupRequest) (*PutResourceGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddResourceGroup not implemented") +} +func (*UnimplementedResourceManagerServer) ModifyResourceGroup(ctx context.Context, req *PutResourceGroupRequest) (*PutResourceGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModifyResourceGroup not implemented") +} +func (*UnimplementedResourceManagerServer) DeleteResourceGroup(ctx context.Context, req *DeleteResourceGroupRequest) (*DeleteResourceGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteResourceGroup not implemented") +} +func (*UnimplementedResourceManagerServer) AcquireTokenBuckets(srv ResourceManager_AcquireTokenBucketsServer) error { + return status.Errorf(codes.Unimplemented, "method AcquireTokenBuckets not implemented") +} + func RegisterResourceManagerServer(s *grpc.Server, srv ResourceManagerServer) { s.RegisterService(&_ResourceManager_serviceDesc, srv) } @@ -1474,7 +2413,7 @@ var _ResourceManager_serviceDesc = grpc.ServiceDesc{ func (m *ListResourceGroupsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1482,17 +2421,26 @@ func (m *ListResourceGroupsRequest) Marshal() (dAtA []byte, err error) { } func (m *ListResourceGroupsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListResourceGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ListResourceGroupsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1500,39 +2448,52 @@ func (m *ListResourceGroupsResponse) Marshal() (dAtA []byte, err error) { } func (m *ListResourceGroupsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListResourceGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Groups) > 0 { - for _, msg := range m.Groups { + for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1540,23 +2501,33 @@ func (m *GetResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *GetResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1564,37 +2535,50 @@ func (m *GetResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) - n2, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Group != nil { + { + size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Group.Size())) - n3, err := m.Group.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1602,23 +2586,33 @@ func (m *DeleteResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *DeleteResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DeleteResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1626,33 +2620,45 @@ func (m *DeleteResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *DeleteResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) - n4, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Body) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Body) + copy(dAtA[i:], m.Body) i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) - i += copy(dAtA[i:], m.Body) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PutResourceGroupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1660,27 +2666,38 @@ func (m *PutResourceGroupRequest) Marshal() (dAtA []byte, err error) { } func (m *PutResourceGroupRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutResourceGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Group != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Group.Size())) - n5, err := m.Group.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *PutResourceGroupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1688,33 +2705,45 @@ func (m *PutResourceGroupResponse) Marshal() (dAtA []byte, err error) { } func (m *PutResourceGroupResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutResourceGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) - n6, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Body) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Body) + copy(dAtA[i:], m.Body) i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Body))) - i += copy(dAtA[i:], m.Body) + i-- + dAtA[i] = 0x12 + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1722,39 +2751,50 @@ func (m *TokenBucketsRequest) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientUniqueId != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.ClientUniqueId)) + i-- + dAtA[i] = 0x18 } if m.TargetRequestPeriodMs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.TargetRequestPeriodMs)) + i-- + dAtA[i] = 0x10 } - if m.ClientUniqueId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.ClientUniqueId)) + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1762,88 +2802,116 @@ func (m *TokenBucketRequest) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Request != nil { - nn7, err := m.Request.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn7 - } - if m.ConsumptionSinceLastRequest != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.ConsumptionSinceLastRequest.Size())) - n8, err := m.ConsumptionSinceLastRequest.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.IsTiflash { + i-- + if m.IsTiflash { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n8 + i-- + dAtA[i] = 0x30 } if m.IsBackground { - dAtA[i] = 0x28 - i++ + i-- if m.IsBackground { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x28 } - if m.IsTiflash { - dAtA[i] = 0x30 - i++ - if m.IsTiflash { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.ConsumptionSinceLastRequest != nil { + { + size, err := m.ConsumptionSinceLastRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Request != nil { + { + size := m.Request.Size() + i -= size + if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i++ } - return i, nil + if len(m.ResourceGroupName) > 0 { + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *TokenBucketRequest_RuItems) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketRequest_RuItems) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RuItems != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RuItems.Size())) - n9, err := m.RuItems.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RuItems.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketRequest_RawResourceItems) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketRequest_RawResourceItems) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawResourceItems != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RawResourceItems.Size())) - n10, err := m.RawResourceItems.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawResourceItems.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketRequest_RequestRU) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1851,29 +2919,40 @@ func (m *TokenBucketRequest_RequestRU) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketRequest_RequestRU) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketRequest_RequestRU) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.RequestRU) > 0 { - for _, msg := range m.RequestRU { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.RequestRU) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RequestRU[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketRequest_RequestRawResource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1881,29 +2960,40 @@ func (m *TokenBucketRequest_RequestRawResource) Marshal() (dAtA []byte, err erro } func (m *TokenBucketRequest_RequestRawResource) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketRequest_RequestRawResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.RequestRawResource) > 0 { - for _, msg := range m.RequestRawResource { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.RequestRawResource) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RequestRawResource[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1911,39 +3001,52 @@ func (m *TokenBucketsResponse) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Error != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Error.Size())) - n11, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Responses) > 0 { - for _, msg := range m.Responses { + for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucketResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1951,47 +3054,61 @@ func (m *TokenBucketResponse) Marshal() (dAtA []byte, err error) { } func (m *TokenBucketResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ResourceGroupName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) - i += copy(dAtA[i:], m.ResourceGroupName) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.GrantedRUTokens) > 0 { - for _, msg := range m.GrantedRUTokens { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.GrantedResourceTokens) > 0 { + for iNdEx := len(m.GrantedResourceTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GrantedResourceTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x1a } } - if len(m.GrantedResourceTokens) > 0 { - for _, msg := range m.GrantedResourceTokens { - dAtA[i] = 0x1a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if len(m.GrantedRUTokens) > 0 { + for iNdEx := len(m.GrantedRUTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GrantedRUTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if len(m.ResourceGroupName) > 0 { + i -= len(m.ResourceGroupName) + copy(dAtA[i:], m.ResourceGroupName) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GrantedRUTokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1999,37 +3116,48 @@ func (m *GrantedRUTokenBucket) Marshal() (dAtA []byte, err error) { } func (m *GrantedRUTokenBucket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GrantedRUTokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TrickleTimeMs != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) + i-- + dAtA[i] = 0x18 } if m.GrantedTokens != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.GrantedTokens.Size())) - n12, err := m.GrantedTokens.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.GrantedTokens.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x12 } - if m.TrickleTimeMs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) + if m.Type != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *GrantedRawResourceTokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2037,37 +3165,48 @@ func (m *GrantedRawResourceTokenBucket) Marshal() (dAtA []byte, err error) { } func (m *GrantedRawResourceTokenBucket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GrantedRawResourceTokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TrickleTimeMs != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) + i-- + dAtA[i] = 0x18 } if m.GrantedTokens != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.GrantedTokens.Size())) - n13, err := m.GrantedTokens.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.GrantedTokens.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x12 } - if m.TrickleTimeMs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.TrickleTimeMs)) + if m.Type != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Consumption) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2075,65 +3214,74 @@ func (m *Consumption) Marshal() (dAtA []byte, err error) { } func (m *Consumption) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Consumption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.RRU != 0 { - dAtA[i] = 0x9 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RRU)))) - i += 8 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.WRU != 0 { - dAtA[i] = 0x11 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WRU)))) - i += 8 + if m.KvWriteRpcCount != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvWriteRpcCount)))) + i-- + dAtA[i] = 0x41 } - if m.ReadBytes != 0 { - dAtA[i] = 0x19 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReadBytes)))) - i += 8 + if m.KvReadRpcCount != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvReadRpcCount)))) + i-- + dAtA[i] = 0x39 } - if m.WriteBytes != 0 { - dAtA[i] = 0x21 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WriteBytes)))) - i += 8 + if m.SqlLayerCpuTimeMs != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SqlLayerCpuTimeMs)))) + i-- + dAtA[i] = 0x31 } if m.TotalCpuTimeMs != 0 { - dAtA[i] = 0x29 - i++ + i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.TotalCpuTimeMs)))) - i += 8 + i-- + dAtA[i] = 0x29 } - if m.SqlLayerCpuTimeMs != 0 { - dAtA[i] = 0x31 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SqlLayerCpuTimeMs)))) - i += 8 + if m.WriteBytes != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WriteBytes)))) + i-- + dAtA[i] = 0x21 } - if m.KvReadRpcCount != 0 { - dAtA[i] = 0x39 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvReadRpcCount)))) - i += 8 + if m.ReadBytes != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReadBytes)))) + i-- + dAtA[i] = 0x19 } - if m.KvWriteRpcCount != 0 { - dAtA[i] = 0x41 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvWriteRpcCount)))) - i += 8 + if m.WRU != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.WRU)))) + i-- + dAtA[i] = 0x11 + } + if m.RRU != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RRU)))) + i-- + dAtA[i] = 0x9 } - return i, nil + return len(dAtA) - i, nil } func (m *RequestUnitItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2141,28 +3289,37 @@ func (m *RequestUnitItem) Marshal() (dAtA []byte, err error) { } func (m *RequestUnitItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestUnitItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Value != 0 { - dAtA[i] = 0x11 - i++ + i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) - i += 8 + i-- + dAtA[i] = 0x11 } - return i, nil + if m.Type != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RawResourceItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2170,28 +3327,37 @@ func (m *RawResourceItem) Marshal() (dAtA []byte, err error) { } func (m *RawResourceItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawResourceItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Value != 0 { - dAtA[i] = 0x11 - i++ + i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) - i += 8 + i-- + dAtA[i] = 0x11 } - return i, nil + if m.Type != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ResourceGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2199,73 +3365,91 @@ func (m *ResourceGroup) Marshal() (dAtA []byte, err error) { } func (m *ResourceGroup) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Mode != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RUSettings != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RUSettings.Size())) - n14, err := m.RUSettings.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.BackgroundSettings != nil { + { + size, err := m.BackgroundSettings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x3a } - if m.RawResourceSettings != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RawResourceSettings.Size())) - n15, err := m.RawResourceSettings.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RunawaySettings != nil { + { + size, err := m.RunawaySettings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x32 } if m.Priority != 0 { - dAtA[i] = 0x28 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.Priority)) + i-- + dAtA[i] = 0x28 } - if m.RunawaySettings != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RunawaySettings.Size())) - n16, err := m.RunawaySettings.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RawResourceSettings != nil { + { + size, err := m.RawResourceSettings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x22 } - if m.BackgroundSettings != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.BackgroundSettings.Size())) - n17, err := m.BackgroundSettings.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RUSettings != nil { + { + size, err := m.RUSettings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x1a + } + if m.Mode != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GroupRequestUnitSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2273,27 +3457,38 @@ func (m *GroupRequestUnitSettings) Marshal() (dAtA []byte, err error) { } func (m *GroupRequestUnitSettings) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupRequestUnitSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RU != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.RU.Size())) - n18, err := m.RU.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RU.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GroupRawResourceSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2301,47 +3496,62 @@ func (m *GroupRawResourceSettings) Marshal() (dAtA []byte, err error) { } func (m *GroupRawResourceSettings) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupRawResourceSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Cpu != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Cpu.Size())) - n19, err := m.Cpu.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IoWrite != nil { + { + size, err := m.IoWrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x1a } if m.IoRead != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.IoRead.Size())) - n20, err := m.IoRead.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.IoRead.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x12 } - if m.IoWrite != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.IoWrite.Size())) - n21, err := m.IoWrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Cpu != nil { + { + size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TokenBucket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2349,33 +3559,44 @@ func (m *TokenBucket) Marshal() (dAtA []byte, err error) { } func (m *TokenBucket) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenBucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Settings != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Settings.Size())) - n22, err := m.Settings.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n22 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Tokens != 0 { - dAtA[i] = 0x11 - i++ + i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Tokens)))) - i += 8 + i-- + dAtA[i] = 0x11 + } + if m.Settings != nil { + { + size, err := m.Settings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TokenLimitSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2383,33 +3604,42 @@ func (m *TokenLimitSettings) Marshal() (dAtA []byte, err error) { } func (m *TokenLimitSettings) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenLimitSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FillRate != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.FillRate)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MaxTokens != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxTokens)))) + i-- + dAtA[i] = 0x19 } if m.BurstLimit != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.BurstLimit)) + i-- + dAtA[i] = 0x10 } - if m.MaxTokens != 0 { - dAtA[i] = 0x19 - i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MaxTokens)))) - i += 8 + if m.FillRate != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.FillRate)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2417,23 +3647,33 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Message) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RunawayRule) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2441,22 +3681,31 @@ func (m *RunawayRule) Marshal() (dAtA []byte, err error) { } func (m *RunawayRule) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RunawayRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.ExecElapsedTimeMs != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RunawayWatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2464,27 +3713,36 @@ func (m *RunawayWatch) Marshal() (dAtA []byte, err error) { } func (m *RunawayWatch) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RunawayWatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.LastingDurationMs != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.LastingDurationMs)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Type != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if m.LastingDurationMs != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.LastingDurationMs)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RunawaySettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2492,42 +3750,55 @@ func (m *RunawaySettings) Marshal() (dAtA []byte, err error) { } func (m *RunawaySettings) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RunawaySettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Rule != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Rule.Size())) - n23, err := m.Rule.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Watch != nil { + { + size, err := m.Watch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n23 + i-- + dAtA[i] = 0x1a } if m.Action != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintResourceManager(dAtA, i, uint64(m.Action)) + i-- + dAtA[i] = 0x10 } - if m.Watch != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Watch.Size())) - n24, err := m.Watch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Rule != nil { + { + size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceManager(dAtA, i, uint64(size)) } - i += n24 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2535,32 +3806,35 @@ func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { } func (m *BackgroundSettings) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BackgroundSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.JobTypes) > 0 { - for _, s := range m.JobTypes { + for iNdEx := len(m.JobTypes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.JobTypes[iNdEx]) + copy(dAtA[i:], m.JobTypes[iNdEx]) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.JobTypes[iNdEx]))) + i-- dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + return len(dAtA) - i, nil } func (m *Participant) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2568,55 +3842,70 @@ func (m *Participant) Marshal() (dAtA []byte, err error) { } func (m *Participant) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Participant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Id != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ListenUrls) > 0 { - for _, s := range m.ListenUrls { + for iNdEx := len(m.ListenUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ListenUrls[iNdEx]) + copy(dAtA[i:], m.ListenUrls[iNdEx]) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if m.Id != 0 { + i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintResourceManager(dAtA []byte, offset int, v uint64) int { + offset -= sovResourceManager(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ListResourceGroupsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ListResourceGroupsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2629,20 +3918,32 @@ func (m *ListResourceGroupsResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResourceGroupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupName) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetResourceGroupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2653,20 +3954,32 @@ func (m *GetResourceGroupResponse) Size() (n int) { l = m.Group.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteResourceGroupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupName) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *DeleteResourceGroupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2677,20 +3990,32 @@ func (m *DeleteResourceGroupResponse) Size() (n int) { if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutResourceGroupRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Group != nil { l = m.Group.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *PutResourceGroupResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2701,10 +4026,16 @@ func (m *PutResourceGroupResponse) Size() (n int) { if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Requests) > 0 { @@ -2719,10 +4050,16 @@ func (m *TokenBucketsRequest) Size() (n int) { if m.ClientUniqueId != 0 { n += 1 + sovResourceManager(uint64(m.ClientUniqueId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupName) @@ -2742,10 +4079,16 @@ func (m *TokenBucketRequest) Size() (n int) { if m.IsTiflash { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketRequest_RuItems) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RuItems != nil { @@ -2755,6 +4098,9 @@ func (m *TokenBucketRequest_RuItems) Size() (n int) { return n } func (m *TokenBucketRequest_RawResourceItems) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawResourceItems != nil { @@ -2764,6 +4110,9 @@ func (m *TokenBucketRequest_RawResourceItems) Size() (n int) { return n } func (m *TokenBucketRequest_RequestRU) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.RequestRU) > 0 { @@ -2772,10 +4121,16 @@ func (m *TokenBucketRequest_RequestRU) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.RequestRawResource) > 0 { @@ -2784,10 +4139,16 @@ func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Error != nil { @@ -2800,10 +4161,16 @@ func (m *TokenBucketsResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucketResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupName) @@ -2822,10 +4189,16 @@ func (m *TokenBucketResponse) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GrantedRUTokenBucket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -2838,10 +4211,16 @@ func (m *GrantedRUTokenBucket) Size() (n int) { if m.TrickleTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.TrickleTimeMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GrantedRawResourceTokenBucket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -2854,10 +4233,16 @@ func (m *GrantedRawResourceTokenBucket) Size() (n int) { if m.TrickleTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.TrickleTimeMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Consumption) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RRU != 0 { @@ -2884,10 +4269,16 @@ func (m *Consumption) Size() (n int) { if m.KvWriteRpcCount != 0 { n += 9 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RequestUnitItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -2896,10 +4287,16 @@ func (m *RequestUnitItem) Size() (n int) { if m.Value != 0 { n += 9 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RawResourceItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -2908,10 +4305,16 @@ func (m *RawResourceItem) Size() (n int) { if m.Value != 0 { n += 9 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResourceGroup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -2940,20 +4343,32 @@ func (m *ResourceGroup) Size() (n int) { l = m.BackgroundSettings.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GroupRequestUnitSettings) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RU != nil { l = m.RU.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GroupRawResourceSettings) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cpu != nil { @@ -2968,10 +4383,16 @@ func (m *GroupRawResourceSettings) Size() (n int) { l = m.IoWrite.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenBucket) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Settings != nil { @@ -2981,10 +4402,16 @@ func (m *TokenBucket) Size() (n int) { if m.Tokens != 0 { n += 9 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TokenLimitSettings) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FillRate != 0 { @@ -2996,29 +4423,47 @@ func (m *TokenLimitSettings) Size() (n int) { if m.MaxTokens != 0 { n += 9 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Message) if l > 0 { n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RunawayRule) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ExecElapsedTimeMs != 0 { n += 1 + sovResourceManager(uint64(m.ExecElapsedTimeMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RunawayWatch) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.LastingDurationMs != 0 { @@ -3027,10 +4472,16 @@ func (m *RunawayWatch) Size() (n int) { if m.Type != 0 { n += 1 + sovResourceManager(uint64(m.Type)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RunawaySettings) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Rule != nil { @@ -3044,10 +4495,16 @@ func (m *RunawaySettings) Size() (n int) { l = m.Watch.Size() n += 1 + l + sovResourceManager(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BackgroundSettings) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.JobTypes) > 0 { @@ -3056,10 +4513,16 @@ func (m *BackgroundSettings) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Participant) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -3075,18 +4538,14 @@ func (m *Participant) Size() (n int) { n += 1 + l + sovResourceManager(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovResourceManager(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozResourceManager(x uint64) (n int) { return sovResourceManager(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3106,7 +4565,7 @@ func (m *ListResourceGroupsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3126,12 +4585,13 @@ func (m *ListResourceGroupsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3156,7 +4616,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3184,7 +4644,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3193,6 +4653,9 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3217,7 +4680,7 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3226,6 +4689,9 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3240,12 +4706,13 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3270,7 +4737,7 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3298,7 +4765,7 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3308,6 +4775,9 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3319,12 +4789,13 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3349,7 +4820,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3377,7 +4848,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3386,6 +4857,9 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3410,7 +4884,7 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3419,6 +4893,9 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3435,12 +4912,13 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3465,7 +4943,7 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3493,7 +4971,7 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3503,6 +4981,9 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3514,12 +4995,13 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3544,7 +5026,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3572,7 +5054,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3581,6 +5063,9 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3605,7 +5090,7 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3615,6 +5100,9 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3626,12 +5114,13 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3656,7 +5145,7 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3684,7 +5173,7 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3693,6 +5182,9 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3709,12 +5201,13 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3739,7 +5232,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3767,7 +5260,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3776,6 +5269,9 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3800,7 +5296,7 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3810,6 +5306,9 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3821,12 +5320,13 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3851,7 +5351,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3879,7 +5379,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3888,6 +5388,9 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3910,7 +5413,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TargetRequestPeriodMs |= (uint64(b) & 0x7F) << shift + m.TargetRequestPeriodMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3929,7 +5432,7 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClientUniqueId |= (uint64(b) & 0x7F) << shift + m.ClientUniqueId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3940,12 +5443,13 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3970,7 +5474,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3998,7 +5502,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4008,6 +5512,9 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4027,7 +5534,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4036,6 +5543,9 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4059,7 +5569,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4068,6 +5578,9 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4091,7 +5604,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4100,6 +5613,9 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4124,7 +5640,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4144,7 +5660,7 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4156,12 +5672,13 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4186,7 +5703,7 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4214,7 +5731,7 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4223,6 +5740,9 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4237,12 +5757,13 @@ func (m *TokenBucketRequest_RequestRU) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4267,7 +5788,7 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4295,7 +5816,7 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4304,6 +5825,9 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4318,12 +5842,13 @@ func (m *TokenBucketRequest_RequestRawResource) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4348,7 +5873,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4376,7 +5901,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4385,6 +5910,9 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4409,7 +5937,7 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4418,6 +5946,9 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4432,12 +5963,13 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4462,7 +5994,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4490,7 +6022,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4500,6 +6032,9 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4519,7 +6054,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4528,6 +6063,9 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4550,7 +6088,7 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4559,6 +6097,9 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4573,12 +6114,13 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4603,7 +6145,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4631,7 +6173,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (RequestUnitType(b) & 0x7F) << shift + m.Type |= RequestUnitType(b&0x7F) << shift if b < 0x80 { break } @@ -4650,7 +6192,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4659,6 +6201,9 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4683,7 +6228,7 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TrickleTimeMs |= (int64(b) & 0x7F) << shift + m.TrickleTimeMs |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4694,12 +6239,13 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4724,7 +6270,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4752,7 +6298,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (RawResourceType(b) & 0x7F) << shift + m.Type |= RawResourceType(b&0x7F) << shift if b < 0x80 { break } @@ -4771,7 +6317,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4780,6 +6326,9 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4804,7 +6353,7 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TrickleTimeMs |= (int64(b) & 0x7F) << shift + m.TrickleTimeMs |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4815,12 +6364,13 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4845,7 +6395,7 @@ func (m *Consumption) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4953,12 +6503,13 @@ func (m *Consumption) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4983,7 +6534,7 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5011,7 +6562,7 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (RequestUnitType(b) & 0x7F) << shift + m.Type |= RequestUnitType(b&0x7F) << shift if b < 0x80 { break } @@ -5033,12 +6584,13 @@ func (m *RequestUnitItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5063,7 +6615,7 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5091,7 +6643,7 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (RawResourceType(b) & 0x7F) << shift + m.Type |= RawResourceType(b&0x7F) << shift if b < 0x80 { break } @@ -5113,12 +6665,13 @@ func (m *RawResourceItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5143,7 +6696,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5171,7 +6724,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5181,6 +6734,9 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5200,7 +6756,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Mode |= (GroupMode(b) & 0x7F) << shift + m.Mode |= GroupMode(b&0x7F) << shift if b < 0x80 { break } @@ -5219,7 +6775,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5228,6 +6784,9 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5252,7 +6811,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5261,6 +6820,9 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5285,7 +6847,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Priority |= (uint32(b) & 0x7F) << shift + m.Priority |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -5304,7 +6866,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5313,6 +6875,9 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5337,7 +6902,7 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5346,6 +6911,9 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5362,12 +6930,13 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5392,7 +6961,7 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5420,7 +6989,7 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5429,6 +6998,9 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5445,12 +7017,13 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5475,7 +7048,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5503,7 +7076,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5512,6 +7085,9 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5536,7 +7112,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5545,6 +7121,9 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5569,7 +7148,7 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5578,6 +7157,9 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5594,12 +7176,13 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5624,7 +7207,7 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5652,7 +7235,7 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5661,6 +7244,9 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5688,12 +7274,13 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5718,7 +7305,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5746,7 +7333,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FillRate |= (uint64(b) & 0x7F) << shift + m.FillRate |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5765,7 +7352,7 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BurstLimit |= (int64(b) & 0x7F) << shift + m.BurstLimit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -5787,12 +7374,13 @@ func (m *TokenLimitSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5817,7 +7405,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5845,7 +7433,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5855,6 +7443,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5866,12 +7457,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5896,7 +7488,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5924,7 +7516,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ExecElapsedTimeMs |= (uint64(b) & 0x7F) << shift + m.ExecElapsedTimeMs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5935,12 +7527,13 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5965,7 +7558,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5993,7 +7586,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LastingDurationMs |= (int64(b) & 0x7F) << shift + m.LastingDurationMs |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -6012,7 +7605,7 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (RunawayWatchType(b) & 0x7F) << shift + m.Type |= RunawayWatchType(b&0x7F) << shift if b < 0x80 { break } @@ -6023,12 +7616,13 @@ func (m *RunawayWatch) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6053,7 +7647,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6081,7 +7675,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6090,6 +7684,9 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6114,7 +7711,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Action |= (RunawayAction(b) & 0x7F) << shift + m.Action |= RunawayAction(b&0x7F) << shift if b < 0x80 { break } @@ -6133,7 +7730,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6142,6 +7739,9 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6158,12 +7758,13 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6188,7 +7789,7 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6216,7 +7817,7 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6226,6 +7827,9 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6237,12 +7841,13 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6267,7 +7872,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6295,7 +7900,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6305,6 +7910,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6324,7 +7932,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6343,7 +7951,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6353,6 +7961,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthResourceManager + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6364,12 +7975,13 @@ func (m *Participant) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceManager } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6382,6 +7994,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { func skipResourceManager(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -6413,10 +8026,8 @@ func skipResourceManager(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -6433,169 +8044,34 @@ func skipResourceManager(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthResourceManager } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowResourceManager - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipResourceManager(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupResourceManager + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthResourceManager + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthResourceManager = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResourceManager = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthResourceManager = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowResourceManager = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupResourceManager = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("resource_manager.proto", fileDescriptorResourceManager) } - -var fileDescriptorResourceManager = []byte{ - // 1746 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4f, 0x73, 0x1b, 0x49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xa5, 0x73, 0x12, 0xc4, - 0xd4, 0xa6, 0xd4, 0xbc, 0x68, 0xfe, 0xe9, 0xb1, 0x76, 0xd3, 0x22, 0x9a, 0xcf, 0xff, 0xd7, 0x02, - 0x2c, 0x4d, 0x9d, 0x44, 0xd4, 0x91, 0x22, 0x33, 0x62, 0xf4, 0x33, 0x7a, 0x04, 0xc5, 0x41, 0xd4, - 0x35, 0xaa, 0xcb, 0xbb, 0x1b, 0xf3, 0xba, 0x3d, 0x8a, 0x87, 0xc7, 0x51, 0x97, 0x62, 0x0d, 0x44, - 0x47, 0x70, 0x4b, 0x8d, 0x1f, 0x41, 0xa5, 0x64, 0x61, 0x2f, 0xd9, 0x2c, 0xb7, 0x17, 0x28, 0x66, - 0x12, 0x72, 0x6a, 0x35, 0x30, 0xf0, 0x76, 0xf2, 0x8c, 0xbe, 0x86, 0xdb, 0x53, 0x1b, 0x70, 0x4a, - 0x5b, 0xbc, 0x9c, 0x76, 0x92, 0x87, 0x94, 0x76, 0x8d, 0xcf, 0x0a, 0x51, 0x0b, 0xaa, 0x43, 0xce, - 0x22, 0xce, 0xe4, 0x58, 0x17, 0xdc, 0x12, 0x4e, 0xdf, 0xd1, 0x11, 0x34, 0x78, 0x1c, 0x92, 0x11, - 0x19, 0x4f, 0xcc, 0x96, 0xb5, 0xd9, 0x79, 0x99, 0x37, 0xc8, 0xd4, 0xda, 0x0a, 0x9f, 0x16, 0xa0, - 0x36, 0xac, 0x4d, 0xb6, 0xde, 0x09, 0x61, 0x45, 0x13, 0xce, 0x39, 0x8e, 0x4d, 0xf6, 0xe4, 0x94, - 0x13, 0x75, 0x66, 0x64, 0xee, 0xcf, 0xa0, 0xb9, 0x28, 0x91, 0x68, 0x07, 0x0a, 0x49, 0xf3, 0x5e, - 0x39, 0x31, 0xf2, 0xbc, 0xed, 0xfe, 0xc5, 0x49, 0xc8, 0xe6, 0x64, 0xea, 0x11, 0x14, 0xfc, 0xe1, - 0x35, 0xc9, 0x14, 0x12, 0x7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f8, 0x7f, 0x64, 0x4f, 0xc2, 0xda, 0x9c, 0xbb, 0x1e, - 0x34, 0xe7, 0x83, 0x2c, 0xbe, 0x60, 0x6a, 0x7d, 0x74, 0x4d, 0x74, 0x6a, 0xf5, 0x35, 0xac, 0x3d, - 0xf5, 0xcf, 0x62, 0xc6, 0xb3, 0x27, 0x79, 0x81, 0x2e, 0xff, 0xc5, 0x4b, 0xab, 0xe5, 0xc1, 0x55, - 0xb0, 0xc4, 0xce, 0x96, 0xf3, 0xb1, 0xb3, 0xb7, 0xfe, 0xcf, 0xdf, 0x55, 0x9d, 0xbf, 0xbf, 0xdd, - 0x74, 0xfe, 0xf1, 0x76, 0xd3, 0xf9, 0xd7, 0xdb, 0x4d, 0xe7, 0xb7, 0xff, 0xde, 0xcc, 0x75, 0xca, - 0xfa, 0xaa, 0xf2, 0x07, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x91, 0x73, 0xf9, 0x24, 0xfd, 0x14, - 0x00, 0x00, -} diff --git a/pkg/resource_usage_agent/resource_usage_agent.pb.go b/pkg/resource_usage_agent/resource_usage_agent.pb.go index b4d7d0b12..7512e4f15 100644 --- a/pkg/resource_usage_agent/resource_usage_agent.pb.go +++ b/pkg/resource_usage_agent/resource_usage_agent.pb.go @@ -1,34 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: resource_usage_agent.proto -/* -Package resource_usage_agent is a generated protocol buffer package. - -It is generated from these files: - - resource_usage_agent.proto - -It has these top-level messages: - - ResourceMeteringRequest - EmptyResponse - ResourceUsageRecord - GroupTagRecord - GroupTagRecordItem -*/ package resource_usage_agent import ( + "context" "fmt" "io" "math" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -40,38 +26,127 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ResourceMeteringRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ResourceMeteringRequest) Reset() { *m = ResourceMeteringRequest{} } func (m *ResourceMeteringRequest) String() string { return proto.CompactTextString(m) } func (*ResourceMeteringRequest) ProtoMessage() {} func (*ResourceMeteringRequest) Descriptor() ([]byte, []int) { - return fileDescriptorResourceUsageAgent, []int{0} + return fileDescriptor_14aca67aa7bfb0f2, []int{0} +} +func (m *ResourceMeteringRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceMeteringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResourceMeteringRequest.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 *ResourceMeteringRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceMeteringRequest.Merge(m, src) +} +func (m *ResourceMeteringRequest) XXX_Size() int { + return m.Size() +} +func (m *ResourceMeteringRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceMeteringRequest.DiscardUnknown(m) } +var xxx_messageInfo_ResourceMeteringRequest proto.InternalMessageInfo + type EmptyResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } +func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } +func (*EmptyResponse) ProtoMessage() {} +func (*EmptyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_14aca67aa7bfb0f2, []int{1} +} +func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EmptyResponse.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 *EmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyResponse.Merge(m, src) +} +func (m *EmptyResponse) XXX_Size() int { + return m.Size() +} +func (m *EmptyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EmptyResponse.DiscardUnknown(m) } -func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } -func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } -func (*EmptyResponse) ProtoMessage() {} -func (*EmptyResponse) Descriptor() ([]byte, []int) { return fileDescriptorResourceUsageAgent, []int{1} } +var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo type ResourceUsageRecord struct { // Types that are valid to be assigned to RecordOneof: // *ResourceUsageRecord_Record - RecordOneof isResourceUsageRecord_RecordOneof `protobuf_oneof:"record_oneof"` + RecordOneof isResourceUsageRecord_RecordOneof `protobuf_oneof:"record_oneof"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ResourceUsageRecord) Reset() { *m = ResourceUsageRecord{} } func (m *ResourceUsageRecord) String() string { return proto.CompactTextString(m) } func (*ResourceUsageRecord) ProtoMessage() {} func (*ResourceUsageRecord) Descriptor() ([]byte, []int) { - return fileDescriptorResourceUsageAgent, []int{2} + return fileDescriptor_14aca67aa7bfb0f2, []int{2} +} +func (m *ResourceUsageRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *ResourceUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResourceUsageRecord.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 *ResourceUsageRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceUsageRecord.Merge(m, src) +} +func (m *ResourceUsageRecord) XXX_Size() int { + return m.Size() +} +func (m *ResourceUsageRecord) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceUsageRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceUsageRecord proto.InternalMessageInfo type isResourceUsageRecord_RecordOneof interface { isResourceUsageRecord_RecordOneof() @@ -80,7 +155,7 @@ type isResourceUsageRecord_RecordOneof interface { } type ResourceUsageRecord_Record struct { - Record *GroupTagRecord `protobuf:"bytes,1,opt,name=record,oneof"` + Record *GroupTagRecord `protobuf:"bytes,1,opt,name=record,proto3,oneof" json:"record,omitempty"` } func (*ResourceUsageRecord_Record) isResourceUsageRecord_RecordOneof() {} @@ -99,74 +174,55 @@ func (m *ResourceUsageRecord) GetRecord() *GroupTagRecord { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ResourceUsageRecord) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ResourceUsageRecord_OneofMarshaler, _ResourceUsageRecord_OneofUnmarshaler, _ResourceUsageRecord_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ResourceUsageRecord) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*ResourceUsageRecord_Record)(nil), } } -func _ResourceUsageRecord_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ResourceUsageRecord) - // record_oneof - switch x := m.RecordOneof.(type) { - case *ResourceUsageRecord_Record: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Record); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("ResourceUsageRecord.RecordOneof has unexpected type %T", x) - } - return nil -} - -func _ResourceUsageRecord_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ResourceUsageRecord) - switch tag { - case 1: // record_oneof.record - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GroupTagRecord) - err := b.DecodeMessage(msg) - m.RecordOneof = &ResourceUsageRecord_Record{msg} - return true, err - default: - return false, nil - } -} - -func _ResourceUsageRecord_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ResourceUsageRecord) - // record_oneof - switch x := m.RecordOneof.(type) { - case *ResourceUsageRecord_Record: - s := proto.Size(x.Record) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - // GroupTagRecord is a set of resource usage data grouped by resource_group_tag. type GroupTagRecord struct { - ResourceGroupTag []byte `protobuf:"bytes,1,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` - Items []*GroupTagRecordItem `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` + ResourceGroupTag []byte `protobuf:"bytes,1,opt,name=resource_group_tag,json=resourceGroupTag,proto3" json:"resource_group_tag,omitempty"` + Items []*GroupTagRecordItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupTagRecord) Reset() { *m = GroupTagRecord{} } func (m *GroupTagRecord) String() string { return proto.CompactTextString(m) } func (*GroupTagRecord) ProtoMessage() {} func (*GroupTagRecord) Descriptor() ([]byte, []int) { - return fileDescriptorResourceUsageAgent, []int{3} + return fileDescriptor_14aca67aa7bfb0f2, []int{3} +} +func (m *GroupTagRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupTagRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupTagRecord.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 *GroupTagRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTagRecord.Merge(m, src) +} +func (m *GroupTagRecord) XXX_Size() int { + return m.Size() +} +func (m *GroupTagRecord) XXX_DiscardUnknown() { + xxx_messageInfo_GroupTagRecord.DiscardUnknown(m) } +var xxx_messageInfo_GroupTagRecord proto.InternalMessageInfo + func (m *GroupTagRecord) GetResourceGroupTag() []byte { if m != nil { return m.ResourceGroupTag @@ -182,18 +238,47 @@ func (m *GroupTagRecord) GetItems() []*GroupTagRecordItem { } type GroupTagRecordItem struct { - TimestampSec uint64 `protobuf:"varint,1,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"` - CpuTimeMs uint32 `protobuf:"varint,2,opt,name=cpu_time_ms,json=cpuTimeMs,proto3" json:"cpu_time_ms,omitempty"` - ReadKeys uint32 `protobuf:"varint,3,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` - WriteKeys uint32 `protobuf:"varint,4,opt,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` + TimestampSec uint64 `protobuf:"varint,1,opt,name=timestamp_sec,json=timestampSec,proto3" json:"timestamp_sec,omitempty"` + CpuTimeMs uint32 `protobuf:"varint,2,opt,name=cpu_time_ms,json=cpuTimeMs,proto3" json:"cpu_time_ms,omitempty"` + ReadKeys uint32 `protobuf:"varint,3,opt,name=read_keys,json=readKeys,proto3" json:"read_keys,omitempty"` + WriteKeys uint32 `protobuf:"varint,4,opt,name=write_keys,json=writeKeys,proto3" json:"write_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupTagRecordItem) Reset() { *m = GroupTagRecordItem{} } func (m *GroupTagRecordItem) String() string { return proto.CompactTextString(m) } func (*GroupTagRecordItem) ProtoMessage() {} func (*GroupTagRecordItem) Descriptor() ([]byte, []int) { - return fileDescriptorResourceUsageAgent, []int{4} + return fileDescriptor_14aca67aa7bfb0f2, []int{4} +} +func (m *GroupTagRecordItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupTagRecordItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupTagRecordItem.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 *GroupTagRecordItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTagRecordItem.Merge(m, src) +} +func (m *GroupTagRecordItem) XXX_Size() int { + return m.Size() +} +func (m *GroupTagRecordItem) XXX_DiscardUnknown() { + xxx_messageInfo_GroupTagRecordItem.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupTagRecordItem proto.InternalMessageInfo func (m *GroupTagRecordItem) GetTimestampSec() uint64 { if m != nil { @@ -231,6 +316,39 @@ func init() { proto.RegisterType((*GroupTagRecordItem)(nil), "resource_usage_agent.GroupTagRecordItem") } +func init() { proto.RegisterFile("resource_usage_agent.proto", fileDescriptor_14aca67aa7bfb0f2) } + +var fileDescriptor_14aca67aa7bfb0f2 = []byte{ + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, + 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, + 0x82, 0xae, 0x12, 0xef, 0x05, 0x0b, 0xa2, 0x22, 0x05, 0x99, 0xad, 0x37, 0x61, 0x48, 0xd2, 0xd7, + 0x61, 0x58, 0x92, 0x19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, 0xf4, 0xc3, + 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -239,8 +357,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for ResourceUsageAgent service - +// ResourceUsageAgentClient is the client API for ResourceUsageAgent service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ResourceUsageAgentClient interface { // Report the resource usage records. By default, the records with the same // resource group tag will be batched by minute. @@ -256,7 +375,7 @@ func NewResourceUsageAgentClient(cc *grpc.ClientConn) ResourceUsageAgentClient { } func (c *resourceUsageAgentClient) Report(ctx context.Context, opts ...grpc.CallOption) (ResourceUsageAgent_ReportClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ResourceUsageAgent_serviceDesc.Streams[0], c.cc, "/resource_usage_agent.ResourceUsageAgent/Report", opts...) + stream, err := c.cc.NewStream(ctx, &_ResourceUsageAgent_serviceDesc.Streams[0], "/resource_usage_agent.ResourceUsageAgent/Report", opts...) if err != nil { return nil, err } @@ -289,14 +408,21 @@ func (x *resourceUsageAgentReportClient) CloseAndRecv() (*EmptyResponse, error) return m, nil } -// Server API for ResourceUsageAgent service - +// ResourceUsageAgentServer is the server API for ResourceUsageAgent service. type ResourceUsageAgentServer interface { // Report the resource usage records. By default, the records with the same // resource group tag will be batched by minute. Report(ResourceUsageAgent_ReportServer) error } +// UnimplementedResourceUsageAgentServer can be embedded to have forward compatible implementations. +type UnimplementedResourceUsageAgentServer struct { +} + +func (*UnimplementedResourceUsageAgentServer) Report(srv ResourceUsageAgent_ReportServer) error { + return status.Errorf(codes.Unimplemented, "method Report not implemented") +} + func RegisterResourceUsageAgentServer(s *grpc.Server, srv ResourceUsageAgentServer) { s.RegisterService(&_ResourceUsageAgent_serviceDesc, srv) } @@ -341,8 +467,9 @@ var _ResourceUsageAgent_serviceDesc = grpc.ServiceDesc{ Metadata: "resource_usage_agent.proto", } -// Client API for ResourceMeteringPubSub service - +// ResourceMeteringPubSubClient is the client API for ResourceMeteringPubSub service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ResourceMeteringPubSubClient interface { // Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) // publishes resource metering records to clients via gRPC stream. @@ -358,7 +485,7 @@ func NewResourceMeteringPubSubClient(cc *grpc.ClientConn) ResourceMeteringPubSub } func (c *resourceMeteringPubSubClient) Subscribe(ctx context.Context, in *ResourceMeteringRequest, opts ...grpc.CallOption) (ResourceMeteringPubSub_SubscribeClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ResourceMeteringPubSub_serviceDesc.Streams[0], c.cc, "/resource_usage_agent.ResourceMeteringPubSub/Subscribe", opts...) + stream, err := c.cc.NewStream(ctx, &_ResourceMeteringPubSub_serviceDesc.Streams[0], "/resource_usage_agent.ResourceMeteringPubSub/Subscribe", opts...) if err != nil { return nil, err } @@ -389,14 +516,21 @@ func (x *resourceMeteringPubSubSubscribeClient) Recv() (*ResourceUsageRecord, er return m, nil } -// Server API for ResourceMeteringPubSub service - +// ResourceMeteringPubSubServer is the server API for ResourceMeteringPubSub service. type ResourceMeteringPubSubServer interface { // Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) // publishes resource metering records to clients via gRPC stream. Subscribe(*ResourceMeteringRequest, ResourceMeteringPubSub_SubscribeServer) error } +// UnimplementedResourceMeteringPubSubServer can be embedded to have forward compatible implementations. +type UnimplementedResourceMeteringPubSubServer struct { +} + +func (*UnimplementedResourceMeteringPubSubServer) Subscribe(req *ResourceMeteringRequest, srv ResourceMeteringPubSub_SubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +} + func RegisterResourceMeteringPubSubServer(s *grpc.Server, srv ResourceMeteringPubSubServer) { s.RegisterService(&_ResourceMeteringPubSub_serviceDesc, srv) } @@ -439,7 +573,7 @@ var _ResourceMeteringPubSub_serviceDesc = grpc.ServiceDesc{ func (m *ResourceMeteringRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -447,17 +581,26 @@ func (m *ResourceMeteringRequest) Marshal() (dAtA []byte, err error) { } func (m *ResourceMeteringRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceMeteringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -465,17 +608,26 @@ func (m *EmptyResponse) Marshal() (dAtA []byte, err error) { } func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *ResourceUsageRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -483,38 +635,56 @@ func (m *ResourceUsageRecord) Marshal() (dAtA []byte, err error) { } func (m *ResourceUsageRecord) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceUsageRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RecordOneof != nil { - nn1, err := m.RecordOneof.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.RecordOneof.Size() + i -= size + if _, err := m.RecordOneof.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn1 } - return i, nil + return len(dAtA) - i, nil } func (m *ResourceUsageRecord_Record) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceUsageRecord_Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Record != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.Record.Size())) - n2, err := m.Record.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GroupTagRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -522,35 +692,47 @@ func (m *GroupTagRecord) Marshal() (dAtA []byte, err error) { } func (m *GroupTagRecord) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupTagRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ResourceGroupTag) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(len(m.ResourceGroupTag))) - i += copy(dAtA[i:], m.ResourceGroupTag) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Items) > 0 { - for _, msg := range m.Items { - dAtA[i] = 0x12 - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + 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 = encodeVarintResourceUsageAgent(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x12 } } - return i, nil + if len(m.ResourceGroupTag) > 0 { + i -= len(m.ResourceGroupTag) + copy(dAtA[i:], m.ResourceGroupTag) + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(len(m.ResourceGroupTag))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *GroupTagRecordItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -558,64 +740,96 @@ func (m *GroupTagRecordItem) Marshal() (dAtA []byte, err error) { } func (m *GroupTagRecordItem) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupTagRecordItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TimestampSec != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.TimestampSec)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.CpuTimeMs != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.CpuTimeMs)) + if m.WriteKeys != 0 { + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.WriteKeys)) + i-- + dAtA[i] = 0x20 } if m.ReadKeys != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.ReadKeys)) + i-- + dAtA[i] = 0x18 } - if m.WriteKeys != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.WriteKeys)) + if m.CpuTimeMs != 0 { + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.CpuTimeMs)) + i-- + dAtA[i] = 0x10 + } + if m.TimestampSec != 0 { + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.TimestampSec)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintResourceUsageAgent(dAtA []byte, offset int, v uint64) int { + offset -= sovResourceUsageAgent(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ResourceMeteringRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *EmptyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResourceUsageRecord) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RecordOneof != nil { n += m.RecordOneof.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResourceUsageRecord_Record) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Record != nil { @@ -625,6 +839,9 @@ func (m *ResourceUsageRecord_Record) Size() (n int) { return n } func (m *GroupTagRecord) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.ResourceGroupTag) @@ -637,10 +854,16 @@ func (m *GroupTagRecord) Size() (n int) { n += 1 + l + sovResourceUsageAgent(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GroupTagRecordItem) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TimestampSec != 0 { @@ -655,18 +878,14 @@ func (m *GroupTagRecordItem) Size() (n int) { if m.WriteKeys != 0 { n += 1 + sovResourceUsageAgent(uint64(m.WriteKeys)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovResourceUsageAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozResourceUsageAgent(x uint64) (n int) { return sovResourceUsageAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -686,7 +905,7 @@ func (m *ResourceMeteringRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -706,12 +925,13 @@ func (m *ResourceMeteringRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -736,7 +956,7 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -756,12 +976,13 @@ func (m *EmptyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -786,7 +1007,7 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -814,7 +1035,7 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -823,6 +1044,9 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceUsageAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -838,12 +1062,13 @@ func (m *ResourceUsageRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -868,7 +1093,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -896,7 +1121,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -905,6 +1130,9 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthResourceUsageAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -927,7 +1155,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -936,6 +1164,9 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthResourceUsageAgent + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -950,12 +1181,13 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -980,7 +1212,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1008,7 +1240,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TimestampSec |= (uint64(b) & 0x7F) << shift + m.TimestampSec |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1027,7 +1259,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CpuTimeMs |= (uint32(b) & 0x7F) << shift + m.CpuTimeMs |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1046,7 +1278,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadKeys |= (uint32(b) & 0x7F) << shift + m.ReadKeys |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1065,7 +1297,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WriteKeys |= (uint32(b) & 0x7F) << shift + m.WriteKeys |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1076,12 +1308,13 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1094,6 +1327,7 @@ func (m *GroupTagRecordItem) Unmarshal(dAtA []byte) error { func skipResourceUsageAgent(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1125,10 +1359,8 @@ func skipResourceUsageAgent(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1145,86 +1377,34 @@ func skipResourceUsageAgent(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthResourceUsageAgent } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowResourceUsageAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipResourceUsageAgent(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupResourceUsageAgent + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthResourceUsageAgent + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthResourceUsageAgent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResourceUsageAgent = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthResourceUsageAgent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowResourceUsageAgent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupResourceUsageAgent = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("resource_usage_agent.proto", fileDescriptorResourceUsageAgent) } - -var fileDescriptorResourceUsageAgent = []byte{ - // 432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, - 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, - 0x82, 0xae, 0x12, 0xef, 0x05, 0x0b, 0xa2, 0x22, 0x05, 0x99, 0xad, 0x37, 0x61, 0x48, 0xd2, 0xd7, - 0x61, 0x58, 0x92, 0x19, 0xe7, 0xa3, 0xb2, 0x17, 0x2f, 0xfe, 0x06, 0xc1, 0x9f, 0xe0, 0x4f, 0xf1, - 0xe8, 0xd1, 0xa3, 0xac, 0x7f, 0x44, 0x32, 0xe9, 0x16, 0xb6, 0x86, 0xd2, 0x53, 0x5e, 0x9e, 0x8f, - 0x3c, 0xcf, 0xcc, 0xbc, 0x10, 0x19, 0xb4, 0xca, 0x9b, 0x12, 0xb9, 0xb7, 0xb9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0x43, 0x03, 0x92, 0x8e, 0xd9, 0xa0, 0xd4, 0xfe, 0x44, 0x56, 0x78, 0x6c, 0xe9, 0x3d, - 0x18, 0x18, 0xcc, 0x4f, 0xf9, 0x1c, 0x17, 0x76, 0xb2, 0x11, 0xd8, 0xad, 0x06, 0x78, 0x8b, 0x0b, - 0x4b, 0xef, 0x03, 0x7c, 0x36, 0xd2, 0x61, 0xcb, 0x6e, 0xb6, 0xde, 0x80, 0x34, 0x74, 0x66, 0x80, - 0xae, 0x5d, 0xff, 0x8b, 0xe6, 0x1c, 0xf4, 0x03, 0xf4, 0x19, 0x6a, 0x65, 0x1c, 0x7d, 0xd4, 0x7d, - 0xd0, 0x8e, 0x27, 0x8b, 0x0e, 0xba, 0xa5, 0xeb, 0xcf, 0xdd, 0x4b, 0x49, 0xf6, 0x95, 0xc0, 0xed, - 0xcb, 0xfb, 0xf1, 0xce, 0x17, 0x33, 0x5f, 0x50, 0x09, 0x83, 0x99, 0x2f, 0x6c, 0x69, 0x64, 0x81, - 0xf4, 0xc9, 0xd5, 0xd9, 0x97, 0x56, 0x2b, 0xba, 0x7e, 0xd5, 0xa4, 0xf7, 0x8c, 0x1c, 0x3d, 0xfc, - 0xfd, 0x63, 0x8b, 0xfc, 0x5c, 0xc6, 0xe4, 0xd7, 0x32, 0x26, 0x7f, 0x96, 0x31, 0xf9, 0xfe, 0x37, - 0xee, 0xc1, 0xae, 0x32, 0x62, 0xea, 0xe4, 0xfc, 0x6c, 0x3a, 0x3f, 0x0b, 0xcb, 0x5c, 0xf4, 0xc3, - 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, -} diff --git a/pkg/schedulingpb/schedulingpb.pb.go b/pkg/schedulingpb/schedulingpb.pb.go index f77ae43ef..7d4ae09d7 100644 --- a/pkg/schedulingpb/schedulingpb.pb.go +++ b/pkg/schedulingpb/schedulingpb.pb.go @@ -1,41 +1,22 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: schedulingpb.proto -/* -Package schedulingpb is a generated protocol buffer package. - -It is generated from these files: - - schedulingpb.proto - -It has these top-level messages: - - RequestHeader - ResponseHeader - Error - Participant - StoreHeartbeatRequest - StoreHeartbeatResponse - RegionHeartbeatRequest - RegionHeartbeatResponse -*/ package schedulingpb import ( + "context" "fmt" "io" "math" - - proto "github.com/golang/protobuf/proto" - pdpb "github.com/pingcap/kvproto/pkg/pdpb" + math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" - + proto "github.com/golang/protobuf/proto" metapb "github.com/pingcap/kvproto/pkg/metapb" - - context "golang.org/x/net/context" - + pdpb "github.com/pingcap/kvproto/pkg/pdpb" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -47,7 +28,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ErrorType int32 @@ -68,6 +49,7 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } + var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -80,19 +62,53 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } -func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []int{0} } + +func (ErrorType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{0} +} type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // sender_id is the ID of the sender server. - SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + SenderId uint64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{0} +} +func (m *RequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(m, src) +} +func (m *RequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RequestHeader.DiscardUnknown(m) } -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []int{0} } +var xxx_messageInfo_RequestHeader proto.InternalMessageInfo func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -110,14 +126,45 @@ func (m *RequestHeader) GetSenderId() uint64 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{1} +} +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []int{1} } +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -134,14 +181,45 @@ func (m *ResponseHeader) GetError() *Error { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=schedulingpb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=schedulingpb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{2} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []int{2} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetType() ErrorType { if m != nil { @@ -164,13 +242,44 @@ type Participant struct { Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // listen_urls is the serivce endpoint list in the url format. // listen_urls[0] is primary service endpoint. - ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls,proto3" json:"listen_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Participant) Reset() { *m = Participant{} } +func (m *Participant) String() string { return proto.CompactTextString(m) } +func (*Participant) ProtoMessage() {} +func (*Participant) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{3} +} +func (m *Participant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Participant.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 *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(m, src) +} +func (m *Participant) XXX_Size() int { + return m.Size() +} +func (m *Participant) XXX_DiscardUnknown() { + xxx_messageInfo_Participant.DiscardUnknown(m) } -func (m *Participant) Reset() { *m = Participant{} } -func (m *Participant) String() string { return proto.CompactTextString(m) } -func (*Participant) ProtoMessage() {} -func (*Participant) Descriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []int{3} } +var xxx_messageInfo_Participant proto.InternalMessageInfo func (m *Participant) GetName() string { if m != nil { @@ -194,17 +303,46 @@ func (m *Participant) GetListenUrls() []string { } type StoreHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Stats *pdpb.StoreStats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Stats *pdpb.StoreStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatRequest) ProtoMessage() {} func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptorSchedulingpb, []int{4} + return fileDescriptor_b4bfd49510230d67, []int{4} +} +func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreHeartbeatRequest.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 *StoreHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatRequest.Merge(m, src) +} +func (m *StoreHeartbeatRequest) XXX_Size() int { + return m.Size() +} +func (m *StoreHeartbeatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StoreHeartbeatRequest.DiscardUnknown(m) } +var xxx_messageInfo_StoreHeartbeatRequest proto.InternalMessageInfo + func (m *StoreHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -220,17 +358,46 @@ func (m *StoreHeartbeatRequest) GetStats() *pdpb.StoreStats { } type StoreHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ClusterVersion string `protobuf:"bytes,2,opt,name=cluster_version,json=clusterVersion,proto3" json:"cluster_version,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + ClusterVersion string `protobuf:"bytes,2,opt,name=cluster_version,json=clusterVersion,proto3" json:"cluster_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} } func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatResponse) ProtoMessage() {} func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptorSchedulingpb, []int{5} + return fileDescriptor_b4bfd49510230d67, []int{5} +} +func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StoreHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StoreHeartbeatResponse.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 *StoreHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatResponse.Merge(m, src) +} +func (m *StoreHeartbeatResponse) XXX_Size() int { + return m.Size() +} +func (m *StoreHeartbeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StoreHeartbeatResponse.DiscardUnknown(m) } +var xxx_messageInfo_StoreHeartbeatResponse proto.InternalMessageInfo + func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -246,17 +413,17 @@ func (m *StoreHeartbeatResponse) GetClusterVersion() string { } type RegionHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // Leader Peer sending the heartbeat. - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` // Term is the term of raft group. Term uint64 `protobuf:"varint,4,opt,name=term,proto3" json:"term,omitempty"` // Leader considers that these peers are down. - DownPeers []*pdpb.PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` + DownPeers []*pdpb.PeerStats `protobuf:"bytes,5,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,6,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` // Bytes read/written during this period. BytesWritten uint64 `protobuf:"varint,7,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` BytesRead uint64 `protobuf:"varint,8,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` @@ -268,18 +435,47 @@ type RegionHeartbeatRequest struct { // Approximate number of keys. ApproximateKeys uint64 `protobuf:"varint,12,opt,name=approximate_keys,json=approximateKeys,proto3" json:"approximate_keys,omitempty"` // QueryStats reported write query stats, and there are read query stats in store heartbeat - QueryStats *pdpb.QueryStats `protobuf:"bytes,13,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` + QueryStats *pdpb.QueryStats `protobuf:"bytes,13,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"` // Actually reported time interval - Interval *pdpb.TimeInterval `protobuf:"bytes,14,opt,name=interval" json:"interval,omitempty"` + Interval *pdpb.TimeInterval `protobuf:"bytes,14,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} } func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatRequest) ProtoMessage() {} func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptorSchedulingpb, []int{6} + return fileDescriptor_b4bfd49510230d67, []int{6} +} +func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionHeartbeatRequest.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 *RegionHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatRequest.Merge(m, src) +} +func (m *RegionHeartbeatRequest) XXX_Size() int { + return m.Size() +} +func (m *RegionHeartbeatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegionHeartbeatRequest.DiscardUnknown(m) } +var xxx_messageInfo_RegionHeartbeatRequest proto.InternalMessageInfo + func (m *RegionHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -379,12 +575,12 @@ func (m *RegionHeartbeatRequest) GetInterval() *pdpb.TimeInterval { } type RegionHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // ID of the region RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` // Leader of the region at the moment of the corresponding request was made. - TargetPeer *metapb.Peer `protobuf:"bytes,4,opt,name=target_peer,json=targetPeer" json:"target_peer,omitempty"` + TargetPeer *metapb.Peer `protobuf:"bytes,4,opt,name=target_peer,json=targetPeer,proto3" json:"target_peer,omitempty"` // Notice, Pd only allows handling reported epoch >= current pd's. // Leader peer reports region status with RegionHeartbeatRequest // to pd regularly, pd will determine whether this region @@ -399,28 +595,57 @@ type RegionHeartbeatResponse struct { // 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange // finished, pd stills responses ChangePeer Adding 2, of course, we must // guarantee the second ChangePeer can't be applied in TiKV. - ChangePeer *pdpb.ChangePeer `protobuf:"bytes,5,opt,name=change_peer,json=changePeer" json:"change_peer,omitempty"` + ChangePeer *pdpb.ChangePeer `protobuf:"bytes,5,opt,name=change_peer,json=changePeer,proto3" json:"change_peer,omitempty"` // Pd can return transfer_leader to let TiKV does leader transfer itself. - TransferLeader *pdpb.TransferLeader `protobuf:"bytes,6,opt,name=transfer_leader,json=transferLeader" json:"transfer_leader,omitempty"` - Merge *pdpb.Merge `protobuf:"bytes,7,opt,name=merge" json:"merge,omitempty"` + TransferLeader *pdpb.TransferLeader `protobuf:"bytes,6,opt,name=transfer_leader,json=transferLeader,proto3" json:"transfer_leader,omitempty"` + Merge *pdpb.Merge `protobuf:"bytes,7,opt,name=merge,proto3" json:"merge,omitempty"` // PD sends split_region to let TiKV split a region into two regions. - SplitRegion *pdpb.SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion" json:"split_region,omitempty"` + SplitRegion *pdpb.SplitRegion `protobuf:"bytes,8,opt,name=split_region,json=splitRegion,proto3" json:"split_region,omitempty"` // Multiple change peer operations atomically. // Note: PD can use both ChangePeer and ChangePeerV2 at the same time // (not in the same RegionHeartbeatResponse). // Now, PD use ChangePeerV2 in following scenarios: // 1. replacing peers // 2. demoting voter directly - ChangePeerV2 *pdpb.ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` - SwitchWitnesses *pdpb.BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` + ChangePeerV2 *pdpb.ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2,proto3" json:"change_peer_v2,omitempty"` + SwitchWitnesses *pdpb.BatchSwitchWitness `protobuf:"bytes,10,opt,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse{} } func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatResponse) ProtoMessage() {} func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptorSchedulingpb, []int{7} + return fileDescriptor_b4bfd49510230d67, []int{7} +} +func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *RegionHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionHeartbeatResponse.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 *RegionHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatResponse.Merge(m, src) +} +func (m *RegionHeartbeatResponse) XXX_Size() int { + return m.Size() +} +func (m *RegionHeartbeatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegionHeartbeatResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionHeartbeatResponse proto.InternalMessageInfo func (m *RegionHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -493,6 +718,7 @@ func (m *RegionHeartbeatResponse) GetSwitchWitnesses() *pdpb.BatchSwitchWitness } func init() { + proto.RegisterEnum("schedulingpb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "schedulingpb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "schedulingpb.ResponseHeader") proto.RegisterType((*Error)(nil), "schedulingpb.Error") @@ -501,7 +727,76 @@ func init() { proto.RegisterType((*StoreHeartbeatResponse)(nil), "schedulingpb.StoreHeartbeatResponse") proto.RegisterType((*RegionHeartbeatRequest)(nil), "schedulingpb.RegionHeartbeatRequest") proto.RegisterType((*RegionHeartbeatResponse)(nil), "schedulingpb.RegionHeartbeatResponse") - proto.RegisterEnum("schedulingpb.ErrorType", ErrorType_name, ErrorType_value) +} + +func init() { proto.RegisterFile("schedulingpb.proto", fileDescriptor_b4bfd49510230d67) } + +var fileDescriptor_b4bfd49510230d67 = []byte{ + // 1009 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0x23, 0x45, + 0x10, 0x5d, 0x27, 0xb6, 0x93, 0xa9, 0x99, 0xd8, 0xb3, 0xbd, 0x21, 0x3b, 0x4a, 0x20, 0x64, 0xbd, + 0x61, 0xc9, 0x82, 0x30, 0xe0, 0x5d, 0x21, 0x2e, 0x1c, 0x9c, 0xc4, 0xd2, 0x5a, 0x49, 0x9c, 0xd0, + 0x76, 0x12, 0x81, 0x84, 0x46, 0x13, 0x4f, 0x31, 0x1e, 0xc5, 0x9e, 0x99, 0x74, 0xb7, 0x13, 0xbc, + 0xfc, 0x11, 0x2e, 0xdc, 0xf9, 0x29, 0xdc, 0x80, 0x1b, 0x47, 0x14, 0xfe, 0x08, 0xea, 0x0f, 0x3b, + 0xb6, 0x37, 0x02, 0x24, 0x38, 0xb9, 0xfb, 0xbd, 0x57, 0x55, 0xee, 0xaa, 0xd7, 0x6d, 0x03, 0xe1, + 0xdd, 0x1e, 0x86, 0xc3, 0x7e, 0x9c, 0x44, 0xd9, 0x45, 0x35, 0x63, 0xa9, 0x48, 0x89, 0x33, 0x8d, + 0xad, 0x43, 0x16, 0x8e, 0x99, 0xf5, 0xd5, 0x28, 0x8d, 0x52, 0xb5, 0xfc, 0x58, 0xae, 0x0c, 0x5a, + 0x66, 0x43, 0x2e, 0xd4, 0xd2, 0x00, 0xce, 0x00, 0x45, 0x30, 0x0e, 0xaa, 0x1c, 0xc0, 0x0a, 0xc5, + 0xab, 0x21, 0x72, 0xf1, 0x0a, 0x83, 0x10, 0x19, 0x79, 0x07, 0xa0, 0xdb, 0x1f, 0x72, 0x81, 0xcc, + 0x8f, 0x43, 0x2f, 0xb7, 0x95, 0xdb, 0xc9, 0x53, 0xcb, 0x20, 0xcd, 0x90, 0x6c, 0x80, 0xc5, 0x31, + 0x09, 0x35, 0xbb, 0xa0, 0xd8, 0x65, 0x0d, 0x34, 0xc3, 0xca, 0xd7, 0x50, 0xa2, 0xc8, 0xb3, 0x34, + 0xe1, 0xf8, 0xef, 0xb2, 0x3d, 0x87, 0x02, 0x32, 0x96, 0x32, 0x95, 0xc9, 0xae, 0x3d, 0xaa, 0xce, + 0x1c, 0xb8, 0x21, 0x29, 0xaa, 0x15, 0x95, 0x16, 0x14, 0xd4, 0x9e, 0x7c, 0x08, 0x79, 0x31, 0xca, + 0x50, 0x25, 0x2b, 0xd5, 0x1e, 0xdf, 0x13, 0xd2, 0x19, 0x65, 0x48, 0x95, 0x88, 0x78, 0xb0, 0x34, + 0x40, 0xce, 0x83, 0x08, 0x55, 0x09, 0x8b, 0x8e, 0xb7, 0x15, 0x0a, 0xf6, 0x49, 0xc0, 0x44, 0xdc, + 0x8d, 0xb3, 0x20, 0x11, 0x84, 0x40, 0x3e, 0x09, 0x06, 0x3a, 0xab, 0x45, 0xd5, 0x9a, 0x94, 0x60, + 0x61, 0x72, 0xc8, 0x85, 0x38, 0x24, 0xef, 0x82, 0xdd, 0x8f, 0xb9, 0xc0, 0xc4, 0x1f, 0xb2, 0x3e, + 0xf7, 0x16, 0xb7, 0x16, 0x77, 0x2c, 0x0a, 0x1a, 0x3a, 0x65, 0x7d, 0x5e, 0x11, 0xf0, 0x56, 0x5b, + 0xa4, 0x4c, 0x1e, 0x9e, 0x89, 0x0b, 0x0c, 0x84, 0x69, 0x2d, 0x79, 0x01, 0xc5, 0x9e, 0x6a, 0x88, + 0xca, 0x6f, 0xd7, 0x36, 0x66, 0xbf, 0xf5, 0xcc, 0x04, 0xa8, 0x91, 0x92, 0x67, 0x50, 0xe0, 0x22, + 0x10, 0xdc, 0x34, 0xc7, 0xad, 0xaa, 0x59, 0xab, 0x02, 0x6d, 0x89, 0x53, 0x4d, 0x57, 0x6e, 0x60, + 0x6d, 0xbe, 0xaa, 0x9e, 0x01, 0x79, 0x39, 0x57, 0xf6, 0xed, 0xf9, 0xb2, 0xd3, 0xb3, 0x9a, 0xd4, + 0x7d, 0x1f, 0xca, 0xe3, 0x99, 0x5d, 0x23, 0xe3, 0x71, 0x9a, 0x98, 0xde, 0x95, 0x0c, 0x7c, 0xa6, + 0xd1, 0xca, 0x2f, 0x79, 0x58, 0xa3, 0x18, 0xc5, 0x69, 0xf2, 0x7f, 0x1d, 0xb8, 0xc8, 0x54, 0x3a, + 0x73, 0xe2, 0x52, 0xd5, 0x58, 0x55, 0x17, 0xa1, 0x86, 0x25, 0xdb, 0x50, 0xec, 0xeb, 0xe4, 0x8b, + 0x4a, 0xe7, 0x8c, 0x75, 0x27, 0x28, 0xb3, 0x69, 0x4e, 0x4e, 0x54, 0x20, 0x1b, 0x78, 0x79, 0x35, + 0x3f, 0xb5, 0x26, 0x55, 0x80, 0x30, 0xbd, 0x49, 0xfc, 0x0c, 0x91, 0x71, 0xaf, 0xb0, 0xb5, 0xb8, + 0x63, 0xd7, 0xca, 0xba, 0xaf, 0x32, 0x56, 0xb7, 0xd5, 0x92, 0x12, 0xb9, 0xe5, 0xe4, 0x53, 0x58, + 0xc9, 0x30, 0x09, 0xe3, 0x24, 0x32, 0x21, 0x45, 0x15, 0x32, 0x5b, 0xd0, 0x31, 0x12, 0x1d, 0xf2, + 0x14, 0x56, 0x2e, 0x46, 0x02, 0xb9, 0x7f, 0xc3, 0x62, 0x21, 0x30, 0xf1, 0x96, 0x54, 0x7d, 0x47, + 0x81, 0xe7, 0x1a, 0x93, 0xd7, 0x42, 0x8b, 0x18, 0x06, 0xa1, 0xb7, 0xac, 0xaf, 0x85, 0x42, 0x28, + 0x06, 0x21, 0x79, 0x02, 0xce, 0x25, 0x8e, 0xee, 0x52, 0x58, 0x4a, 0x60, 0x4b, 0x6c, 0x9c, 0x61, + 0x03, 0x2c, 0x25, 0x51, 0x09, 0x40, 0xdf, 0x43, 0x09, 0xa8, 0xf8, 0xe7, 0xe0, 0x06, 0x59, 0xc6, + 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da, 0x13, 0xcb, 0x91, 0x6f, 0xa0, + 0x34, 0xfb, 0xec, 0x92, 0xa7, 0xb3, 0x8e, 0xbc, 0xf7, 0xa7, 0x60, 0x7d, 0xfb, 0xef, 0x45, 0xda, + 0xc4, 0x95, 0x07, 0x24, 0x84, 0xf2, 0xdc, 0x4d, 0x20, 0xdb, 0xf3, 0x8e, 0xbf, 0xef, 0xe9, 0x5d, + 0x7f, 0xef, 0x1f, 0x54, 0xe3, 0x0a, 0x3b, 0xb9, 0x4f, 0x72, 0xbb, 0xcf, 0x7e, 0xff, 0x69, 0x39, + 0xf7, 0xf3, 0xed, 0x66, 0xee, 0xd7, 0xdb, 0xcd, 0xdc, 0x1f, 0xb7, 0x9b, 0xb9, 0x1f, 0xfe, 0xdc, + 0x7c, 0x00, 0x6e, 0xca, 0xa2, 0xaa, 0x88, 0x2f, 0xaf, 0xab, 0x97, 0xd7, 0xea, 0x6f, 0xc2, 0x45, + 0x51, 0x7d, 0xbc, 0xf8, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x52, 0x2b, 0xc3, 0x6c, 0x92, 0x08, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -512,8 +807,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Scheduling service - +// SchedulingClient is the client API for Scheduling service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SchedulingClient interface { StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Scheduling_RegionHeartbeatClient, error) @@ -529,7 +825,7 @@ func NewSchedulingClient(cc *grpc.ClientConn) SchedulingClient { func (c *schedulingClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) { out := new(StoreHeartbeatResponse) - err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/StoreHeartbeat", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/StoreHeartbeat", in, out, opts...) if err != nil { return nil, err } @@ -537,7 +833,7 @@ func (c *schedulingClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbea } func (c *schedulingClient) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Scheduling_RegionHeartbeatClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Scheduling_serviceDesc.Streams[0], c.cc, "/schedulingpb.Scheduling/RegionHeartbeat", opts...) + stream, err := c.cc.NewStream(ctx, &_Scheduling_serviceDesc.Streams[0], "/schedulingpb.Scheduling/RegionHeartbeat", opts...) if err != nil { return nil, err } @@ -567,13 +863,23 @@ func (x *schedulingRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, erro return m, nil } -// Server API for Scheduling service - +// SchedulingServer is the server API for Scheduling service. type SchedulingServer interface { StoreHeartbeat(context.Context, *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) RegionHeartbeat(Scheduling_RegionHeartbeatServer) error } +// UnimplementedSchedulingServer can be embedded to have forward compatible implementations. +type UnimplementedSchedulingServer struct { +} + +func (*UnimplementedSchedulingServer) StoreHeartbeat(ctx context.Context, req *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StoreHeartbeat not implemented") +} +func (*UnimplementedSchedulingServer) RegionHeartbeat(srv Scheduling_RegionHeartbeatServer) error { + return status.Errorf(codes.Unimplemented, "method RegionHeartbeat not implemented") +} + func RegisterSchedulingServer(s *grpc.Server, srv SchedulingServer) { s.RegisterService(&_Scheduling_serviceDesc, srv) } @@ -645,7 +951,7 @@ var _Scheduling_serviceDesc = grpc.ServiceDesc{ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -653,27 +959,36 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SenderId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SenderId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.ClusterId != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -681,32 +996,43 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n1 + i-- + dAtA[i] = 0x12 } - return i, nil + if m.ClusterId != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -714,28 +1040,38 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Type != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Participant) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -743,43 +1079,47 @@ func (m *Participant) Marshal() (dAtA []byte, err error) { } func (m *Participant) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Participant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Id != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ListenUrls) > 0 { - for _, s := range m.ListenUrls { + for iNdEx := len(m.ListenUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ListenUrls[iNdEx]) + copy(dAtA[i:], m.ListenUrls[iNdEx]) + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if m.Id != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -787,37 +1127,50 @@ func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) - n2, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Stats.Size())) - n3, err := m.Stats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -825,33 +1178,45 @@ func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) - n4, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ClusterVersion) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ClusterVersion) + copy(dAtA[i:], m.ClusterVersion) i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.ClusterVersion))) - i += copy(dAtA[i:], m.ClusterVersion) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -859,126 +1224,149 @@ func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { } func (m *RegionHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + 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.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) - n5, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if m.Region != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Region.Size())) - n6, err := m.Region.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 - } - if m.Leader != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Leader.Size())) - n7, err := m.Leader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 - } - if m.Term != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Term)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.DownPeers) > 0 { - for _, msg := range m.DownPeers { - dAtA[i] = 0x2a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.Interval != nil { + { + size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x72 } - if len(m.PendingPeers) > 0 { - for _, msg := range m.PendingPeers { - dAtA[i] = 0x32 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.QueryStats != nil { + { + size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x6a } - if m.BytesWritten != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesWritten)) + if m.ApproximateKeys != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateKeys)) + i-- + dAtA[i] = 0x60 } - if m.BytesRead != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesRead)) + if m.ApproximateSize != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateSize)) + i-- + dAtA[i] = 0x58 + } + if m.KeysRead != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysRead)) + i-- + dAtA[i] = 0x50 } if m.KeysWritten != 0 { - dAtA[i] = 0x48 - i++ i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysWritten)) + i-- + dAtA[i] = 0x48 } - if m.KeysRead != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysRead)) + if m.BytesRead != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesRead)) + i-- + dAtA[i] = 0x40 } - if m.ApproximateSize != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateSize)) + if m.BytesWritten != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesWritten)) + i-- + dAtA[i] = 0x38 } - if m.ApproximateKeys != 0 { - dAtA[i] = 0x60 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateKeys)) + 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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - if m.QueryStats != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.QueryStats.Size())) - n8, err := m.QueryStats.MarshalTo(dAtA[i:]) - if err != nil { - return 0, 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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - i += n8 } - if m.Interval != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Interval.Size())) - n9, err := m.Interval.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Term != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x20 + } + if m.Leader != nil { + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -986,118 +1374,150 @@ func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) - n10, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.RegionId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) + if m.SwitchWitnesses != nil { + { + size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 } - if m.RegionEpoch != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionEpoch.Size())) - n11, err := m.RegionEpoch.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeerV2 != nil { + { + size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x4a } - if m.TargetPeer != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.TargetPeer.Size())) - n12, err := m.TargetPeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SplitRegion != nil { + { + size, err := m.SplitRegion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x42 } - if m.ChangePeer != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ChangePeer.Size())) - n13, err := m.ChangePeer.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Merge != nil { + { + size, err := m.Merge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x3a } if m.TransferLeader != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.TransferLeader.Size())) - n14, err := m.TransferLeader.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x32 } - if m.Merge != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Merge.Size())) - n15, err := m.Merge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ChangePeer != nil { + { + size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x2a } - if m.SplitRegion != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SplitRegion.Size())) - n16, err := m.SplitRegion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.TargetPeer != nil { + { + size, err := m.TargetPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x22 } - if m.ChangePeerV2 != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ChangePeerV2.Size())) - n17, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x1a } - if m.SwitchWitnesses != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) - n18, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.RegionId != 0 { + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintSchedulingpb(dAtA []byte, offset int, v uint64) int { + offset -= sovSchedulingpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *RequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1106,10 +1526,16 @@ func (m *RequestHeader) Size() (n int) { if m.SenderId != 0 { n += 1 + sovSchedulingpb(uint64(m.SenderId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1119,10 +1545,16 @@ func (m *ResponseHeader) Size() (n int) { l = m.Error.Size() n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -1132,10 +1564,16 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Participant) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -1151,10 +1589,16 @@ func (m *Participant) Size() (n int) { n += 1 + l + sovSchedulingpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreHeartbeatRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1165,10 +1609,16 @@ func (m *StoreHeartbeatRequest) Size() (n int) { l = m.Stats.Size() n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *StoreHeartbeatResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1179,10 +1629,16 @@ func (m *StoreHeartbeatResponse) Size() (n int) { if l > 0 { n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionHeartbeatRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1238,10 +1694,16 @@ func (m *RegionHeartbeatRequest) Size() (n int) { l = m.Interval.Size() n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *RegionHeartbeatResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1283,18 +1745,14 @@ func (m *RegionHeartbeatResponse) Size() (n int) { l = m.SwitchWitnesses.Size() n += 1 + l + sovSchedulingpb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovSchedulingpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozSchedulingpb(x uint64) (n int) { return sovSchedulingpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1314,7 +1772,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1342,7 +1800,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1361,7 +1819,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= (uint64(b) & 0x7F) << shift + m.SenderId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1372,12 +1830,13 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1402,7 +1861,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1430,7 +1889,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1449,7 +1908,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1458,6 +1917,9 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1474,12 +1936,13 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1504,7 +1967,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1532,7 +1995,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } @@ -1551,7 +2014,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1561,6 +2024,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1572,12 +2038,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1602,7 +2069,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1630,7 +2097,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1640,6 +2107,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1659,7 +2129,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1678,7 +2148,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1688,6 +2158,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1699,12 +2172,13 @@ func (m *Participant) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1729,7 +2203,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1757,7 +2231,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1766,6 +2240,9 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1790,7 +2267,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1799,6 +2276,9 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1815,12 +2295,13 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1845,7 +2326,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1873,7 +2354,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1882,6 +2363,9 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1906,7 +2390,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1916,6 +2400,9 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1927,12 +2414,13 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1957,7 +2445,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1985,7 +2473,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1994,6 +2482,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2018,7 +2509,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2027,6 +2518,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2051,7 +2545,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2060,6 +2554,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2084,7 +2581,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Term |= (uint64(b) & 0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2103,7 +2600,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2112,6 +2609,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2134,7 +2634,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2143,6 +2643,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2165,7 +2668,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesWritten |= (uint64(b) & 0x7F) << shift + m.BytesWritten |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2184,7 +2687,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesRead |= (uint64(b) & 0x7F) << shift + m.BytesRead |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2203,7 +2706,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysWritten |= (uint64(b) & 0x7F) << shift + m.KeysWritten |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2222,7 +2725,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysRead |= (uint64(b) & 0x7F) << shift + m.KeysRead |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2241,7 +2744,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateSize |= (uint64(b) & 0x7F) << shift + m.ApproximateSize |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2260,7 +2763,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateKeys |= (uint64(b) & 0x7F) << shift + m.ApproximateKeys |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2279,7 +2782,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2288,6 +2791,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2312,7 +2818,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2321,6 +2827,9 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2337,12 +2846,13 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2367,7 +2877,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2395,7 +2905,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2404,6 +2914,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2428,7 +2941,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= (uint64(b) & 0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2447,7 +2960,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2456,6 +2969,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2480,7 +2996,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2489,6 +3005,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2513,7 +3032,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2522,6 +3041,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2546,7 +3068,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2555,6 +3077,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2579,7 +3104,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2588,6 +3113,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2612,7 +3140,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2621,6 +3149,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2645,7 +3176,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2654,6 +3185,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2678,7 +3212,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2687,6 +3221,9 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2703,12 +3240,13 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2721,6 +3259,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { func skipSchedulingpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2752,10 +3291,8 @@ func skipSchedulingpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2772,123 +3309,34 @@ func skipSchedulingpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSchedulingpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSchedulingpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipSchedulingpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchedulingpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchedulingpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthSchedulingpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSchedulingpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthSchedulingpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchedulingpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchedulingpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("schedulingpb.proto", fileDescriptorSchedulingpb) } - -var fileDescriptorSchedulingpb = []byte{ - // 1009 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4d, 0x6f, 0x23, 0x45, - 0x10, 0x5d, 0x27, 0xb6, 0x93, 0xa9, 0x99, 0xd8, 0xb3, 0xbd, 0x21, 0x3b, 0x4a, 0x20, 0x64, 0xbd, - 0x61, 0xc9, 0x82, 0x30, 0xe0, 0x5d, 0x21, 0x2e, 0x1c, 0x9c, 0xc4, 0xd2, 0x5a, 0x49, 0x9c, 0xd0, - 0x76, 0x12, 0x81, 0x84, 0x46, 0x13, 0x4f, 0x31, 0x1e, 0xc5, 0x9e, 0x99, 0x74, 0xb7, 0x13, 0xbc, - 0xfc, 0x11, 0x2e, 0xdc, 0xf9, 0x29, 0xdc, 0x80, 0x1b, 0x47, 0x14, 0xfe, 0x08, 0xea, 0x0f, 0x3b, - 0xb6, 0x37, 0x02, 0x24, 0x38, 0xb9, 0xfb, 0xbd, 0x57, 0x55, 0xee, 0xaa, 0xd7, 0x6d, 0x03, 0xe1, - 0xdd, 0x1e, 0x86, 0xc3, 0x7e, 0x9c, 0x44, 0xd9, 0x45, 0x35, 0x63, 0xa9, 0x48, 0x89, 0x33, 0x8d, - 0xad, 0x43, 0x16, 0x8e, 0x99, 0xf5, 0xd5, 0x28, 0x8d, 0x52, 0xb5, 0xfc, 0x58, 0xae, 0x0c, 0x5a, - 0x66, 0x43, 0x2e, 0xd4, 0xd2, 0x00, 0xce, 0x00, 0x45, 0x30, 0x0e, 0xaa, 0x1c, 0xc0, 0x0a, 0xc5, - 0xab, 0x21, 0x72, 0xf1, 0x0a, 0x83, 0x10, 0x19, 0x79, 0x07, 0xa0, 0xdb, 0x1f, 0x72, 0x81, 0xcc, - 0x8f, 0x43, 0x2f, 0xb7, 0x95, 0xdb, 0xc9, 0x53, 0xcb, 0x20, 0xcd, 0x90, 0x6c, 0x80, 0xc5, 0x31, - 0x09, 0x35, 0xbb, 0xa0, 0xd8, 0x65, 0x0d, 0x34, 0xc3, 0xca, 0xd7, 0x50, 0xa2, 0xc8, 0xb3, 0x34, - 0xe1, 0xf8, 0xef, 0xb2, 0x3d, 0x87, 0x02, 0x32, 0x96, 0x32, 0x95, 0xc9, 0xae, 0x3d, 0xaa, 0xce, - 0x1c, 0xb8, 0x21, 0x29, 0xaa, 0x15, 0x95, 0x16, 0x14, 0xd4, 0x9e, 0x7c, 0x08, 0x79, 0x31, 0xca, - 0x50, 0x25, 0x2b, 0xd5, 0x1e, 0xdf, 0x13, 0xd2, 0x19, 0x65, 0x48, 0x95, 0x88, 0x78, 0xb0, 0x34, - 0x40, 0xce, 0x83, 0x08, 0x55, 0x09, 0x8b, 0x8e, 0xb7, 0x15, 0x0a, 0xf6, 0x49, 0xc0, 0x44, 0xdc, - 0x8d, 0xb3, 0x20, 0x11, 0x84, 0x40, 0x3e, 0x09, 0x06, 0x3a, 0xab, 0x45, 0xd5, 0x9a, 0x94, 0x60, - 0x61, 0x72, 0xc8, 0x85, 0x38, 0x24, 0xef, 0x82, 0xdd, 0x8f, 0xb9, 0xc0, 0xc4, 0x1f, 0xb2, 0x3e, - 0xf7, 0x16, 0xb7, 0x16, 0x77, 0x2c, 0x0a, 0x1a, 0x3a, 0x65, 0x7d, 0x5e, 0x11, 0xf0, 0x56, 0x5b, - 0xa4, 0x4c, 0x1e, 0x9e, 0x89, 0x0b, 0x0c, 0x84, 0x69, 0x2d, 0x79, 0x01, 0xc5, 0x9e, 0x6a, 0x88, - 0xca, 0x6f, 0xd7, 0x36, 0x66, 0xbf, 0xf5, 0xcc, 0x04, 0xa8, 0x91, 0x92, 0x67, 0x50, 0xe0, 0x22, - 0x10, 0xdc, 0x34, 0xc7, 0xad, 0xaa, 0x59, 0xab, 0x02, 0x6d, 0x89, 0x53, 0x4d, 0x57, 0x6e, 0x60, - 0x6d, 0xbe, 0xaa, 0x9e, 0x01, 0x79, 0x39, 0x57, 0xf6, 0xed, 0xf9, 0xb2, 0xd3, 0xb3, 0x9a, 0xd4, - 0x7d, 0x1f, 0xca, 0xe3, 0x99, 0x5d, 0x23, 0xe3, 0x71, 0x9a, 0x98, 0xde, 0x95, 0x0c, 0x7c, 0xa6, - 0xd1, 0xca, 0x2f, 0x79, 0x58, 0xa3, 0x18, 0xc5, 0x69, 0xf2, 0x7f, 0x1d, 0xb8, 0xc8, 0x54, 0x3a, - 0x73, 0xe2, 0x52, 0xd5, 0x58, 0x55, 0x17, 0xa1, 0x86, 0x25, 0xdb, 0x50, 0xec, 0xeb, 0xe4, 0x8b, - 0x4a, 0xe7, 0x8c, 0x75, 0x27, 0x28, 0xb3, 0x69, 0x4e, 0x4e, 0x54, 0x20, 0x1b, 0x78, 0x79, 0x35, - 0x3f, 0xb5, 0x26, 0x55, 0x80, 0x30, 0xbd, 0x49, 0xfc, 0x0c, 0x91, 0x71, 0xaf, 0xb0, 0xb5, 0xb8, - 0x63, 0xd7, 0xca, 0xba, 0xaf, 0x32, 0x56, 0xb7, 0xd5, 0x92, 0x12, 0xb9, 0xe5, 0xe4, 0x53, 0x58, - 0xc9, 0x30, 0x09, 0xe3, 0x24, 0x32, 0x21, 0x45, 0x15, 0x32, 0x5b, 0xd0, 0x31, 0x12, 0x1d, 0xf2, - 0x14, 0x56, 0x2e, 0x46, 0x02, 0xb9, 0x7f, 0xc3, 0x62, 0x21, 0x30, 0xf1, 0x96, 0x54, 0x7d, 0x47, - 0x81, 0xe7, 0x1a, 0x93, 0xd7, 0x42, 0x8b, 0x18, 0x06, 0xa1, 0xb7, 0xac, 0xaf, 0x85, 0x42, 0x28, - 0x06, 0x21, 0x79, 0x02, 0xce, 0x25, 0x8e, 0xee, 0x52, 0x58, 0x4a, 0x60, 0x4b, 0x6c, 0x9c, 0x61, - 0x03, 0x2c, 0x25, 0x51, 0x09, 0x40, 0xdf, 0x43, 0x09, 0xa8, 0xf8, 0xe7, 0xe0, 0x06, 0x59, 0xc6, - 0xd2, 0xef, 0xe2, 0x41, 0x20, 0xd0, 0xe7, 0x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, 0xec, 0x92, 0xa7, 0xb3, 0x8e, 0xbc, 0xf7, 0xa7, 0x60, 0x7d, 0xfb, 0xef, 0x45, 0xda, - 0xc4, 0x95, 0x07, 0x24, 0x84, 0xf2, 0xdc, 0x4d, 0x20, 0xdb, 0xf3, 0x8e, 0xbf, 0xef, 0xe9, 0x5d, - 0x7f, 0xef, 0x1f, 0x54, 0xe3, 0x0a, 0x3b, 0xb9, 0x4f, 0x72, 0xbb, 0xcf, 0x7e, 0xff, 0x69, 0x39, - 0xf7, 0xf3, 0xed, 0x66, 0xee, 0xd7, 0xdb, 0xcd, 0xdc, 0x1f, 0xb7, 0x9b, 0xb9, 0x1f, 0xfe, 0xdc, - 0x7c, 0x00, 0x6e, 0xca, 0xa2, 0xaa, 0x88, 0x2f, 0xaf, 0xab, 0x97, 0xd7, 0xea, 0x6f, 0xc2, 0x45, - 0x51, 0x7d, 0xbc, 0xf8, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x52, 0x2b, 0xc3, 0x6c, 0x92, 0x08, 0x00, - 0x00, -} diff --git a/pkg/tikvpb/tikvpb.pb.go b/pkg/tikvpb/tikvpb.pb.go index 366fb4c81..b6452b12f 100644 --- a/pkg/tikvpb/tikvpb.pb.go +++ b/pkg/tikvpb/tikvpb.pb.go @@ -1,44 +1,25 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tikvpb.proto -/* -Package tikvpb is a generated protocol buffer package. - -It is generated from these files: - - tikvpb.proto - -It has these top-level messages: - - BatchCommandsRequest - BatchCommandsResponse - BatchRaftMessage - BatchCommandsEmptyRequest - BatchCommandsEmptyResponse -*/ package tikvpb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" coprocessor "github.com/pingcap/kvproto/pkg/coprocessor" - + disaggregated "github.com/pingcap/kvproto/pkg/disaggregated" kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" - mpp "github.com/pingcap/kvproto/pkg/mpp" - raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" - - disaggregated "github.com/pingcap/kvproto/pkg/disaggregated" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -50,17 +31,48 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type BatchCommandsRequest struct { - Requests []*BatchCommandsRequest_Request `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` - RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds" json:"request_ids,omitempty"` + Requests []*BatchCommandsRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchCommandsRequest) Reset() { *m = BatchCommandsRequest{} } +func (m *BatchCommandsRequest) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsRequest) ProtoMessage() {} +func (*BatchCommandsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_274fe050f0c997b3, []int{0} +} +func (m *BatchCommandsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsRequest.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 *BatchCommandsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsRequest.Merge(m, src) +} +func (m *BatchCommandsRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchCommandsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsRequest.DiscardUnknown(m) } -func (m *BatchCommandsRequest) Reset() { *m = BatchCommandsRequest{} } -func (m *BatchCommandsRequest) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsRequest) ProtoMessage() {} -func (*BatchCommandsRequest) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{0} } +var xxx_messageInfo_BatchCommandsRequest proto.InternalMessageInfo func (m *BatchCommandsRequest) GetRequests() []*BatchCommandsRequest_Request { if m != nil { @@ -110,15 +122,44 @@ type BatchCommandsRequest_Request struct { // *BatchCommandsRequest_Request_PrepareFlashbackToVersion // *BatchCommandsRequest_Request_ScanTxnEntries // *BatchCommandsRequest_Request_Empty - Cmd isBatchCommandsRequest_Request_Cmd `protobuf_oneof:"cmd"` + Cmd isBatchCommandsRequest_Request_Cmd `protobuf_oneof:"cmd"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BatchCommandsRequest_Request) Reset() { *m = BatchCommandsRequest_Request{} } func (m *BatchCommandsRequest_Request) String() string { return proto.CompactTextString(m) } func (*BatchCommandsRequest_Request) ProtoMessage() {} func (*BatchCommandsRequest_Request) Descriptor() ([]byte, []int) { - return fileDescriptorTikvpb, []int{0, 0} + return fileDescriptor_274fe050f0c997b3, []int{0, 0} +} +func (m *BatchCommandsRequest_Request) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsRequest_Request.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 *BatchCommandsRequest_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsRequest_Request.Merge(m, src) +} +func (m *BatchCommandsRequest_Request) XXX_Size() int { + return m.Size() } +func (m *BatchCommandsRequest_Request) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsRequest_Request.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchCommandsRequest_Request proto.InternalMessageInfo type isBatchCommandsRequest_Request_Cmd interface { isBatchCommandsRequest_Request_Cmd() @@ -127,100 +168,100 @@ type isBatchCommandsRequest_Request_Cmd interface { } type BatchCommandsRequest_Request_Get struct { - Get *kvrpcpb.GetRequest `protobuf:"bytes,1,opt,name=Get,oneof"` + Get *kvrpcpb.GetRequest `protobuf:"bytes,1,opt,name=Get,proto3,oneof" json:"Get,omitempty"` } type BatchCommandsRequest_Request_Scan struct { - Scan *kvrpcpb.ScanRequest `protobuf:"bytes,2,opt,name=Scan,oneof"` + Scan *kvrpcpb.ScanRequest `protobuf:"bytes,2,opt,name=Scan,proto3,oneof" json:"Scan,omitempty"` } type BatchCommandsRequest_Request_Prewrite struct { - Prewrite *kvrpcpb.PrewriteRequest `protobuf:"bytes,3,opt,name=Prewrite,oneof"` + Prewrite *kvrpcpb.PrewriteRequest `protobuf:"bytes,3,opt,name=Prewrite,proto3,oneof" json:"Prewrite,omitempty"` } type BatchCommandsRequest_Request_Commit struct { - Commit *kvrpcpb.CommitRequest `protobuf:"bytes,4,opt,name=Commit,oneof"` + Commit *kvrpcpb.CommitRequest `protobuf:"bytes,4,opt,name=Commit,proto3,oneof" json:"Commit,omitempty"` } type BatchCommandsRequest_Request_Import struct { - Import *kvrpcpb.ImportRequest `protobuf:"bytes,5,opt,name=Import,oneof"` + Import *kvrpcpb.ImportRequest `protobuf:"bytes,5,opt,name=Import,proto3,oneof" json:"Import,omitempty"` } type BatchCommandsRequest_Request_Cleanup struct { - Cleanup *kvrpcpb.CleanupRequest `protobuf:"bytes,6,opt,name=Cleanup,oneof"` + Cleanup *kvrpcpb.CleanupRequest `protobuf:"bytes,6,opt,name=Cleanup,proto3,oneof" json:"Cleanup,omitempty"` } type BatchCommandsRequest_Request_BatchGet struct { - BatchGet *kvrpcpb.BatchGetRequest `protobuf:"bytes,7,opt,name=BatchGet,oneof"` + BatchGet *kvrpcpb.BatchGetRequest `protobuf:"bytes,7,opt,name=BatchGet,proto3,oneof" json:"BatchGet,omitempty"` } type BatchCommandsRequest_Request_BatchRollback struct { - BatchRollback *kvrpcpb.BatchRollbackRequest `protobuf:"bytes,8,opt,name=BatchRollback,oneof"` + BatchRollback *kvrpcpb.BatchRollbackRequest `protobuf:"bytes,8,opt,name=BatchRollback,proto3,oneof" json:"BatchRollback,omitempty"` } type BatchCommandsRequest_Request_ScanLock struct { - ScanLock *kvrpcpb.ScanLockRequest `protobuf:"bytes,9,opt,name=ScanLock,oneof"` + ScanLock *kvrpcpb.ScanLockRequest `protobuf:"bytes,9,opt,name=ScanLock,proto3,oneof" json:"ScanLock,omitempty"` } type BatchCommandsRequest_Request_ResolveLock struct { - ResolveLock *kvrpcpb.ResolveLockRequest `protobuf:"bytes,10,opt,name=ResolveLock,oneof"` + ResolveLock *kvrpcpb.ResolveLockRequest `protobuf:"bytes,10,opt,name=ResolveLock,proto3,oneof" json:"ResolveLock,omitempty"` } type BatchCommandsRequest_Request_GC struct { - GC *kvrpcpb.GCRequest `protobuf:"bytes,11,opt,name=GC,oneof"` + GC *kvrpcpb.GCRequest `protobuf:"bytes,11,opt,name=GC,proto3,oneof" json:"GC,omitempty"` } type BatchCommandsRequest_Request_DeleteRange struct { - DeleteRange *kvrpcpb.DeleteRangeRequest `protobuf:"bytes,12,opt,name=DeleteRange,oneof"` + DeleteRange *kvrpcpb.DeleteRangeRequest `protobuf:"bytes,12,opt,name=DeleteRange,proto3,oneof" json:"DeleteRange,omitempty"` } type BatchCommandsRequest_Request_RawGet struct { - RawGet *kvrpcpb.RawGetRequest `protobuf:"bytes,13,opt,name=RawGet,oneof"` + RawGet *kvrpcpb.RawGetRequest `protobuf:"bytes,13,opt,name=RawGet,proto3,oneof" json:"RawGet,omitempty"` } type BatchCommandsRequest_Request_RawBatchGet struct { - RawBatchGet *kvrpcpb.RawBatchGetRequest `protobuf:"bytes,14,opt,name=RawBatchGet,oneof"` + RawBatchGet *kvrpcpb.RawBatchGetRequest `protobuf:"bytes,14,opt,name=RawBatchGet,proto3,oneof" json:"RawBatchGet,omitempty"` } type BatchCommandsRequest_Request_RawPut struct { - RawPut *kvrpcpb.RawPutRequest `protobuf:"bytes,15,opt,name=RawPut,oneof"` + RawPut *kvrpcpb.RawPutRequest `protobuf:"bytes,15,opt,name=RawPut,proto3,oneof" json:"RawPut,omitempty"` } type BatchCommandsRequest_Request_RawBatchPut struct { - RawBatchPut *kvrpcpb.RawBatchPutRequest `protobuf:"bytes,16,opt,name=RawBatchPut,oneof"` + RawBatchPut *kvrpcpb.RawBatchPutRequest `protobuf:"bytes,16,opt,name=RawBatchPut,proto3,oneof" json:"RawBatchPut,omitempty"` } type BatchCommandsRequest_Request_RawDelete struct { - RawDelete *kvrpcpb.RawDeleteRequest `protobuf:"bytes,17,opt,name=RawDelete,oneof"` + RawDelete *kvrpcpb.RawDeleteRequest `protobuf:"bytes,17,opt,name=RawDelete,proto3,oneof" json:"RawDelete,omitempty"` } type BatchCommandsRequest_Request_RawBatchDelete struct { - RawBatchDelete *kvrpcpb.RawBatchDeleteRequest `protobuf:"bytes,18,opt,name=RawBatchDelete,oneof"` + RawBatchDelete *kvrpcpb.RawBatchDeleteRequest `protobuf:"bytes,18,opt,name=RawBatchDelete,proto3,oneof" json:"RawBatchDelete,omitempty"` } type BatchCommandsRequest_Request_RawScan struct { - RawScan *kvrpcpb.RawScanRequest `protobuf:"bytes,19,opt,name=RawScan,oneof"` + RawScan *kvrpcpb.RawScanRequest `protobuf:"bytes,19,opt,name=RawScan,proto3,oneof" json:"RawScan,omitempty"` } type BatchCommandsRequest_Request_RawDeleteRange struct { - RawDeleteRange *kvrpcpb.RawDeleteRangeRequest `protobuf:"bytes,20,opt,name=RawDeleteRange,oneof"` + RawDeleteRange *kvrpcpb.RawDeleteRangeRequest `protobuf:"bytes,20,opt,name=RawDeleteRange,proto3,oneof" json:"RawDeleteRange,omitempty"` } type BatchCommandsRequest_Request_RawBatchScan struct { - RawBatchScan *kvrpcpb.RawBatchScanRequest `protobuf:"bytes,21,opt,name=RawBatchScan,oneof"` + RawBatchScan *kvrpcpb.RawBatchScanRequest `protobuf:"bytes,21,opt,name=RawBatchScan,proto3,oneof" json:"RawBatchScan,omitempty"` } type BatchCommandsRequest_Request_Coprocessor struct { - Coprocessor *coprocessor.Request `protobuf:"bytes,22,opt,name=Coprocessor,oneof"` + Coprocessor *coprocessor.Request `protobuf:"bytes,22,opt,name=Coprocessor,proto3,oneof" json:"Coprocessor,omitempty"` } type BatchCommandsRequest_Request_PessimisticLock struct { - PessimisticLock *kvrpcpb.PessimisticLockRequest `protobuf:"bytes,23,opt,name=PessimisticLock,oneof"` + PessimisticLock *kvrpcpb.PessimisticLockRequest `protobuf:"bytes,23,opt,name=PessimisticLock,proto3,oneof" json:"PessimisticLock,omitempty"` } type BatchCommandsRequest_Request_PessimisticRollback struct { - PessimisticRollback *kvrpcpb.PessimisticRollbackRequest `protobuf:"bytes,24,opt,name=PessimisticRollback,oneof"` + PessimisticRollback *kvrpcpb.PessimisticRollbackRequest `protobuf:"bytes,24,opt,name=PessimisticRollback,proto3,oneof" json:"PessimisticRollback,omitempty"` } type BatchCommandsRequest_Request_CheckTxnStatus struct { - CheckTxnStatus *kvrpcpb.CheckTxnStatusRequest `protobuf:"bytes,25,opt,name=CheckTxnStatus,oneof"` + CheckTxnStatus *kvrpcpb.CheckTxnStatusRequest `protobuf:"bytes,25,opt,name=CheckTxnStatus,proto3,oneof" json:"CheckTxnStatus,omitempty"` } type BatchCommandsRequest_Request_TxnHeartBeat struct { - TxnHeartBeat *kvrpcpb.TxnHeartBeatRequest `protobuf:"bytes,26,opt,name=TxnHeartBeat,oneof"` + TxnHeartBeat *kvrpcpb.TxnHeartBeatRequest `protobuf:"bytes,26,opt,name=TxnHeartBeat,proto3,oneof" json:"TxnHeartBeat,omitempty"` } type BatchCommandsRequest_Request_CheckSecondaryLocks struct { - CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksRequest `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,oneof"` + CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksRequest `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,proto3,oneof" json:"CheckSecondaryLocks,omitempty"` } type BatchCommandsRequest_Request_RawCoprocessor struct { - RawCoprocessor *kvrpcpb.RawCoprocessorRequest `protobuf:"bytes,34,opt,name=RawCoprocessor,oneof"` + RawCoprocessor *kvrpcpb.RawCoprocessorRequest `protobuf:"bytes,34,opt,name=RawCoprocessor,proto3,oneof" json:"RawCoprocessor,omitempty"` } type BatchCommandsRequest_Request_FlashbackToVersion struct { - FlashbackToVersion *kvrpcpb.FlashbackToVersionRequest `protobuf:"bytes,35,opt,name=FlashbackToVersion,oneof"` + FlashbackToVersion *kvrpcpb.FlashbackToVersionRequest `protobuf:"bytes,35,opt,name=FlashbackToVersion,proto3,oneof" json:"FlashbackToVersion,omitempty"` } type BatchCommandsRequest_Request_PrepareFlashbackToVersion struct { - PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionRequest `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,oneof"` + PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionRequest `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` } type BatchCommandsRequest_Request_ScanTxnEntries struct { - ScanTxnEntries *kvrpcpb.ScanTxnEntriesRequest `protobuf:"bytes,37,opt,name=ScanTxnEntries,oneof"` + ScanTxnEntries *kvrpcpb.ScanTxnEntriesRequest `protobuf:"bytes,37,opt,name=ScanTxnEntries,proto3,oneof" json:"ScanTxnEntries,omitempty"` } type BatchCommandsRequest_Request_Empty struct { - Empty *BatchCommandsEmptyRequest `protobuf:"bytes,255,opt,name=Empty,oneof"` + Empty *BatchCommandsEmptyRequest `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` } func (*BatchCommandsRequest_Request_Get) isBatchCommandsRequest_Request_Cmd() {} @@ -487,9 +528,9 @@ func (m *BatchCommandsRequest_Request) GetEmpty() *BatchCommandsEmptyRequest { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*BatchCommandsRequest_Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _BatchCommandsRequest_Request_OneofMarshaler, _BatchCommandsRequest_Request_OneofUnmarshaler, _BatchCommandsRequest_Request_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BatchCommandsRequest_Request) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*BatchCommandsRequest_Request_Get)(nil), (*BatchCommandsRequest_Request_Scan)(nil), (*BatchCommandsRequest_Request_Prewrite)(nil), @@ -525,623 +566,48 @@ func (*BatchCommandsRequest_Request) XXX_OneofFuncs() (func(msg proto.Message, b } } -func _BatchCommandsRequest_Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*BatchCommandsRequest_Request) - // cmd - switch x := m.Cmd.(type) { - case *BatchCommandsRequest_Request_Get: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Get); err != nil { - return err - } - case *BatchCommandsRequest_Request_Scan: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Scan); err != nil { - return err - } - case *BatchCommandsRequest_Request_Prewrite: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Prewrite); err != nil { - return err - } - case *BatchCommandsRequest_Request_Commit: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Commit); err != nil { - return err - } - case *BatchCommandsRequest_Request_Import: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Import); err != nil { - return err - } - case *BatchCommandsRequest_Request_Cleanup: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Cleanup); err != nil { - return err - } - case *BatchCommandsRequest_Request_BatchGet: - _ = b.EncodeVarint(7<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.BatchGet); err != nil { - return err - } - case *BatchCommandsRequest_Request_BatchRollback: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.BatchRollback); err != nil { - return err - } - case *BatchCommandsRequest_Request_ScanLock: - _ = b.EncodeVarint(9<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ScanLock); err != nil { - return err - } - case *BatchCommandsRequest_Request_ResolveLock: - _ = b.EncodeVarint(10<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ResolveLock); err != nil { - return err - } - case *BatchCommandsRequest_Request_GC: - _ = b.EncodeVarint(11<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GC); err != nil { - return err - } - case *BatchCommandsRequest_Request_DeleteRange: - _ = b.EncodeVarint(12<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.DeleteRange); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawGet: - _ = b.EncodeVarint(13<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawGet); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawBatchGet: - _ = b.EncodeVarint(14<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchGet); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawPut: - _ = b.EncodeVarint(15<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawPut); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawBatchPut: - _ = b.EncodeVarint(16<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchPut); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawDelete: - _ = b.EncodeVarint(17<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawDelete); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawBatchDelete: - _ = b.EncodeVarint(18<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchDelete); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawScan: - _ = b.EncodeVarint(19<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawScan); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawDeleteRange: - _ = b.EncodeVarint(20<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawDeleteRange); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawBatchScan: - _ = b.EncodeVarint(21<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchScan); err != nil { - return err - } - case *BatchCommandsRequest_Request_Coprocessor: - _ = b.EncodeVarint(22<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Coprocessor); err != nil { - return err - } - case *BatchCommandsRequest_Request_PessimisticLock: - _ = b.EncodeVarint(23<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PessimisticLock); err != nil { - return err - } - case *BatchCommandsRequest_Request_PessimisticRollback: - _ = b.EncodeVarint(24<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PessimisticRollback); err != nil { - return err - } - case *BatchCommandsRequest_Request_CheckTxnStatus: - _ = b.EncodeVarint(25<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.CheckTxnStatus); err != nil { - return err - } - case *BatchCommandsRequest_Request_TxnHeartBeat: - _ = b.EncodeVarint(26<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.TxnHeartBeat); err != nil { - return err - } - case *BatchCommandsRequest_Request_CheckSecondaryLocks: - _ = b.EncodeVarint(33<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.CheckSecondaryLocks); err != nil { - return err - } - case *BatchCommandsRequest_Request_RawCoprocessor: - _ = b.EncodeVarint(34<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawCoprocessor); err != nil { - return err - } - case *BatchCommandsRequest_Request_FlashbackToVersion: - _ = b.EncodeVarint(35<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.FlashbackToVersion); err != nil { - return err - } - case *BatchCommandsRequest_Request_PrepareFlashbackToVersion: - _ = b.EncodeVarint(36<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PrepareFlashbackToVersion); err != nil { - return err - } - case *BatchCommandsRequest_Request_ScanTxnEntries: - _ = b.EncodeVarint(37<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ScanTxnEntries); err != nil { - return err - } - case *BatchCommandsRequest_Request_Empty: - _ = b.EncodeVarint(255<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Empty); err != nil { - return err +type BatchCommandsResponse struct { + Responses []*BatchCommandsResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` + RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"` + // 280 means TiKV gRPC cpu usage is 280%. + TransportLayerLoad uint64 `protobuf:"varint,3,opt,name=transport_layer_load,json=transportLayerLoad,proto3" json:"transport_layer_load,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchCommandsResponse) Reset() { *m = BatchCommandsResponse{} } +func (m *BatchCommandsResponse) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsResponse) ProtoMessage() {} +func (*BatchCommandsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_274fe050f0c997b3, []int{1} +} +func (m *BatchCommandsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("BatchCommandsRequest_Request.Cmd has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _BatchCommandsRequest_Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*BatchCommandsRequest_Request) - switch tag { - case 1: // cmd.Get - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.GetRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Get{msg} - return true, err - case 2: // cmd.Scan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Scan{msg} - return true, err - case 3: // cmd.Prewrite - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PrewriteRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Prewrite{msg} - return true, err - case 4: // cmd.Commit - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CommitRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Commit{msg} - return true, err - case 5: // cmd.Import - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ImportRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Import{msg} - return true, err - case 6: // cmd.Cleanup - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CleanupRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Cleanup{msg} - return true, err - case 7: // cmd.BatchGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.BatchGetRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_BatchGet{msg} - return true, err - case 8: // cmd.BatchRollback - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.BatchRollbackRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_BatchRollback{msg} - return true, err - case 9: // cmd.ScanLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanLockRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_ScanLock{msg} - return true, err - case 10: // cmd.ResolveLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ResolveLockRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_ResolveLock{msg} - return true, err - case 11: // cmd.GC - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.GCRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_GC{msg} - return true, err - case 12: // cmd.DeleteRange - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.DeleteRangeRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_DeleteRange{msg} - return true, err - case 13: // cmd.RawGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawGetRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawGet{msg} - return true, err - case 14: // cmd.RawBatchGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchGetRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawBatchGet{msg} - return true, err - case 15: // cmd.RawPut - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawPutRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawPut{msg} - return true, err - case 16: // cmd.RawBatchPut - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchPutRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawBatchPut{msg} - return true, err - case 17: // cmd.RawDelete - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawDeleteRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawDelete{msg} - return true, err - case 18: // cmd.RawBatchDelete - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchDeleteRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawBatchDelete{msg} - return true, err - case 19: // cmd.RawScan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawScanRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawScan{msg} - return true, err - case 20: // cmd.RawDeleteRange - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawDeleteRangeRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawDeleteRange{msg} - return true, err - case 21: // cmd.RawBatchScan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchScanRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawBatchScan{msg} - return true, err - case 22: // cmd.Coprocessor - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(coprocessor.Request) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Coprocessor{msg} - return true, err - case 23: // cmd.PessimisticLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PessimisticLockRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_PessimisticLock{msg} - return true, err - case 24: // cmd.PessimisticRollback - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PessimisticRollbackRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_PessimisticRollback{msg} - return true, err - case 25: // cmd.CheckTxnStatus - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CheckTxnStatusRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_CheckTxnStatus{msg} - return true, err - case 26: // cmd.TxnHeartBeat - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.TxnHeartBeatRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_TxnHeartBeat{msg} - return true, err - case 33: // cmd.CheckSecondaryLocks - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CheckSecondaryLocksRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_CheckSecondaryLocks{msg} - return true, err - case 34: // cmd.RawCoprocessor - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawCoprocessorRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_RawCoprocessor{msg} - return true, err - case 35: // cmd.FlashbackToVersion - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.FlashbackToVersionRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_FlashbackToVersion{msg} - return true, err - case 36: // cmd.PrepareFlashbackToVersion - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PrepareFlashbackToVersionRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_PrepareFlashbackToVersion{msg} - return true, err - case 37: // cmd.ScanTxnEntries - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanTxnEntriesRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_ScanTxnEntries{msg} - return true, err - case 255: // cmd.Empty - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(BatchCommandsEmptyRequest) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsRequest_Request_Empty{msg} - return true, err - default: - return false, nil - } -} - -func _BatchCommandsRequest_Request_OneofSizer(msg proto.Message) (n int) { - m := msg.(*BatchCommandsRequest_Request) - // cmd - switch x := m.Cmd.(type) { - case *BatchCommandsRequest_Request_Get: - s := proto.Size(x.Get) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Scan: - s := proto.Size(x.Scan) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Prewrite: - s := proto.Size(x.Prewrite) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Commit: - s := proto.Size(x.Commit) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Import: - s := proto.Size(x.Import) - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Cleanup: - s := proto.Size(x.Cleanup) - n += proto.SizeVarint(6<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_BatchGet: - s := proto.Size(x.BatchGet) - n += proto.SizeVarint(7<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_BatchRollback: - s := proto.Size(x.BatchRollback) - n += proto.SizeVarint(8<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_ScanLock: - s := proto.Size(x.ScanLock) - n += proto.SizeVarint(9<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_ResolveLock: - s := proto.Size(x.ResolveLock) - n += proto.SizeVarint(10<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_GC: - s := proto.Size(x.GC) - n += proto.SizeVarint(11<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_DeleteRange: - s := proto.Size(x.DeleteRange) - n += proto.SizeVarint(12<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawGet: - s := proto.Size(x.RawGet) - n += proto.SizeVarint(13<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawBatchGet: - s := proto.Size(x.RawBatchGet) - n += proto.SizeVarint(14<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawPut: - s := proto.Size(x.RawPut) - n += proto.SizeVarint(15<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawBatchPut: - s := proto.Size(x.RawBatchPut) - n += proto.SizeVarint(16<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawDelete: - s := proto.Size(x.RawDelete) - n += proto.SizeVarint(17<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawBatchDelete: - s := proto.Size(x.RawBatchDelete) - n += proto.SizeVarint(18<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawScan: - s := proto.Size(x.RawScan) - n += proto.SizeVarint(19<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawDeleteRange: - s := proto.Size(x.RawDeleteRange) - n += proto.SizeVarint(20<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawBatchScan: - s := proto.Size(x.RawBatchScan) - n += proto.SizeVarint(21<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Coprocessor: - s := proto.Size(x.Coprocessor) - n += proto.SizeVarint(22<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_PessimisticLock: - s := proto.Size(x.PessimisticLock) - n += proto.SizeVarint(23<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_PessimisticRollback: - s := proto.Size(x.PessimisticRollback) - n += proto.SizeVarint(24<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_CheckTxnStatus: - s := proto.Size(x.CheckTxnStatus) - n += proto.SizeVarint(25<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_TxnHeartBeat: - s := proto.Size(x.TxnHeartBeat) - n += proto.SizeVarint(26<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_CheckSecondaryLocks: - s := proto.Size(x.CheckSecondaryLocks) - n += proto.SizeVarint(33<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_RawCoprocessor: - s := proto.Size(x.RawCoprocessor) - n += proto.SizeVarint(34<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_FlashbackToVersion: - s := proto.Size(x.FlashbackToVersion) - n += proto.SizeVarint(35<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_PrepareFlashbackToVersion: - s := proto.Size(x.PrepareFlashbackToVersion) - n += proto.SizeVarint(36<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_ScanTxnEntries: - s := proto.Size(x.ScanTxnEntries) - n += proto.SizeVarint(37<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsRequest_Request_Empty: - s := proto.Size(x.Empty) - n += proto.SizeVarint(255<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *BatchCommandsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsResponse.Merge(m, src) } - -type BatchCommandsResponse struct { - Responses []*BatchCommandsResponse_Response `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"` - RequestIds []uint64 `protobuf:"varint,2,rep,packed,name=request_ids,json=requestIds" json:"request_ids,omitempty"` - // 280 means TiKV gRPC cpu usage is 280%. - TransportLayerLoad uint64 `protobuf:"varint,3,opt,name=transport_layer_load,json=transportLayerLoad,proto3" json:"transport_layer_load,omitempty"` +func (m *BatchCommandsResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchCommandsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsResponse.DiscardUnknown(m) } -func (m *BatchCommandsResponse) Reset() { *m = BatchCommandsResponse{} } -func (m *BatchCommandsResponse) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsResponse) ProtoMessage() {} -func (*BatchCommandsResponse) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{1} } +var xxx_messageInfo_BatchCommandsResponse proto.InternalMessageInfo func (m *BatchCommandsResponse) GetResponses() []*BatchCommandsResponse_Response { if m != nil { @@ -1198,16 +664,45 @@ type BatchCommandsResponse_Response struct { // *BatchCommandsResponse_Response_PrepareFlashbackToVersion // *BatchCommandsResponse_Response_ScanTxnEntries // *BatchCommandsResponse_Response_Empty - Cmd isBatchCommandsResponse_Response_Cmd `protobuf_oneof:"cmd"` + Cmd isBatchCommandsResponse_Response_Cmd `protobuf_oneof:"cmd"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BatchCommandsResponse_Response) Reset() { *m = BatchCommandsResponse_Response{} } func (m *BatchCommandsResponse_Response) String() string { return proto.CompactTextString(m) } func (*BatchCommandsResponse_Response) ProtoMessage() {} func (*BatchCommandsResponse_Response) Descriptor() ([]byte, []int) { - return fileDescriptorTikvpb, []int{1, 0} + return fileDescriptor_274fe050f0c997b3, []int{1, 0} +} +func (m *BatchCommandsResponse_Response) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsResponse_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsResponse_Response.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 *BatchCommandsResponse_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsResponse_Response.Merge(m, src) +} +func (m *BatchCommandsResponse_Response) XXX_Size() int { + return m.Size() +} +func (m *BatchCommandsResponse_Response) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsResponse_Response.DiscardUnknown(m) } +var xxx_messageInfo_BatchCommandsResponse_Response proto.InternalMessageInfo + type isBatchCommandsResponse_Response_Cmd interface { isBatchCommandsResponse_Response_Cmd() MarshalTo([]byte) (int, error) @@ -1215,100 +710,100 @@ type isBatchCommandsResponse_Response_Cmd interface { } type BatchCommandsResponse_Response_Get struct { - Get *kvrpcpb.GetResponse `protobuf:"bytes,1,opt,name=Get,oneof"` + Get *kvrpcpb.GetResponse `protobuf:"bytes,1,opt,name=Get,proto3,oneof" json:"Get,omitempty"` } type BatchCommandsResponse_Response_Scan struct { - Scan *kvrpcpb.ScanResponse `protobuf:"bytes,2,opt,name=Scan,oneof"` + Scan *kvrpcpb.ScanResponse `protobuf:"bytes,2,opt,name=Scan,proto3,oneof" json:"Scan,omitempty"` } type BatchCommandsResponse_Response_Prewrite struct { - Prewrite *kvrpcpb.PrewriteResponse `protobuf:"bytes,3,opt,name=Prewrite,oneof"` + Prewrite *kvrpcpb.PrewriteResponse `protobuf:"bytes,3,opt,name=Prewrite,proto3,oneof" json:"Prewrite,omitempty"` } type BatchCommandsResponse_Response_Commit struct { - Commit *kvrpcpb.CommitResponse `protobuf:"bytes,4,opt,name=Commit,oneof"` + Commit *kvrpcpb.CommitResponse `protobuf:"bytes,4,opt,name=Commit,proto3,oneof" json:"Commit,omitempty"` } type BatchCommandsResponse_Response_Import struct { - Import *kvrpcpb.ImportResponse `protobuf:"bytes,5,opt,name=Import,oneof"` + Import *kvrpcpb.ImportResponse `protobuf:"bytes,5,opt,name=Import,proto3,oneof" json:"Import,omitempty"` } type BatchCommandsResponse_Response_Cleanup struct { - Cleanup *kvrpcpb.CleanupResponse `protobuf:"bytes,6,opt,name=Cleanup,oneof"` + Cleanup *kvrpcpb.CleanupResponse `protobuf:"bytes,6,opt,name=Cleanup,proto3,oneof" json:"Cleanup,omitempty"` } type BatchCommandsResponse_Response_BatchGet struct { - BatchGet *kvrpcpb.BatchGetResponse `protobuf:"bytes,7,opt,name=BatchGet,oneof"` + BatchGet *kvrpcpb.BatchGetResponse `protobuf:"bytes,7,opt,name=BatchGet,proto3,oneof" json:"BatchGet,omitempty"` } type BatchCommandsResponse_Response_BatchRollback struct { - BatchRollback *kvrpcpb.BatchRollbackResponse `protobuf:"bytes,8,opt,name=BatchRollback,oneof"` + BatchRollback *kvrpcpb.BatchRollbackResponse `protobuf:"bytes,8,opt,name=BatchRollback,proto3,oneof" json:"BatchRollback,omitempty"` } type BatchCommandsResponse_Response_ScanLock struct { - ScanLock *kvrpcpb.ScanLockResponse `protobuf:"bytes,9,opt,name=ScanLock,oneof"` + ScanLock *kvrpcpb.ScanLockResponse `protobuf:"bytes,9,opt,name=ScanLock,proto3,oneof" json:"ScanLock,omitempty"` } type BatchCommandsResponse_Response_ResolveLock struct { - ResolveLock *kvrpcpb.ResolveLockResponse `protobuf:"bytes,10,opt,name=ResolveLock,oneof"` + ResolveLock *kvrpcpb.ResolveLockResponse `protobuf:"bytes,10,opt,name=ResolveLock,proto3,oneof" json:"ResolveLock,omitempty"` } type BatchCommandsResponse_Response_GC struct { - GC *kvrpcpb.GCResponse `protobuf:"bytes,11,opt,name=GC,oneof"` + GC *kvrpcpb.GCResponse `protobuf:"bytes,11,opt,name=GC,proto3,oneof" json:"GC,omitempty"` } type BatchCommandsResponse_Response_DeleteRange struct { - DeleteRange *kvrpcpb.DeleteRangeResponse `protobuf:"bytes,12,opt,name=DeleteRange,oneof"` + DeleteRange *kvrpcpb.DeleteRangeResponse `protobuf:"bytes,12,opt,name=DeleteRange,proto3,oneof" json:"DeleteRange,omitempty"` } type BatchCommandsResponse_Response_RawGet struct { - RawGet *kvrpcpb.RawGetResponse `protobuf:"bytes,13,opt,name=RawGet,oneof"` + RawGet *kvrpcpb.RawGetResponse `protobuf:"bytes,13,opt,name=RawGet,proto3,oneof" json:"RawGet,omitempty"` } type BatchCommandsResponse_Response_RawBatchGet struct { - RawBatchGet *kvrpcpb.RawBatchGetResponse `protobuf:"bytes,14,opt,name=RawBatchGet,oneof"` + RawBatchGet *kvrpcpb.RawBatchGetResponse `protobuf:"bytes,14,opt,name=RawBatchGet,proto3,oneof" json:"RawBatchGet,omitempty"` } type BatchCommandsResponse_Response_RawPut struct { - RawPut *kvrpcpb.RawPutResponse `protobuf:"bytes,15,opt,name=RawPut,oneof"` + RawPut *kvrpcpb.RawPutResponse `protobuf:"bytes,15,opt,name=RawPut,proto3,oneof" json:"RawPut,omitempty"` } type BatchCommandsResponse_Response_RawBatchPut struct { - RawBatchPut *kvrpcpb.RawBatchPutResponse `protobuf:"bytes,16,opt,name=RawBatchPut,oneof"` + RawBatchPut *kvrpcpb.RawBatchPutResponse `protobuf:"bytes,16,opt,name=RawBatchPut,proto3,oneof" json:"RawBatchPut,omitempty"` } type BatchCommandsResponse_Response_RawDelete struct { - RawDelete *kvrpcpb.RawDeleteResponse `protobuf:"bytes,17,opt,name=RawDelete,oneof"` + RawDelete *kvrpcpb.RawDeleteResponse `protobuf:"bytes,17,opt,name=RawDelete,proto3,oneof" json:"RawDelete,omitempty"` } type BatchCommandsResponse_Response_RawBatchDelete struct { - RawBatchDelete *kvrpcpb.RawBatchDeleteResponse `protobuf:"bytes,18,opt,name=RawBatchDelete,oneof"` + RawBatchDelete *kvrpcpb.RawBatchDeleteResponse `protobuf:"bytes,18,opt,name=RawBatchDelete,proto3,oneof" json:"RawBatchDelete,omitempty"` } type BatchCommandsResponse_Response_RawScan struct { - RawScan *kvrpcpb.RawScanResponse `protobuf:"bytes,19,opt,name=RawScan,oneof"` + RawScan *kvrpcpb.RawScanResponse `protobuf:"bytes,19,opt,name=RawScan,proto3,oneof" json:"RawScan,omitempty"` } type BatchCommandsResponse_Response_RawDeleteRange struct { - RawDeleteRange *kvrpcpb.RawDeleteRangeResponse `protobuf:"bytes,20,opt,name=RawDeleteRange,oneof"` + RawDeleteRange *kvrpcpb.RawDeleteRangeResponse `protobuf:"bytes,20,opt,name=RawDeleteRange,proto3,oneof" json:"RawDeleteRange,omitempty"` } type BatchCommandsResponse_Response_RawBatchScan struct { - RawBatchScan *kvrpcpb.RawBatchScanResponse `protobuf:"bytes,21,opt,name=RawBatchScan,oneof"` + RawBatchScan *kvrpcpb.RawBatchScanResponse `protobuf:"bytes,21,opt,name=RawBatchScan,proto3,oneof" json:"RawBatchScan,omitempty"` } type BatchCommandsResponse_Response_Coprocessor struct { - Coprocessor *coprocessor.Response `protobuf:"bytes,22,opt,name=Coprocessor,oneof"` + Coprocessor *coprocessor.Response `protobuf:"bytes,22,opt,name=Coprocessor,proto3,oneof" json:"Coprocessor,omitempty"` } type BatchCommandsResponse_Response_PessimisticLock struct { - PessimisticLock *kvrpcpb.PessimisticLockResponse `protobuf:"bytes,23,opt,name=PessimisticLock,oneof"` + PessimisticLock *kvrpcpb.PessimisticLockResponse `protobuf:"bytes,23,opt,name=PessimisticLock,proto3,oneof" json:"PessimisticLock,omitempty"` } type BatchCommandsResponse_Response_PessimisticRollback struct { - PessimisticRollback *kvrpcpb.PessimisticRollbackResponse `protobuf:"bytes,24,opt,name=PessimisticRollback,oneof"` + PessimisticRollback *kvrpcpb.PessimisticRollbackResponse `protobuf:"bytes,24,opt,name=PessimisticRollback,proto3,oneof" json:"PessimisticRollback,omitempty"` } type BatchCommandsResponse_Response_CheckTxnStatus struct { - CheckTxnStatus *kvrpcpb.CheckTxnStatusResponse `protobuf:"bytes,25,opt,name=CheckTxnStatus,oneof"` + CheckTxnStatus *kvrpcpb.CheckTxnStatusResponse `protobuf:"bytes,25,opt,name=CheckTxnStatus,proto3,oneof" json:"CheckTxnStatus,omitempty"` } type BatchCommandsResponse_Response_TxnHeartBeat struct { - TxnHeartBeat *kvrpcpb.TxnHeartBeatResponse `protobuf:"bytes,26,opt,name=TxnHeartBeat,oneof"` + TxnHeartBeat *kvrpcpb.TxnHeartBeatResponse `protobuf:"bytes,26,opt,name=TxnHeartBeat,proto3,oneof" json:"TxnHeartBeat,omitempty"` } type BatchCommandsResponse_Response_CheckSecondaryLocks struct { - CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksResponse `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,oneof"` + CheckSecondaryLocks *kvrpcpb.CheckSecondaryLocksResponse `protobuf:"bytes,33,opt,name=CheckSecondaryLocks,proto3,oneof" json:"CheckSecondaryLocks,omitempty"` } type BatchCommandsResponse_Response_RawCoprocessor struct { - RawCoprocessor *kvrpcpb.RawCoprocessorResponse `protobuf:"bytes,34,opt,name=RawCoprocessor,oneof"` + RawCoprocessor *kvrpcpb.RawCoprocessorResponse `protobuf:"bytes,34,opt,name=RawCoprocessor,proto3,oneof" json:"RawCoprocessor,omitempty"` } type BatchCommandsResponse_Response_FlashbackToVersion struct { - FlashbackToVersion *kvrpcpb.FlashbackToVersionResponse `protobuf:"bytes,35,opt,name=FlashbackToVersion,oneof"` + FlashbackToVersion *kvrpcpb.FlashbackToVersionResponse `protobuf:"bytes,35,opt,name=FlashbackToVersion,proto3,oneof" json:"FlashbackToVersion,omitempty"` } type BatchCommandsResponse_Response_PrepareFlashbackToVersion struct { - PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionResponse `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,oneof"` + PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionResponse `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` } type BatchCommandsResponse_Response_ScanTxnEntries struct { - ScanTxnEntries *kvrpcpb.ScanTxnEntriesResponse `protobuf:"bytes,37,opt,name=ScanTxnEntries,oneof"` + ScanTxnEntries *kvrpcpb.ScanTxnEntriesResponse `protobuf:"bytes,37,opt,name=ScanTxnEntries,proto3,oneof" json:"ScanTxnEntries,omitempty"` } type BatchCommandsResponse_Response_Empty struct { - Empty *BatchCommandsEmptyResponse `protobuf:"bytes,255,opt,name=Empty,oneof"` + Empty *BatchCommandsEmptyResponse `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` } func (*BatchCommandsResponse_Response_Get) isBatchCommandsResponse_Response_Cmd() {} @@ -1576,9 +1071,9 @@ func (m *BatchCommandsResponse_Response) GetEmpty() *BatchCommandsEmptyResponse return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*BatchCommandsResponse_Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _BatchCommandsResponse_Response_OneofMarshaler, _BatchCommandsResponse_Response_OneofUnmarshaler, _BatchCommandsResponse_Response_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BatchCommandsResponse_Response) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*BatchCommandsResponse_Response_Get)(nil), (*BatchCommandsResponse_Response_Scan)(nil), (*BatchCommandsResponse_Response_Prewrite)(nil), @@ -1614,620 +1109,45 @@ func (*BatchCommandsResponse_Response) XXX_OneofFuncs() (func(msg proto.Message, } } -func _BatchCommandsResponse_Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*BatchCommandsResponse_Response) - // cmd - switch x := m.Cmd.(type) { - case *BatchCommandsResponse_Response_Get: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Get); err != nil { - return err - } - case *BatchCommandsResponse_Response_Scan: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Scan); err != nil { - return err - } - case *BatchCommandsResponse_Response_Prewrite: - _ = b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Prewrite); err != nil { - return err - } - case *BatchCommandsResponse_Response_Commit: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Commit); err != nil { - return err - } - case *BatchCommandsResponse_Response_Import: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Import); err != nil { - return err - } - case *BatchCommandsResponse_Response_Cleanup: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Cleanup); err != nil { - return err - } - case *BatchCommandsResponse_Response_BatchGet: - _ = b.EncodeVarint(7<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.BatchGet); err != nil { - return err - } - case *BatchCommandsResponse_Response_BatchRollback: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.BatchRollback); err != nil { - return err - } - case *BatchCommandsResponse_Response_ScanLock: - _ = b.EncodeVarint(9<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ScanLock); err != nil { - return err - } - case *BatchCommandsResponse_Response_ResolveLock: - _ = b.EncodeVarint(10<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ResolveLock); err != nil { - return err - } - case *BatchCommandsResponse_Response_GC: - _ = b.EncodeVarint(11<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GC); err != nil { - return err - } - case *BatchCommandsResponse_Response_DeleteRange: - _ = b.EncodeVarint(12<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.DeleteRange); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawGet: - _ = b.EncodeVarint(13<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawGet); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawBatchGet: - _ = b.EncodeVarint(14<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchGet); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawPut: - _ = b.EncodeVarint(15<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawPut); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawBatchPut: - _ = b.EncodeVarint(16<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchPut); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawDelete: - _ = b.EncodeVarint(17<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawDelete); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawBatchDelete: - _ = b.EncodeVarint(18<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchDelete); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawScan: - _ = b.EncodeVarint(19<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawScan); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawDeleteRange: - _ = b.EncodeVarint(20<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawDeleteRange); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawBatchScan: - _ = b.EncodeVarint(21<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawBatchScan); err != nil { - return err - } - case *BatchCommandsResponse_Response_Coprocessor: - _ = b.EncodeVarint(22<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Coprocessor); err != nil { - return err - } - case *BatchCommandsResponse_Response_PessimisticLock: - _ = b.EncodeVarint(23<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PessimisticLock); err != nil { - return err - } - case *BatchCommandsResponse_Response_PessimisticRollback: - _ = b.EncodeVarint(24<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PessimisticRollback); err != nil { - return err - } - case *BatchCommandsResponse_Response_CheckTxnStatus: - _ = b.EncodeVarint(25<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.CheckTxnStatus); err != nil { - return err - } - case *BatchCommandsResponse_Response_TxnHeartBeat: - _ = b.EncodeVarint(26<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.TxnHeartBeat); err != nil { - return err - } - case *BatchCommandsResponse_Response_CheckSecondaryLocks: - _ = b.EncodeVarint(33<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.CheckSecondaryLocks); err != nil { - return err - } - case *BatchCommandsResponse_Response_RawCoprocessor: - _ = b.EncodeVarint(34<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RawCoprocessor); err != nil { - return err - } - case *BatchCommandsResponse_Response_FlashbackToVersion: - _ = b.EncodeVarint(35<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.FlashbackToVersion); err != nil { - return err - } - case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: - _ = b.EncodeVarint(36<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.PrepareFlashbackToVersion); err != nil { - return err - } - case *BatchCommandsResponse_Response_ScanTxnEntries: - _ = b.EncodeVarint(37<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ScanTxnEntries); err != nil { - return err - } - case *BatchCommandsResponse_Response_Empty: - _ = b.EncodeVarint(255<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Empty); err != nil { - return err +type BatchRaftMessage struct { + Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchRaftMessage) Reset() { *m = BatchRaftMessage{} } +func (m *BatchRaftMessage) String() string { return proto.CompactTextString(m) } +func (*BatchRaftMessage) ProtoMessage() {} +func (*BatchRaftMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_274fe050f0c997b3, []int{2} +} +func (m *BatchRaftMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchRaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchRaftMessage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - case nil: - default: - return fmt.Errorf("BatchCommandsResponse_Response.Cmd has unexpected type %T", x) + return b[:n], nil } - return nil } - -func _BatchCommandsResponse_Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*BatchCommandsResponse_Response) - switch tag { - case 1: // cmd.Get - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.GetResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Get{msg} - return true, err - case 2: // cmd.Scan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Scan{msg} - return true, err - case 3: // cmd.Prewrite - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PrewriteResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Prewrite{msg} - return true, err - case 4: // cmd.Commit - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CommitResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Commit{msg} - return true, err - case 5: // cmd.Import - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ImportResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Import{msg} - return true, err - case 6: // cmd.Cleanup - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CleanupResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Cleanup{msg} - return true, err - case 7: // cmd.BatchGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.BatchGetResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_BatchGet{msg} - return true, err - case 8: // cmd.BatchRollback - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.BatchRollbackResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_BatchRollback{msg} - return true, err - case 9: // cmd.ScanLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanLockResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_ScanLock{msg} - return true, err - case 10: // cmd.ResolveLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ResolveLockResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_ResolveLock{msg} - return true, err - case 11: // cmd.GC - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.GCResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_GC{msg} - return true, err - case 12: // cmd.DeleteRange - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.DeleteRangeResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_DeleteRange{msg} - return true, err - case 13: // cmd.RawGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawGetResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawGet{msg} - return true, err - case 14: // cmd.RawBatchGet - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchGetResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawBatchGet{msg} - return true, err - case 15: // cmd.RawPut - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawPutResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawPut{msg} - return true, err - case 16: // cmd.RawBatchPut - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchPutResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawBatchPut{msg} - return true, err - case 17: // cmd.RawDelete - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawDeleteResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawDelete{msg} - return true, err - case 18: // cmd.RawBatchDelete - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchDeleteResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawBatchDelete{msg} - return true, err - case 19: // cmd.RawScan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawScanResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawScan{msg} - return true, err - case 20: // cmd.RawDeleteRange - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawDeleteRangeResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawDeleteRange{msg} - return true, err - case 21: // cmd.RawBatchScan - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawBatchScanResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawBatchScan{msg} - return true, err - case 22: // cmd.Coprocessor - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(coprocessor.Response) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Coprocessor{msg} - return true, err - case 23: // cmd.PessimisticLock - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PessimisticLockResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_PessimisticLock{msg} - return true, err - case 24: // cmd.PessimisticRollback - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PessimisticRollbackResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_PessimisticRollback{msg} - return true, err - case 25: // cmd.CheckTxnStatus - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CheckTxnStatusResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_CheckTxnStatus{msg} - return true, err - case 26: // cmd.TxnHeartBeat - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.TxnHeartBeatResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_TxnHeartBeat{msg} - return true, err - case 33: // cmd.CheckSecondaryLocks - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.CheckSecondaryLocksResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_CheckSecondaryLocks{msg} - return true, err - case 34: // cmd.RawCoprocessor - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.RawCoprocessorResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_RawCoprocessor{msg} - return true, err - case 35: // cmd.FlashbackToVersion - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.FlashbackToVersionResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_FlashbackToVersion{msg} - return true, err - case 36: // cmd.PrepareFlashbackToVersion - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.PrepareFlashbackToVersionResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_PrepareFlashbackToVersion{msg} - return true, err - case 37: // cmd.ScanTxnEntries - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(kvrpcpb.ScanTxnEntriesResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_ScanTxnEntries{msg} - return true, err - case 255: // cmd.Empty - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(BatchCommandsEmptyResponse) - err := b.DecodeMessage(msg) - m.Cmd = &BatchCommandsResponse_Response_Empty{msg} - return true, err - default: - return false, nil - } -} - -func _BatchCommandsResponse_Response_OneofSizer(msg proto.Message) (n int) { - m := msg.(*BatchCommandsResponse_Response) - // cmd - switch x := m.Cmd.(type) { - case *BatchCommandsResponse_Response_Get: - s := proto.Size(x.Get) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Scan: - s := proto.Size(x.Scan) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Prewrite: - s := proto.Size(x.Prewrite) - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Commit: - s := proto.Size(x.Commit) - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Import: - s := proto.Size(x.Import) - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Cleanup: - s := proto.Size(x.Cleanup) - n += proto.SizeVarint(6<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_BatchGet: - s := proto.Size(x.BatchGet) - n += proto.SizeVarint(7<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_BatchRollback: - s := proto.Size(x.BatchRollback) - n += proto.SizeVarint(8<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_ScanLock: - s := proto.Size(x.ScanLock) - n += proto.SizeVarint(9<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_ResolveLock: - s := proto.Size(x.ResolveLock) - n += proto.SizeVarint(10<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_GC: - s := proto.Size(x.GC) - n += proto.SizeVarint(11<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_DeleteRange: - s := proto.Size(x.DeleteRange) - n += proto.SizeVarint(12<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawGet: - s := proto.Size(x.RawGet) - n += proto.SizeVarint(13<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawBatchGet: - s := proto.Size(x.RawBatchGet) - n += proto.SizeVarint(14<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawPut: - s := proto.Size(x.RawPut) - n += proto.SizeVarint(15<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawBatchPut: - s := proto.Size(x.RawBatchPut) - n += proto.SizeVarint(16<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawDelete: - s := proto.Size(x.RawDelete) - n += proto.SizeVarint(17<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawBatchDelete: - s := proto.Size(x.RawBatchDelete) - n += proto.SizeVarint(18<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawScan: - s := proto.Size(x.RawScan) - n += proto.SizeVarint(19<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawDeleteRange: - s := proto.Size(x.RawDeleteRange) - n += proto.SizeVarint(20<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawBatchScan: - s := proto.Size(x.RawBatchScan) - n += proto.SizeVarint(21<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Coprocessor: - s := proto.Size(x.Coprocessor) - n += proto.SizeVarint(22<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_PessimisticLock: - s := proto.Size(x.PessimisticLock) - n += proto.SizeVarint(23<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_PessimisticRollback: - s := proto.Size(x.PessimisticRollback) - n += proto.SizeVarint(24<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_CheckTxnStatus: - s := proto.Size(x.CheckTxnStatus) - n += proto.SizeVarint(25<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_TxnHeartBeat: - s := proto.Size(x.TxnHeartBeat) - n += proto.SizeVarint(26<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_CheckSecondaryLocks: - s := proto.Size(x.CheckSecondaryLocks) - n += proto.SizeVarint(33<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_RawCoprocessor: - s := proto.Size(x.RawCoprocessor) - n += proto.SizeVarint(34<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_FlashbackToVersion: - s := proto.Size(x.FlashbackToVersion) - n += proto.SizeVarint(35<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: - s := proto.Size(x.PrepareFlashbackToVersion) - n += proto.SizeVarint(36<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_ScanTxnEntries: - s := proto.Size(x.ScanTxnEntries) - n += proto.SizeVarint(37<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *BatchCommandsResponse_Response_Empty: - s := proto.Size(x.Empty) - n += proto.SizeVarint(255<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +func (m *BatchRaftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRaftMessage.Merge(m, src) } - -type BatchRaftMessage struct { - Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs" json:"msgs,omitempty"` +func (m *BatchRaftMessage) XXX_Size() int { + return m.Size() +} +func (m *BatchRaftMessage) XXX_DiscardUnknown() { + xxx_messageInfo_BatchRaftMessage.DiscardUnknown(m) } -func (m *BatchRaftMessage) Reset() { *m = BatchRaftMessage{} } -func (m *BatchRaftMessage) String() string { return proto.CompactTextString(m) } -func (*BatchRaftMessage) ProtoMessage() {} -func (*BatchRaftMessage) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{2} } +var xxx_messageInfo_BatchRaftMessage proto.InternalMessageInfo func (m *BatchRaftMessage) GetMsgs() []*raft_serverpb.RaftMessage { if m != nil { @@ -2240,13 +1160,44 @@ type BatchCommandsEmptyRequest struct { // ID of the test request. TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` // TiKV needs to delay at least such a time to response the client. - DelayTime uint64 `protobuf:"varint,2,opt,name=delay_time,json=delayTime,proto3" json:"delay_time,omitempty"` + DelayTime uint64 `protobuf:"varint,2,opt,name=delay_time,json=delayTime,proto3" json:"delay_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BatchCommandsEmptyRequest) Reset() { *m = BatchCommandsEmptyRequest{} } +func (m *BatchCommandsEmptyRequest) String() string { return proto.CompactTextString(m) } +func (*BatchCommandsEmptyRequest) ProtoMessage() {} +func (*BatchCommandsEmptyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_274fe050f0c997b3, []int{3} +} +func (m *BatchCommandsEmptyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsEmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsEmptyRequest.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 *BatchCommandsEmptyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsEmptyRequest.Merge(m, src) +} +func (m *BatchCommandsEmptyRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchCommandsEmptyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsEmptyRequest.DiscardUnknown(m) } -func (m *BatchCommandsEmptyRequest) Reset() { *m = BatchCommandsEmptyRequest{} } -func (m *BatchCommandsEmptyRequest) String() string { return proto.CompactTextString(m) } -func (*BatchCommandsEmptyRequest) ProtoMessage() {} -func (*BatchCommandsEmptyRequest) Descriptor() ([]byte, []int) { return fileDescriptorTikvpb, []int{3} } +var xxx_messageInfo_BatchCommandsEmptyRequest proto.InternalMessageInfo func (m *BatchCommandsEmptyRequest) GetTestId() uint64 { if m != nil { @@ -2264,16 +1215,45 @@ func (m *BatchCommandsEmptyRequest) GetDelayTime() uint64 { type BatchCommandsEmptyResponse struct { // ID of the test request. - TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` + TestId uint64 `protobuf:"varint,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *BatchCommandsEmptyResponse) Reset() { *m = BatchCommandsEmptyResponse{} } func (m *BatchCommandsEmptyResponse) String() string { return proto.CompactTextString(m) } func (*BatchCommandsEmptyResponse) ProtoMessage() {} func (*BatchCommandsEmptyResponse) Descriptor() ([]byte, []int) { - return fileDescriptorTikvpb, []int{4} + return fileDescriptor_274fe050f0c997b3, []int{4} +} +func (m *BatchCommandsEmptyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchCommandsEmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchCommandsEmptyResponse.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 *BatchCommandsEmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsEmptyResponse.Merge(m, src) +} +func (m *BatchCommandsEmptyResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchCommandsEmptyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchCommandsEmptyResponse.DiscardUnknown(m) } +var xxx_messageInfo_BatchCommandsEmptyResponse proto.InternalMessageInfo + func (m *BatchCommandsEmptyResponse) GetTestId() uint64 { if m != nil { return m.TestId @@ -2291,63 +1271,232 @@ func init() { proto.RegisterType((*BatchCommandsEmptyResponse)(nil), "tikvpb.BatchCommandsEmptyResponse") } -// 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 - -// Client API for Tikv service +func init() { proto.RegisterFile("tikvpb.proto", fileDescriptor_274fe050f0c997b3) } -type TikvClient interface { - // Commands using a transactional interface. - KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) - KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) - KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEntriesRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntriesResponse, error) - KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) - KvPessimisticLock(ctx context.Context, in *kvrpcpb.PessimisticLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticLockResponse, error) - KVPessimisticRollback(ctx context.Context, in *kvrpcpb.PessimisticRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticRollbackResponse, error) - KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBeatRequest, opts ...grpc.CallOption) (*kvrpcpb.TxnHeartBeatResponse, error) - KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnStatusRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckTxnStatusResponse, error) - KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.CheckSecondaryLocksRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckSecondaryLocksResponse, error) - KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, opts ...grpc.CallOption) (*kvrpcpb.CommitResponse, error) - KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, opts ...grpc.CallOption) (*kvrpcpb.ImportResponse, error) - KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, opts ...grpc.CallOption) (*kvrpcpb.CleanupResponse, error) - KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchGetResponse, error) - KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchRollbackResponse, error) - KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanLockResponse, error) - KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ResolveLockResponse, error) - KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...grpc.CallOption) (*kvrpcpb.GCResponse, error) - KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.DeleteRangeResponse, error) - KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcpb.PrepareFlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) - KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.FlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.FlashbackToVersionResponse, error) - // Raw commands; no transaction support. - RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetResponse, error) - RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchGetResponse, error) - RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawPutResponse, error) - RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchPutResponse, error) - RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteResponse, error) - RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchDeleteResponse, error) - RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawScanResponse, error) - RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteRangeResponse, error) - RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchScanResponse, error) - // Get TTL of the key. Returns 0 if TTL is not set for the key. - RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetKeyTTLResponse, error) - // Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned. - RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCASResponse, error) - RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumRequest, opts ...grpc.CallOption) (*kvrpcpb.RawChecksumResponse, error) - // Store commands (sent to a each TiKV node in a cluster, rather than a certain region). - UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeDestroyRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.UnsafeDestroyRangeResponse, error) - RegisterLockObserver(ctx context.Context, in *kvrpcpb.RegisterLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RegisterLockObserverResponse, error) - CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLockObserverResponse, error) - RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RemoveLockObserverResponse, error) - PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PhysicalScanLockResponse, error) - // Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than - // executed in TiDB). - Coprocessor(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (*coprocessor.Response, error) - CoprocessorStream(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (Tikv_CoprocessorStreamClient, error) +var fileDescriptor_274fe050f0c997b3 = []byte{ + // 2584 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0x4b, 0x53, 0x1b, 0xc9, + 0x1d, 0xc0, 0x07, 0x5b, 0xe6, 0xd1, 0x2c, 0x06, 0x1a, 0x30, 0xc3, 0x2c, 0x06, 0x7b, 0x8c, 0xbd, + 0xec, 0xa6, 0x8a, 0xd8, 0x5e, 0x67, 0x9d, 0x7d, 0x64, 0x83, 0x11, 0x36, 0xb0, 0x82, 0x5a, 0x95, + 0x24, 0xef, 0x3a, 0xa9, 0xa4, 0xa8, 0x46, 0x6a, 0xc4, 0x04, 0x69, 0x46, 0x99, 0x69, 0x84, 0x75, + 0xcf, 0x87, 0xc8, 0x25, 0x87, 0xdc, 0xf2, 0x39, 0x72, 0xca, 0x31, 0xc7, 0x1c, 0x53, 0xce, 0x67, + 0xc8, 0x39, 0xa9, 0xee, 0x99, 0xe9, 0xd7, 0x74, 0x8f, 0xd8, 0x13, 0xc3, 0xff, 0xd9, 0xef, 0xfe, + 0xfd, 0x1b, 0xc0, 0x47, 0x24, 0xb8, 0x1c, 0x0e, 0xce, 0x76, 0x06, 0x71, 0x44, 0x22, 0x38, 0x99, + 0xfe, 0xe6, 0x2d, 0xb6, 0xa3, 0x41, 0x1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x09, 0x70, 0xd6, 0xcd, 0x80, 0xc3, 0xdd, 0x15, 0xc2, 0x79, 0x2c, 0x11, + 0xce, 0x92, 0x42, 0x38, 0xdc, 0x9e, 0x22, 0xce, 0xae, 0x09, 0x71, 0xd6, 0xcd, 0x88, 0x23, 0x12, + 0xc9, 0x37, 0xdf, 0x33, 0x8d, 0x71, 0x56, 0x0b, 0x8c, 0x23, 0x66, 0x33, 0x83, 0x9c, 0x5d, 0x13, + 0xe4, 0xac, 0x9b, 0x21, 0x47, 0xea, 0x9d, 0x44, 0x39, 0xcf, 0x34, 0xca, 0x59, 0x2d, 0x50, 0x8e, + 0x92, 0x94, 0x52, 0xca, 0xae, 0x09, 0x73, 0xd6, 0xcd, 0x98, 0x53, 0x4c, 0x4a, 0x23, 0x7c, 0x55, + 0xe4, 0x1c, 0xcf, 0xc4, 0x39, 0xdc, 0x5b, 0x02, 0x9d, 0x23, 0x0b, 0xe8, 0x6c, 0x5a, 0x41, 0x87, + 0x47, 0xd1, 0x49, 0xe7, 0x85, 0x4e, 0x3a, 0x6e, 0x91, 0x74, 0xc4, 0x5e, 0xc8, 0x51, 0xe7, 0xc8, + 0x82, 0x3a, 0x9b, 0x56, 0xd4, 0x51, 0x1a, 0x20, 0xcf, 0x78, 0xd5, 0xc8, 0x3a, 0xf7, 0x2d, 0xac, + 0xc3, 0xc3, 0xa8, 0xb0, 0xf3, 0xa5, 0x09, 0x76, 0x56, 0x34, 0xd8, 0x11, 0xf3, 0x20, 0x5f, 0x8b, + 0xc7, 0x36, 0xda, 0x79, 0x60, 0xa7, 0x1d, 0x1e, 0xa9, 0x80, 0x3b, 0xef, 0xca, 0x70, 0x67, 0xab, + 0x1c, 0x77, 0x78, 0x54, 0x23, 0xef, 0x1c, 0x59, 0x78, 0x67, 0xd3, 0xca, 0x3b, 0x62, 0xc8, 0x35, + 0xe0, 0xa9, 0x1a, 0x81, 0xe7, 0xbe, 0x05, 0x78, 0xc4, 0x90, 0x2b, 0xc4, 0xf3, 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0x15, 0x37, 0x62, 0xd1, 0x42, 0x22, 0xe4, + 0x39, 0xa5, 0x7e, 0x86, 0xeb, 0x65, 0xff, 0x56, 0xe1, 0xdd, 0x2f, 0xfd, 0x93, 0x46, 0x36, 0x1f, + 0x87, 0x60, 0x7e, 0x3f, 0x48, 0x06, 0xd4, 0xe2, 0xa4, 0x5e, 0x6f, 0xa1, 0x84, 0x62, 0x72, 0x7f, + 0x30, 0xd8, 0xc9, 0xa5, 0x54, 0x24, 0x30, 0xb9, 0xa8, 0xe1, 0xad, 0xdb, 0x03, 0x73, 0x55, 0x14, + 0xb6, 0x71, 0x2f, 0x8f, 0x73, 0x8f, 0x59, 0xa7, 0x32, 0x39, 0xca, 0x6a, 0x41, 0xce, 0x63, 0xb4, + 0xc0, 0xbd, 0xd7, 0x09, 0x41, 0x67, 0xbd, 0x20, 0xa1, 0xcd, 0xa9, 0x46, 0x61, 0x88, 0xdb, 0x24, + 0xa5, 0x44, 0xea, 0x64, 0x56, 0xe6, 0x81, 0x21, 0xb3, 0x39, 0xa9, 0xd7, 0xf7, 0x11, 0x41, 0x75, + 0xd4, 0xbe, 0xc4, 0x84, 0xed, 0xf6, 0x2f, 0xc0, 0xd4, 0x51, 0xf2, 0xaa, 0x17, 0x0c, 0x31, 0x5c, + 0x62, 0x26, 0xd9, 0x6f, 0xe2, 0xe5, 0x40, 0x11, 0x4a, 0xad, 0x59, 0x6a, 0x60, 0x5a, 0x2c, 0x65, + 0x3d, 0xca, 0xca, 0xca, 0x75, 0x66, 0x9e, 0x6a, 0x84, 0x58, 0x8c, 0xba, 0x59, 0xcb, 0xa3, 0x1e, + 0x82, 0xd9, 0xf4, 0xa6, 0xc0, 0xa8, 0x83, 0x63, 0x69, 0x07, 0x48, 0xd2, 0xe2, 0x0e, 0x50, 0x94, + 0xd9, 0x8b, 0x49, 0x0d, 0xdc, 0x3d, 0xc0, 0xa4, 0x49, 0xa2, 0x18, 0x37, 0xd1, 0x39, 0x6e, 0x35, + 0xe5, 0xed, 0x24, 0xa4, 0x86, 0xed, 0x24, 0x2b, 0xb3, 0x60, 0x2d, 0x30, 0x7f, 0x80, 0x09, 0x3d, + 0xfa, 0x7f, 0x44, 0x01, 0x39, 0x0a, 0xcf, 0x23, 0xe9, 0x3d, 0x41, 0xd3, 0x14, 0xdf, 0x13, 0x0a, + 0x06, 0x59, 0xd4, 0x6f, 0xc0, 0x14, 0xc3, 0x95, 0x36, 0x81, 0x4a, 0x01, 0x4b, 0x25, 0x86, 0xca, + 0x32, 0x57, 0x64, 0xde, 0xbf, 0x07, 0x50, 0x0a, 0x7c, 0x18, 0x24, 0x24, 0x8a, 0x47, 0xd2, 0xad, + 0x59, 0x54, 0x16, 0x6f, 0x4d, 0x93, 0x4d, 0x16, 0xfe, 0x0c, 0xac, 0x1c, 0x60, 0xd2, 0x0a, 0x58, + 0x4d, 0xd1, 0x1c, 0x25, 0x04, 0xf7, 0xd9, 0xd9, 0x25, 0x65, 0x28, 0x2a, 0x8b, 0x19, 0x4c, 0x36, + 0x12, 0xa5, 0x02, 0x12, 0x8f, 0x5e, 0x75, 0x3a, 0xd9, 0x8d, 0xac, 0xfe, 0xbf, 0x55, 0x8b, 0xab, + 0xc4, 0x41, 0x60, 0xb7, 0x90, 0x58, 0x65, 0x8e, 0xc4, 0xa3, 0x13, 0x14, 0x5f, 0x66, 0x38, 0xfe, + 0xa8, 0xe8, 0x25, 0xb4, 0xe2, 0x35, 0xa2, 0xd4, 0x88, 0x47, 0x0f, 0xc1, 0x12, 0xdf, 0x67, 0xfb, + 0xcc, 0x83, 0x6d, 0xe7, 0x4f, 0x35, 0x77, 0x83, 0x8d, 0x28, 0x0c, 0x6f, 0x60, 0x2a, 0x01, 0xde, + 0x42, 0x7a, 0x18, 0x48, 0xc9, 0x9e, 0x68, 0x11, 0x74, 0x83, 0x3c, 0xd3, 0x27, 0x63, 0xed, 0x78, + 0x9a, 0xdf, 0x82, 0x85, 0x37, 0x98, 0x16, 0x22, 0x4c, 0x59, 0x47, 0x5d, 0x9c, 0x14, 0xd2, 0xe8, + 0x06, 0xe2, 0x06, 0x51, 0xed, 0x98, 0x52, 0x3a, 0x61, 0xce, 0xd8, 0xe6, 0x49, 0x1d, 0xab, 0x51, + 0x78, 0x1e, 0x74, 0xe1, 0x63, 0xcd, 0x45, 0xd3, 0xe7, 0x91, 0x9f, 0x8c, 0x33, 0xcb, 0xdb, 0xbf, + 0xf7, 0xe4, 0x5f, 0x7f, 0x9b, 0x9e, 0xf8, 0xc7, 0x87, 0x8d, 0x89, 0x7f, 0x7e, 0xd8, 0x98, 0xf8, + 0xf7, 0x87, 0x8d, 0x89, 0x3f, 0xff, 0x67, 0xc3, 0x01, 0x0b, 0x51, 0xdc, 0x65, 0xe7, 0xfc, 0xce, + 0xe5, 0x90, 0xfd, 0x5b, 0xde, 0xd9, 0x24, 0xfb, 0xf1, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, + 0x5d, 0x90, 0x6c, 0x0b, 0x33, 0x28, 0x00, 0x00, +} + +// 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 + +// TikvClient is the client API for Tikv service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TikvClient interface { + // Commands using a transactional interface. + KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) + KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) + KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEntriesRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntriesResponse, error) + KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) + KvPessimisticLock(ctx context.Context, in *kvrpcpb.PessimisticLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticLockResponse, error) + KVPessimisticRollback(ctx context.Context, in *kvrpcpb.PessimisticRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticRollbackResponse, error) + KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBeatRequest, opts ...grpc.CallOption) (*kvrpcpb.TxnHeartBeatResponse, error) + KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnStatusRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckTxnStatusResponse, error) + KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.CheckSecondaryLocksRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckSecondaryLocksResponse, error) + KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, opts ...grpc.CallOption) (*kvrpcpb.CommitResponse, error) + KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, opts ...grpc.CallOption) (*kvrpcpb.ImportResponse, error) + KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, opts ...grpc.CallOption) (*kvrpcpb.CleanupResponse, error) + KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchGetResponse, error) + KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchRollbackResponse, error) + KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanLockResponse, error) + KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ResolveLockResponse, error) + KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...grpc.CallOption) (*kvrpcpb.GCResponse, error) + KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.DeleteRangeResponse, error) + KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcpb.PrepareFlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) + KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.FlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.FlashbackToVersionResponse, error) + // Raw commands; no transaction support. + RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetResponse, error) + RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchGetResponse, error) + RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawPutResponse, error) + RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchPutResponse, error) + RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteResponse, error) + RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchDeleteResponse, error) + RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawScanResponse, error) + RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteRangeResponse, error) + RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchScanResponse, error) + // Get TTL of the key. Returns 0 if TTL is not set for the key. + RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetKeyTTLResponse, error) + // Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned. + RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCASResponse, error) + RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumRequest, opts ...grpc.CallOption) (*kvrpcpb.RawChecksumResponse, error) + // Store commands (sent to a each TiKV node in a cluster, rather than a certain region). + UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeDestroyRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.UnsafeDestroyRangeResponse, error) + RegisterLockObserver(ctx context.Context, in *kvrpcpb.RegisterLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RegisterLockObserverResponse, error) + CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLockObserverResponse, error) + RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RemoveLockObserverResponse, error) + PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PhysicalScanLockResponse, error) + // Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than + // executed in TiDB). + Coprocessor(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (*coprocessor.Response, error) + CoprocessorStream(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (Tikv_CoprocessorStreamClient, error) BatchCoprocessor(ctx context.Context, in *coprocessor.BatchRequest, opts ...grpc.CallOption) (Tikv_BatchCoprocessorClient, error) // Command for executing custom user requests in TiKV coprocessor_v2. RawCoprocessor(ctx context.Context, in *kvrpcpb.RawCoprocessorRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCoprocessorResponse, error) @@ -2371,37 +1520,37 @@ type TikvClient interface { EstablishMPPConnection(ctx context.Context, in *mpp.EstablishMPPConnectionRequest, opts ...grpc.CallOption) (Tikv_EstablishMPPConnectionClient, error) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts ...grpc.CallOption) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTaskStatusRequest, opts ...grpc.CallOption) (*mpp.ReportTaskStatusResponse, error) - // / CheckLeader sends all information (includes region term and epoch) to other stores. - // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - // / term and epoch match with local information in the store. - // / After the client collected all responses from all stores, it checks if got a quorum of responses from - // / other stores for every region, and decides to advance resolved ts from these regions. + /// CheckLeader sends all information (includes region term and epoch) to other stores. + /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + /// term and epoch match with local information in the store. + /// After the client collected all responses from all stores, it checks if got a quorum of responses from + /// other stores for every region, and decides to advance resolved ts from these regions. CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLeaderResponse, error) - // / Get the minimal `safe_ts` from regions at the store + /// Get the minimal `safe_ts` from regions at the store GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTSRequest, opts ...grpc.CallOption) (*kvrpcpb.StoreSafeTSResponse, error) - // / Get the information about lock waiting from TiKV. + /// Get the information about lock waiting from TiKV. GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWaitInfoRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitInfoResponse, error) - // / Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. - // / It only compacts data on this node. - // / TODO: Currently this RPC is designed to be only compatible with TiFlash. - // / Shall be move out in https://github.com/pingcap/kvproto/issues/912 + /// Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. + /// It only compacts data on this node. + /// TODO: Currently this RPC is designed to be only compatible with TiFlash. + /// Shall be move out in https://github.com/pingcap/kvproto/issues/912 Compact(ctx context.Context, in *kvrpcpb.CompactRequest, opts ...grpc.CallOption) (*kvrpcpb.CompactResponse, error) - // / Get the information about history lock waiting from TiKV. + /// Get the information about history lock waiting from TiKV. GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLockWaitHistoryRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitHistoryResponse, error) - // / Get system table from TiFlash + /// Get system table from TiFlash GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFlashSystemTableRequest, opts ...grpc.CallOption) (*kvrpcpb.TiFlashSystemTableResponse, error) // These are for TiFlash disaggregated architecture - // / Try to lock a S3 object, atomically + /// Try to lock a S3 object, atomically TryAddLock(ctx context.Context, in *disaggregated.TryAddLockRequest, opts ...grpc.CallOption) (*disaggregated.TryAddLockResponse, error) - // / Try to delete a S3 object, atomically + /// Try to delete a S3 object, atomically TryMarkDelete(ctx context.Context, in *disaggregated.TryMarkDeleteRequest, opts ...grpc.CallOption) (*disaggregated.TryMarkDeleteResponse, error) - // / Build the disaggregated task on TiFlash write node + /// Build the disaggregated task on TiFlash write node EstablishDisaggTask(ctx context.Context, in *disaggregated.EstablishDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.EstablishDisaggTaskResponse, error) - // / Cancel the disaggregated task on TiFlash write node + /// Cancel the disaggregated task on TiFlash write node CancelDisaggTask(ctx context.Context, in *disaggregated.CancelDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.CancelDisaggTaskResponse, error) - // / Exchange page data between TiFlash write node and compute node + /// Exchange page data between TiFlash write node and compute node FetchDisaggPages(ctx context.Context, in *disaggregated.FetchDisaggPagesRequest, opts ...grpc.CallOption) (Tikv_FetchDisaggPagesClient, error) - // / Compute node get configuration from Write node + /// Compute node get configuration from Write node GetDisaggConfig(ctx context.Context, in *disaggregated.GetDisaggConfigRequest, opts ...grpc.CallOption) (*disaggregated.GetDisaggConfigResponse, error) } @@ -2415,7 +1564,7 @@ func NewTikvClient(cc *grpc.ClientConn) TikvClient { func (c *tikvClient) KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) { out := new(kvrpcpb.GetResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvGet", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvGet", in, out, opts...) if err != nil { return nil, err } @@ -2424,7 +1573,7 @@ func (c *tikvClient) KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ... func (c *tikvClient) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) { out := new(kvrpcpb.ScanResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvScan", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScan", in, out, opts...) if err != nil { return nil, err } @@ -2433,7 +1582,7 @@ func (c *tikvClient) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts . func (c *tikvClient) KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEntriesRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntriesResponse, error) { out := new(kvrpcpb.ScanTxnEntriesResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvScanTxnEntries", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScanTxnEntries", in, out, opts...) if err != nil { return nil, err } @@ -2442,7 +1591,7 @@ func (c *tikvClient) KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEn func (c *tikvClient) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) { out := new(kvrpcpb.PrewriteResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPrewrite", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPrewrite", in, out, opts...) if err != nil { return nil, err } @@ -2451,7 +1600,7 @@ func (c *tikvClient) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest func (c *tikvClient) KvPessimisticLock(ctx context.Context, in *kvrpcpb.PessimisticLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticLockResponse, error) { out := new(kvrpcpb.PessimisticLockResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPessimisticLock", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPessimisticLock", in, out, opts...) if err != nil { return nil, err } @@ -2460,7 +1609,7 @@ func (c *tikvClient) KvPessimisticLock(ctx context.Context, in *kvrpcpb.Pessimis func (c *tikvClient) KVPessimisticRollback(ctx context.Context, in *kvrpcpb.PessimisticRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticRollbackResponse, error) { out := new(kvrpcpb.PessimisticRollbackResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KVPessimisticRollback", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KVPessimisticRollback", in, out, opts...) if err != nil { return nil, err } @@ -2469,7 +1618,7 @@ func (c *tikvClient) KVPessimisticRollback(ctx context.Context, in *kvrpcpb.Pess func (c *tikvClient) KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBeatRequest, opts ...grpc.CallOption) (*kvrpcpb.TxnHeartBeatResponse, error) { out := new(kvrpcpb.TxnHeartBeatResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvTxnHeartBeat", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvTxnHeartBeat", in, out, opts...) if err != nil { return nil, err } @@ -2478,7 +1627,7 @@ func (c *tikvClient) KvTxnHeartBeat(ctx context.Context, in *kvrpcpb.TxnHeartBea func (c *tikvClient) KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnStatusRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckTxnStatusResponse, error) { out := new(kvrpcpb.CheckTxnStatusResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCheckTxnStatus", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCheckTxnStatus", in, out, opts...) if err != nil { return nil, err } @@ -2487,7 +1636,7 @@ func (c *tikvClient) KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnS func (c *tikvClient) KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.CheckSecondaryLocksRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckSecondaryLocksResponse, error) { out := new(kvrpcpb.CheckSecondaryLocksResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCheckSecondaryLocks", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCheckSecondaryLocks", in, out, opts...) if err != nil { return nil, err } @@ -2496,7 +1645,7 @@ func (c *tikvClient) KvCheckSecondaryLocks(ctx context.Context, in *kvrpcpb.Chec func (c *tikvClient) KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, opts ...grpc.CallOption) (*kvrpcpb.CommitResponse, error) { out := new(kvrpcpb.CommitResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCommit", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCommit", in, out, opts...) if err != nil { return nil, err } @@ -2505,7 +1654,7 @@ func (c *tikvClient) KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, op func (c *tikvClient) KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, opts ...grpc.CallOption) (*kvrpcpb.ImportResponse, error) { out := new(kvrpcpb.ImportResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvImport", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvImport", in, out, opts...) if err != nil { return nil, err } @@ -2514,7 +1663,7 @@ func (c *tikvClient) KvImport(ctx context.Context, in *kvrpcpb.ImportRequest, op func (c *tikvClient) KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, opts ...grpc.CallOption) (*kvrpcpb.CleanupResponse, error) { out := new(kvrpcpb.CleanupResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvCleanup", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvCleanup", in, out, opts...) if err != nil { return nil, err } @@ -2523,7 +1672,7 @@ func (c *tikvClient) KvCleanup(ctx context.Context, in *kvrpcpb.CleanupRequest, func (c *tikvClient) KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchGetResponse, error) { out := new(kvrpcpb.BatchGetResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvBatchGet", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvBatchGet", in, out, opts...) if err != nil { return nil, err } @@ -2532,7 +1681,7 @@ func (c *tikvClient) KvBatchGet(ctx context.Context, in *kvrpcpb.BatchGetRequest func (c *tikvClient) KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchRollbackResponse, error) { out := new(kvrpcpb.BatchRollbackResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvBatchRollback", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvBatchRollback", in, out, opts...) if err != nil { return nil, err } @@ -2541,7 +1690,7 @@ func (c *tikvClient) KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollb func (c *tikvClient) KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanLockResponse, error) { out := new(kvrpcpb.ScanLockResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvScanLock", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScanLock", in, out, opts...) if err != nil { return nil, err } @@ -2550,7 +1699,7 @@ func (c *tikvClient) KvScanLock(ctx context.Context, in *kvrpcpb.ScanLockRequest func (c *tikvClient) KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ResolveLockResponse, error) { out := new(kvrpcpb.ResolveLockResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvResolveLock", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvResolveLock", in, out, opts...) if err != nil { return nil, err } @@ -2559,7 +1708,7 @@ func (c *tikvClient) KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockR func (c *tikvClient) KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...grpc.CallOption) (*kvrpcpb.GCResponse, error) { out := new(kvrpcpb.GCResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvGC", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvGC", in, out, opts...) if err != nil { return nil, err } @@ -2568,7 +1717,7 @@ func (c *tikvClient) KvGC(ctx context.Context, in *kvrpcpb.GCRequest, opts ...gr func (c *tikvClient) KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.DeleteRangeResponse, error) { out := new(kvrpcpb.DeleteRangeResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvDeleteRange", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvDeleteRange", in, out, opts...) if err != nil { return nil, err } @@ -2577,7 +1726,7 @@ func (c *tikvClient) KvDeleteRange(ctx context.Context, in *kvrpcpb.DeleteRangeR func (c *tikvClient) KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcpb.PrepareFlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) { out := new(kvrpcpb.PrepareFlashbackToVersionResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvPrepareFlashbackToVersion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvPrepareFlashbackToVersion", in, out, opts...) if err != nil { return nil, err } @@ -2586,7 +1735,7 @@ func (c *tikvClient) KvPrepareFlashbackToVersion(ctx context.Context, in *kvrpcp func (c *tikvClient) KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.FlashbackToVersionRequest, opts ...grpc.CallOption) (*kvrpcpb.FlashbackToVersionResponse, error) { out := new(kvrpcpb.FlashbackToVersionResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvFlashbackToVersion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvFlashbackToVersion", in, out, opts...) if err != nil { return nil, err } @@ -2595,7 +1744,7 @@ func (c *tikvClient) KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.Flash func (c *tikvClient) RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetResponse, error) { out := new(kvrpcpb.RawGetResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawGet", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawGet", in, out, opts...) if err != nil { return nil, err } @@ -2604,7 +1753,7 @@ func (c *tikvClient) RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts func (c *tikvClient) RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchGetResponse, error) { out := new(kvrpcpb.RawBatchGetResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchGet", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchGet", in, out, opts...) if err != nil { return nil, err } @@ -2613,7 +1762,7 @@ func (c *tikvClient) RawBatchGet(ctx context.Context, in *kvrpcpb.RawBatchGetReq func (c *tikvClient) RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawPutResponse, error) { out := new(kvrpcpb.RawPutResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawPut", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawPut", in, out, opts...) if err != nil { return nil, err } @@ -2622,7 +1771,7 @@ func (c *tikvClient) RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts func (c *tikvClient) RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchPutResponse, error) { out := new(kvrpcpb.RawBatchPutResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchPut", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchPut", in, out, opts...) if err != nil { return nil, err } @@ -2631,7 +1780,7 @@ func (c *tikvClient) RawBatchPut(ctx context.Context, in *kvrpcpb.RawBatchPutReq func (c *tikvClient) RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteResponse, error) { out := new(kvrpcpb.RawDeleteResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawDelete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawDelete", in, out, opts...) if err != nil { return nil, err } @@ -2640,7 +1789,7 @@ func (c *tikvClient) RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest func (c *tikvClient) RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchDeleteResponse, error) { out := new(kvrpcpb.RawBatchDeleteResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchDelete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchDelete", in, out, opts...) if err != nil { return nil, err } @@ -2649,7 +1798,7 @@ func (c *tikvClient) RawBatchDelete(ctx context.Context, in *kvrpcpb.RawBatchDel func (c *tikvClient) RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawScanResponse, error) { out := new(kvrpcpb.RawScanResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawScan", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawScan", in, out, opts...) if err != nil { return nil, err } @@ -2658,7 +1807,7 @@ func (c *tikvClient) RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, op func (c *tikvClient) RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteRangeResponse, error) { out := new(kvrpcpb.RawDeleteRangeResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawDeleteRange", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawDeleteRange", in, out, opts...) if err != nil { return nil, err } @@ -2667,7 +1816,7 @@ func (c *tikvClient) RawDeleteRange(ctx context.Context, in *kvrpcpb.RawDeleteRa func (c *tikvClient) RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawBatchScanResponse, error) { out := new(kvrpcpb.RawBatchScanResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawBatchScan", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawBatchScan", in, out, opts...) if err != nil { return nil, err } @@ -2676,7 +1825,7 @@ func (c *tikvClient) RawBatchScan(ctx context.Context, in *kvrpcpb.RawBatchScanR func (c *tikvClient) RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetKeyTTLResponse, error) { out := new(kvrpcpb.RawGetKeyTTLResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawGetKeyTTL", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawGetKeyTTL", in, out, opts...) if err != nil { return nil, err } @@ -2685,7 +1834,7 @@ func (c *tikvClient) RawGetKeyTTL(ctx context.Context, in *kvrpcpb.RawGetKeyTTLR func (c *tikvClient) RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCASResponse, error) { out := new(kvrpcpb.RawCASResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawCompareAndSwap", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawCompareAndSwap", in, out, opts...) if err != nil { return nil, err } @@ -2694,7 +1843,7 @@ func (c *tikvClient) RawCompareAndSwap(ctx context.Context, in *kvrpcpb.RawCASRe func (c *tikvClient) RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumRequest, opts ...grpc.CallOption) (*kvrpcpb.RawChecksumResponse, error) { out := new(kvrpcpb.RawChecksumResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawChecksum", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawChecksum", in, out, opts...) if err != nil { return nil, err } @@ -2703,7 +1852,7 @@ func (c *tikvClient) RawChecksum(ctx context.Context, in *kvrpcpb.RawChecksumReq func (c *tikvClient) UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeDestroyRangeRequest, opts ...grpc.CallOption) (*kvrpcpb.UnsafeDestroyRangeResponse, error) { out := new(kvrpcpb.UnsafeDestroyRangeResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/UnsafeDestroyRange", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/UnsafeDestroyRange", in, out, opts...) if err != nil { return nil, err } @@ -2712,7 +1861,7 @@ func (c *tikvClient) UnsafeDestroyRange(ctx context.Context, in *kvrpcpb.UnsafeD func (c *tikvClient) RegisterLockObserver(ctx context.Context, in *kvrpcpb.RegisterLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RegisterLockObserverResponse, error) { out := new(kvrpcpb.RegisterLockObserverResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RegisterLockObserver", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RegisterLockObserver", in, out, opts...) if err != nil { return nil, err } @@ -2721,7 +1870,7 @@ func (c *tikvClient) RegisterLockObserver(ctx context.Context, in *kvrpcpb.Regis func (c *tikvClient) CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLockObserverResponse, error) { out := new(kvrpcpb.CheckLockObserverResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/CheckLockObserver", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CheckLockObserver", in, out, opts...) if err != nil { return nil, err } @@ -2730,7 +1879,7 @@ func (c *tikvClient) CheckLockObserver(ctx context.Context, in *kvrpcpb.CheckLoc func (c *tikvClient) RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveLockObserverRequest, opts ...grpc.CallOption) (*kvrpcpb.RemoveLockObserverResponse, error) { out := new(kvrpcpb.RemoveLockObserverResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RemoveLockObserver", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RemoveLockObserver", in, out, opts...) if err != nil { return nil, err } @@ -2739,7 +1888,7 @@ func (c *tikvClient) RemoveLockObserver(ctx context.Context, in *kvrpcpb.RemoveL func (c *tikvClient) PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalScanLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PhysicalScanLockResponse, error) { out := new(kvrpcpb.PhysicalScanLockResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/PhysicalScanLock", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/PhysicalScanLock", in, out, opts...) if err != nil { return nil, err } @@ -2748,7 +1897,7 @@ func (c *tikvClient) PhysicalScanLock(ctx context.Context, in *kvrpcpb.PhysicalS func (c *tikvClient) Coprocessor(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (*coprocessor.Response, error) { out := new(coprocessor.Response) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/Coprocessor", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/Coprocessor", in, out, opts...) if err != nil { return nil, err } @@ -2756,7 +1905,7 @@ func (c *tikvClient) Coprocessor(ctx context.Context, in *coprocessor.Request, o } func (c *tikvClient) CoprocessorStream(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (Tikv_CoprocessorStreamClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[0], c.cc, "/tikvpb.Tikv/CoprocessorStream", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[0], "/tikvpb.Tikv/CoprocessorStream", opts...) if err != nil { return nil, err } @@ -2788,7 +1937,7 @@ func (x *tikvCoprocessorStreamClient) Recv() (*coprocessor.Response, error) { } func (c *tikvClient) BatchCoprocessor(ctx context.Context, in *coprocessor.BatchRequest, opts ...grpc.CallOption) (Tikv_BatchCoprocessorClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[1], c.cc, "/tikvpb.Tikv/BatchCoprocessor", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[1], "/tikvpb.Tikv/BatchCoprocessor", opts...) if err != nil { return nil, err } @@ -2821,7 +1970,7 @@ func (x *tikvBatchCoprocessorClient) Recv() (*coprocessor.BatchResponse, error) func (c *tikvClient) RawCoprocessor(ctx context.Context, in *kvrpcpb.RawCoprocessorRequest, opts ...grpc.CallOption) (*kvrpcpb.RawCoprocessorResponse, error) { out := new(kvrpcpb.RawCoprocessorResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/RawCoprocessor", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/RawCoprocessor", in, out, opts...) if err != nil { return nil, err } @@ -2829,7 +1978,7 @@ func (c *tikvClient) RawCoprocessor(ctx context.Context, in *kvrpcpb.RawCoproces } func (c *tikvClient) Raft(ctx context.Context, opts ...grpc.CallOption) (Tikv_RaftClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[2], c.cc, "/tikvpb.Tikv/Raft", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[2], "/tikvpb.Tikv/Raft", opts...) if err != nil { return nil, err } @@ -2863,7 +2012,7 @@ func (x *tikvRaftClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) BatchRaft(ctx context.Context, opts ...grpc.CallOption) (Tikv_BatchRaftClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[3], c.cc, "/tikvpb.Tikv/BatchRaft", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[3], "/tikvpb.Tikv/BatchRaft", opts...) if err != nil { return nil, err } @@ -2897,7 +2046,7 @@ func (x *tikvBatchRaftClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) Snapshot(ctx context.Context, opts ...grpc.CallOption) (Tikv_SnapshotClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[4], c.cc, "/tikvpb.Tikv/Snapshot", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[4], "/tikvpb.Tikv/Snapshot", opts...) if err != nil { return nil, err } @@ -2931,7 +2080,7 @@ func (x *tikvSnapshotClient) CloseAndRecv() (*raft_serverpb.Done, error) { } func (c *tikvClient) TabletSnapshot(ctx context.Context, opts ...grpc.CallOption) (Tikv_TabletSnapshotClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[5], c.cc, "/tikvpb.Tikv/TabletSnapshot", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[5], "/tikvpb.Tikv/TabletSnapshot", opts...) if err != nil { return nil, err } @@ -2963,7 +2112,7 @@ func (x *tikvTabletSnapshotClient) Recv() (*raft_serverpb.TabletSnapshotResponse func (c *tikvClient) SplitRegion(ctx context.Context, in *kvrpcpb.SplitRegionRequest, opts ...grpc.CallOption) (*kvrpcpb.SplitRegionResponse, error) { out := new(kvrpcpb.SplitRegionResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/SplitRegion", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/SplitRegion", in, out, opts...) if err != nil { return nil, err } @@ -2972,7 +2121,7 @@ func (c *tikvClient) SplitRegion(ctx context.Context, in *kvrpcpb.SplitRegionReq func (c *tikvClient) ReadIndex(ctx context.Context, in *kvrpcpb.ReadIndexRequest, opts ...grpc.CallOption) (*kvrpcpb.ReadIndexResponse, error) { out := new(kvrpcpb.ReadIndexResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/ReadIndex", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/ReadIndex", in, out, opts...) if err != nil { return nil, err } @@ -2981,7 +2130,7 @@ func (c *tikvClient) ReadIndex(ctx context.Context, in *kvrpcpb.ReadIndexRequest func (c *tikvClient) MvccGetByKey(ctx context.Context, in *kvrpcpb.MvccGetByKeyRequest, opts ...grpc.CallOption) (*kvrpcpb.MvccGetByKeyResponse, error) { out := new(kvrpcpb.MvccGetByKeyResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByKey", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByKey", in, out, opts...) if err != nil { return nil, err } @@ -2990,7 +2139,7 @@ func (c *tikvClient) MvccGetByKey(ctx context.Context, in *kvrpcpb.MvccGetByKeyR func (c *tikvClient) MvccGetByStartTs(ctx context.Context, in *kvrpcpb.MvccGetByStartTsRequest, opts ...grpc.CallOption) (*kvrpcpb.MvccGetByStartTsResponse, error) { out := new(kvrpcpb.MvccGetByStartTsResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByStartTs", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/MvccGetByStartTs", in, out, opts...) if err != nil { return nil, err } @@ -2998,7 +2147,7 @@ func (c *tikvClient) MvccGetByStartTs(ctx context.Context, in *kvrpcpb.MvccGetBy } func (c *tikvClient) BatchCommands(ctx context.Context, opts ...grpc.CallOption) (Tikv_BatchCommandsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[6], c.cc, "/tikvpb.Tikv/BatchCommands", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[6], "/tikvpb.Tikv/BatchCommands", opts...) if err != nil { return nil, err } @@ -3030,7 +2179,7 @@ func (x *tikvBatchCommandsClient) Recv() (*BatchCommandsResponse, error) { func (c *tikvClient) DispatchMPPTask(ctx context.Context, in *mpp.DispatchTaskRequest, opts ...grpc.CallOption) (*mpp.DispatchTaskResponse, error) { out := new(mpp.DispatchTaskResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/DispatchMPPTask", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/DispatchMPPTask", in, out, opts...) if err != nil { return nil, err } @@ -3039,7 +2188,7 @@ func (c *tikvClient) DispatchMPPTask(ctx context.Context, in *mpp.DispatchTaskRe func (c *tikvClient) CancelMPPTask(ctx context.Context, in *mpp.CancelTaskRequest, opts ...grpc.CallOption) (*mpp.CancelTaskResponse, error) { out := new(mpp.CancelTaskResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/CancelMPPTask", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CancelMPPTask", in, out, opts...) if err != nil { return nil, err } @@ -3047,7 +2196,7 @@ func (c *tikvClient) CancelMPPTask(ctx context.Context, in *mpp.CancelTaskReques } func (c *tikvClient) EstablishMPPConnection(ctx context.Context, in *mpp.EstablishMPPConnectionRequest, opts ...grpc.CallOption) (Tikv_EstablishMPPConnectionClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[7], c.cc, "/tikvpb.Tikv/EstablishMPPConnection", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[7], "/tikvpb.Tikv/EstablishMPPConnection", opts...) if err != nil { return nil, err } @@ -3080,7 +2229,7 @@ func (x *tikvEstablishMPPConnectionClient) Recv() (*mpp.MPPDataPacket, error) { func (c *tikvClient) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts ...grpc.CallOption) (*mpp.IsAliveResponse, error) { out := new(mpp.IsAliveResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/IsAlive", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/IsAlive", in, out, opts...) if err != nil { return nil, err } @@ -3089,7 +2238,7 @@ func (c *tikvClient) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts . func (c *tikvClient) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTaskStatusRequest, opts ...grpc.CallOption) (*mpp.ReportTaskStatusResponse, error) { out := new(mpp.ReportTaskStatusResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/ReportMPPTaskStatus", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/ReportMPPTaskStatus", in, out, opts...) if err != nil { return nil, err } @@ -3098,7 +2247,7 @@ func (c *tikvClient) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTask func (c *tikvClient) CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckLeaderResponse, error) { out := new(kvrpcpb.CheckLeaderResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/CheckLeader", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CheckLeader", in, out, opts...) if err != nil { return nil, err } @@ -3107,7 +2256,7 @@ func (c *tikvClient) CheckLeader(ctx context.Context, in *kvrpcpb.CheckLeaderReq func (c *tikvClient) GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTSRequest, opts ...grpc.CallOption) (*kvrpcpb.StoreSafeTSResponse, error) { out := new(kvrpcpb.StoreSafeTSResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetStoreSafeTS", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetStoreSafeTS", in, out, opts...) if err != nil { return nil, err } @@ -3116,7 +2265,7 @@ func (c *tikvClient) GetStoreSafeTS(ctx context.Context, in *kvrpcpb.StoreSafeTS func (c *tikvClient) GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWaitInfoRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitInfoResponse, error) { out := new(kvrpcpb.GetLockWaitInfoResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitInfo", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitInfo", in, out, opts...) if err != nil { return nil, err } @@ -3125,7 +2274,7 @@ func (c *tikvClient) GetLockWaitInfo(ctx context.Context, in *kvrpcpb.GetLockWai func (c *tikvClient) Compact(ctx context.Context, in *kvrpcpb.CompactRequest, opts ...grpc.CallOption) (*kvrpcpb.CompactResponse, error) { out := new(kvrpcpb.CompactResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/Compact", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/Compact", in, out, opts...) if err != nil { return nil, err } @@ -3134,7 +2283,7 @@ func (c *tikvClient) Compact(ctx context.Context, in *kvrpcpb.CompactRequest, op func (c *tikvClient) GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLockWaitHistoryRequest, opts ...grpc.CallOption) (*kvrpcpb.GetLockWaitHistoryResponse, error) { out := new(kvrpcpb.GetLockWaitHistoryResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitHistory", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetLockWaitHistory", in, out, opts...) if err != nil { return nil, err } @@ -3143,7 +2292,7 @@ func (c *tikvClient) GetLockWaitHistory(ctx context.Context, in *kvrpcpb.GetLock func (c *tikvClient) GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFlashSystemTableRequest, opts ...grpc.CallOption) (*kvrpcpb.TiFlashSystemTableResponse, error) { out := new(kvrpcpb.TiFlashSystemTableResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetTiFlashSystemTable", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetTiFlashSystemTable", in, out, opts...) if err != nil { return nil, err } @@ -3152,7 +2301,7 @@ func (c *tikvClient) GetTiFlashSystemTable(ctx context.Context, in *kvrpcpb.TiFl func (c *tikvClient) TryAddLock(ctx context.Context, in *disaggregated.TryAddLockRequest, opts ...grpc.CallOption) (*disaggregated.TryAddLockResponse, error) { out := new(disaggregated.TryAddLockResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/tryAddLock", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/tryAddLock", in, out, opts...) if err != nil { return nil, err } @@ -3161,7 +2310,7 @@ func (c *tikvClient) TryAddLock(ctx context.Context, in *disaggregated.TryAddLoc func (c *tikvClient) TryMarkDelete(ctx context.Context, in *disaggregated.TryMarkDeleteRequest, opts ...grpc.CallOption) (*disaggregated.TryMarkDeleteResponse, error) { out := new(disaggregated.TryMarkDeleteResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/tryMarkDelete", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/tryMarkDelete", in, out, opts...) if err != nil { return nil, err } @@ -3170,7 +2319,7 @@ func (c *tikvClient) TryMarkDelete(ctx context.Context, in *disaggregated.TryMar func (c *tikvClient) EstablishDisaggTask(ctx context.Context, in *disaggregated.EstablishDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.EstablishDisaggTaskResponse, error) { out := new(disaggregated.EstablishDisaggTaskResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/EstablishDisaggTask", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/EstablishDisaggTask", in, out, opts...) if err != nil { return nil, err } @@ -3179,7 +2328,7 @@ func (c *tikvClient) EstablishDisaggTask(ctx context.Context, in *disaggregated. func (c *tikvClient) CancelDisaggTask(ctx context.Context, in *disaggregated.CancelDisaggTaskRequest, opts ...grpc.CallOption) (*disaggregated.CancelDisaggTaskResponse, error) { out := new(disaggregated.CancelDisaggTaskResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/CancelDisaggTask", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/CancelDisaggTask", in, out, opts...) if err != nil { return nil, err } @@ -3187,7 +2336,7 @@ func (c *tikvClient) CancelDisaggTask(ctx context.Context, in *disaggregated.Can } func (c *tikvClient) FetchDisaggPages(ctx context.Context, in *disaggregated.FetchDisaggPagesRequest, opts ...grpc.CallOption) (Tikv_FetchDisaggPagesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Tikv_serviceDesc.Streams[8], c.cc, "/tikvpb.Tikv/FetchDisaggPages", opts...) + stream, err := c.cc.NewStream(ctx, &_Tikv_serviceDesc.Streams[8], "/tikvpb.Tikv/FetchDisaggPages", opts...) if err != nil { return nil, err } @@ -3220,15 +2369,14 @@ func (x *tikvFetchDisaggPagesClient) Recv() (*disaggregated.PagesPacket, error) func (c *tikvClient) GetDisaggConfig(ctx context.Context, in *disaggregated.GetDisaggConfigRequest, opts ...grpc.CallOption) (*disaggregated.GetDisaggConfigResponse, error) { out := new(disaggregated.GetDisaggConfigResponse) - err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetDisaggConfig", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetDisaggConfig", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Tikv service - +// TikvServer is the server API for Tikv service. type TikvServer interface { // Commands using a transactional interface. KvGet(context.Context, *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) @@ -3299,78 +2447,284 @@ type TikvServer interface { EstablishMPPConnection(*mpp.EstablishMPPConnectionRequest, Tikv_EstablishMPPConnectionServer) error IsAlive(context.Context, *mpp.IsAliveRequest) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(context.Context, *mpp.ReportTaskStatusRequest) (*mpp.ReportTaskStatusResponse, error) - // / CheckLeader sends all information (includes region term and epoch) to other stores. - // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - // / term and epoch match with local information in the store. - // / After the client collected all responses from all stores, it checks if got a quorum of responses from - // / other stores for every region, and decides to advance resolved ts from these regions. + /// CheckLeader sends all information (includes region term and epoch) to other stores. + /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + /// term and epoch match with local information in the store. + /// After the client collected all responses from all stores, it checks if got a quorum of responses from + /// other stores for every region, and decides to advance resolved ts from these regions. CheckLeader(context.Context, *kvrpcpb.CheckLeaderRequest) (*kvrpcpb.CheckLeaderResponse, error) - // / Get the minimal `safe_ts` from regions at the store + /// Get the minimal `safe_ts` from regions at the store GetStoreSafeTS(context.Context, *kvrpcpb.StoreSafeTSRequest) (*kvrpcpb.StoreSafeTSResponse, error) - // / Get the information about lock waiting from TiKV. + /// Get the information about lock waiting from TiKV. GetLockWaitInfo(context.Context, *kvrpcpb.GetLockWaitInfoRequest) (*kvrpcpb.GetLockWaitInfoResponse, error) - // / Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. - // / It only compacts data on this node. - // / TODO: Currently this RPC is designed to be only compatible with TiFlash. - // / Shall be move out in https://github.com/pingcap/kvproto/issues/912 + /// Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. + /// It only compacts data on this node. + /// TODO: Currently this RPC is designed to be only compatible with TiFlash. + /// Shall be move out in https://github.com/pingcap/kvproto/issues/912 Compact(context.Context, *kvrpcpb.CompactRequest) (*kvrpcpb.CompactResponse, error) - // / Get the information about history lock waiting from TiKV. + /// Get the information about history lock waiting from TiKV. GetLockWaitHistory(context.Context, *kvrpcpb.GetLockWaitHistoryRequest) (*kvrpcpb.GetLockWaitHistoryResponse, error) - // / Get system table from TiFlash + /// Get system table from TiFlash GetTiFlashSystemTable(context.Context, *kvrpcpb.TiFlashSystemTableRequest) (*kvrpcpb.TiFlashSystemTableResponse, error) // These are for TiFlash disaggregated architecture - // / Try to lock a S3 object, atomically + /// Try to lock a S3 object, atomically TryAddLock(context.Context, *disaggregated.TryAddLockRequest) (*disaggregated.TryAddLockResponse, error) - // / Try to delete a S3 object, atomically + /// Try to delete a S3 object, atomically TryMarkDelete(context.Context, *disaggregated.TryMarkDeleteRequest) (*disaggregated.TryMarkDeleteResponse, error) - // / Build the disaggregated task on TiFlash write node + /// Build the disaggregated task on TiFlash write node EstablishDisaggTask(context.Context, *disaggregated.EstablishDisaggTaskRequest) (*disaggregated.EstablishDisaggTaskResponse, error) - // / Cancel the disaggregated task on TiFlash write node + /// Cancel the disaggregated task on TiFlash write node CancelDisaggTask(context.Context, *disaggregated.CancelDisaggTaskRequest) (*disaggregated.CancelDisaggTaskResponse, error) - // / Exchange page data between TiFlash write node and compute node + /// Exchange page data between TiFlash write node and compute node FetchDisaggPages(*disaggregated.FetchDisaggPagesRequest, Tikv_FetchDisaggPagesServer) error - // / Compute node get configuration from Write node + /// Compute node get configuration from Write node GetDisaggConfig(context.Context, *disaggregated.GetDisaggConfigRequest) (*disaggregated.GetDisaggConfigResponse, error) } -func RegisterTikvServer(s *grpc.Server, srv TikvServer) { - s.RegisterService(&_Tikv_serviceDesc, srv) +// UnimplementedTikvServer can be embedded to have forward compatible implementations. +type UnimplementedTikvServer struct { } -func _Tikv_KvGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(kvrpcpb.GetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TikvServer).KvGet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/tikvpb.Tikv/KvGet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TikvServer).KvGet(ctx, req.(*kvrpcpb.GetRequest)) - } - return interceptor(ctx, in, info, handler) +func (*UnimplementedTikvServer) KvGet(ctx context.Context, req *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented") } - -func _Tikv_KvScan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(kvrpcpb.ScanRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TikvServer).KvScan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/tikvpb.Tikv/KvScan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TikvServer).KvScan(ctx, req.(*kvrpcpb.ScanRequest)) - } - return interceptor(ctx, in, info, handler) +func (*UnimplementedTikvServer) KvScan(ctx context.Context, req *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvScan not implemented") +} +func (*UnimplementedTikvServer) KvScanTxnEntries(ctx context.Context, req *kvrpcpb.ScanTxnEntriesRequest) (*kvrpcpb.ScanTxnEntriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvScanTxnEntries not implemented") +} +func (*UnimplementedTikvServer) KvPrewrite(ctx context.Context, req *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvPrewrite not implemented") +} +func (*UnimplementedTikvServer) KvPessimisticLock(ctx context.Context, req *kvrpcpb.PessimisticLockRequest) (*kvrpcpb.PessimisticLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvPessimisticLock not implemented") +} +func (*UnimplementedTikvServer) KVPessimisticRollback(ctx context.Context, req *kvrpcpb.PessimisticRollbackRequest) (*kvrpcpb.PessimisticRollbackResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KVPessimisticRollback not implemented") +} +func (*UnimplementedTikvServer) KvTxnHeartBeat(ctx context.Context, req *kvrpcpb.TxnHeartBeatRequest) (*kvrpcpb.TxnHeartBeatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvTxnHeartBeat not implemented") +} +func (*UnimplementedTikvServer) KvCheckTxnStatus(ctx context.Context, req *kvrpcpb.CheckTxnStatusRequest) (*kvrpcpb.CheckTxnStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvCheckTxnStatus not implemented") +} +func (*UnimplementedTikvServer) KvCheckSecondaryLocks(ctx context.Context, req *kvrpcpb.CheckSecondaryLocksRequest) (*kvrpcpb.CheckSecondaryLocksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvCheckSecondaryLocks not implemented") +} +func (*UnimplementedTikvServer) KvCommit(ctx context.Context, req *kvrpcpb.CommitRequest) (*kvrpcpb.CommitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvCommit not implemented") +} +func (*UnimplementedTikvServer) KvImport(ctx context.Context, req *kvrpcpb.ImportRequest) (*kvrpcpb.ImportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvImport not implemented") +} +func (*UnimplementedTikvServer) KvCleanup(ctx context.Context, req *kvrpcpb.CleanupRequest) (*kvrpcpb.CleanupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvCleanup not implemented") +} +func (*UnimplementedTikvServer) KvBatchGet(ctx context.Context, req *kvrpcpb.BatchGetRequest) (*kvrpcpb.BatchGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvBatchGet not implemented") +} +func (*UnimplementedTikvServer) KvBatchRollback(ctx context.Context, req *kvrpcpb.BatchRollbackRequest) (*kvrpcpb.BatchRollbackResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvBatchRollback not implemented") +} +func (*UnimplementedTikvServer) KvScanLock(ctx context.Context, req *kvrpcpb.ScanLockRequest) (*kvrpcpb.ScanLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvScanLock not implemented") +} +func (*UnimplementedTikvServer) KvResolveLock(ctx context.Context, req *kvrpcpb.ResolveLockRequest) (*kvrpcpb.ResolveLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvResolveLock not implemented") +} +func (*UnimplementedTikvServer) KvGC(ctx context.Context, req *kvrpcpb.GCRequest) (*kvrpcpb.GCResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvGC not implemented") +} +func (*UnimplementedTikvServer) KvDeleteRange(ctx context.Context, req *kvrpcpb.DeleteRangeRequest) (*kvrpcpb.DeleteRangeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvDeleteRange not implemented") +} +func (*UnimplementedTikvServer) KvPrepareFlashbackToVersion(ctx context.Context, req *kvrpcpb.PrepareFlashbackToVersionRequest) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvPrepareFlashbackToVersion not implemented") +} +func (*UnimplementedTikvServer) KvFlashbackToVersion(ctx context.Context, req *kvrpcpb.FlashbackToVersionRequest) (*kvrpcpb.FlashbackToVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvFlashbackToVersion not implemented") +} +func (*UnimplementedTikvServer) RawGet(ctx context.Context, req *kvrpcpb.RawGetRequest) (*kvrpcpb.RawGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawGet not implemented") +} +func (*UnimplementedTikvServer) RawBatchGet(ctx context.Context, req *kvrpcpb.RawBatchGetRequest) (*kvrpcpb.RawBatchGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawBatchGet not implemented") +} +func (*UnimplementedTikvServer) RawPut(ctx context.Context, req *kvrpcpb.RawPutRequest) (*kvrpcpb.RawPutResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawPut not implemented") +} +func (*UnimplementedTikvServer) RawBatchPut(ctx context.Context, req *kvrpcpb.RawBatchPutRequest) (*kvrpcpb.RawBatchPutResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawBatchPut not implemented") +} +func (*UnimplementedTikvServer) RawDelete(ctx context.Context, req *kvrpcpb.RawDeleteRequest) (*kvrpcpb.RawDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawDelete not implemented") +} +func (*UnimplementedTikvServer) RawBatchDelete(ctx context.Context, req *kvrpcpb.RawBatchDeleteRequest) (*kvrpcpb.RawBatchDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawBatchDelete not implemented") +} +func (*UnimplementedTikvServer) RawScan(ctx context.Context, req *kvrpcpb.RawScanRequest) (*kvrpcpb.RawScanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawScan not implemented") +} +func (*UnimplementedTikvServer) RawDeleteRange(ctx context.Context, req *kvrpcpb.RawDeleteRangeRequest) (*kvrpcpb.RawDeleteRangeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawDeleteRange not implemented") +} +func (*UnimplementedTikvServer) RawBatchScan(ctx context.Context, req *kvrpcpb.RawBatchScanRequest) (*kvrpcpb.RawBatchScanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawBatchScan not implemented") +} +func (*UnimplementedTikvServer) RawGetKeyTTL(ctx context.Context, req *kvrpcpb.RawGetKeyTTLRequest) (*kvrpcpb.RawGetKeyTTLResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawGetKeyTTL not implemented") +} +func (*UnimplementedTikvServer) RawCompareAndSwap(ctx context.Context, req *kvrpcpb.RawCASRequest) (*kvrpcpb.RawCASResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawCompareAndSwap not implemented") +} +func (*UnimplementedTikvServer) RawChecksum(ctx context.Context, req *kvrpcpb.RawChecksumRequest) (*kvrpcpb.RawChecksumResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawChecksum not implemented") +} +func (*UnimplementedTikvServer) UnsafeDestroyRange(ctx context.Context, req *kvrpcpb.UnsafeDestroyRangeRequest) (*kvrpcpb.UnsafeDestroyRangeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnsafeDestroyRange not implemented") +} +func (*UnimplementedTikvServer) RegisterLockObserver(ctx context.Context, req *kvrpcpb.RegisterLockObserverRequest) (*kvrpcpb.RegisterLockObserverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterLockObserver not implemented") +} +func (*UnimplementedTikvServer) CheckLockObserver(ctx context.Context, req *kvrpcpb.CheckLockObserverRequest) (*kvrpcpb.CheckLockObserverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckLockObserver not implemented") +} +func (*UnimplementedTikvServer) RemoveLockObserver(ctx context.Context, req *kvrpcpb.RemoveLockObserverRequest) (*kvrpcpb.RemoveLockObserverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveLockObserver not implemented") +} +func (*UnimplementedTikvServer) PhysicalScanLock(ctx context.Context, req *kvrpcpb.PhysicalScanLockRequest) (*kvrpcpb.PhysicalScanLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PhysicalScanLock not implemented") +} +func (*UnimplementedTikvServer) Coprocessor(ctx context.Context, req *coprocessor.Request) (*coprocessor.Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Coprocessor not implemented") +} +func (*UnimplementedTikvServer) CoprocessorStream(req *coprocessor.Request, srv Tikv_CoprocessorStreamServer) error { + return status.Errorf(codes.Unimplemented, "method CoprocessorStream not implemented") +} +func (*UnimplementedTikvServer) BatchCoprocessor(req *coprocessor.BatchRequest, srv Tikv_BatchCoprocessorServer) error { + return status.Errorf(codes.Unimplemented, "method BatchCoprocessor not implemented") +} +func (*UnimplementedTikvServer) RawCoprocessor(ctx context.Context, req *kvrpcpb.RawCoprocessorRequest) (*kvrpcpb.RawCoprocessorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RawCoprocessor not implemented") +} +func (*UnimplementedTikvServer) Raft(srv Tikv_RaftServer) error { + return status.Errorf(codes.Unimplemented, "method Raft not implemented") +} +func (*UnimplementedTikvServer) BatchRaft(srv Tikv_BatchRaftServer) error { + return status.Errorf(codes.Unimplemented, "method BatchRaft not implemented") +} +func (*UnimplementedTikvServer) Snapshot(srv Tikv_SnapshotServer) error { + return status.Errorf(codes.Unimplemented, "method Snapshot not implemented") +} +func (*UnimplementedTikvServer) TabletSnapshot(srv Tikv_TabletSnapshotServer) error { + return status.Errorf(codes.Unimplemented, "method TabletSnapshot not implemented") +} +func (*UnimplementedTikvServer) SplitRegion(ctx context.Context, req *kvrpcpb.SplitRegionRequest) (*kvrpcpb.SplitRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SplitRegion not implemented") +} +func (*UnimplementedTikvServer) ReadIndex(ctx context.Context, req *kvrpcpb.ReadIndexRequest) (*kvrpcpb.ReadIndexResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadIndex not implemented") +} +func (*UnimplementedTikvServer) MvccGetByKey(ctx context.Context, req *kvrpcpb.MvccGetByKeyRequest) (*kvrpcpb.MvccGetByKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MvccGetByKey not implemented") +} +func (*UnimplementedTikvServer) MvccGetByStartTs(ctx context.Context, req *kvrpcpb.MvccGetByStartTsRequest) (*kvrpcpb.MvccGetByStartTsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MvccGetByStartTs not implemented") +} +func (*UnimplementedTikvServer) BatchCommands(srv Tikv_BatchCommandsServer) error { + return status.Errorf(codes.Unimplemented, "method BatchCommands not implemented") +} +func (*UnimplementedTikvServer) DispatchMPPTask(ctx context.Context, req *mpp.DispatchTaskRequest) (*mpp.DispatchTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DispatchMPPTask not implemented") +} +func (*UnimplementedTikvServer) CancelMPPTask(ctx context.Context, req *mpp.CancelTaskRequest) (*mpp.CancelTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelMPPTask not implemented") +} +func (*UnimplementedTikvServer) EstablishMPPConnection(req *mpp.EstablishMPPConnectionRequest, srv Tikv_EstablishMPPConnectionServer) error { + return status.Errorf(codes.Unimplemented, "method EstablishMPPConnection not implemented") +} +func (*UnimplementedTikvServer) IsAlive(ctx context.Context, req *mpp.IsAliveRequest) (*mpp.IsAliveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsAlive not implemented") +} +func (*UnimplementedTikvServer) ReportMPPTaskStatus(ctx context.Context, req *mpp.ReportTaskStatusRequest) (*mpp.ReportTaskStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportMPPTaskStatus not implemented") +} +func (*UnimplementedTikvServer) CheckLeader(ctx context.Context, req *kvrpcpb.CheckLeaderRequest) (*kvrpcpb.CheckLeaderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckLeader not implemented") +} +func (*UnimplementedTikvServer) GetStoreSafeTS(ctx context.Context, req *kvrpcpb.StoreSafeTSRequest) (*kvrpcpb.StoreSafeTSResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStoreSafeTS not implemented") +} +func (*UnimplementedTikvServer) GetLockWaitInfo(ctx context.Context, req *kvrpcpb.GetLockWaitInfoRequest) (*kvrpcpb.GetLockWaitInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLockWaitInfo not implemented") +} +func (*UnimplementedTikvServer) Compact(ctx context.Context, req *kvrpcpb.CompactRequest) (*kvrpcpb.CompactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") +} +func (*UnimplementedTikvServer) GetLockWaitHistory(ctx context.Context, req *kvrpcpb.GetLockWaitHistoryRequest) (*kvrpcpb.GetLockWaitHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLockWaitHistory not implemented") +} +func (*UnimplementedTikvServer) GetTiFlashSystemTable(ctx context.Context, req *kvrpcpb.TiFlashSystemTableRequest) (*kvrpcpb.TiFlashSystemTableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTiFlashSystemTable not implemented") +} +func (*UnimplementedTikvServer) TryAddLock(ctx context.Context, req *disaggregated.TryAddLockRequest) (*disaggregated.TryAddLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TryAddLock not implemented") +} +func (*UnimplementedTikvServer) TryMarkDelete(ctx context.Context, req *disaggregated.TryMarkDeleteRequest) (*disaggregated.TryMarkDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TryMarkDelete not implemented") +} +func (*UnimplementedTikvServer) EstablishDisaggTask(ctx context.Context, req *disaggregated.EstablishDisaggTaskRequest) (*disaggregated.EstablishDisaggTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EstablishDisaggTask not implemented") +} +func (*UnimplementedTikvServer) CancelDisaggTask(ctx context.Context, req *disaggregated.CancelDisaggTaskRequest) (*disaggregated.CancelDisaggTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelDisaggTask not implemented") +} +func (*UnimplementedTikvServer) FetchDisaggPages(req *disaggregated.FetchDisaggPagesRequest, srv Tikv_FetchDisaggPagesServer) error { + return status.Errorf(codes.Unimplemented, "method FetchDisaggPages not implemented") +} +func (*UnimplementedTikvServer) GetDisaggConfig(ctx context.Context, req *disaggregated.GetDisaggConfigRequest) (*disaggregated.GetDisaggConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDisaggConfig not implemented") +} + +func RegisterTikvServer(s *grpc.Server, srv TikvServer) { + s.RegisterService(&_Tikv_serviceDesc, srv) +} + +func _Tikv_KvGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(kvrpcpb.GetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TikvServer).KvGet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tikvpb.Tikv/KvGet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TikvServer).KvGet(ctx, req.(*kvrpcpb.GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Tikv_KvScan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(kvrpcpb.ScanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TikvServer).KvScan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tikvpb.Tikv/KvScan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TikvServer).KvScan(ctx, req.(*kvrpcpb.ScanRequest)) + } + return interceptor(ctx, in, info, handler) } func _Tikv_KvScanTxnEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -4887,7 +4241,7 @@ var _Tikv_serviceDesc = grpc.ServiceDesc{ func (m *BatchCommandsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4895,21 +4249,18 @@ func (m *BatchCommandsRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Requests) > 0 { - for _, msg := range m.Requests { - dAtA[i] = 0xa - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.RequestIds) > 0 { dAtA2 := make([]byte, len(m.RequestIds)*10) @@ -4923,18 +4274,33 @@ func (m *BatchCommandsRequest) MarshalTo(dAtA []byte) (int, error) { dAtA2[j1] = uint8(num) j1++ } - dAtA[i] = 0x12 - i++ + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) i = encodeVarintTikvpb(dAtA, i, uint64(j1)) - i += copy(dAtA[i:], dAtA2[:j1]) + i-- + dAtA[i] = 0x12 + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4942,506 +4308,741 @@ func (m *BatchCommandsRequest_Request) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsRequest_Request) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Cmd != nil { - nn3, err := m.Cmd.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Cmd.Size() + i -= size + if _, err := m.Cmd.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn3 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Get) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Get != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Get.Size())) - n4, err := m.Get.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Scan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Scan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Scan != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Scan.Size())) - n5, err := m.Scan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Scan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n5 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Prewrite) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Prewrite != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Prewrite.Size())) - n6, err := m.Prewrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Commit) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Commit != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Commit.Size())) - n7, err := m.Commit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n7 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Import) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Import) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Import != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Import.Size())) - n8, err := m.Import.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Import.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Cleanup) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Cleanup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Cleanup != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Cleanup.Size())) - n9, err := m.Cleanup.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Cleanup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x32 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_BatchGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_BatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.BatchGet != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchGet.Size())) - n10, err := m.BatchGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.BatchGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x3a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_BatchRollback) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_BatchRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.BatchRollback != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchRollback.Size())) - n11, err := m.BatchRollback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.BatchRollback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x42 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_ScanLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_ScanLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ScanLock != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanLock.Size())) - n12, err := m.ScanLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ScanLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x4a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_ResolveLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_ResolveLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ResolveLock != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ResolveLock.Size())) - n13, err := m.ResolveLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ResolveLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n13 + i-- + dAtA[i] = 0x52 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_GC) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_GC) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.GC != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.GC.Size())) - n14, err := m.GC.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.GC.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x5a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_DeleteRange) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_DeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.DeleteRange != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.DeleteRange.Size())) - n15, err := m.DeleteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x62 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawGet != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawGet.Size())) - n16, err := m.RawGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x6a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawBatchGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchGet != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchGet.Size())) - n17, err := m.RawBatchGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x72 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawPut) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawPut != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawPut.Size())) - n18, err := m.RawPut.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawPut.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n18 + i-- + dAtA[i] = 0x7a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawBatchPut) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawBatchPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchPut != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchPut.Size())) - n19, err := m.RawBatchPut.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchPut.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n19 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawDelete) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawDelete != nil { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDelete.Size())) - n20, err := m.RawDelete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawDelete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n20 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawBatchDelete) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawBatchDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchDelete != nil { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchDelete.Size())) - n21, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchDelete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n21 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawScan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawScan != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawScan.Size())) - n22, err := m.RawScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n22 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawDeleteRange) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawDeleteRange != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDeleteRange.Size())) - n23, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawDeleteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n23 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawBatchScan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawBatchScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchScan != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchScan.Size())) - n24, err := m.RawBatchScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n24 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Coprocessor) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Coprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Coprocessor != nil { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Coprocessor.Size())) - n25, err := m.Coprocessor.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Coprocessor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n25 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_PessimisticLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_PessimisticLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PessimisticLock != nil { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticLock.Size())) - n26, err := m.PessimisticLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PessimisticLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n26 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_PessimisticRollback) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_PessimisticRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PessimisticRollback != nil { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticRollback.Size())) - n27, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PessimisticRollback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n27 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_CheckTxnStatus) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_CheckTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CheckTxnStatus != nil { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckTxnStatus.Size())) - n28, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CheckTxnStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n28 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_TxnHeartBeat) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_TxnHeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.TxnHeartBeat != nil { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.TxnHeartBeat.Size())) - n29, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.TxnHeartBeat.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n29 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CheckSecondaryLocks != nil { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckSecondaryLocks.Size())) - n30, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CheckSecondaryLocks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n30 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_RawCoprocessor) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_RawCoprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawCoprocessor != nil { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawCoprocessor.Size())) - n31, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawCoprocessor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n31 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_FlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_FlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.FlashbackToVersion != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.FlashbackToVersion.Size())) - n32, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.FlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n32 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PrepareFlashbackToVersion != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PrepareFlashbackToVersion.Size())) - n33, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PrepareFlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n33 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_ScanTxnEntries) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_ScanTxnEntries) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ScanTxnEntries != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanTxnEntries.Size())) - n34, err := m.ScanTxnEntries.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ScanTxnEntries.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n34 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsRequest_Request_Empty) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsRequest_Request_Empty) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Empty != nil { - dAtA[i] = 0xfa - i++ - dAtA[i] = 0xf - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Empty.Size())) - n35, err := m.Empty.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Empty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n35 + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xfa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5449,51 +5050,63 @@ func (m *BatchCommandsResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Responses) > 0 { - for _, msg := range m.Responses { - dAtA[i] = 0xa - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TransportLayerLoad != 0 { + i = encodeVarintTikvpb(dAtA, i, uint64(m.TransportLayerLoad)) + i-- + dAtA[i] = 0x18 } if len(m.RequestIds) > 0 { - dAtA37 := make([]byte, len(m.RequestIds)*10) - var j36 int + dAtA36 := make([]byte, len(m.RequestIds)*10) + var j35 int for _, num := range m.RequestIds { for num >= 1<<7 { - dAtA37[j36] = uint8(uint64(num)&0x7f | 0x80) + dAtA36[j35] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j36++ + j35++ } - dAtA37[j36] = uint8(num) - j36++ + dAtA36[j35] = uint8(num) + j35++ } + i -= j35 + copy(dAtA[i:], dAtA36[:j35]) + i = encodeVarintTikvpb(dAtA, i, uint64(j35)) + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(j36)) - i += copy(dAtA[i:], dAtA37[:j36]) } - if m.TransportLayerLoad != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.TransportLayerLoad)) + if len(m.Responses) > 0 { + for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5501,506 +5114,741 @@ func (m *BatchCommandsResponse_Response) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsResponse_Response) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.Cmd != nil { - nn38, err := m.Cmd.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.Cmd.Size() + i -= size + if _, err := m.Cmd.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn38 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Get) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Get) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Get != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Get.Size())) - n39, err := m.Get.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Get.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n39 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Scan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Scan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Scan != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Scan.Size())) - n40, err := m.Scan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Scan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n40 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Prewrite) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Prewrite != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Prewrite.Size())) - n41, err := m.Prewrite.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Prewrite.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n41 + i-- + dAtA[i] = 0x1a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Commit) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Commit != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Commit.Size())) - n42, err := m.Commit.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n42 + i-- + dAtA[i] = 0x22 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Import) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Import) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Import != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Import.Size())) - n43, err := m.Import.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Import.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n43 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Cleanup) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Cleanup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Cleanup != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Cleanup.Size())) - n44, err := m.Cleanup.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Cleanup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n44 + i-- + dAtA[i] = 0x32 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_BatchGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_BatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.BatchGet != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchGet.Size())) - n45, err := m.BatchGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.BatchGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n45 + i-- + dAtA[i] = 0x3a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_BatchRollback) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_BatchRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.BatchRollback != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.BatchRollback.Size())) - n46, err := m.BatchRollback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.BatchRollback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n46 + i-- + dAtA[i] = 0x42 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_ScanLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_ScanLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ScanLock != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanLock.Size())) - n47, err := m.ScanLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ScanLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n47 + i-- + dAtA[i] = 0x4a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_ResolveLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_ResolveLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ResolveLock != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ResolveLock.Size())) - n48, err := m.ResolveLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ResolveLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n48 + i-- + dAtA[i] = 0x52 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_GC) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_GC) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.GC != nil { - dAtA[i] = 0x5a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.GC.Size())) - n49, err := m.GC.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.GC.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n49 + i-- + dAtA[i] = 0x5a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_DeleteRange) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_DeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.DeleteRange != nil { - dAtA[i] = 0x62 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.DeleteRange.Size())) - n50, err := m.DeleteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.DeleteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n50 + i-- + dAtA[i] = 0x62 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawGet != nil { - dAtA[i] = 0x6a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawGet.Size())) - n51, err := m.RawGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n51 + i-- + dAtA[i] = 0x6a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawBatchGet) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchGet != nil { - dAtA[i] = 0x72 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchGet.Size())) - n52, err := m.RawBatchGet.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchGet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n52 + i-- + dAtA[i] = 0x72 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawPut) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawPut != nil { - dAtA[i] = 0x7a - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawPut.Size())) - n53, err := m.RawPut.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawPut.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n53 + i-- + dAtA[i] = 0x7a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawBatchPut) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawBatchPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchPut != nil { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchPut.Size())) - n54, err := m.RawBatchPut.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchPut.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n54 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawDelete) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawDelete != nil { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDelete.Size())) - n55, err := m.RawDelete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawDelete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n55 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawBatchDelete) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawBatchDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchDelete != nil { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchDelete.Size())) - n56, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchDelete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n56 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawScan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawScan != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawScan.Size())) - n57, err := m.RawScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n57 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawDeleteRange) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawDeleteRange != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawDeleteRange.Size())) - n58, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawDeleteRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n58 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_RawBatchScan) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawBatchScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.RawBatchScan != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawBatchScan.Size())) - n59, err := m.RawBatchScan.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.RawBatchScan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n59 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Coprocessor) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Coprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Coprocessor != nil { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Coprocessor.Size())) - n60, err := m.Coprocessor.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Coprocessor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n60 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_PessimisticLock) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_PessimisticLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PessimisticLock != nil { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticLock.Size())) - n61, err := m.PessimisticLock.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PessimisticLock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n61 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_PessimisticRollback) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_PessimisticRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PessimisticRollback != nil { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PessimisticRollback.Size())) - n62, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PessimisticRollback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n62 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_CheckTxnStatus) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_CheckTxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CheckTxnStatus != nil { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckTxnStatus.Size())) - n63, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.CheckTxnStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n63 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_TxnHeartBeat) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_TxnHeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.TxnHeartBeat != nil { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.TxnHeartBeat.Size())) - n64, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.TxnHeartBeat.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n64 + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CheckSecondaryLocks != nil { - dAtA[i] = 0x8a - i++ + { + size, err := m.CheckSecondaryLocks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.CheckSecondaryLocks.Size())) - n65, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i-- + dAtA[i] = 0x8a + } + return len(dAtA) - i, nil +} +func (m *BatchCommandsResponse_Response_RawCoprocessor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_RawCoprocessor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.RawCoprocessor != nil { + { + size, err := m.RawCoprocessor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n65 - } - return i, nil -} -func (m *BatchCommandsResponse_Response_RawCoprocessor) MarshalTo(dAtA []byte) (int, error) { - i := 0 - if m.RawCoprocessor != nil { - dAtA[i] = 0x92 - i++ + i-- dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.RawCoprocessor.Size())) - n66, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n66 + i-- + dAtA[i] = 0x92 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_FlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_FlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.FlashbackToVersion != nil { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.FlashbackToVersion.Size())) - n67, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.FlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n67 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.PrepareFlashbackToVersion != nil { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.PrepareFlashbackToVersion.Size())) - n68, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.PrepareFlashbackToVersion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n68 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_ScanTxnEntries) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_ScanTxnEntries) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.ScanTxnEntries != nil { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.ScanTxnEntries.Size())) - n69, err := m.ScanTxnEntries.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.ScanTxnEntries.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n69 + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsResponse_Response_Empty) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsResponse_Response_Empty) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Empty != nil { - dAtA[i] = 0xfa - i++ - dAtA[i] = 0xf - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.Empty.Size())) - n70, err := m.Empty.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Empty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n70 + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xfa } - return i, nil + return len(dAtA) - i, nil } func (m *BatchRaftMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -6008,29 +5856,40 @@ func (m *BatchRaftMessage) Marshal() (dAtA []byte, err error) { } func (m *BatchRaftMessage) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchRaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if len(m.Msgs) > 0 { - for _, msg := range m.Msgs { - dAtA[i] = 0xa - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Msgs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Msgs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTikvpb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsEmptyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -6038,27 +5897,36 @@ func (m *BatchCommandsEmptyRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsEmptyRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsEmptyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TestId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.DelayTime != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTikvpb(dAtA, i, uint64(m.DelayTime)) + i-- + dAtA[i] = 0x10 + } + if m.TestId != 0 { + i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *BatchCommandsEmptyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -6066,28 +5934,42 @@ func (m *BatchCommandsEmptyResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchCommandsEmptyResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchCommandsEmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.TestId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintTikvpb(dAtA, i, uint64(m.TestId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintTikvpb(dAtA []byte, offset int, v uint64) int { + offset -= sovTikvpb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *BatchCommandsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Requests) > 0 { @@ -6103,19 +5985,31 @@ func (m *BatchCommandsRequest) Size() (n int) { } n += 1 + sovTikvpb(uint64(l)) + l } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsRequest_Request) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cmd != nil { n += m.Cmd.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsRequest_Request_Get) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Get != nil { @@ -6125,6 +6019,9 @@ func (m *BatchCommandsRequest_Request_Get) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Scan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Scan != nil { @@ -6134,6 +6031,9 @@ func (m *BatchCommandsRequest_Request_Scan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Prewrite) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Prewrite != nil { @@ -6143,6 +6043,9 @@ func (m *BatchCommandsRequest_Request_Prewrite) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Commit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Commit != nil { @@ -6152,6 +6055,9 @@ func (m *BatchCommandsRequest_Request_Commit) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Import) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Import != nil { @@ -6161,6 +6067,9 @@ func (m *BatchCommandsRequest_Request_Import) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Cleanup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cleanup != nil { @@ -6170,6 +6079,9 @@ func (m *BatchCommandsRequest_Request_Cleanup) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_BatchGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.BatchGet != nil { @@ -6179,6 +6091,9 @@ func (m *BatchCommandsRequest_Request_BatchGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_BatchRollback) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.BatchRollback != nil { @@ -6188,6 +6103,9 @@ func (m *BatchCommandsRequest_Request_BatchRollback) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_ScanLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ScanLock != nil { @@ -6197,6 +6115,9 @@ func (m *BatchCommandsRequest_Request_ScanLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_ResolveLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ResolveLock != nil { @@ -6206,6 +6127,9 @@ func (m *BatchCommandsRequest_Request_ResolveLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_GC) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.GC != nil { @@ -6215,6 +6139,9 @@ func (m *BatchCommandsRequest_Request_GC) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_DeleteRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DeleteRange != nil { @@ -6224,6 +6151,9 @@ func (m *BatchCommandsRequest_Request_DeleteRange) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawGet != nil { @@ -6233,6 +6163,9 @@ func (m *BatchCommandsRequest_Request_RawGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchGet != nil { @@ -6242,6 +6175,9 @@ func (m *BatchCommandsRequest_Request_RawBatchGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawPut) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawPut != nil { @@ -6251,6 +6187,9 @@ func (m *BatchCommandsRequest_Request_RawPut) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchPut) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchPut != nil { @@ -6260,6 +6199,9 @@ func (m *BatchCommandsRequest_Request_RawBatchPut) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawDelete) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawDelete != nil { @@ -6269,6 +6211,9 @@ func (m *BatchCommandsRequest_Request_RawDelete) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchDelete) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchDelete != nil { @@ -6278,6 +6223,9 @@ func (m *BatchCommandsRequest_Request_RawBatchDelete) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawScan != nil { @@ -6287,6 +6235,9 @@ func (m *BatchCommandsRequest_Request_RawScan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawDeleteRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawDeleteRange != nil { @@ -6296,6 +6247,9 @@ func (m *BatchCommandsRequest_Request_RawDeleteRange) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawBatchScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchScan != nil { @@ -6305,6 +6259,9 @@ func (m *BatchCommandsRequest_Request_RawBatchScan) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Coprocessor) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Coprocessor != nil { @@ -6314,6 +6271,9 @@ func (m *BatchCommandsRequest_Request_Coprocessor) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PessimisticLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PessimisticLock != nil { @@ -6323,6 +6283,9 @@ func (m *BatchCommandsRequest_Request_PessimisticLock) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PessimisticRollback) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PessimisticRollback != nil { @@ -6332,6 +6295,9 @@ func (m *BatchCommandsRequest_Request_PessimisticRollback) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_CheckTxnStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CheckTxnStatus != nil { @@ -6341,6 +6307,9 @@ func (m *BatchCommandsRequest_Request_CheckTxnStatus) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_TxnHeartBeat) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TxnHeartBeat != nil { @@ -6350,6 +6319,9 @@ func (m *BatchCommandsRequest_Request_TxnHeartBeat) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CheckSecondaryLocks != nil { @@ -6359,6 +6331,9 @@ func (m *BatchCommandsRequest_Request_CheckSecondaryLocks) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_RawCoprocessor) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawCoprocessor != nil { @@ -6368,6 +6343,9 @@ func (m *BatchCommandsRequest_Request_RawCoprocessor) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_FlashbackToVersion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FlashbackToVersion != nil { @@ -6377,6 +6355,9 @@ func (m *BatchCommandsRequest_Request_FlashbackToVersion) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PrepareFlashbackToVersion != nil { @@ -6386,6 +6367,9 @@ func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) return n } func (m *BatchCommandsRequest_Request_ScanTxnEntries) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ScanTxnEntries != nil { @@ -6395,6 +6379,9 @@ func (m *BatchCommandsRequest_Request_ScanTxnEntries) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_Empty) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Empty != nil { @@ -6404,6 +6391,9 @@ func (m *BatchCommandsRequest_Request_Empty) Size() (n int) { return n } func (m *BatchCommandsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Responses) > 0 { @@ -6422,19 +6412,31 @@ func (m *BatchCommandsResponse) Size() (n int) { if m.TransportLayerLoad != 0 { n += 1 + sovTikvpb(uint64(m.TransportLayerLoad)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsResponse_Response) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cmd != nil { n += m.Cmd.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsResponse_Response_Get) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Get != nil { @@ -6444,6 +6446,9 @@ func (m *BatchCommandsResponse_Response_Get) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Scan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Scan != nil { @@ -6453,6 +6458,9 @@ func (m *BatchCommandsResponse_Response_Scan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Prewrite) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Prewrite != nil { @@ -6462,6 +6470,9 @@ func (m *BatchCommandsResponse_Response_Prewrite) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Commit) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Commit != nil { @@ -6471,6 +6482,9 @@ func (m *BatchCommandsResponse_Response_Commit) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Import) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Import != nil { @@ -6480,6 +6494,9 @@ func (m *BatchCommandsResponse_Response_Import) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Cleanup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Cleanup != nil { @@ -6489,6 +6506,9 @@ func (m *BatchCommandsResponse_Response_Cleanup) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_BatchGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.BatchGet != nil { @@ -6498,6 +6518,9 @@ func (m *BatchCommandsResponse_Response_BatchGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_BatchRollback) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.BatchRollback != nil { @@ -6507,6 +6530,9 @@ func (m *BatchCommandsResponse_Response_BatchRollback) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_ScanLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ScanLock != nil { @@ -6516,6 +6542,9 @@ func (m *BatchCommandsResponse_Response_ScanLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_ResolveLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ResolveLock != nil { @@ -6525,6 +6554,9 @@ func (m *BatchCommandsResponse_Response_ResolveLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_GC) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.GC != nil { @@ -6534,6 +6566,9 @@ func (m *BatchCommandsResponse_Response_GC) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_DeleteRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.DeleteRange != nil { @@ -6543,6 +6578,9 @@ func (m *BatchCommandsResponse_Response_DeleteRange) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawGet != nil { @@ -6552,6 +6590,9 @@ func (m *BatchCommandsResponse_Response_RawGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchGet) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchGet != nil { @@ -6561,6 +6602,9 @@ func (m *BatchCommandsResponse_Response_RawBatchGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawPut) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawPut != nil { @@ -6570,6 +6614,9 @@ func (m *BatchCommandsResponse_Response_RawPut) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchPut) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchPut != nil { @@ -6579,6 +6626,9 @@ func (m *BatchCommandsResponse_Response_RawBatchPut) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawDelete) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawDelete != nil { @@ -6588,6 +6638,9 @@ func (m *BatchCommandsResponse_Response_RawDelete) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchDelete) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchDelete != nil { @@ -6597,6 +6650,9 @@ func (m *BatchCommandsResponse_Response_RawBatchDelete) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawScan != nil { @@ -6606,6 +6662,9 @@ func (m *BatchCommandsResponse_Response_RawScan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawDeleteRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawDeleteRange != nil { @@ -6615,6 +6674,9 @@ func (m *BatchCommandsResponse_Response_RawDeleteRange) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawBatchScan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawBatchScan != nil { @@ -6624,6 +6686,9 @@ func (m *BatchCommandsResponse_Response_RawBatchScan) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Coprocessor) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Coprocessor != nil { @@ -6633,6 +6698,9 @@ func (m *BatchCommandsResponse_Response_Coprocessor) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PessimisticLock) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PessimisticLock != nil { @@ -6642,6 +6710,9 @@ func (m *BatchCommandsResponse_Response_PessimisticLock) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PessimisticRollback) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PessimisticRollback != nil { @@ -6651,6 +6722,9 @@ func (m *BatchCommandsResponse_Response_PessimisticRollback) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_CheckTxnStatus) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CheckTxnStatus != nil { @@ -6660,6 +6734,9 @@ func (m *BatchCommandsResponse_Response_CheckTxnStatus) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_TxnHeartBeat) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TxnHeartBeat != nil { @@ -6669,6 +6746,9 @@ func (m *BatchCommandsResponse_Response_TxnHeartBeat) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.CheckSecondaryLocks != nil { @@ -6678,6 +6758,9 @@ func (m *BatchCommandsResponse_Response_CheckSecondaryLocks) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_RawCoprocessor) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RawCoprocessor != nil { @@ -6687,6 +6770,9 @@ func (m *BatchCommandsResponse_Response_RawCoprocessor) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_FlashbackToVersion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FlashbackToVersion != nil { @@ -6696,6 +6782,9 @@ func (m *BatchCommandsResponse_Response_FlashbackToVersion) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.PrepareFlashbackToVersion != nil { @@ -6705,6 +6794,9 @@ func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int return n } func (m *BatchCommandsResponse_Response_ScanTxnEntries) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ScanTxnEntries != nil { @@ -6714,6 +6806,9 @@ func (m *BatchCommandsResponse_Response_ScanTxnEntries) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_Empty) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Empty != nil { @@ -6723,6 +6818,9 @@ func (m *BatchCommandsResponse_Response_Empty) Size() (n int) { return n } func (m *BatchRaftMessage) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Msgs) > 0 { @@ -6731,10 +6829,16 @@ func (m *BatchRaftMessage) Size() (n int) { n += 1 + l + sovTikvpb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsEmptyRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TestId != 0 { @@ -6743,27 +6847,29 @@ func (m *BatchCommandsEmptyRequest) Size() (n int) { if m.DelayTime != 0 { n += 1 + sovTikvpb(uint64(m.DelayTime)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *BatchCommandsEmptyResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TestId != 0 { n += 1 + sovTikvpb(uint64(m.TestId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovTikvpb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTikvpb(x uint64) (n int) { return sovTikvpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -6783,7 +6889,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6811,7 +6917,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6820,6 +6926,9 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6840,7 +6949,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6857,7 +6966,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6866,9 +6975,23 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } 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.RequestIds) == 0 { + m.RequestIds = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -6880,7 +7003,7 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6896,12 +7019,13 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -6926,7 +7050,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6954,7 +7078,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6963,6 +7087,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6986,7 +7113,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6995,6 +7122,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7018,7 +7148,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7027,6 +7157,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7050,7 +7183,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7059,6 +7192,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7082,7 +7218,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7091,6 +7227,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7114,7 +7253,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7123,6 +7262,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7146,7 +7288,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7155,6 +7297,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7178,7 +7323,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7187,6 +7332,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7210,7 +7358,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7219,6 +7367,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7242,7 +7393,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7251,6 +7402,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7274,7 +7428,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7283,6 +7437,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7306,7 +7463,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7315,6 +7472,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7338,7 +7498,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7347,6 +7507,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7370,7 +7533,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7379,6 +7542,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7402,7 +7568,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7411,6 +7577,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7434,7 +7603,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7443,6 +7612,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7466,7 +7638,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7475,6 +7647,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7498,7 +7673,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7507,6 +7682,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7530,7 +7708,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7539,6 +7717,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7562,7 +7743,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7571,6 +7752,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7594,7 +7778,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7603,6 +7787,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7626,7 +7813,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7635,6 +7822,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7658,7 +7848,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7667,6 +7857,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7690,7 +7883,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7699,6 +7892,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7722,7 +7918,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7731,6 +7927,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7754,7 +7953,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7763,6 +7962,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7786,7 +7988,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7795,6 +7997,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7818,7 +8023,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7827,6 +8032,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7850,7 +8058,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7859,6 +8067,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7882,7 +8093,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7891,6 +8102,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7914,7 +8128,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7923,6 +8137,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7946,7 +8163,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7955,6 +8172,9 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7970,12 +8190,13 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8000,7 +8221,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8028,7 +8249,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8037,6 +8258,9 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8057,7 +8281,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8074,7 +8298,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8083,9 +8307,23 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } 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.RequestIds) == 0 { + m.RequestIds = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -8097,7 +8335,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8121,7 +8359,7 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TransportLayerLoad |= (uint64(b) & 0x7F) << shift + m.TransportLayerLoad |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8132,12 +8370,13 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -8162,7 +8401,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8190,7 +8429,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8199,6 +8438,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8222,7 +8464,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8231,6 +8473,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8254,7 +8499,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8263,6 +8508,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8286,7 +8534,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8295,6 +8543,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8318,7 +8569,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8327,6 +8578,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8350,7 +8604,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8359,6 +8613,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8382,7 +8639,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8391,6 +8648,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8414,7 +8674,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8423,6 +8683,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8446,7 +8709,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8455,6 +8718,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8478,7 +8744,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8487,6 +8753,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8510,7 +8779,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8519,6 +8788,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8542,7 +8814,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8551,6 +8823,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8574,7 +8849,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8583,6 +8858,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8606,7 +8884,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8615,6 +8893,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8638,7 +8919,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8647,6 +8928,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8670,7 +8954,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8679,6 +8963,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8702,7 +8989,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8711,6 +8998,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8734,7 +9024,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8743,6 +9033,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8766,7 +9059,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8775,6 +9068,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8798,7 +9094,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8807,6 +9103,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8830,7 +9129,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8839,6 +9138,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8862,7 +9164,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8871,6 +9173,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8894,7 +9199,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8903,6 +9208,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8926,7 +9234,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8935,6 +9243,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8958,7 +9269,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8967,6 +9278,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8990,7 +9304,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8999,6 +9313,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9022,7 +9339,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9031,6 +9348,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9054,7 +9374,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9063,6 +9383,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9086,7 +9409,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9095,6 +9418,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9118,7 +9444,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9127,6 +9453,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9150,7 +9479,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9159,6 +9488,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9182,7 +9514,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9191,6 +9523,9 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9206,12 +9541,13 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9236,7 +9572,7 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9264,7 +9600,7 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9273,6 +9609,9 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTikvpb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9287,12 +9626,13 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9317,7 +9657,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9345,7 +9685,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TestId |= (uint64(b) & 0x7F) << shift + m.TestId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9364,7 +9704,7 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DelayTime |= (uint64(b) & 0x7F) << shift + m.DelayTime |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9375,12 +9715,13 @@ func (m *BatchCommandsEmptyRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9405,7 +9746,7 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9433,7 +9774,7 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TestId |= (uint64(b) & 0x7F) << shift + m.TestId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9444,12 +9785,13 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -9462,6 +9804,7 @@ func (m *BatchCommandsEmptyResponse) Unmarshal(dAtA []byte) error { func skipTikvpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -9493,10 +9836,8 @@ func skipTikvpb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -9513,221 +9854,34 @@ func skipTikvpb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTikvpb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTikvpb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTikvpb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTikvpb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTikvpb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTikvpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTikvpb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTikvpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTikvpb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTikvpb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tikvpb.proto", fileDescriptorTikvpb) } - -var fileDescriptorTikvpb = []byte{ - // 2584 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0x4b, 0x53, 0x1b, 0xc9, - 0x1d, 0xc0, 0x07, 0x5b, 0xe6, 0xd1, 0x2c, 0x06, 0x1a, 0x30, 0xc3, 0x2c, 0x06, 0x7b, 0x8c, 0xbd, - 0xec, 0xa6, 0x8a, 0xd8, 0x5e, 0x67, 0x9d, 0x7d, 0x64, 0x83, 0x11, 0x36, 0xb0, 0x82, 0x5a, 0x95, - 0x24, 0xef, 0x3a, 0xa9, 0xa4, 0xa8, 0x46, 0x6a, 0xc4, 0x04, 0x69, 0x46, 0x99, 0x69, 0x84, 0x75, - 0xcf, 0x87, 0xc8, 0x25, 0x87, 0xdc, 0xf2, 0x39, 0x72, 0xca, 0x31, 0xc7, 0x1c, 0x53, 0xce, 0x67, - 0xc8, 0x39, 0xa9, 0xee, 0x99, 0xe9, 0xd7, 0x74, 0x8f, 0xd8, 0x13, 0xc3, 0xff, 0xd9, 0xef, 0xfe, - 0xfd, 0x1b, 0xc0, 0x47, 0x24, 0xb8, 0x1c, 0x0e, 0xce, 0x76, 0x06, 0x71, 0x44, 0x22, 0x38, 0x99, - 0xfe, 0xe6, 0x2d, 0xb6, 0xa3, 0x41, 0x1c, 0xb5, 0x71, 0x92, 0x44, 0x71, 0xaa, 0xf2, 0xe6, 0x2e, - 0x87, 0xf1, 0xa0, 0x9d, 0x5b, 0x7a, 0x33, 0xfd, 0xc1, 0x20, 0xfb, 0x5c, 0x8a, 0xd1, 0x39, 0x39, - 0x4d, 0x70, 0x3c, 0xc4, 0x31, 0xd7, 0x2f, 0x75, 0x82, 0x04, 0x75, 0xbb, 0x31, 0xee, 0x22, 0x82, - 0x3b, 0x99, 0x70, 0xb9, 0x1b, 0x75, 0x23, 0xf6, 0xf9, 0x73, 0xfa, 0x95, 0x49, 0xe7, 0xe3, 0xab, - 0x84, 0xb0, 0xcf, 0x54, 0xe0, 0xff, 0x65, 0x11, 0x2c, 0xef, 0x21, 0xd2, 0xbe, 0xa8, 0x46, 0xfd, - 0x3e, 0x0a, 0x3b, 0x49, 0x03, 0xff, 0xf1, 0x0a, 0x27, 0x04, 0xee, 0x82, 0xe9, 0x38, 0xfd, 0x4c, - 0xdc, 0x89, 0x07, 0xb7, 0xb7, 0x67, 0x9f, 0x6f, 0xed, 0x64, 0xed, 0x37, 0xd9, 0xef, 0x64, 0x3f, - 0x1b, 0xdc, 0x0b, 0x6e, 0x82, 0xd9, 0xec, 0xfb, 0x34, 0xe8, 0x24, 0xee, 0xad, 0x07, 0xb7, 0xb7, - 0x2b,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0xe2, 0xe5, 0x40, 0x11, 0x4a, 0xad, 0x59, 0x6a, 0x60, 0x5a, 0x2c, 0x65, - 0x3d, 0xca, 0xca, 0xca, 0x75, 0x66, 0x9e, 0x6a, 0x84, 0x58, 0x8c, 0xba, 0x59, 0xcb, 0xa3, 0x1e, - 0x82, 0xd9, 0xf4, 0xa6, 0xc0, 0xa8, 0x83, 0x63, 0x69, 0x07, 0x48, 0xd2, 0xe2, 0x0e, 0x50, 0x94, - 0xd9, 0x8b, 0x49, 0x0d, 0xdc, 0x3d, 0xc0, 0xa4, 0x49, 0xa2, 0x18, 0x37, 0xd1, 0x39, 0x6e, 0x35, - 0xe5, 0xed, 0x24, 0xa4, 0x86, 0xed, 0x24, 0x2b, 0xb3, 0x60, 0x2d, 0x30, 0x7f, 0x80, 0x09, 0x3d, - 0xfa, 0x7f, 0x44, 0x01, 0x39, 0x0a, 0xcf, 0x23, 0xe9, 0x3d, 0x41, 0xd3, 0x14, 0xdf, 0x13, 0x0a, - 0x06, 0x59, 0xd4, 0x6f, 0xc0, 0x14, 0xc3, 0x95, 0x36, 0x81, 0x4a, 0x01, 0x4b, 0x25, 0x86, 0xca, - 0x32, 0x57, 0x64, 0xde, 0xbf, 0x07, 0x50, 0x0a, 0x7c, 0x18, 0x24, 0x24, 0x8a, 0x47, 0xd2, 0xad, - 0x59, 0x54, 0x16, 0x6f, 0x4d, 0x93, 0x4d, 0x16, 0xfe, 0x0c, 0xac, 0x1c, 0x60, 0xd2, 0x0a, 0x58, - 0x4d, 0xd1, 0x1c, 0x25, 0x04, 0xf7, 0xd9, 0xd9, 0x25, 0x65, 0x28, 0x2a, 0x8b, 0x19, 0x4c, 0x36, - 0x12, 0xa5, 0x02, 0x12, 0x8f, 0x5e, 0x75, 0x3a, 0xd9, 0x8d, 0xac, 0xfe, 0xbf, 0x55, 0x8b, 0xab, - 0xc4, 0x41, 0x60, 0xb7, 0x90, 0x58, 0x65, 0x8e, 0xc4, 0xa3, 0x13, 0x14, 0x5f, 0x66, 0x38, 0xfe, - 0xa8, 0xe8, 0x25, 0xb4, 0xe2, 0x35, 0xa2, 0xd4, 0x88, 0x47, 0x0f, 0xc1, 0x12, 0xdf, 0x67, 0xfb, - 0xcc, 0x83, 0x6d, 0xe7, 0x4f, 0x35, 0x77, 0x83, 0x8d, 0x28, 0x0c, 0x6f, 0x60, 0x2a, 0x01, 0xde, - 0x42, 0x7a, 0x18, 0x48, 0xc9, 0x9e, 0x68, 0x11, 0x74, 0x83, 0x3c, 0xd3, 0x27, 0x63, 0xed, 0x78, - 0x9a, 0xdf, 0x82, 0x85, 0x37, 0x98, 0x16, 0x22, 0x4c, 0x59, 0x47, 0x5d, 0x9c, 0x14, 0xd2, 0xe8, - 0x06, 0xe2, 0x06, 0x51, 0xed, 0x98, 0x52, 0x3a, 0x61, 0xce, 0xd8, 0xe6, 0x49, 0x1d, 0xab, 0x51, - 0x78, 0x1e, 0x74, 0xe1, 0x63, 0xcd, 0x45, 0xd3, 0xe7, 0x91, 0x9f, 0x8c, 0x33, 0xcb, 0xdb, 0xbf, - 0xf7, 0xe4, 0x5f, 0x7f, 0x9b, 0x9e, 0xf8, 0xc7, 0x87, 0x8d, 0x89, 0x7f, 0x7e, 0xd8, 0x98, 0xf8, - 0xf7, 0x87, 0x8d, 0x89, 0x3f, 0xff, 0x67, 0xc3, 0x01, 0x0b, 0x51, 0xdc, 0x65, 0xe7, 0xfc, 0xce, - 0xe5, 0x90, 0xfd, 0x5b, 0xde, 0xd9, 0x24, 0xfb, 0xf1, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x5d, 0x90, 0x6c, 0x0b, 0x33, 0x28, 0x00, 0x00, -} diff --git a/pkg/tracepb/tracepb.pb.go b/pkg/tracepb/tracepb.pb.go index 5c8860082..55cf091a7 100644 --- a/pkg/tracepb/tracepb.pb.go +++ b/pkg/tracepb/tracepb.pb.go @@ -1,36 +1,19 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tracepb.proto -/* -Package tracepb is a generated protocol buffer package. - -It is generated from these files: - - tracepb.proto - -It has these top-level messages: - - TraceRecordRequest - TraceRecord - RemoteParentSpan - TraceContext - Report - NotifyCollect - Span - Property -*/ package tracepb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" proto "github.com/golang/protobuf/proto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -42,27 +25,90 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type TraceRecordRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TraceRecordRequest) Reset() { *m = TraceRecordRequest{} } +func (m *TraceRecordRequest) String() string { return proto.CompactTextString(m) } +func (*TraceRecordRequest) ProtoMessage() {} +func (*TraceRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{0} +} +func (m *TraceRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TraceRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TraceRecordRequest.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 *TraceRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceRecordRequest.Merge(m, src) +} +func (m *TraceRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *TraceRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TraceRecordRequest.DiscardUnknown(m) } -func (m *TraceRecordRequest) Reset() { *m = TraceRecordRequest{} } -func (m *TraceRecordRequest) String() string { return proto.CompactTextString(m) } -func (*TraceRecordRequest) ProtoMessage() {} -func (*TraceRecordRequest) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{0} } +var xxx_messageInfo_TraceRecordRequest proto.InternalMessageInfo type TraceRecord struct { // Types that are valid to be assigned to RecordOneof: + // // *TraceRecord_Report // *TraceRecord_NotifyCollect - RecordOneof isTraceRecord_RecordOneof `protobuf_oneof:"record_oneof"` + RecordOneof isTraceRecord_RecordOneof `protobuf_oneof:"record_oneof"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TraceRecord) Reset() { *m = TraceRecord{} } +func (m *TraceRecord) String() string { return proto.CompactTextString(m) } +func (*TraceRecord) ProtoMessage() {} +func (*TraceRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{1} +} +func (m *TraceRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TraceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TraceRecord.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 *TraceRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceRecord.Merge(m, src) +} +func (m *TraceRecord) XXX_Size() int { + return m.Size() +} +func (m *TraceRecord) XXX_DiscardUnknown() { + xxx_messageInfo_TraceRecord.DiscardUnknown(m) } -func (m *TraceRecord) Reset() { *m = TraceRecord{} } -func (m *TraceRecord) String() string { return proto.CompactTextString(m) } -func (*TraceRecord) ProtoMessage() {} -func (*TraceRecord) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{1} } +var xxx_messageInfo_TraceRecord proto.InternalMessageInfo type isTraceRecord_RecordOneof interface { isTraceRecord_RecordOneof() @@ -71,10 +117,10 @@ type isTraceRecord_RecordOneof interface { } type TraceRecord_Report struct { - Report *Report `protobuf:"bytes,1,opt,name=report,oneof"` + Report *Report `protobuf:"bytes,1,opt,name=report,proto3,oneof" json:"report,omitempty"` } type TraceRecord_NotifyCollect struct { - NotifyCollect *NotifyCollect `protobuf:"bytes,2,opt,name=notify_collect,json=notifyCollect,oneof"` + NotifyCollect *NotifyCollect `protobuf:"bytes,2,opt,name=notify_collect,json=notifyCollect,proto3,oneof" json:"notify_collect,omitempty"` } func (*TraceRecord_Report) isTraceRecord_RecordOneof() {} @@ -101,91 +147,56 @@ func (m *TraceRecord) GetNotifyCollect() *NotifyCollect { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TraceRecord) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TraceRecord_OneofMarshaler, _TraceRecord_OneofUnmarshaler, _TraceRecord_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TraceRecord) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*TraceRecord_Report)(nil), (*TraceRecord_NotifyCollect)(nil), } } -func _TraceRecord_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TraceRecord) - // record_oneof - switch x := m.RecordOneof.(type) { - case *TraceRecord_Report: - _ = b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Report); err != nil { - return err - } - case *TraceRecord_NotifyCollect: - _ = b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.NotifyCollect); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("TraceRecord.RecordOneof has unexpected type %T", x) - } - return nil -} - -func _TraceRecord_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TraceRecord) - switch tag { - case 1: // record_oneof.report - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Report) - err := b.DecodeMessage(msg) - m.RecordOneof = &TraceRecord_Report{msg} - return true, err - case 2: // record_oneof.notify_collect - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(NotifyCollect) - err := b.DecodeMessage(msg) - m.RecordOneof = &TraceRecord_NotifyCollect{msg} - return true, err - default: - return false, nil - } -} - -func _TraceRecord_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TraceRecord) - // record_oneof - switch x := m.RecordOneof.(type) { - case *TraceRecord_Report: - s := proto.Size(x.Report) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *TraceRecord_NotifyCollect: - s := proto.Size(x.NotifyCollect) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - type RemoteParentSpan struct { // A unique id to identify the request. It's usually a UUID. TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // The span of remote caller that is awaiting the request. - SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoteParentSpan) Reset() { *m = RemoteParentSpan{} } +func (m *RemoteParentSpan) String() string { return proto.CompactTextString(m) } +func (*RemoteParentSpan) ProtoMessage() {} +func (*RemoteParentSpan) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{2} +} +func (m *RemoteParentSpan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoteParentSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoteParentSpan.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 *RemoteParentSpan) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteParentSpan.Merge(m, src) +} +func (m *RemoteParentSpan) XXX_Size() int { + return m.Size() +} +func (m *RemoteParentSpan) XXX_DiscardUnknown() { + xxx_messageInfo_RemoteParentSpan.DiscardUnknown(m) } -func (m *RemoteParentSpan) Reset() { *m = RemoteParentSpan{} } -func (m *RemoteParentSpan) String() string { return proto.CompactTextString(m) } -func (*RemoteParentSpan) ProtoMessage() {} -func (*RemoteParentSpan) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{2} } +var xxx_messageInfo_RemoteParentSpan proto.InternalMessageInfo func (m *RemoteParentSpan) GetTraceId() uint64 { if m != nil { @@ -203,15 +214,46 @@ func (m *RemoteParentSpan) GetSpanId() uint64 { // The context of the request to be traced. type TraceContext struct { - RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans" json:"remote_parent_spans,omitempty"` + RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans,proto3" json:"remote_parent_spans,omitempty"` // Report the trace records only if the duration of handling the request exceeds the threshold. - DurationThresholdMs uint32 `protobuf:"varint,2,opt,name=duration_threshold_ms,json=durationThresholdMs,proto3" json:"duration_threshold_ms,omitempty"` + DurationThresholdMs uint32 `protobuf:"varint,2,opt,name=duration_threshold_ms,json=durationThresholdMs,proto3" json:"duration_threshold_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TraceContext) Reset() { *m = TraceContext{} } +func (m *TraceContext) String() string { return proto.CompactTextString(m) } +func (*TraceContext) ProtoMessage() {} +func (*TraceContext) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{3} +} +func (m *TraceContext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TraceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TraceContext.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 *TraceContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceContext.Merge(m, src) +} +func (m *TraceContext) XXX_Size() int { + return m.Size() +} +func (m *TraceContext) XXX_DiscardUnknown() { + xxx_messageInfo_TraceContext.DiscardUnknown(m) } -func (m *TraceContext) Reset() { *m = TraceContext{} } -func (m *TraceContext) String() string { return proto.CompactTextString(m) } -func (*TraceContext) ProtoMessage() {} -func (*TraceContext) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{3} } +var xxx_messageInfo_TraceContext proto.InternalMessageInfo func (m *TraceContext) GetRemoteParentSpans() []*RemoteParentSpan { if m != nil { @@ -229,14 +271,45 @@ func (m *TraceContext) GetDurationThresholdMs() uint32 { // Report the spans collected when handling a request on a service. type Report struct { - RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans" json:"remote_parent_spans,omitempty"` - Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"` + RemoteParentSpans []*RemoteParentSpan `protobuf:"bytes,1,rep,name=remote_parent_spans,json=remoteParentSpans,proto3" json:"remote_parent_spans,omitempty"` + Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Report) Reset() { *m = Report{} } +func (m *Report) String() string { return proto.CompactTextString(m) } +func (*Report) ProtoMessage() {} +func (*Report) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{4} +} +func (m *Report) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Report.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 *Report) XXX_Merge(src proto.Message) { + xxx_messageInfo_Report.Merge(m, src) +} +func (m *Report) XXX_Size() int { + return m.Size() +} +func (m *Report) XXX_DiscardUnknown() { + xxx_messageInfo_Report.DiscardUnknown(m) } -func (m *Report) Reset() { *m = Report{} } -func (m *Report) String() string { return proto.CompactTextString(m) } -func (*Report) ProtoMessage() {} -func (*Report) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{4} } +var xxx_messageInfo_Report proto.InternalMessageInfo func (m *Report) GetRemoteParentSpans() []*RemoteParentSpan { if m != nil { @@ -254,13 +327,44 @@ func (m *Report) GetSpans() []*Span { // Notify the subscriber to persis the spans of the trace. type NotifyCollect struct { - TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotifyCollect) Reset() { *m = NotifyCollect{} } +func (m *NotifyCollect) String() string { return proto.CompactTextString(m) } +func (*NotifyCollect) ProtoMessage() {} +func (*NotifyCollect) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{5} +} +func (m *NotifyCollect) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NotifyCollect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NotifyCollect.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 *NotifyCollect) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotifyCollect.Merge(m, src) +} +func (m *NotifyCollect) XXX_Size() int { + return m.Size() +} +func (m *NotifyCollect) XXX_DiscardUnknown() { + xxx_messageInfo_NotifyCollect.DiscardUnknown(m) } -func (m *NotifyCollect) Reset() { *m = NotifyCollect{} } -func (m *NotifyCollect) String() string { return proto.CompactTextString(m) } -func (*NotifyCollect) ProtoMessage() {} -func (*NotifyCollect) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{5} } +var xxx_messageInfo_NotifyCollect proto.InternalMessageInfo func (m *NotifyCollect) GetTraceId() uint64 { if m != nil { @@ -272,18 +376,49 @@ func (m *NotifyCollect) GetTraceId() uint64 { type Span struct { // The unique span id within the spans with the same `trace_id`. // The most significant 32 bits should be random number generated by each service instance. - SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` - ParentId uint64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` - BeginUnixNs uint64 `protobuf:"varint,3,opt,name=begin_unix_ns,json=beginUnixNs,proto3" json:"begin_unix_ns,omitempty"` - DurationNs uint64 `protobuf:"varint,4,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"` - Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` - Properties []*Property `protobuf:"bytes,6,rep,name=properties" json:"properties,omitempty"` + SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + ParentId uint64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + BeginUnixNs uint64 `protobuf:"varint,3,opt,name=begin_unix_ns,json=beginUnixNs,proto3" json:"begin_unix_ns,omitempty"` + DurationNs uint64 `protobuf:"varint,4,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"` + Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` + Properties []*Property `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Span) Reset() { *m = Span{} } +func (m *Span) String() string { return proto.CompactTextString(m) } +func (*Span) ProtoMessage() {} +func (*Span) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{6} +} +func (m *Span) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Span.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 *Span) XXX_Merge(src proto.Message) { + xxx_messageInfo_Span.Merge(m, src) +} +func (m *Span) XXX_Size() int { + return m.Size() +} +func (m *Span) XXX_DiscardUnknown() { + xxx_messageInfo_Span.DiscardUnknown(m) } -func (m *Span) Reset() { *m = Span{} } -func (m *Span) String() string { return proto.CompactTextString(m) } -func (*Span) ProtoMessage() {} -func (*Span) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{6} } +var xxx_messageInfo_Span proto.InternalMessageInfo func (m *Span) GetSpanId() uint64 { if m != nil { @@ -328,14 +463,45 @@ func (m *Span) GetProperties() []*Property { } type Property struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Property) Reset() { *m = Property{} } +func (m *Property) String() string { return proto.CompactTextString(m) } +func (*Property) ProtoMessage() {} +func (*Property) Descriptor() ([]byte, []int) { + return fileDescriptor_26aed79969e856c7, []int{7} +} +func (m *Property) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Property.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 *Property) XXX_Merge(src proto.Message) { + xxx_messageInfo_Property.Merge(m, src) +} +func (m *Property) XXX_Size() int { + return m.Size() +} +func (m *Property) XXX_DiscardUnknown() { + xxx_messageInfo_Property.DiscardUnknown(m) } -func (m *Property) Reset() { *m = Property{} } -func (m *Property) String() string { return proto.CompactTextString(m) } -func (*Property) ProtoMessage() {} -func (*Property) Descriptor() ([]byte, []int) { return fileDescriptorTracepb, []int{7} } +var xxx_messageInfo_Property proto.InternalMessageInfo func (m *Property) GetKey() string { if m != nil { @@ -362,6 +528,44 @@ func init() { proto.RegisterType((*Property)(nil), "tracepb.Property") } +func init() { proto.RegisterFile("tracepb.proto", fileDescriptor_26aed79969e856c7) } + +var fileDescriptor_26aed79969e856c7 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0xd3, 0x40, + 0x14, 0xcd, 0xe4, 0xd5, 0xe4, 0xa6, 0x2e, 0xc9, 0x34, 0x80, 0x4b, 0xa5, 0x10, 0x0d, 0x9b, 0xc0, + 0x22, 0x82, 0xf0, 0x01, 0x48, 0xa9, 0x84, 0x9a, 0x05, 0x51, 0x34, 0x29, 0x62, 0x69, 0xd9, 0xf1, + 0xb4, 0xb5, 0x92, 0xce, 0x98, 0x99, 0x71, 0x94, 0x7c, 0x02, 0x0b, 0xf6, 0x7c, 0x12, 0x62, 0xc5, + 0x27, 0xa0, 0xf0, 0x23, 0xc8, 0xd7, 0x89, 0xe5, 0x02, 0x62, 0xc5, 0xca, 0x73, 0xcf, 0xb9, 0xaf, + 0x73, 0xac, 0x0b, 0x8e, 0xd5, 0xfe, 0x42, 0xc4, 0xc1, 0x30, 0xd6, 0xca, 0x2a, 0x7a, 0xb4, 0x0f, + 0x59, 0x17, 0xe8, 0x55, 0xfa, 0xe4, 0x62, 0xa1, 0x74, 0xc8, 0xc5, 0xc7, 0x44, 0x18, 0xcb, 0x3e, + 0x11, 0x68, 0x15, 0x60, 0xfa, 0x1c, 0xea, 0x5a, 0xc4, 0x4a, 0x5b, 0x97, 0xf4, 0xc9, 0xa0, 0x35, + 0x7a, 0x30, 0x3c, 0xb4, 0xe3, 0x08, 0x5f, 0x96, 0xf8, 0x3e, 0x81, 0xbe, 0x81, 0x13, 0xa9, 0x6c, + 0x74, 0xbd, 0xf5, 0x16, 0x6a, 0xb5, 0x12, 0x0b, 0xeb, 0x96, 0xb1, 0xe4, 0x51, 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 0x6e, 0x22, 0xe9, 0x25, 0x32, 0xda, 0x78, 0xd2, 0xb8, 0x15, 0x4c, 0x68, + 0x21, 0xf8, 0x5e, 0x46, 0x9b, 0xa9, 0xa1, 0x4f, 0xa1, 0x95, 0x9b, 0x27, 0x8d, 0x5b, 0xc5, 0x0c, + 0x38, 0x40, 0x53, 0x43, 0xbb, 0x50, 0x13, 0x6b, 0x21, 0xad, 0x5b, 0xeb, 0x93, 0x41, 0x93, 0x67, + 0x01, 0x7d, 0x05, 0x10, 0x6b, 0x15, 0x0b, 0x6d, 0x23, 0x61, 0xdc, 0x3a, 0xea, 0xed, 0xe4, 0x7a, + 0x67, 0x19, 0xb5, 0xe5, 0x85, 0x24, 0x36, 0x82, 0xc6, 0x01, 0xa7, 0x6d, 0xa8, 0x2c, 0xc5, 0x16, + 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, + 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, + 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, + 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, + 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, + 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -370,8 +574,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for TraceRecordPubSub service - +// TraceRecordPubSubClient is the client API for TraceRecordPubSub service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TraceRecordPubSubClient interface { // Subscribe the Trace records generated on this service. The service will periodically (e.g. per minute) // publishes Trace records to clients via gRPC stream. @@ -387,7 +592,7 @@ func NewTraceRecordPubSubClient(cc *grpc.ClientConn) TraceRecordPubSubClient { } func (c *traceRecordPubSubClient) Subscribe(ctx context.Context, in *TraceRecordRequest, opts ...grpc.CallOption) (TraceRecordPubSub_SubscribeClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TraceRecordPubSub_serviceDesc.Streams[0], c.cc, "/tracepb.TraceRecordPubSub/Subscribe", opts...) + stream, err := c.cc.NewStream(ctx, &_TraceRecordPubSub_serviceDesc.Streams[0], "/tracepb.TraceRecordPubSub/Subscribe", opts...) if err != nil { return nil, err } @@ -418,14 +623,21 @@ func (x *traceRecordPubSubSubscribeClient) Recv() (*TraceRecord, error) { return m, nil } -// Server API for TraceRecordPubSub service - +// TraceRecordPubSubServer is the server API for TraceRecordPubSub service. type TraceRecordPubSubServer interface { // Subscribe the Trace records generated on this service. The service will periodically (e.g. per minute) // publishes Trace records to clients via gRPC stream. Subscribe(*TraceRecordRequest, TraceRecordPubSub_SubscribeServer) error } +// UnimplementedTraceRecordPubSubServer can be embedded to have forward compatible implementations. +type UnimplementedTraceRecordPubSubServer struct { +} + +func (*UnimplementedTraceRecordPubSubServer) Subscribe(req *TraceRecordRequest, srv TraceRecordPubSub_SubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") +} + func RegisterTraceRecordPubSubServer(s *grpc.Server, srv TraceRecordPubSubServer) { s.RegisterService(&_TraceRecordPubSub_serviceDesc, srv) } @@ -468,7 +680,7 @@ var _TraceRecordPubSub_serviceDesc = grpc.ServiceDesc{ func (m *TraceRecordRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -476,17 +688,26 @@ func (m *TraceRecordRequest) Marshal() (dAtA []byte, err error) { } func (m *TraceRecordRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TraceRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil } func (m *TraceRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -494,52 +715,77 @@ func (m *TraceRecord) Marshal() (dAtA []byte, err error) { } func (m *TraceRecord) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TraceRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.RecordOneof != nil { - nn1, err := m.RecordOneof.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size := m.RecordOneof.Size() + i -= size + if _, err := m.RecordOneof.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += nn1 } - return i, nil + return len(dAtA) - i, nil } func (m *TraceRecord_Report) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TraceRecord_Report) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Report != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.Report.Size())) - n2, err := m.Report.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Report.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) } - i += n2 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TraceRecord_NotifyCollect) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TraceRecord_NotifyCollect) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.NotifyCollect != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.NotifyCollect.Size())) - n3, err := m.NotifyCollect.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.NotifyCollect.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x12 } - return i, nil + return len(dAtA) - i, nil } func (m *RemoteParentSpan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -547,27 +793,36 @@ func (m *RemoteParentSpan) Marshal() (dAtA []byte, err error) { } func (m *RemoteParentSpan) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoteParentSpan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TraceId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.SpanId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.TraceId != 0 { + i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *TraceContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -575,34 +830,45 @@ func (m *TraceContext) Marshal() (dAtA []byte, err error) { } func (m *TraceContext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TraceContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.RemoteParentSpans) > 0 { - for _, msg := range m.RemoteParentSpans { - dAtA[i] = 0xa - i++ - i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.DurationThresholdMs != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTracepb(dAtA, i, uint64(m.DurationThresholdMs)) + i-- + dAtA[i] = 0x10 + } + if len(m.RemoteParentSpans) > 0 { + for iNdEx := len(m.RemoteParentSpans) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RemoteParentSpans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *Report) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -610,41 +876,54 @@ func (m *Report) Marshal() (dAtA []byte, err error) { } func (m *Report) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.RemoteParentSpans) > 0 { - for _, msg := range m.RemoteParentSpans { - dAtA[i] = 0xa - i++ - i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Spans) > 0 { - for _, msg := range m.Spans { + for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + } + if len(m.RemoteParentSpans) > 0 { + for iNdEx := len(m.RemoteParentSpans) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RemoteParentSpans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *NotifyCollect) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -652,22 +931,31 @@ func (m *NotifyCollect) Marshal() (dAtA []byte, err error) { } func (m *NotifyCollect) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NotifyCollect) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.TraceId != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintTracepb(dAtA, i, uint64(m.TraceId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Span) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -675,55 +963,67 @@ func (m *Span) Marshal() (dAtA []byte, err error) { } func (m *Span) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SpanId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.ParentId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.ParentId)) + if len(m.Properties) > 0 { + for iNdEx := len(m.Properties) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Properties[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracepb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - if m.BeginUnixNs != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(m.BeginUnixNs)) + if len(m.Event) > 0 { + i -= len(m.Event) + copy(dAtA[i:], m.Event) + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Event))) + i-- + dAtA[i] = 0x2a } if m.DurationNs != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintTracepb(dAtA, i, uint64(m.DurationNs)) + i-- + dAtA[i] = 0x20 } - if len(m.Event) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintTracepb(dAtA, i, uint64(len(m.Event))) - i += copy(dAtA[i:], m.Event) + if m.BeginUnixNs != 0 { + i = encodeVarintTracepb(dAtA, i, uint64(m.BeginUnixNs)) + i-- + dAtA[i] = 0x18 } - if len(m.Properties) > 0 { - for _, msg := range m.Properties { - dAtA[i] = 0x32 - i++ - i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.ParentId != 0 { + i = encodeVarintTracepb(dAtA, i, uint64(m.ParentId)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.SpanId != 0 { + i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Property) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -731,50 +1031,78 @@ func (m *Property) Marshal() (dAtA []byte, err error) { } func (m *Property) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Property) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTracepb(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Value) + copy(dAtA[i:], m.Value) i = encodeVarintTracepb(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintTracepb(dAtA []byte, offset int, v uint64) int { + offset -= sovTracepb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *TraceRecordRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TraceRecord) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.RecordOneof != nil { n += m.RecordOneof.Size() } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TraceRecord_Report) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Report != nil { @@ -784,6 +1112,9 @@ func (m *TraceRecord_Report) Size() (n int) { return n } func (m *TraceRecord_NotifyCollect) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.NotifyCollect != nil { @@ -793,6 +1124,9 @@ func (m *TraceRecord_NotifyCollect) Size() (n int) { return n } func (m *RemoteParentSpan) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TraceId != 0 { @@ -801,10 +1135,16 @@ func (m *RemoteParentSpan) Size() (n int) { if m.SpanId != 0 { n += 1 + sovTracepb(uint64(m.SpanId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TraceContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -816,10 +1156,16 @@ func (m *TraceContext) Size() (n int) { if m.DurationThresholdMs != 0 { n += 1 + sovTracepb(uint64(m.DurationThresholdMs)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Report) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -834,19 +1180,31 @@ func (m *Report) Size() (n int) { n += 1 + l + sovTracepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *NotifyCollect) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TraceId != 0 { n += 1 + sovTracepb(uint64(m.TraceId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Span) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SpanId != 0 { @@ -871,10 +1229,16 @@ func (m *Span) Size() (n int) { n += 1 + l + sovTracepb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Property) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -885,18 +1249,14 @@ func (m *Property) Size() (n int) { if l > 0 { n += 1 + l + sovTracepb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovTracepb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTracepb(x uint64) (n int) { return sovTracepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -916,7 +1276,7 @@ func (m *TraceRecordRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -936,12 +1296,13 @@ func (m *TraceRecordRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -966,7 +1327,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -994,7 +1355,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1003,6 +1364,9 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1026,7 +1390,7 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1035,6 +1399,9 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1050,12 +1417,13 @@ func (m *TraceRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1080,7 +1448,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1108,7 +1476,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TraceId |= (uint64(b) & 0x7F) << shift + m.TraceId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1127,7 +1495,7 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpanId |= (uint64(b) & 0x7F) << shift + m.SpanId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1138,12 +1506,13 @@ func (m *RemoteParentSpan) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1168,7 +1537,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1196,7 +1565,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1205,6 +1574,9 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1227,7 +1599,7 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationThresholdMs |= (uint32(b) & 0x7F) << shift + m.DurationThresholdMs |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1238,12 +1610,13 @@ func (m *TraceContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1268,7 +1641,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1296,7 +1669,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1305,6 +1678,9 @@ func (m *Report) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1327,7 +1703,7 @@ func (m *Report) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1336,6 +1712,9 @@ func (m *Report) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1350,12 +1729,13 @@ func (m *Report) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1380,7 +1760,7 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1408,7 +1788,7 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TraceId |= (uint64(b) & 0x7F) << shift + m.TraceId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1419,12 +1799,13 @@ func (m *NotifyCollect) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1449,7 +1830,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1477,7 +1858,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpanId |= (uint64(b) & 0x7F) << shift + m.SpanId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1496,7 +1877,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ParentId |= (uint64(b) & 0x7F) << shift + m.ParentId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1515,7 +1896,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BeginUnixNs |= (uint64(b) & 0x7F) << shift + m.BeginUnixNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1534,7 +1915,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DurationNs |= (uint64(b) & 0x7F) << shift + m.DurationNs |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1553,7 +1934,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1563,6 +1944,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1582,7 +1966,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1591,6 +1975,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1605,12 +1992,13 @@ func (m *Span) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1635,7 +2023,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1663,7 +2051,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1673,6 +2061,9 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1692,7 +2083,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1702,6 +2093,9 @@ func (m *Property) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracepb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracepb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1713,12 +2107,13 @@ func (m *Property) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTracepb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1731,6 +2126,7 @@ func (m *Property) Unmarshal(dAtA []byte) error { func skipTracepb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1762,10 +2158,8 @@ func skipTracepb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1782,91 +2176,34 @@ func skipTracepb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTracepb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTracepb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTracepb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTracepb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTracepb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTracepb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTracepb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTracepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTracepb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTracepb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tracepb.proto", fileDescriptorTracepb) } - -var fileDescriptorTracepb = []byte{ - // 511 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0xcd, 0xe4, 0xd5, 0xe4, 0xa6, 0x2e, 0xc9, 0x34, 0x80, 0x4b, 0xa5, 0x10, 0x0d, 0x9b, 0xc0, - 0x22, 0x82, 0xf0, 0x01, 0x48, 0xa9, 0x84, 0x9a, 0x05, 0x51, 0x34, 0x29, 0x62, 0x69, 0xd9, 0xf1, - 0xb4, 0xb5, 0x92, 0xce, 0x98, 0x99, 0x71, 0x94, 0x7c, 0x02, 0x0b, 0xf6, 0x7c, 0x12, 0x62, 0xc5, - 0x27, 0xa0, 0xf0, 0x23, 0xc8, 0xd7, 0x89, 0xe5, 0x02, 0x62, 0xc5, 0xca, 0x73, 0xcf, 0xb9, 0xaf, - 0x73, 0xac, 0x0b, 0x8e, 0xd5, 0xfe, 0x42, 0xc4, 0xc1, 0x30, 0xd6, 0xca, 0x2a, 0x7a, 0xb4, 0x0f, - 0x59, 0x17, 0xe8, 0x55, 0xfa, 0xe4, 0x62, 0xa1, 0x74, 0xc8, 0xc5, 0xc7, 0x44, 0x18, 0xcb, 0x3e, - 0x11, 0x68, 0x15, 0x60, 0xfa, 0x1c, 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 0x62, 0x27, 0x2f, 0xc6, - 0x82, 0x8c, 0x63, 0x2f, 0xc0, 0xb9, 0xf7, 0x0f, 0xfe, 0x61, 0x27, 0xfb, 0x46, 0xa0, 0x8a, 0x96, - 0x17, 0x7c, 0x25, 0x45, 0x5f, 0xe9, 0x39, 0x34, 0xf7, 0x6b, 0xe7, 0x96, 0x37, 0x32, 0x60, 0x12, - 0x52, 0x06, 0x4e, 0x20, 0x6e, 0x22, 0xe9, 0x25, 0x32, 0xda, 0x78, 0xd2, 0xb8, 0x15, 0x4c, 0x68, - 0x21, 0xf8, 0x5e, 0x46, 0x9b, 0xa9, 0xa1, 0x4f, 0xa1, 0x95, 0x9b, 0x27, 0x8d, 0x5b, 0xc5, 0x0c, - 0x38, 0x40, 0x53, 0x43, 0xbb, 0x50, 0x13, 0x6b, 0x21, 0xad, 0x5b, 0xeb, 0x93, 0x41, 0x93, 0x67, - 0x01, 0x7d, 0x05, 0x10, 0x6b, 0x15, 0x0b, 0x6d, 0x23, 0x61, 0xdc, 0x3a, 0xea, 0xed, 0xe4, 0x7a, - 0x67, 0x19, 0xb5, 0xe5, 0x85, 0x24, 0x36, 0x82, 0xc6, 0x01, 0xa7, 0x6d, 0xa8, 0x2c, 0xc5, 0x16, - 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, - 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, - 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, - 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, - 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, - 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, -} diff --git a/pkg/tsopb/tsopb.pb.go b/pkg/tsopb/tsopb.pb.go index 5c4808f62..c093253be 100644 --- a/pkg/tsopb/tsopb.pb.go +++ b/pkg/tsopb/tsopb.pb.go @@ -1,44 +1,21 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tsopb.proto -/* -Package tsopb is a generated protocol buffer package. - -It is generated from these files: - - tsopb.proto - -It has these top-level messages: - - RequestHeader - ResponseHeader - Error - TsoRequest - TsoResponse - Participant - KeyspaceGroupMember - SplitState - KeyspaceGroup - FindGroupByKeyspaceIDRequest - FindGroupByKeyspaceIDResponse - GetMinTSRequest - GetMinTSResponse -*/ package tsopb import ( + "context" "fmt" "io" "math" + math_bits "math/bits" + _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" pdpb "github.com/pingcap/kvproto/pkg/pdpb" - - _ "github.com/gogo/protobuf/gogoproto" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -50,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ErrorType int32 @@ -71,6 +48,7 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } + var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -83,7 +61,10 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } -func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{0} } + +func (ErrorType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{0} +} type RequestHeader struct { // cluster_id is the ID of the cluster which be sent to. @@ -93,13 +74,44 @@ type RequestHeader struct { // keyspace_id is the unique id of the tenant/keyspace. KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` // keyspace_group_id is the unique id of the keyspace group to which the tenant/keyspace belongs. - KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` + KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RequestHeader) Reset() { *m = RequestHeader{} } +func (m *RequestHeader) String() string { return proto.CompactTextString(m) } +func (*RequestHeader) ProtoMessage() {} +func (*RequestHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{0} +} +func (m *RequestHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestHeader.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 *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(m, src) +} +func (m *RequestHeader) XXX_Size() int { + return m.Size() +} +func (m *RequestHeader) XXX_DiscardUnknown() { + xxx_messageInfo_RequestHeader.DiscardUnknown(m) } -func (m *RequestHeader) Reset() { *m = RequestHeader{} } -func (m *RequestHeader) String() string { return proto.CompactTextString(m) } -func (*RequestHeader) ProtoMessage() {} -func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{0} } +var xxx_messageInfo_RequestHeader proto.InternalMessageInfo func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -132,17 +144,48 @@ func (m *RequestHeader) GetKeyspaceGroupId() uint32 { type ResponseHeader struct { // cluster_id is the ID of the cluster which sent the response. ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // keyspace_id is the unique id of the tenant/keyspace as the response receiver. KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` // keyspace_group_id is the unique id of the keyspace group to which the tenant/keyspace belongs. - KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` + KeyspaceGroupId uint32 `protobuf:"varint,4,opt,name=keyspace_group_id,json=keyspaceGroupId,proto3" json:"keyspace_group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } +func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } +func (*ResponseHeader) ProtoMessage() {} +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{1} +} +func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseHeader.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 *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(m, src) +} +func (m *ResponseHeader) XXX_Size() int { + return m.Size() +} +func (m *ResponseHeader) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseHeader.DiscardUnknown(m) } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{1} } +var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -173,14 +216,45 @@ func (m *ResponseHeader) GetKeyspaceGroupId() uint32 { } type Error struct { - Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=tsopb.ErrorType" json:"type,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Type ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=tsopb.ErrorType" json:"type,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{2} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.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 *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) } -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{2} } +var xxx_messageInfo_Error proto.InternalMessageInfo func (m *Error) GetType() ErrorType { if m != nil { @@ -197,15 +271,46 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + DcLocation string `protobuf:"bytes,3,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TsoRequest) Reset() { *m = TsoRequest{} } +func (m *TsoRequest) String() string { return proto.CompactTextString(m) } +func (*TsoRequest) ProtoMessage() {} +func (*TsoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{3} +} +func (m *TsoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TsoRequest.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 *TsoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoRequest.Merge(m, src) +} +func (m *TsoRequest) XXX_Size() int { + return m.Size() +} +func (m *TsoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TsoRequest.DiscardUnknown(m) } -func (m *TsoRequest) Reset() { *m = TsoRequest{} } -func (m *TsoRequest) String() string { return proto.CompactTextString(m) } -func (*TsoRequest) ProtoMessage() {} -func (*TsoRequest) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{3} } +var xxx_messageInfo_TsoRequest proto.InternalMessageInfo func (m *TsoRequest) GetHeader() *RequestHeader { if m != nil { @@ -229,15 +334,46 @@ func (m *TsoRequest) GetDcLocation() string { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` - Timestamp *pdpb.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Timestamp *pdpb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TsoResponse) Reset() { *m = TsoResponse{} } +func (m *TsoResponse) String() string { return proto.CompactTextString(m) } +func (*TsoResponse) ProtoMessage() {} +func (*TsoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{4} +} +func (m *TsoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TsoResponse.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 *TsoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoResponse.Merge(m, src) +} +func (m *TsoResponse) XXX_Size() int { + return m.Size() +} +func (m *TsoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TsoResponse.DiscardUnknown(m) } -func (m *TsoResponse) Reset() { *m = TsoResponse{} } -func (m *TsoResponse) String() string { return proto.CompactTextString(m) } -func (*TsoResponse) ProtoMessage() {} -func (*TsoResponse) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{4} } +var xxx_messageInfo_TsoResponse proto.InternalMessageInfo func (m *TsoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -267,13 +403,44 @@ type Participant struct { Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // listen_urls is the serivce endpoint list in the url format. // listen_urls[0] is primary service endpoint. - ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls,proto3" json:"listen_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Participant) Reset() { *m = Participant{} } +func (m *Participant) String() string { return proto.CompactTextString(m) } +func (*Participant) ProtoMessage() {} +func (*Participant) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{5} +} +func (m *Participant) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Participant.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 *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(m, src) +} +func (m *Participant) XXX_Size() int { + return m.Size() +} +func (m *Participant) XXX_DiscardUnknown() { + xxx_messageInfo_Participant.DiscardUnknown(m) } -func (m *Participant) Reset() { *m = Participant{} } -func (m *Participant) String() string { return proto.CompactTextString(m) } -func (*Participant) ProtoMessage() {} -func (*Participant) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{5} } +var xxx_messageInfo_Participant proto.InternalMessageInfo func (m *Participant) GetName() string { if m != nil { @@ -297,14 +464,45 @@ func (m *Participant) GetListenUrls() []string { } type KeyspaceGroupMember struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyspaceGroupMember) Reset() { *m = KeyspaceGroupMember{} } +func (m *KeyspaceGroupMember) String() string { return proto.CompactTextString(m) } +func (*KeyspaceGroupMember) ProtoMessage() {} +func (*KeyspaceGroupMember) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{6} +} +func (m *KeyspaceGroupMember) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyspaceGroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyspaceGroupMember.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 *KeyspaceGroupMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceGroupMember.Merge(m, src) +} +func (m *KeyspaceGroupMember) XXX_Size() int { + return m.Size() +} +func (m *KeyspaceGroupMember) XXX_DiscardUnknown() { + xxx_messageInfo_KeyspaceGroupMember.DiscardUnknown(m) } -func (m *KeyspaceGroupMember) Reset() { *m = KeyspaceGroupMember{} } -func (m *KeyspaceGroupMember) String() string { return proto.CompactTextString(m) } -func (*KeyspaceGroupMember) ProtoMessage() {} -func (*KeyspaceGroupMember) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{6} } +var xxx_messageInfo_KeyspaceGroupMember proto.InternalMessageInfo func (m *KeyspaceGroupMember) GetAddress() string { if m != nil { @@ -321,13 +519,44 @@ func (m *KeyspaceGroupMember) GetIsPrimary() bool { } type SplitState struct { - SplitSource uint32 `protobuf:"varint,1,opt,name=split_source,json=splitSource,proto3" json:"split_source,omitempty"` + SplitSource uint32 `protobuf:"varint,1,opt,name=split_source,json=splitSource,proto3" json:"split_source,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SplitState) Reset() { *m = SplitState{} } +func (m *SplitState) String() string { return proto.CompactTextString(m) } +func (*SplitState) ProtoMessage() {} +func (*SplitState) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{7} +} +func (m *SplitState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitState.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 *SplitState) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitState.Merge(m, src) +} +func (m *SplitState) XXX_Size() int { + return m.Size() +} +func (m *SplitState) XXX_DiscardUnknown() { + xxx_messageInfo_SplitState.DiscardUnknown(m) } -func (m *SplitState) Reset() { *m = SplitState{} } -func (m *SplitState) String() string { return proto.CompactTextString(m) } -func (*SplitState) ProtoMessage() {} -func (*SplitState) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{7} } +var xxx_messageInfo_SplitState proto.InternalMessageInfo func (m *SplitState) GetSplitSource() uint32 { if m != nil { @@ -337,16 +566,47 @@ func (m *SplitState) GetSplitSource() uint32 { } type KeyspaceGroup struct { - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - UserKind string `protobuf:"bytes,2,opt,name=user_kind,json=userKind,proto3" json:"user_kind,omitempty"` - SplitState *SplitState `protobuf:"bytes,3,opt,name=split_state,json=splitState" json:"split_state,omitempty"` - Members []*KeyspaceGroupMember `protobuf:"bytes,4,rep,name=members" json:"members,omitempty"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + UserKind string `protobuf:"bytes,2,opt,name=user_kind,json=userKind,proto3" json:"user_kind,omitempty"` + SplitState *SplitState `protobuf:"bytes,3,opt,name=split_state,json=splitState,proto3" json:"split_state,omitempty"` + Members []*KeyspaceGroupMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyspaceGroup) Reset() { *m = KeyspaceGroup{} } +func (m *KeyspaceGroup) String() string { return proto.CompactTextString(m) } +func (*KeyspaceGroup) ProtoMessage() {} +func (*KeyspaceGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_ad96434e4f0d3c2b, []int{8} +} +func (m *KeyspaceGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyspaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyspaceGroup.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 *KeyspaceGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceGroup.Merge(m, src) +} +func (m *KeyspaceGroup) XXX_Size() int { + return m.Size() +} +func (m *KeyspaceGroup) XXX_DiscardUnknown() { + xxx_messageInfo_KeyspaceGroup.DiscardUnknown(m) } -func (m *KeyspaceGroup) Reset() { *m = KeyspaceGroup{} } -func (m *KeyspaceGroup) String() string { return proto.CompactTextString(m) } -func (*KeyspaceGroup) ProtoMessage() {} -func (*KeyspaceGroup) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{8} } +var xxx_messageInfo_KeyspaceGroup proto.InternalMessageInfo func (m *KeyspaceGroup) GetId() uint32 { if m != nil { @@ -377,16 +637,45 @@ func (m *KeyspaceGroup) GetMembers() []*KeyspaceGroupMember { } type FindGroupByKeyspaceIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" 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"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FindGroupByKeyspaceIDRequest) Reset() { *m = FindGroupByKeyspaceIDRequest{} } func (m *FindGroupByKeyspaceIDRequest) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDRequest) ProtoMessage() {} func (*FindGroupByKeyspaceIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptorTsopb, []int{9} + return fileDescriptor_ad96434e4f0d3c2b, []int{9} +} +func (m *FindGroupByKeyspaceIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } +func (m *FindGroupByKeyspaceIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FindGroupByKeyspaceIDRequest.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 *FindGroupByKeyspaceIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindGroupByKeyspaceIDRequest.Merge(m, src) +} +func (m *FindGroupByKeyspaceIDRequest) XXX_Size() int { + return m.Size() +} +func (m *FindGroupByKeyspaceIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FindGroupByKeyspaceIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FindGroupByKeyspaceIDRequest proto.InternalMessageInfo func (m *FindGroupByKeyspaceIDRequest) GetHeader() *RequestHeader { if m != nil { @@ -403,17 +692,46 @@ func (m *FindGroupByKeyspaceIDRequest) GetKeyspaceId() uint32 { } type FindGroupByKeyspaceIDResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - KeyspaceGroup *KeyspaceGroup `protobuf:"bytes,2,opt,name=keyspace_group,json=keyspaceGroup" json:"keyspace_group,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceGroup *KeyspaceGroup `protobuf:"bytes,2,opt,name=keyspace_group,json=keyspaceGroup,proto3" json:"keyspace_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *FindGroupByKeyspaceIDResponse) Reset() { *m = FindGroupByKeyspaceIDResponse{} } func (m *FindGroupByKeyspaceIDResponse) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDResponse) ProtoMessage() {} func (*FindGroupByKeyspaceIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptorTsopb, []int{10} + return fileDescriptor_ad96434e4f0d3c2b, []int{10} +} +func (m *FindGroupByKeyspaceIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FindGroupByKeyspaceIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FindGroupByKeyspaceIDResponse.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 *FindGroupByKeyspaceIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindGroupByKeyspaceIDResponse.Merge(m, src) +} +func (m *FindGroupByKeyspaceIDResponse) XXX_Size() int { + return m.Size() +} +func (m *FindGroupByKeyspaceIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FindGroupByKeyspaceIDResponse.DiscardUnknown(m) } +var xxx_messageInfo_FindGroupByKeyspaceIDResponse proto.InternalMessageInfo + func (m *FindGroupByKeyspaceIDResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -429,14 +747,45 @@ func (m *FindGroupByKeyspaceIDResponse) GetKeyspaceGroup() *KeyspaceGroup { } type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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_ad96434e4f0d3c2b, []int{11} +} +func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 (m *GetMinTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSRequest.Merge(m, src) +} +func (m *GetMinTSRequest) XXX_Size() int { + return m.Size() +} +func (m *GetMinTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) } -func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } -func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } -func (*GetMinTSRequest) ProtoMessage() {} -func (*GetMinTSRequest) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{11} } +var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo func (m *GetMinTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -453,18 +802,49 @@ func (m *GetMinTSRequest) GetDcLocation() string { } type GetMinTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Timestamp *pdpb.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp *pdpb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // the count of keyspace group primaries that the TSO server/pod is serving KeyspaceGroupsServing uint32 `protobuf:"varint,3,opt,name=keyspace_groups_serving,json=keyspaceGroupsServing,proto3" json:"keyspace_groups_serving,omitempty"` // the total count of keyspace groups - KeyspaceGroupsTotal uint32 `protobuf:"varint,4,opt,name=keyspace_groups_total,json=keyspaceGroupsTotal,proto3" json:"keyspace_groups_total,omitempty"` + KeyspaceGroupsTotal uint32 `protobuf:"varint,4,opt,name=keyspace_groups_total,json=keyspaceGroupsTotal,proto3" json:"keyspace_groups_total,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +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_ad96434e4f0d3c2b, []int{12} +} +func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +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 (m *GetMinTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSResponse.Merge(m, src) +} +func (m *GetMinTSResponse) XXX_Size() int { + return m.Size() +} +func (m *GetMinTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) } -func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } -func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } -func (*GetMinTSResponse) ProtoMessage() {} -func (*GetMinTSResponse) Descriptor() ([]byte, []int) { return fileDescriptorTsopb, []int{12} } +var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo func (m *GetMinTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -495,6 +875,7 @@ func (m *GetMinTSResponse) GetKeyspaceGroupsTotal() uint32 { } func init() { + proto.RegisterEnum("tsopb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "tsopb.RequestHeader") proto.RegisterType((*ResponseHeader)(nil), "tsopb.ResponseHeader") proto.RegisterType((*Error)(nil), "tsopb.Error") @@ -508,7 +889,68 @@ func init() { proto.RegisterType((*FindGroupByKeyspaceIDResponse)(nil), "tsopb.FindGroupByKeyspaceIDResponse") proto.RegisterType((*GetMinTSRequest)(nil), "tsopb.GetMinTSRequest") proto.RegisterType((*GetMinTSResponse)(nil), "tsopb.GetMinTSResponse") - proto.RegisterEnum("tsopb.ErrorType", ErrorType_name, ErrorType_value) +} + +func init() { proto.RegisterFile("tsopb.proto", fileDescriptor_ad96434e4f0d3c2b) } + +var fileDescriptor_ad96434e4f0d3c2b = []byte{ + // 881 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xce, 0xf8, 0x23, 0xf5, 0xbe, 0x5b, 0x27, 0x9b, 0xa9, 0xd3, 0x5a, 0x2e, 0x0d, 0x61, 0xa9, + 0x50, 0x54, 0x51, 0x17, 0x2d, 0x88, 0x0b, 0xe2, 0xe0, 0xd4, 0x26, 0xb5, 0xe2, 0xd8, 0xd1, 0xec, + 0xa6, 0x88, 0xd3, 0xb2, 0xf1, 0x8e, 0xcc, 0x28, 0xf6, 0xee, 0x76, 0x66, 0x1c, 0xc9, 0xe2, 0xc4, + 0x99, 0x3f, 0xd0, 0x23, 0x27, 0xc4, 0x4f, 0xe1, 0xc8, 0x91, 0x03, 0x42, 0x28, 0xfc, 0x11, 0xb4, + 0xb3, 0xb3, 0xb1, 0xd7, 0x0d, 0x2d, 0x8a, 0x38, 0xed, 0xcc, 0xf3, 0xbe, 0x33, 0xcf, 0xfb, 0xf5, + 0xcc, 0x82, 0x29, 0x45, 0x9c, 0x9c, 0xb7, 0x13, 0x1e, 0xcb, 0x18, 0x57, 0xd5, 0xa6, 0x05, 0x49, + 0x98, 0x43, 0xad, 0xc6, 0x24, 0x9e, 0xc4, 0x6a, 0xf9, 0x2c, 0x5d, 0x69, 0x74, 0x9b, 0xcf, 0x85, + 0x54, 0xcb, 0x0c, 0xb0, 0x5f, 0x23, 0xa8, 0x13, 0xfa, 0x6a, 0x4e, 0x85, 0x7c, 0x41, 0x83, 0x90, + 0x72, 0xfc, 0x08, 0x60, 0x3c, 0x9d, 0x0b, 0x49, 0xb9, 0xcf, 0xc2, 0x26, 0xda, 0x47, 0x07, 0x15, + 0x62, 0x68, 0xa4, 0x1f, 0xe2, 0x87, 0x60, 0x08, 0x1a, 0x85, 0x99, 0xb5, 0xa4, 0xac, 0xb5, 0x0c, + 0xe8, 0x87, 0xf8, 0x7d, 0x30, 0x2f, 0xe8, 0x42, 0x24, 0xc1, 0x98, 0xa6, 0xe6, 0xf2, 0x3e, 0x3a, + 0xa8, 0x13, 0xc8, 0xa1, 0x7e, 0x88, 0x9f, 0xc0, 0xce, 0xb5, 0xc3, 0x84, 0xc7, 0xf3, 0x24, 0x75, + 0xab, 0x28, 0xb7, 0xed, 0xdc, 0x70, 0x94, 0xe2, 0xfd, 0xd0, 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, + 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, + 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, + 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, + 0xe2, 0x26, 0xdc, 0x99, 0x51, 0x21, 0x82, 0x09, 0x55, 0x11, 0x1a, 0x24, 0xdf, 0xda, 0xaf, 0x00, + 0x3c, 0x11, 0xeb, 0x46, 0xe0, 0x8f, 0x61, 0xf3, 0x3b, 0x95, 0xb0, 0xba, 0xcf, 0x74, 0x1a, 0xfa, + 0xbe, 0x42, 0xa3, 0x88, 0xf6, 0xc1, 0x0d, 0xa8, 0x8e, 0xe3, 0x79, 0x24, 0xd5, 0x9d, 0x75, 0x92, + 0x6d, 0xd2, 0x3c, 0xc3, 0xb1, 0x3f, 0x8d, 0xc7, 0x81, 0x64, 0x71, 0xa4, 0xf2, 0x34, 0x08, 0x84, + 0xe3, 0x81, 0x46, 0xec, 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 0x1a, 0x79, 0xae, 0x47, 0x3a, 0xa7, 0xa7, 0xbd, 0xae, 0x55, 0xc2, 0x4d, 0x68, 0x74, 0x06, + 0xa4, 0xd7, 0xe9, 0x7e, 0x53, 0xb4, 0x94, 0xf1, 0x0e, 0xd4, 0xfb, 0xc3, 0x97, 0x9d, 0x41, 0xbf, + 0xeb, 0xbf, 0xec, 0x0c, 0xce, 0x7a, 0x56, 0x05, 0xdf, 0x07, 0xfc, 0x7c, 0x70, 0xe6, 0x7a, 0x3d, + 0xe2, 0x9f, 0xf4, 0xdd, 0x93, 0x8e, 0xf7, 0xfc, 0x45, 0xaf, 0x6b, 0x55, 0x9d, 0x3f, 0x11, 0x94, + 0x3d, 0x77, 0x84, 0x1d, 0x28, 0x7b, 0x22, 0xc6, 0xb9, 0x3c, 0x96, 0x6f, 0x68, 0x0b, 0xaf, 0x42, + 0x59, 0x6d, 0xed, 0x8d, 0x03, 0xf4, 0x09, 0xc2, 0x21, 0xec, 0xde, 0x38, 0x86, 0xf8, 0x43, 0x7d, + 0xe4, 0x6d, 0xa2, 0x68, 0x3d, 0x7e, 0xbb, 0x53, 0xce, 0x84, 0xbf, 0x84, 0x5a, 0xde, 0x7c, 0x7c, + 0x5f, 0x9f, 0x59, 0x1b, 0xb8, 0xd6, 0x83, 0x37, 0xf0, 0xfc, 0xf8, 0xe1, 0x47, 0xbf, 0xff, 0x52, + 0x43, 0xbf, 0x5e, 0xed, 0xa1, 0xdf, 0xae, 0xf6, 0xd0, 0x5f, 0x57, 0x7b, 0xe8, 0xf5, 0xdf, 0x7b, + 0x1b, 0x60, 0xc5, 0x7c, 0xd2, 0x96, 0xec, 0xe2, 0xb2, 0x7d, 0x71, 0xa9, 0xfe, 0xdf, 0xe7, 0x9b, + 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -519,8 +961,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for TSO service - +// TSOClient is the client API for TSO service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TSOClient interface { Tso(ctx context.Context, opts ...grpc.CallOption) (TSO_TsoClient, error) // Find the keyspace group that the keyspace belongs to by keyspace id. @@ -541,7 +984,7 @@ func NewTSOClient(cc *grpc.ClientConn) TSOClient { } func (c *tSOClient) Tso(ctx context.Context, opts ...grpc.CallOption) (TSO_TsoClient, error) { - stream, err := grpc.NewClientStream(ctx, &_TSO_serviceDesc.Streams[0], c.cc, "/tsopb.TSO/Tso", opts...) + stream, err := c.cc.NewStream(ctx, &_TSO_serviceDesc.Streams[0], "/tsopb.TSO/Tso", opts...) if err != nil { return nil, err } @@ -573,7 +1016,7 @@ func (x *tSOTsoClient) Recv() (*TsoResponse, error) { func (c *tSOClient) FindGroupByKeyspaceID(ctx context.Context, in *FindGroupByKeyspaceIDRequest, opts ...grpc.CallOption) (*FindGroupByKeyspaceIDResponse, error) { out := new(FindGroupByKeyspaceIDResponse) - err := grpc.Invoke(ctx, "/tsopb.TSO/FindGroupByKeyspaceID", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tsopb.TSO/FindGroupByKeyspaceID", in, out, opts...) if err != nil { return nil, err } @@ -582,15 +1025,14 @@ func (c *tSOClient) FindGroupByKeyspaceID(ctx context.Context, in *FindGroupByKe func (c *tSOClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) { out := new(GetMinTSResponse) - err := grpc.Invoke(ctx, "/tsopb.TSO/GetMinTS", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/tsopb.TSO/GetMinTS", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for TSO service - +// TSOServer is the server API for TSO service. type TSOServer interface { Tso(TSO_TsoServer) error // Find the keyspace group that the keyspace belongs to by keyspace id. @@ -602,6 +1044,20 @@ type TSOServer interface { GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) } +// UnimplementedTSOServer can be embedded to have forward compatible implementations. +type UnimplementedTSOServer struct { +} + +func (*UnimplementedTSOServer) Tso(srv TSO_TsoServer) error { + return status.Errorf(codes.Unimplemented, "method Tso not implemented") +} +func (*UnimplementedTSOServer) FindGroupByKeyspaceID(ctx context.Context, req *FindGroupByKeyspaceIDRequest) (*FindGroupByKeyspaceIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindGroupByKeyspaceID not implemented") +} +func (*UnimplementedTSOServer) GetMinTS(ctx context.Context, req *GetMinTSRequest) (*GetMinTSResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMinTS not implemented") +} + func RegisterTSOServer(s *grpc.Server, srv TSOServer) { s.RegisterService(&_TSO_serviceDesc, srv) } @@ -695,7 +1151,7 @@ var _TSO_serviceDesc = grpc.ServiceDesc{ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -703,37 +1159,46 @@ func (m *RequestHeader) Marshal() (dAtA []byte, err error) { } func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.SenderId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.SenderId)) + if m.KeyspaceGroupId != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) + i-- + dAtA[i] = 0x20 } if m.KeyspaceId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x18 } - if m.KeyspaceGroupId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) + if m.SenderId != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.SenderId)) + i-- + dAtA[i] = 0x10 + } + if m.ClusterId != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -741,42 +1206,53 @@ func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { } func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ClusterId != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Error != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Error.Size())) - n1, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.KeyspaceGroupId != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) + i-- + dAtA[i] = 0x20 } if m.KeyspaceId != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x18 } - if m.KeyspaceGroupId != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -784,28 +1260,38 @@ func (m *Error) Marshal() (dAtA []byte, err error) { } func (m *Error) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Type)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Message) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Message) + copy(dAtA[i:], m.Message) i = encodeVarintTsopb(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TsoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -813,38 +1299,50 @@ func (m *TsoRequest) Marshal() (dAtA []byte, err error) { } func (m *TsoRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + 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 m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n2, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.DcLocation) > 0 { + i -= len(m.DcLocation) + copy(dAtA[i:], m.DcLocation) + i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) + i-- + dAtA[i] = 0x1a } if m.Count != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 } - if len(m.DcLocation) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) - i += copy(dAtA[i:], m.DcLocation) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *TsoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -852,42 +1350,55 @@ func (m *TsoResponse) Marshal() (dAtA []byte, err error) { } func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n3, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Timestamp != nil { + { + size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0x1a } if m.Count != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 } - if m.Timestamp != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Timestamp.Size())) - n4, err := m.Timestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) } - i += n4 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Participant) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -895,43 +1406,47 @@ func (m *Participant) Marshal() (dAtA []byte, err error) { } func (m *Participant) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Participant) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Id != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.ListenUrls) > 0 { - for _, s := range m.ListenUrls { + for iNdEx := len(m.ListenUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ListenUrls[iNdEx]) + copy(dAtA[i:], m.ListenUrls[iNdEx]) + i = encodeVarintTsopb(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if m.Id != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *KeyspaceGroupMember) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -939,33 +1454,43 @@ func (m *KeyspaceGroupMember) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceGroupMember) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyspaceGroupMember) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Address) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.IsPrimary { - dAtA[i] = 0x10 - i++ + i-- if m.IsPrimary { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SplitState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -973,22 +1498,31 @@ func (m *SplitState) Marshal() (dAtA []byte, err error) { } func (m *SplitState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } if m.SplitSource != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.SplitSource)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *KeyspaceGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -996,50 +1530,64 @@ func (m *KeyspaceGroup) Marshal() (dAtA []byte, err error) { } func (m *KeyspaceGroup) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyspaceGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) - } - if len(m.UserKind) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(len(m.UserKind))) - i += copy(dAtA[i:], m.UserKind) - } - if m.SplitState != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.SplitState.Size())) - n5, err := m.SplitState.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.Members) > 0 { - for _, msg := range m.Members { + 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 = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x22 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + } + } + if m.SplitState != nil { + { + size, err := m.SplitState.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a + } + if len(m.UserKind) > 0 { + i -= len(m.UserKind) + copy(dAtA[i:], m.UserKind) + i = encodeVarintTsopb(dAtA, i, uint64(len(m.UserKind))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *FindGroupByKeyspaceIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1047,32 +1595,43 @@ func (m *FindGroupByKeyspaceIDRequest) Marshal() (dAtA []byte, err error) { } func (m *FindGroupByKeyspaceIDRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FindGroupByKeyspaceIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n6, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.KeyspaceId != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *FindGroupByKeyspaceIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1080,37 +1639,50 @@ func (m *FindGroupByKeyspaceIDResponse) Marshal() (dAtA []byte, err error) { } func (m *FindGroupByKeyspaceIDResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FindGroupByKeyspaceIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n7, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if m.KeyspaceGroup != nil { + { + size, err := m.KeyspaceGroup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroup.Size())) - n8, err := m.KeyspaceGroup.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1118,33 +1690,45 @@ func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMinTSRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + 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 m.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n9, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n9 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } if len(m.DcLocation) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.DcLocation) + copy(dAtA[i:], m.DcLocation) i = encodeVarintTsopb(dAtA, i, uint64(len(m.DcLocation))) - i += copy(dAtA[i:], m.DcLocation) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -1152,53 +1736,71 @@ func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMinTSResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + 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.Header != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Header.Size())) - n10, err := m.Header.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n10 + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.Timestamp != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.Timestamp.Size())) - n11, err := m.Timestamp.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n11 + if m.KeyspaceGroupsTotal != 0 { + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsTotal)) + i-- + dAtA[i] = 0x20 } if m.KeyspaceGroupsServing != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsServing)) + i-- + dAtA[i] = 0x18 } - if m.KeyspaceGroupsTotal != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsTotal)) + if m.Timestamp != nil { + { + size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTsopb(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 = encodeVarintTsopb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintTsopb(dAtA []byte, offset int, v uint64) int { + offset -= sovTsopb(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *RequestHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1213,10 +1815,16 @@ func (m *RequestHeader) Size() (n int) { if m.KeyspaceGroupId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *ResponseHeader) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.ClusterId != 0 { @@ -1232,10 +1840,16 @@ func (m *ResponseHeader) Size() (n int) { if m.KeyspaceGroupId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Error) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -1245,10 +1859,16 @@ func (m *Error) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TsoRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1262,10 +1882,16 @@ func (m *TsoRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *TsoResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1279,10 +1905,16 @@ func (m *TsoResponse) Size() (n int) { l = m.Timestamp.Size() n += 1 + l + sovTsopb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *Participant) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Name) @@ -1298,10 +1930,16 @@ func (m *Participant) Size() (n int) { n += 1 + l + sovTsopb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyspaceGroupMember) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Address) @@ -1311,19 +1949,31 @@ func (m *KeyspaceGroupMember) Size() (n int) { if m.IsPrimary { n += 2 } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *SplitState) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.SplitSource != 0 { n += 1 + sovTsopb(uint64(m.SplitSource)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *KeyspaceGroup) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Id != 0 { @@ -1343,10 +1993,16 @@ func (m *KeyspaceGroup) Size() (n int) { n += 1 + l + sovTsopb(uint64(l)) } } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1356,10 +2012,16 @@ func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { if m.KeyspaceId != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceId)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1370,10 +2032,16 @@ func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { l = m.KeyspaceGroup.Size() n += 1 + l + sovTsopb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMinTSRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1384,10 +2052,16 @@ func (m *GetMinTSRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTsopb(uint64(l)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func (m *GetMinTSResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Header != nil { @@ -1404,18 +2078,14 @@ func (m *GetMinTSResponse) Size() (n int) { if m.KeyspaceGroupsTotal != 0 { n += 1 + sovTsopb(uint64(m.KeyspaceGroupsTotal)) } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } return n } func sovTsopb(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTsopb(x uint64) (n int) { return sovTsopb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1435,7 +2105,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1463,7 +2133,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1482,7 +2152,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= (uint64(b) & 0x7F) << shift + m.SenderId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1501,7 +2171,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1520,7 +2190,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupId |= (uint32(b) & 0x7F) << shift + m.KeyspaceGroupId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1531,12 +2201,13 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1561,7 +2232,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1589,7 +2260,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= (uint64(b) & 0x7F) << shift + m.ClusterId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1608,7 +2279,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1617,6 +2288,9 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1641,7 +2315,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1660,7 +2334,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupId |= (uint32(b) & 0x7F) << shift + m.KeyspaceGroupId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1671,12 +2345,13 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1701,7 +2376,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1729,7 +2404,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } @@ -1748,7 +2423,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1758,6 +2433,9 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1769,12 +2447,13 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1799,7 +2478,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1827,7 +2506,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1836,6 +2515,9 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1860,7 +2542,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (uint32(b) & 0x7F) << shift + m.Count |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1879,7 +2561,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1889,6 +2571,9 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1900,12 +2585,13 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -1930,7 +2616,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1958,7 +2644,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1967,6 +2653,9 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1991,7 +2680,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= (uint32(b) & 0x7F) << shift + m.Count |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2010,7 +2699,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2019,6 +2708,9 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2035,12 +2727,13 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2065,7 +2758,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2093,7 +2786,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2103,6 +2796,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2122,7 +2818,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint64(b) & 0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2141,7 +2837,7 @@ func (m *Participant) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2151,6 +2847,9 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2162,12 +2861,13 @@ func (m *Participant) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2192,7 +2892,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2220,7 +2920,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2230,6 +2930,9 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2249,7 +2952,7 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2261,12 +2964,13 @@ func (m *KeyspaceGroupMember) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2291,7 +2995,7 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2319,7 +3023,7 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SplitSource |= (uint32(b) & 0x7F) << shift + m.SplitSource |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2330,12 +3034,13 @@ func (m *SplitState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2360,7 +3065,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2388,7 +3093,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (uint32(b) & 0x7F) << shift + m.Id |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2407,7 +3112,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2417,6 +3122,9 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2436,7 +3144,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2445,6 +3153,9 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2469,7 +3180,7 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2478,6 +3189,9 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2492,12 +3206,13 @@ func (m *KeyspaceGroup) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2522,7 +3237,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2550,7 +3265,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2559,6 +3274,9 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2583,7 +3301,7 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= (uint32(b) & 0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2594,12 +3312,13 @@ func (m *FindGroupByKeyspaceIDRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2624,7 +3343,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2652,7 +3371,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2661,6 +3380,9 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2685,7 +3407,7 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2694,6 +3416,9 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2710,12 +3435,13 @@ func (m *FindGroupByKeyspaceIDResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2740,7 +3466,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2768,7 +3494,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2777,6 +3503,9 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2801,7 +3530,7 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2811,6 +3540,9 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2822,12 +3554,13 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2852,7 +3585,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2880,7 +3613,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2889,6 +3622,9 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2913,7 +3649,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2922,6 +3658,9 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTsopb } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTsopb + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2946,7 +3685,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupsServing |= (uint32(b) & 0x7F) << shift + m.KeyspaceGroupsServing |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2965,7 +3704,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceGroupsTotal |= (uint32(b) & 0x7F) << shift + m.KeyspaceGroupsTotal |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -2976,12 +3715,13 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTsopb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -2994,6 +3734,7 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { func skipTsopb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3025,10 +3766,8 @@ func skipTsopb(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3045,115 +3784,34 @@ func skipTsopb(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTsopb } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTsopb - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTsopb(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTsopb + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTsopb + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTsopb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTsopb = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTsopb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTsopb = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTsopb = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tsopb.proto", fileDescriptorTsopb) } - -var fileDescriptorTsopb = []byte{ - // 881 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xce, 0xf8, 0x23, 0xf5, 0xbe, 0x5b, 0x27, 0x9b, 0xa9, 0xd3, 0x5a, 0x2e, 0x0d, 0x61, 0xa9, - 0x50, 0x54, 0x51, 0x17, 0x2d, 0x88, 0x0b, 0xe2, 0xe0, 0xd4, 0x26, 0xb5, 0xe2, 0xd8, 0xd1, 0xec, - 0xa6, 0x88, 0xd3, 0xb2, 0xf1, 0x8e, 0xcc, 0x28, 0xf6, 0xee, 0x76, 0x66, 0x1c, 0xc9, 0xe2, 0xc4, - 0x99, 0x3f, 0xd0, 0x23, 0x27, 0xc4, 0x4f, 0xe1, 0xc8, 0x91, 0x03, 0x42, 0x28, 0xfc, 0x11, 0xb4, - 0xb3, 0xb3, 0xb1, 0xd7, 0x0d, 0x2d, 0x8a, 0x38, 0xed, 0xcc, 0xf3, 0xbe, 0x33, 0xcf, 0xfb, 0xf5, - 0xcc, 0x82, 0x29, 0x45, 0x9c, 0x9c, 0xb7, 0x13, 0x1e, 0xcb, 0x18, 0x57, 0xd5, 0xa6, 0x05, 0x49, - 0x98, 0x43, 0xad, 0xc6, 0x24, 0x9e, 0xc4, 0x6a, 0xf9, 0x2c, 0x5d, 0x69, 0x74, 0x9b, 0xcf, 0x85, - 0x54, 0xcb, 0x0c, 0xb0, 0x5f, 0x23, 0xa8, 0x13, 0xfa, 0x6a, 0x4e, 0x85, 0x7c, 0x41, 0x83, 0x90, - 0x72, 0xfc, 0x08, 0x60, 0x3c, 0x9d, 0x0b, 0x49, 0xb9, 0xcf, 0xc2, 0x26, 0xda, 0x47, 0x07, 0x15, - 0x62, 0x68, 0xa4, 0x1f, 0xe2, 0x87, 0x60, 0x08, 0x1a, 0x85, 0x99, 0xb5, 0xa4, 0xac, 0xb5, 0x0c, - 0xe8, 0x87, 0xf8, 0x7d, 0x30, 0x2f, 0xe8, 0x42, 0x24, 0xc1, 0x98, 0xa6, 0xe6, 0xf2, 0x3e, 0x3a, - 0xa8, 0x13, 0xc8, 0xa1, 0x7e, 0x88, 0x9f, 0xc0, 0xce, 0xb5, 0xc3, 0x84, 0xc7, 0xf3, 0x24, 0x75, - 0xab, 0x28, 0xb7, 0xed, 0xdc, 0x70, 0x94, 0xe2, 0xfd, 0xd0, 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, - 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, - 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, - 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, - 0xe2, 0x26, 0xdc, 0x99, 0x51, 0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 0xf0, 0xfc, 0xf8, 0xe1, 0x47, 0xbf, 0xff, 0x52, - 0x43, 0xbf, 0x5e, 0xed, 0xa1, 0xdf, 0xae, 0xf6, 0xd0, 0x5f, 0x57, 0x7b, 0xe8, 0xf5, 0xdf, 0x7b, - 0x1b, 0x60, 0xc5, 0x7c, 0xd2, 0x96, 0xec, 0xe2, 0xb2, 0x7d, 0x71, 0xa9, 0xfe, 0xdf, 0xe7, 0x9b, - 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, - 0x00, -} diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index c0a9e4746..b9d3474ee 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -1560,10 +1560,6 @@ message ScanTxnEntriesRequest { bytes end_key = 3; uint32 limit = 4; bool key_only = 5; - - // entries will be filtered by commit_ts >= start_ts. - // uncommitted entries will be kept. - uint64 start_ts = 6; } message ScanTxnEntriesResponse { diff --git a/scripts/proto.lock b/scripts/proto.lock index 0ac40d889..700b52597 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -11305,11 +11305,6 @@ "id": 5, "name": "key_only", "type": "bool" - }, - { - "id": 6, - "name": "start_ts", - "type": "uint64" } ] }, From c464e2546517208b8d230d739f08359f3d9454f2 Mon Sep 17 00:00:00 2001 From: qupeng Date: Mon, 16 Oct 2023 15:52:42 +0800 Subject: [PATCH 3/4] some adjusts Signed-off-by: qupeng --- pkg/kvrpcpb/kvrpcpb.pb.go | 954 +++++++++++++++++++++----------------- pkg/tikvpb/tikvpb.pb.go | 428 ++++++++--------- proto/kvrpcpb.proto | 18 +- proto/tikvpb.proto | 6 +- scripts/proto.lock | 42 +- 5 files changed, 778 insertions(+), 670 deletions(-) diff --git a/pkg/kvrpcpb/kvrpcpb.pb.go b/pkg/kvrpcpb/kvrpcpb.pb.go index 5f1f627e1..2191f2f85 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -10538,32 +10538,33 @@ func (m *TxnEntry_Commit) GetCommitTs() uint64 { return 0 } -// ScanTxnEntriesRequest is like ScanRequest, but retrieves transaction entries +// ScanTxnEntryRequest is like ScanRequest, but retrieves transaction entries // instead of key-value pairs. -type ScanTxnEntriesRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` +type ScanTxnEntryRequest struct { + Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + MaxVersion uint64 `protobuf:"varint,2,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` + KeyOnly bool `protobuf:"varint,3,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` // `start_key` and `end_key` must be specified; `limit` is optional. - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - KeyOnly bool `protobuf:"varint,5,opt,name=key_only,json=keyOnly,proto3" json:"key_only,omitempty"` + StartKey []byte `protobuf:"bytes,4,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,5,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + Limit uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ScanTxnEntriesRequest) Reset() { *m = ScanTxnEntriesRequest{} } -func (m *ScanTxnEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*ScanTxnEntriesRequest) ProtoMessage() {} -func (*ScanTxnEntriesRequest) Descriptor() ([]byte, []int) { +func (m *ScanTxnEntryRequest) Reset() { *m = ScanTxnEntryRequest{} } +func (m *ScanTxnEntryRequest) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntryRequest) ProtoMessage() {} +func (*ScanTxnEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1afe832be69693c7, []int{132} } -func (m *ScanTxnEntriesRequest) XXX_Unmarshal(b []byte) error { +func (m *ScanTxnEntryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ScanTxnEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ScanTxnEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ScanTxnEntriesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_ScanTxnEntryRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -10573,73 +10574,81 @@ func (m *ScanTxnEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *ScanTxnEntriesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanTxnEntriesRequest.Merge(m, src) +func (m *ScanTxnEntryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanTxnEntryRequest.Merge(m, src) } -func (m *ScanTxnEntriesRequest) XXX_Size() int { +func (m *ScanTxnEntryRequest) XXX_Size() int { return m.Size() } -func (m *ScanTxnEntriesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScanTxnEntriesRequest.DiscardUnknown(m) +func (m *ScanTxnEntryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ScanTxnEntryRequest.DiscardUnknown(m) } -var xxx_messageInfo_ScanTxnEntriesRequest proto.InternalMessageInfo +var xxx_messageInfo_ScanTxnEntryRequest proto.InternalMessageInfo -func (m *ScanTxnEntriesRequest) GetContext() *Context { +func (m *ScanTxnEntryRequest) GetContext() *Context { if m != nil { return m.Context } return nil } -func (m *ScanTxnEntriesRequest) GetStartKey() []byte { +func (m *ScanTxnEntryRequest) GetMaxVersion() uint64 { + if m != nil { + return m.MaxVersion + } + return 0 +} + +func (m *ScanTxnEntryRequest) GetKeyOnly() bool { + if m != nil { + return m.KeyOnly + } + return false +} + +func (m *ScanTxnEntryRequest) GetStartKey() []byte { if m != nil { return m.StartKey } return nil } -func (m *ScanTxnEntriesRequest) GetEndKey() []byte { +func (m *ScanTxnEntryRequest) GetEndKey() []byte { if m != nil { return m.EndKey } return nil } -func (m *ScanTxnEntriesRequest) GetLimit() uint32 { +func (m *ScanTxnEntryRequest) GetLimit() uint32 { if m != nil { return m.Limit } return 0 } -func (m *ScanTxnEntriesRequest) GetKeyOnly() bool { - if m != nil { - return m.KeyOnly - } - return false -} - -type ScanTxnEntriesResponse struct { +type ScanTxnEntryResponse struct { RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - Entries []*TxnEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + Error *KeyError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Entries []*TxnEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ScanTxnEntriesResponse) Reset() { *m = ScanTxnEntriesResponse{} } -func (m *ScanTxnEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*ScanTxnEntriesResponse) ProtoMessage() {} -func (*ScanTxnEntriesResponse) Descriptor() ([]byte, []int) { +func (m *ScanTxnEntryResponse) Reset() { *m = ScanTxnEntryResponse{} } +func (m *ScanTxnEntryResponse) String() string { return proto.CompactTextString(m) } +func (*ScanTxnEntryResponse) ProtoMessage() {} +func (*ScanTxnEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1afe832be69693c7, []int{133} } -func (m *ScanTxnEntriesResponse) XXX_Unmarshal(b []byte) error { +func (m *ScanTxnEntryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ScanTxnEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ScanTxnEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ScanTxnEntriesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_ScanTxnEntryResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -10649,26 +10658,33 @@ func (m *ScanTxnEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *ScanTxnEntriesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScanTxnEntriesResponse.Merge(m, src) +func (m *ScanTxnEntryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanTxnEntryResponse.Merge(m, src) } -func (m *ScanTxnEntriesResponse) XXX_Size() int { +func (m *ScanTxnEntryResponse) XXX_Size() int { return m.Size() } -func (m *ScanTxnEntriesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScanTxnEntriesResponse.DiscardUnknown(m) +func (m *ScanTxnEntryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ScanTxnEntryResponse.DiscardUnknown(m) } -var xxx_messageInfo_ScanTxnEntriesResponse proto.InternalMessageInfo +var xxx_messageInfo_ScanTxnEntryResponse proto.InternalMessageInfo -func (m *ScanTxnEntriesResponse) GetRegionError() *errorpb.Error { +func (m *ScanTxnEntryResponse) GetRegionError() *errorpb.Error { if m != nil { return m.RegionError } return nil } -func (m *ScanTxnEntriesResponse) GetEntries() []*TxnEntry { +func (m *ScanTxnEntryResponse) GetError() *KeyError { + if m != nil { + return m.Error + } + return nil +} + +func (m *ScanTxnEntryResponse) GetEntries() []*TxnEntry { if m != nil { return m.Entries } @@ -10825,20 +10841,20 @@ func init() { proto.RegisterType((*TxnEntry)(nil), "kvrpcpb.TxnEntry") proto.RegisterType((*TxnEntry_Prewrite)(nil), "kvrpcpb.TxnEntry.Prewrite") proto.RegisterType((*TxnEntry_Commit)(nil), "kvrpcpb.TxnEntry.Commit") - proto.RegisterType((*ScanTxnEntriesRequest)(nil), "kvrpcpb.ScanTxnEntriesRequest") - proto.RegisterType((*ScanTxnEntriesResponse)(nil), "kvrpcpb.ScanTxnEntriesResponse") + proto.RegisterType((*ScanTxnEntryRequest)(nil), "kvrpcpb.ScanTxnEntryRequest") + proto.RegisterType((*ScanTxnEntryResponse)(nil), "kvrpcpb.ScanTxnEntryResponse") } func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } var fileDescriptor_1afe832be69693c7 = []byte{ - // 7030 bytes of a gzipped FileDescriptorProto + // 7043 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x5b, 0x6c, 0x24, 0xc9, 0x71, 0x20, 0xab, 0xbb, 0xc9, 0x6e, 0x46, 0x93, 0xcd, 0x62, 0xf2, 0xd5, 0xe4, 0xcc, 0xec, 0xcc, 0xd4, 0x6a, 0x76, 0x47, 0x5c, 0x2d, 0x47, 0xcb, 0x7d, 0xe8, 0x79, 0xab, 0x9d, 0xe1, 0xbc, 0xb8, 0xf3, 0x20, 0x51, 0xdd, 0x3b, 0x7b, 0x8b, 0x3b, 0xa9, 0x94, 0xac, 0x4e, 0x76, 0x17, 0x58, 0x5d, 0x55, 0x5b, 0x99, 0x4d, 0xb2, 0x75, 0x38, 0xe0, 0x84, 0x7b, 0x00, 0x3a, 0xdc, 0xe9, 0x4e, 0x82, - 0x00, 0x1d, 0x20, 0xe1, 0x80, 0xfb, 0x10, 0x70, 0xd2, 0x87, 0x01, 0xc3, 0x3f, 0x7e, 0x7c, 0x18, + 0x00, 0x1d, 0x20, 0xe1, 0x0e, 0xf7, 0x21, 0xc0, 0xf2, 0x87, 0x01, 0xc3, 0x3f, 0x7e, 0x7c, 0x18, 0x06, 0xf4, 0xb1, 0x36, 0x2c, 0x48, 0x80, 0x61, 0xc8, 0x90, 0x0c, 0xc1, 0x58, 0x03, 0xfe, 0xf6, 0x8f, 0x61, 0xff, 0x18, 0x36, 0xf2, 0x55, 0x8f, 0xee, 0x26, 0x87, 0xc3, 0xe1, 0x8c, 0x64, 0x7f, 0x75, 0x57, 0x44, 0x64, 0x66, 0x64, 0x44, 0x64, 0x64, 0x64, 0x66, 0x64, 0xc2, 0xf4, 0xde, 0x7e, @@ -10897,7 +10913,7 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x42, 0x14, 0xac, 0x7f, 0x34, 0xc0, 0x4c, 0x25, 0x71, 0x7a, 0x17, 0xf3, 0x49, 0x98, 0x10, 0xd8, 0xe1, 0xf1, 0x9c, 0x38, 0x0f, 0x45, 0x30, 0x6c, 0x99, 0xc5, 0x61, 0xcb, 0x7c, 0x19, 0x4c, 0x69, 0x49, 0x19, 0x32, 0x39, 0xa0, 0xa7, 0x43, 0x6e, 0x50, 0x09, 0xe1, 0x88, 0xc9, 0x65, 0xfc, 0x09, - 0x26, 0x17, 0xeb, 0xc7, 0x25, 0x58, 0xcc, 0x08, 0x99, 0xbb, 0x92, 0x7f, 0x2d, 0x1e, 0x6d, 0xc8, + 0x26, 0x17, 0xeb, 0x47, 0x25, 0x58, 0xcc, 0x08, 0x99, 0xbb, 0x92, 0x7f, 0x2d, 0x1e, 0x6d, 0xc8, 0x4b, 0x4c, 0x8c, 0xf4, 0x12, 0x1e, 0x75, 0x76, 0xbd, 0x98, 0x32, 0xc9, 0x47, 0x59, 0x0c, 0xdc, 0xaa, 0x47, 0x6f, 0x73, 0x98, 0xe0, 0xe3, 0x32, 0x4c, 0x1d, 0x60, 0xae, 0x02, 0xaf, 0x4b, 0xc2, 0x1e, 0x13, 0xce, 0xa8, 0x68, 0x57, 0x39, 0xac, 0x29, 0x41, 0xa8, 0x0e, 0xe3, 0xbb, 0x61, 0xec, @@ -10925,7 +10941,7 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0xa3, 0x18, 0xa1, 0xa2, 0xe2, 0x93, 0x4c, 0x04, 0xbf, 0x6d, 0xc0, 0x5c, 0xf3, 0x30, 0xb8, 0x4b, 0x70, 0xcc, 0x6e, 0x10, 0x7c, 0xaa, 0x45, 0xdb, 0xa0, 0x53, 0x2f, 0x9c, 0xc0, 0xa9, 0x17, 0x47, 0x68, 0xe0, 0x25, 0x98, 0xc1, 0xad, 0x7d, 0x8f, 0x12, 0x27, 0xf1, 0xed, 0x6a, 0xf2, 0x93, 0xe0, - 0xfb, 0xd2, 0xc3, 0x5b, 0x3f, 0x31, 0x60, 0x3e, 0xcf, 0xf3, 0x73, 0x58, 0x01, 0x66, 0x67, 0x9c, + 0xfb, 0xd2, 0xc3, 0x5b, 0x3f, 0x36, 0x60, 0x3e, 0xcf, 0xf3, 0x73, 0x58, 0x01, 0x66, 0x67, 0x9c, 0x62, 0x7e, 0xc6, 0x19, 0xa1, 0x83, 0xd2, 0x93, 0xe8, 0xe0, 0x7f, 0x16, 0x61, 0x41, 0x44, 0xd6, 0xcd, 0xc3, 0xa0, 0xc1, 0x30, 0xeb, 0xd1, 0xd3, 0x68, 0xe1, 0x22, 0x68, 0x89, 0x67, 0xd6, 0x7b, 0xa0, 0x40, 0x7c, 0xcd, 0xb5, 0x04, 0x65, 0xd9, 0x03, 0x6d, 0xda, 0x13, 0xa2, 0x03, 0x94, 0xcb, @@ -10936,7 +10952,7 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x5c, 0x3c, 0x23, 0x10, 0x8d, 0x34, 0x16, 0xff, 0x22, 0xac, 0xa4, 0x3e, 0x3a, 0xbb, 0xfe, 0x10, 0x36, 0x57, 0x11, 0x85, 0xea, 0x09, 0xc5, 0x80, 0x7f, 0xe1, 0x2d, 0xed, 0x93, 0xd8, 0xdb, 0xed, 0x3b, 0x1e, 0x75, 0x94, 0x50, 0xe4, 0xb4, 0x6d, 0xcf, 0x48, 0xc4, 0x26, 0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51, - 0xf5, 0x1f, 0x2b, 0xe9, 0xff, 0x65, 0xc0, 0xd2, 0x76, 0xa7, 0x4f, 0x3d, 0x17, 0xfb, 0x4f, 0xb3, - 0x43, 0x36, 0x9a, 0xa5, 0x53, 0xec, 0x8b, 0x59, 0x1f, 0x40, 0x7d, 0x98, 0xa1, 0x63, 0x75, 0x93, - 0x28, 0xa0, 0xf0, 0x18, 0x05, 0x7c, 0xdf, 0x00, 0xd4, 0x88, 0x7c, 0x8f, 0xd9, 0x62, 0x64, 0x9c, - 0x6e, 0x27, 0x70, 0x92, 0xf2, 0x1a, 0xd2, 0xe1, 0x2c, 0x53, 0x4f, 0x04, 0x90, 0x77, 0xea, 0x02, - 0x40, 0x42, 0xa0, 0xb7, 0x4e, 0x27, 0x35, 0x96, 0xa2, 0x15, 0x98, 0xf4, 0xa8, 0x13, 0xe3, 0x03, - 0x67, 0x6f, 0x5f, 0xfb, 0x42, 0x8f, 0xda, 0xf8, 0xe0, 0xde, 0xbe, 0xf5, 0x63, 0x03, 0xe6, 0x72, - 0xec, 0x9d, 0x7e, 0xb8, 0xbf, 0x04, 0x25, 0x9f, 0xec, 0x32, 0xb5, 0x93, 0x52, 0x5b, 0x53, 0x19, - 0xf0, 0xb2, 0x62, 0xc1, 0xb1, 0xc0, 0xa3, 0xab, 0x30, 0x1e, 0x7b, 0xed, 0x0e, 0x53, 0x3b, 0x48, - 0xa3, 0x08, 0x25, 0x01, 0xba, 0xca, 0x1d, 0x73, 0x5b, 0x9c, 0xce, 0xc8, 0xad, 0xb2, 0x01, 0x5a, - 0x5b, 0xa3, 0xad, 0xff, 0x62, 0x80, 0x69, 0x13, 0xdc, 0xda, 0x0c, 0x5a, 0xe4, 0xf0, 0x34, 0x32, - 0xce, 0x2e, 0x90, 0x0b, 0xf9, 0x05, 0x72, 0x3a, 0x27, 0x15, 0x1f, 0x33, 0x27, 0x59, 0xff, 0xdb, - 0x80, 0xd9, 0x0c, 0x1b, 0xa7, 0x97, 0xe5, 0x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 0xd6, 0xdd, 0x46, 0x18, 0xd0, 0x5e, 0x37, 0x12, 0xb9, 0x22, 0x9a, 0x1a, 0xbd, 0x02, 0xb3, - 0xe1, 0x3e, 0x89, 0x63, 0xaf, 0x45, 0x9c, 0xc4, 0x13, 0xca, 0x13, 0x41, 0x53, 0x23, 0xb6, 0x15, - 0xdc, 0xfa, 0xef, 0x06, 0x40, 0xda, 0xc9, 0xdc, 0x6c, 0x64, 0xe4, 0x63, 0x91, 0x17, 0x61, 0xda, - 0x0d, 0x83, 0x80, 0x88, 0x44, 0x32, 0x2e, 0x75, 0x75, 0x14, 0x99, 0x02, 0x37, 0x5b, 0x7c, 0x28, - 0x73, 0x39, 0x72, 0xb4, 0x4a, 0x35, 0xe4, 0x9f, 0x9b, 0x2d, 0x71, 0x90, 0x49, 0x28, 0x17, 0xb9, - 0x83, 0x7d, 0x4f, 0xed, 0x25, 0x4d, 0xda, 0x53, 0x0a, 0x78, 0x9d, 0xc3, 0xac, 0xef, 0x15, 0xa1, - 0xa2, 0xa3, 0x88, 0xa1, 0xe4, 0x52, 0x63, 0x38, 0xb9, 0xf4, 0x32, 0x4c, 0x89, 0x6c, 0xb6, 0xfc, - 0x79, 0x45, 0x95, 0xc3, 0xb4, 0x7e, 0x87, 0x67, 0xb7, 0x6c, 0xb6, 0x5d, 0x29, 0x9f, 0x6d, 0x97, - 0xbd, 0x82, 0x34, 0x9e, 0xbf, 0x82, 0x74, 0x55, 0x25, 0xce, 0x89, 0xc4, 0x76, 0x39, 0xad, 0x54, - 0x13, 0x2b, 0xd9, 0x8a, 0x64, 0xca, 0x5c, 0xb3, 0x1f, 0x11, 0xf4, 0x0a, 0x20, 0x41, 0x99, 0xcf, - 0x29, 0x2e, 0x8b, 0xea, 0x66, 0x38, 0x26, 0x73, 0xe5, 0x65, 0xe4, 0x8d, 0xa4, 0xca, 0xc8, 0x1b, - 0x49, 0x43, 0x77, 0x06, 0x26, 0x87, 0xef, 0x0c, 0x0c, 0xdc, 0x5a,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x1a, 0x92, 0x24, 0x53, 0x7e, 0xa4, 0x40, 0x92, 0xee, 0x0d, 0x08, 0xe4, - 0xe1, 0x71, 0x02, 0x19, 0x3f, 0x52, 0x20, 0x5f, 0x86, 0x0a, 0x5f, 0xda, 0x8a, 0xd0, 0x70, 0x1e, - 0xc6, 0x05, 0x85, 0xe8, 0x7f, 0xd1, 0x96, 0x1f, 0x3c, 0xce, 0x50, 0x1c, 0x12, 0x19, 0x9c, 0x16, - 0xed, 0x14, 0x90, 0x6c, 0x6b, 0xed, 0xf4, 0x19, 0x91, 0x3d, 0x2a, 0xca, 0x6d, 0xad, 0x1b, 0x1c, - 0x60, 0xfd, 0x67, 0x1e, 0x07, 0xbb, 0x38, 0x50, 0xe6, 0xf3, 0x32, 0x8c, 0x8b, 0x2b, 0xc2, 0x43, - 0x96, 0xa7, 0x79, 0xb0, 0x25, 0x1e, 0x5d, 0x81, 0x52, 0x72, 0xf5, 0x69, 0x24, 0x9d, 0x40, 0x73, - 0xb2, 0x16, 0x66, 0x78, 0x68, 0x4f, 0x29, 0x25, 0xe3, 0x68, 0xeb, 0xef, 0xc7, 0xe5, 0xe3, 0x07, - 0x89, 0xd6, 0x5f, 0x05, 0x94, 0x74, 0x41, 0x87, 0xb9, 0x5a, 0xed, 0xb3, 0x09, 0x46, 0x05, 0xbb, - 0x14, 0xbd, 0x05, 0x4b, 0xc3, 0xe4, 0xd9, 0x2b, 0xf5, 0x0b, 0x43, 0x65, 0x44, 0x74, 0x7b, 0x05, - 0x6a, 0x52, 0x21, 0x49, 0x13, 0x2a, 0xb9, 0x5c, 0x40, 0x93, 0xea, 0xbf, 0x04, 0xe7, 0x63, 0xbe, - 0x10, 0x6d, 0xed, 0x38, 0x2d, 0x71, 0x9c, 0xe7, 0xd0, 0x3d, 0x2f, 0x8a, 0x84, 0x8b, 0xed, 0x05, - 0x4c, 0xd9, 0xc9, 0xb2, 0xa2, 0x91, 0x27, 0x7e, 0x0d, 0x49, 0xb1, 0xc1, 0x09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, 0x92, 0x4c, 0x6d, 0x52, 0x2b, 0xa0, 0x24, 0xe2, 0x53, 0x64, 0x27, 0x0e, 0x19, 0x4b, - 0xda, 0x37, 0xd5, 0x14, 0xa9, 0xa0, 0x92, 0xec, 0xdf, 0xc0, 0xb9, 0xc1, 0x2b, 0xaa, 0x59, 0x06, - 0x66, 0x55, 0x24, 0x35, 0xf8, 0xc8, 0x82, 0x76, 0x83, 0x1f, 0xc0, 0x84, 0x4c, 0xcb, 0x48, 0xb3, - 0xc3, 0x8d, 0xc7, 0xe4, 0xc7, 0x9f, 0x30, 0x7b, 0xd1, 0xfa, 0xba, 0x01, 0x15, 0x7d, 0xb1, 0x0c, - 0x9d, 0x83, 0x42, 0x18, 0xa9, 0x07, 0x1a, 0x72, 0xfb, 0x58, 0x85, 0x30, 0x3a, 0x71, 0x3e, 0x64, - 0x6e, 0x05, 0x51, 0x3a, 0xc1, 0x0a, 0xc2, 0xfa, 0x79, 0x01, 0x26, 0x1f, 0xec, 0xbb, 0xae, 0x50, - 0x17, 0xba, 0x98, 0x7b, 0x27, 0x22, 0xc7, 0x86, 0x7c, 0x0d, 0xe2, 0x98, 0x93, 0xd1, 0x73, 0x43, - 0x6f, 0x22, 0x64, 0xee, 0x4b, 0x5e, 0x84, 0x2a, 0xed, 0x84, 0x31, 0x73, 0x32, 0xaf, 0x22, 0xd8, - 0x20, 0x40, 0xe2, 0x05, 0x0e, 0x1e, 0x27, 0x75, 0x30, 0x75, 0xc2, 0x7d, 0x12, 0xfb, 0x58, 0x84, - 0x20, 0xfa, 0x8e, 0xb2, 0xca, 0x59, 0x5c, 0xe8, 0x60, 0xba, 0x95, 0x60, 0xf5, 0xe5, 0x1f, 0x74, - 0x09, 0xa6, 0x78, 0xb9, 0xb6, 0xeb, 0xec, 0x8a, 0xb7, 0x28, 0x64, 0xce, 0x0e, 0x74, 0x30, 0xbd, - 0xe3, 0xde, 0x16, 0x8f, 0x51, 0x2c, 0x43, 0x25, 0xc1, 0xca, 0xb1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0x4b, 0xb3, 0x32, 0xa7, 0x27, - 0xa5, 0x90, 0xa9, 0x1a, 0x66, 0x61, 0xf5, 0x65, 0x80, 0xd4, 0xb9, 0xa1, 0x09, 0x28, 0x3c, 0x7a, - 0xcd, 0x1c, 0x43, 0x93, 0x30, 0xfe, 0xe8, 0xb5, 0x66, 0xf3, 0xbe, 0x69, 0x08, 0xd0, 0xba, 0x59, - 0x58, 0x7d, 0x05, 0x20, 0xcd, 0x5b, 0x47, 0x00, 0x13, 0x49, 0xd3, 0x65, 0x28, 0xde, 0x0f, 0x0f, - 0x4c, 0x03, 0x55, 0xa0, 0x74, 0xd7, 0x6b, 0x77, 0xcc, 0xc2, 0xea, 0x35, 0xa8, 0xe5, 0x93, 0xd5, - 0x79, 0x35, 0x8d, 0x4d, 0x73, 0x8c, 0xff, 0xda, 0x1b, 0xa6, 0x21, 0xf2, 0x86, 0x36, 0x64, 0xde, - 0x50, 0xc3, 0x2c, 0xac, 0x3e, 0x82, 0x6a, 0x26, 0xf1, 0x99, 0xf3, 0xfa, 0x30, 0x64, 0xd7, 0x7d, - 0x3f, 0x3c, 0x20, 0xad, 0xad, 0x80, 0x83, 0xa5, 0xc8, 0x12, 0xd0, 0x75, 0xbf, 0x1b, 0x52, 0x26, - 0x10, 0x06, 0xaa, 0xc3, 0x7c, 0x06, 0x21, 0xb2, 0x8c, 0x04, 0xa6, 0xb0, 0xea, 0x42, 0x61, 0x2b, - 0xe2, 0x1c, 0x6e, 0xf7, 0x98, 0x64, 0xf5, 0x26, 0xf1, 0x25, 0xab, 0x42, 0xdc, 0x05, 0x34, 0x05, - 0x15, 0xbd, 0xb1, 0x6a, 0x16, 0x79, 0xbf, 0x36, 0x03, 0x4a, 0x62, 0x66, 0x96, 0xd0, 0x1c, 0xcc, - 0x0c, 0x28, 0xc2, 0x1c, 0x47, 0x08, 0x6a, 0x82, 0x6b, 0x3d, 0x07, 0x52, 0x73, 0x62, 0x75, 0x0d, - 0x26, 0x93, 0x7d, 0x66,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c, 0xcc, 0x53, 0x1c, 0xba, + 0x21, 0x80, 0x62, 0x7b, 0x61, 0x29, 0x09, 0xdc, 0xf4, 0x0e, 0x9d, 0x2c, 0xa1, 0x46, 0xf3, 0xbc, + 0x46, 0xcb, 0xed, 0x39, 0x59, 0xd0, 0xfa, 0xa2, 0x14, 0xac, 0xec, 0xde, 0x31, 0xeb, 0xc0, 0x91, + 0x0f, 0x6c, 0x58, 0xdf, 0x2f, 0x42, 0x85, 0x17, 0x17, 0xbb, 0xaa, 0x4f, 0xa3, 0x96, 0xcc, 0x26, + 0x4b, 0x31, 0xbf, 0xc9, 0xf2, 0x58, 0x9d, 0x0c, 0x67, 0xd3, 0x9e, 0xe4, 0x41, 0x97, 0xec, 0x96, + 0x6d, 0x79, 0x70, 0xcb, 0xf6, 0xa4, 0x7b, 0xab, 0x03, 0xfb, 0xa6, 0x93, 0xc3, 0xfb, 0xa6, 0x17, + 0xa1, 0x9a, 0x5c, 0x71, 0x67, 0x72, 0x67, 0xb5, 0x64, 0x83, 0x06, 0x35, 0xe9, 0x08, 0xe5, 0x56, + 0x9f, 0x4c, 0xb9, 0x53, 0xc7, 0x28, 0xf7, 0x1b, 0x86, 0x54, 0x8f, 0x58, 0xfc, 0xe8, 0x15, 0x87, + 0x31, 0xe2, 0x74, 0x56, 0x64, 0x8f, 0xc8, 0x15, 0xc7, 0x2a, 0x4c, 0x08, 0xaf, 0xa9, 0xd3, 0x44, + 0x50, 0x8e, 0x50, 0x0c, 0x40, 0x5b, 0x51, 0x70, 0x5a, 0xf5, 0x4a, 0x48, 0x71, 0x04, 0xad, 0x50, + 0x8f, 0x7e, 0x39, 0xc4, 0x7a, 0x1d, 0xca, 0xea, 0xae, 0x90, 0xd0, 0xd8, 0x61, 0xa0, 0x2c, 0x8c, + 0xff, 0x45, 0x8b, 0x30, 0x41, 0xc5, 0xbd, 0x79, 0x65, 0x17, 0xea, 0xcb, 0x7a, 0x47, 0xec, 0x1c, + 0x8b, 0x84, 0x85, 0x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, 0x1f, 0x7a, 0xb0, 0x56, 0xa6, 0x06, 0xa5, 0x14, 0x32, + 0xe3, 0xc3, 0x2c, 0xac, 0xbe, 0x0c, 0x90, 0xfa, 0x48, 0x34, 0x01, 0x85, 0x47, 0xaf, 0x99, 0x63, + 0x68, 0x12, 0xc6, 0x1f, 0xbd, 0xd6, 0x6c, 0xde, 0x37, 0x0d, 0x01, 0x5a, 0x37, 0x0b, 0xab, 0xaf, + 0x00, 0xa4, 0xe9, 0xef, 0x08, 0x60, 0x22, 0x69, 0xba, 0x0c, 0xc5, 0xfb, 0xe1, 0x81, 0x69, 0xa0, + 0x0a, 0x94, 0xee, 0x7a, 0xed, 0x8e, 0x59, 0x58, 0xbd, 0x06, 0xb5, 0x7c, 0xce, 0x3b, 0xaf, 0xa6, + 0xb1, 0x69, 0x8e, 0xf1, 0x5f, 0x7b, 0xc3, 0x34, 0x44, 0xfa, 0xd1, 0x86, 0x4c, 0x3f, 0x6a, 0x98, + 0x85, 0xd5, 0x47, 0x50, 0xcd, 0xe4, 0x4f, 0x73, 0x5e, 0x1f, 0x86, 0xec, 0xba, 0xef, 0x87, 0x07, + 0xa4, 0xb5, 0x15, 0x70, 0xb0, 0x14, 0x59, 0x02, 0xba, 0xee, 0x77, 0x43, 0xca, 0x04, 0xc2, 0x40, + 0x75, 0x98, 0xcf, 0x20, 0x44, 0xb2, 0x92, 0xc0, 0x14, 0x56, 0x5d, 0x28, 0x6c, 0x45, 0x9c, 0xc3, + 0xed, 0x1e, 0x93, 0xac, 0xde, 0x24, 0xbe, 0x64, 0x55, 0x88, 0xbb, 0x80, 0xa6, 0xa0, 0xa2, 0xf7, + 0x67, 0xcd, 0x22, 0xef, 0xd7, 0x66, 0x40, 0x49, 0xcc, 0xcc, 0x12, 0x9a, 0x83, 0x99, 0x01, 0x45, + 0x98, 0xe3, 0x08, 0x41, 0x4d, 0x70, 0xad, 0xa7, 0x52, 0x6a, 0x4e, 0xac, 0xae, 0xc1, 0x64, 0xb2, + 0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, 0xb8, 0xbd, 0xc6, 0xbc, 0xbd, 0xfd, 0x35, 0x35, 0xbb, + 0xec, 0x4c, 0x88, 0x9f, 0xd7, 0xff, 0x39, 0x00, 0x00, 0xff, 0xff, 0x15, 0x5a, 0x1d, 0xcf, 0xc4, + 0x64, 0x00, 0x00, } func (m *GetRequest) Marshal() (dAtA []byte, err error) { @@ -19639,7 +19656,7 @@ func (m *TxnEntry_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ScanTxnEntriesRequest) Marshal() (dAtA []byte, err error) { +func (m *ScanTxnEntryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -19649,12 +19666,12 @@ func (m *ScanTxnEntriesRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ScanTxnEntriesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ScanTxnEntryRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ScanTxnEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScanTxnEntryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -19663,34 +19680,39 @@ func (m *ScanTxnEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if m.KeyOnly { - i-- - if m.KeyOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } if m.Limit != 0 { i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x30 } if len(m.EndKey) > 0 { i -= len(m.EndKey) copy(dAtA[i:], m.EndKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.EndKey))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a } if len(m.StartKey) > 0 { i -= len(m.StartKey) copy(dAtA[i:], m.StartKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.StartKey))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 + } + if m.KeyOnly { + i-- + if m.KeyOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.MaxVersion != 0 { + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxVersion)) + i-- + dAtA[i] = 0x10 } if m.Context != nil { { @@ -19707,7 +19729,7 @@ func (m *ScanTxnEntriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ScanTxnEntriesResponse) Marshal() (dAtA []byte, err error) { +func (m *ScanTxnEntryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -19717,12 +19739,12 @@ func (m *ScanTxnEntriesResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ScanTxnEntriesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *ScanTxnEntryResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ScanTxnEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScanTxnEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -19742,9 +19764,21 @@ func (m *ScanTxnEntriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } if m.RegionError != nil { { size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) @@ -23485,7 +23519,7 @@ func (m *TxnEntry_Commit) Size() (n int) { return n } -func (m *ScanTxnEntriesRequest) Size() (n int) { +func (m *ScanTxnEntryRequest) Size() (n int) { if m == nil { return 0 } @@ -23495,6 +23529,12 @@ func (m *ScanTxnEntriesRequest) Size() (n int) { l = m.Context.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.MaxVersion != 0 { + n += 1 + sovKvrpcpb(uint64(m.MaxVersion)) + } + if m.KeyOnly { + n += 2 + } l = len(m.StartKey) if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) @@ -23506,16 +23546,13 @@ func (m *ScanTxnEntriesRequest) Size() (n int) { if m.Limit != 0 { n += 1 + sovKvrpcpb(uint64(m.Limit)) } - if m.KeyOnly { - n += 2 - } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } -func (m *ScanTxnEntriesResponse) Size() (n int) { +func (m *ScanTxnEntryResponse) Size() (n int) { if m == nil { return 0 } @@ -23525,6 +23562,10 @@ func (m *ScanTxnEntriesResponse) Size() (n int) { l = m.RegionError.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovKvrpcpb(uint64(l)) + } if len(m.Entries) > 0 { for _, e := range m.Entries { l = e.Size() @@ -45900,7 +45941,7 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { +func (m *ScanTxnEntryRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -45923,10 +45964,10 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScanTxnEntriesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ScanTxnEntryRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScanTxnEntriesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScanTxnEntryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -45966,6 +46007,45 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxVersion", wireType) + } + m.MaxVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxVersion |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.KeyOnly = bool(v != 0) + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) } @@ -45999,7 +46079,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { m.StartKey = []byte{} } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) } @@ -46033,7 +46113,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { m.EndKey = []byte{} } iNdEx = postIndex - case 4: + case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } @@ -46052,26 +46132,6 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { break } } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowKvrpcpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.KeyOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) @@ -46094,7 +46154,7 @@ func (m *ScanTxnEntriesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { +func (m *ScanTxnEntryResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -46117,10 +46177,10 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScanTxnEntriesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ScanTxnEntryResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScanTxnEntriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScanTxnEntryResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -46160,6 +46220,42 @@ func (m *ScanTxnEntriesResponse) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + 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 ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &KeyError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) } diff --git a/pkg/tikvpb/tikvpb.pb.go b/pkg/tikvpb/tikvpb.pb.go index b6452b12f..1163bc02a 100644 --- a/pkg/tikvpb/tikvpb.pb.go +++ b/pkg/tikvpb/tikvpb.pb.go @@ -120,7 +120,7 @@ type BatchCommandsRequest_Request struct { // *BatchCommandsRequest_Request_RawCoprocessor // *BatchCommandsRequest_Request_FlashbackToVersion // *BatchCommandsRequest_Request_PrepareFlashbackToVersion - // *BatchCommandsRequest_Request_ScanTxnEntries + // *BatchCommandsRequest_Request_ScanTxnEntry // *BatchCommandsRequest_Request_Empty Cmd isBatchCommandsRequest_Request_Cmd `protobuf_oneof:"cmd"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -257,8 +257,8 @@ type BatchCommandsRequest_Request_FlashbackToVersion struct { type BatchCommandsRequest_Request_PrepareFlashbackToVersion struct { PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionRequest `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` } -type BatchCommandsRequest_Request_ScanTxnEntries struct { - ScanTxnEntries *kvrpcpb.ScanTxnEntriesRequest `protobuf:"bytes,37,opt,name=ScanTxnEntries,proto3,oneof" json:"ScanTxnEntries,omitempty"` +type BatchCommandsRequest_Request_ScanTxnEntry struct { + ScanTxnEntry *kvrpcpb.ScanTxnEntryRequest `protobuf:"bytes,37,opt,name=ScanTxnEntry,proto3,oneof" json:"ScanTxnEntry,omitempty"` } type BatchCommandsRequest_Request_Empty struct { Empty *BatchCommandsEmptyRequest `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` @@ -294,7 +294,7 @@ func (*BatchCommandsRequest_Request_CheckSecondaryLocks) isBatchCommandsRequest_ func (*BatchCommandsRequest_Request_RawCoprocessor) isBatchCommandsRequest_Request_Cmd() {} func (*BatchCommandsRequest_Request_FlashbackToVersion) isBatchCommandsRequest_Request_Cmd() {} func (*BatchCommandsRequest_Request_PrepareFlashbackToVersion) isBatchCommandsRequest_Request_Cmd() {} -func (*BatchCommandsRequest_Request_ScanTxnEntries) isBatchCommandsRequest_Request_Cmd() {} +func (*BatchCommandsRequest_Request_ScanTxnEntry) isBatchCommandsRequest_Request_Cmd() {} func (*BatchCommandsRequest_Request_Empty) isBatchCommandsRequest_Request_Cmd() {} func (m *BatchCommandsRequest_Request) GetCmd() isBatchCommandsRequest_Request_Cmd { @@ -514,9 +514,9 @@ func (m *BatchCommandsRequest_Request) GetPrepareFlashbackToVersion() *kvrpcpb.P return nil } -func (m *BatchCommandsRequest_Request) GetScanTxnEntries() *kvrpcpb.ScanTxnEntriesRequest { - if x, ok := m.GetCmd().(*BatchCommandsRequest_Request_ScanTxnEntries); ok { - return x.ScanTxnEntries +func (m *BatchCommandsRequest_Request) GetScanTxnEntry() *kvrpcpb.ScanTxnEntryRequest { + if x, ok := m.GetCmd().(*BatchCommandsRequest_Request_ScanTxnEntry); ok { + return x.ScanTxnEntry } return nil } @@ -561,7 +561,7 @@ func (*BatchCommandsRequest_Request) XXX_OneofWrappers() []interface{} { (*BatchCommandsRequest_Request_RawCoprocessor)(nil), (*BatchCommandsRequest_Request_FlashbackToVersion)(nil), (*BatchCommandsRequest_Request_PrepareFlashbackToVersion)(nil), - (*BatchCommandsRequest_Request_ScanTxnEntries)(nil), + (*BatchCommandsRequest_Request_ScanTxnEntry)(nil), (*BatchCommandsRequest_Request_Empty)(nil), } } @@ -662,7 +662,7 @@ type BatchCommandsResponse_Response struct { // *BatchCommandsResponse_Response_RawCoprocessor // *BatchCommandsResponse_Response_FlashbackToVersion // *BatchCommandsResponse_Response_PrepareFlashbackToVersion - // *BatchCommandsResponse_Response_ScanTxnEntries + // *BatchCommandsResponse_Response_ScanTxnEntry // *BatchCommandsResponse_Response_Empty Cmd isBatchCommandsResponse_Response_Cmd `protobuf_oneof:"cmd"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -799,8 +799,8 @@ type BatchCommandsResponse_Response_FlashbackToVersion struct { type BatchCommandsResponse_Response_PrepareFlashbackToVersion struct { PrepareFlashbackToVersion *kvrpcpb.PrepareFlashbackToVersionResponse `protobuf:"bytes,36,opt,name=PrepareFlashbackToVersion,proto3,oneof" json:"PrepareFlashbackToVersion,omitempty"` } -type BatchCommandsResponse_Response_ScanTxnEntries struct { - ScanTxnEntries *kvrpcpb.ScanTxnEntriesResponse `protobuf:"bytes,37,opt,name=ScanTxnEntries,proto3,oneof" json:"ScanTxnEntries,omitempty"` +type BatchCommandsResponse_Response_ScanTxnEntry struct { + ScanTxnEntry *kvrpcpb.ScanTxnEntryResponse `protobuf:"bytes,37,opt,name=ScanTxnEntry,proto3,oneof" json:"ScanTxnEntry,omitempty"` } type BatchCommandsResponse_Response_Empty struct { Empty *BatchCommandsEmptyResponse `protobuf:"bytes,255,opt,name=Empty,proto3,oneof" json:"Empty,omitempty"` @@ -837,8 +837,8 @@ func (*BatchCommandsResponse_Response_RawCoprocessor) isBatchCommandsResponse_Re func (*BatchCommandsResponse_Response_FlashbackToVersion) isBatchCommandsResponse_Response_Cmd() {} func (*BatchCommandsResponse_Response_PrepareFlashbackToVersion) isBatchCommandsResponse_Response_Cmd() { } -func (*BatchCommandsResponse_Response_ScanTxnEntries) isBatchCommandsResponse_Response_Cmd() {} -func (*BatchCommandsResponse_Response_Empty) isBatchCommandsResponse_Response_Cmd() {} +func (*BatchCommandsResponse_Response_ScanTxnEntry) isBatchCommandsResponse_Response_Cmd() {} +func (*BatchCommandsResponse_Response_Empty) isBatchCommandsResponse_Response_Cmd() {} func (m *BatchCommandsResponse_Response) GetCmd() isBatchCommandsResponse_Response_Cmd { if m != nil { @@ -1057,9 +1057,9 @@ func (m *BatchCommandsResponse_Response) GetPrepareFlashbackToVersion() *kvrpcpb return nil } -func (m *BatchCommandsResponse_Response) GetScanTxnEntries() *kvrpcpb.ScanTxnEntriesResponse { - if x, ok := m.GetCmd().(*BatchCommandsResponse_Response_ScanTxnEntries); ok { - return x.ScanTxnEntries +func (m *BatchCommandsResponse_Response) GetScanTxnEntry() *kvrpcpb.ScanTxnEntryResponse { + if x, ok := m.GetCmd().(*BatchCommandsResponse_Response_ScanTxnEntry); ok { + return x.ScanTxnEntry } return nil } @@ -1104,7 +1104,7 @@ func (*BatchCommandsResponse_Response) XXX_OneofWrappers() []interface{} { (*BatchCommandsResponse_Response_RawCoprocessor)(nil), (*BatchCommandsResponse_Response_FlashbackToVersion)(nil), (*BatchCommandsResponse_Response_PrepareFlashbackToVersion)(nil), - (*BatchCommandsResponse_Response_ScanTxnEntries)(nil), + (*BatchCommandsResponse_Response_ScanTxnEntry)(nil), (*BatchCommandsResponse_Response_Empty)(nil), } } @@ -1274,169 +1274,169 @@ func init() { func init() { proto.RegisterFile("tikvpb.proto", fileDescriptor_274fe050f0c997b3) } var fileDescriptor_274fe050f0c997b3 = []byte{ - // 2584 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0x4b, 0x53, 0x1b, 0xc9, - 0x1d, 0xc0, 0x07, 0x5b, 0xe6, 0xd1, 0x2c, 0x06, 0x1a, 0x30, 0xc3, 0x2c, 0x06, 0x7b, 0x8c, 0xbd, - 0xec, 0xa6, 0x8a, 0xd8, 0x5e, 0x67, 0x9d, 0x7d, 0x64, 0x83, 0x11, 0x36, 0xb0, 0x82, 0x5a, 0x95, - 0x24, 0xef, 0x3a, 0xa9, 0xa4, 0xa8, 0x46, 0x6a, 0xc4, 0x04, 0x69, 0x46, 0x99, 0x69, 0x84, 0x75, - 0xcf, 0x87, 0xc8, 0x25, 0x87, 0xdc, 0xf2, 0x39, 0x72, 0xca, 0x31, 0xc7, 0x1c, 0x53, 0xce, 0x67, - 0xc8, 0x39, 0xa9, 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0x50, 0xc9, 0x67, 0xf4, 0xc9, 0xb0, 0xdd, 0x3e, 0xc0, 0x64, - 0x6f, 0x54, 0xc3, 0x23, 0xe9, 0x8c, 0x96, 0xc5, 0xc5, 0x33, 0x5a, 0xd5, 0xca, 0x1b, 0x91, 0x6b, - 0x9a, 0x04, 0xc5, 0xa4, 0x95, 0x48, 0x1b, 0x51, 0x57, 0x15, 0x37, 0x62, 0xd1, 0x42, 0x22, 0xe4, - 0x39, 0xa5, 0x7e, 0x86, 0xeb, 0x65, 0xff, 0x56, 0xe1, 0xdd, 0x2f, 0xfd, 0x93, 0x46, 0x36, 0x1f, - 0x87, 0x60, 0x7e, 0x3f, 0x48, 0x06, 0xd4, 0xe2, 0xa4, 0x5e, 0x6f, 0xa1, 0x84, 0x62, 0x72, 0x7f, - 0x30, 0xd8, 0xc9, 0xa5, 0x54, 0x24, 0x30, 0xb9, 0xa8, 0xe1, 0xad, 0xdb, 0x03, 0x73, 0x55, 0x14, - 0xb6, 0x71, 0x2f, 0x8f, 0x73, 0x8f, 0x59, 0xa7, 0x32, 0x39, 0xca, 0x6a, 0x41, 0xce, 0x63, 0xb4, - 0xc0, 0xbd, 0xd7, 0x09, 0x41, 0x67, 0xbd, 0x20, 0xa1, 0xcd, 0xa9, 0x46, 0x61, 0x88, 0xdb, 0x24, - 0xa5, 0x44, 0xea, 0x64, 0x56, 0xe6, 0x81, 0x21, 0xb3, 0x39, 0xa9, 0xd7, 0xf7, 0x11, 0x41, 0x75, - 0xd4, 0xbe, 0xc4, 0x84, 0xed, 0xf6, 0x2f, 0xc0, 0xd4, 0x51, 0xf2, 0xaa, 0x17, 0x0c, 0x31, 0x5c, - 0x62, 0x26, 0xd9, 0x6f, 0xe2, 0xe5, 0x40, 0x11, 0x4a, 0xad, 0x59, 0x6a, 0x60, 0x5a, 0x2c, 0x65, - 0x3d, 0xca, 0xca, 0xca, 0x75, 0x66, 0x9e, 0x6a, 0x84, 0x58, 0x8c, 0xba, 0x59, 0xcb, 0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 0x77, 0x83, 0x8d, 0x28, 0x0c, 0x6f, 0x60, 0x2a, 0x01, 0xde, - 0x42, 0x7a, 0x18, 0x48, 0xc9, 0x9e, 0x68, 0x11, 0x74, 0x83, 0x3c, 0xd3, 0x27, 0x63, 0xed, 0x78, - 0x9a, 0xdf, 0x82, 0x85, 0x37, 0x98, 0x16, 0x22, 0x4c, 0x59, 0x47, 0x5d, 0x9c, 0x14, 0xd2, 0xe8, - 0x06, 0xe2, 0x06, 0x51, 0xed, 0x98, 0x52, 0x3a, 0x61, 0xce, 0xd8, 0xe6, 0x49, 0x1d, 0xab, 0x51, - 0x78, 0x1e, 0x74, 0xe1, 0x63, 0xcd, 0x45, 0xd3, 0xe7, 0x91, 0x9f, 0x8c, 0x33, 0xcb, 0xdb, 0xbf, - 0xf7, 0xe4, 0x5f, 0x7f, 0x9b, 0x9e, 0xf8, 0xc7, 0x87, 0x8d, 0x89, 0x7f, 0x7e, 0xd8, 0x98, 0xf8, - 0xf7, 0x87, 0x8d, 0x89, 0x3f, 0xff, 0x67, 0xc3, 0x01, 0x0b, 0x51, 0xdc, 0x65, 0xe7, 0xfc, 0xce, - 0xe5, 0x90, 0xfd, 0x5b, 0xde, 0xd9, 0x24, 0xfb, 0xf1, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x5d, 0x90, 0x6c, 0x0b, 0x33, 0x28, 0x00, 0x00, + // 2581 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0xdb, 0x52, 0x1b, 0xc9, + 0x19, 0x80, 0x07, 0x1b, 0x73, 0x68, 0x16, 0x03, 0x0d, 0x98, 0x61, 0xcc, 0xc1, 0x1e, 0x63, 0x2f, + 0xde, 0x54, 0x11, 0xdb, 0xeb, 0xac, 0xb3, 0x87, 0x6c, 0x30, 0xc2, 0x06, 0x56, 0x50, 0xab, 0x92, + 0xe4, 0x5d, 0x27, 0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dd, 0x0d, 0x06, 0x18, 0x2e, 0x32, 0x93, 0xec, + 0x37, 0xf1, 0x66, 0xa0, 0x08, 0xa5, 0xd6, 0x2c, 0xd6, 0x31, 0x2d, 0x96, 0xb2, 0x1e, 0x65, 0x65, + 0xe5, 0x1a, 0x33, 0x4f, 0x35, 0x42, 0x2c, 0x46, 0xdd, 0xac, 0xe5, 0x51, 0x0f, 0xc1, 0x4c, 0x7a, + 0x53, 0x60, 0xd4, 0xc6, 0xb1, 0xb4, 0x03, 0x24, 0x69, 0x71, 0x07, 0x28, 0xca, 0xec, 0xad, 0xa4, + 0x0a, 0xee, 0x1e, 0x60, 0xd2, 0x20, 0x51, 0x8c, 0x1b, 0xe8, 0x1c, 0x37, 0x1b, 0xf2, 0x76, 0x12, + 0x52, 0xc3, 0x76, 0x92, 0x95, 0x59, 0xb0, 0x26, 0x98, 0x3b, 0xc0, 0x84, 0x1e, 0xfd, 0x3f, 0xa2, + 0x80, 0x1c, 0x85, 0xe7, 0x91, 0xf4, 0x9e, 0xa0, 0x69, 0x8a, 0xef, 0x09, 0x05, 0x83, 0x2c, 0xea, + 0x37, 0x60, 0x92, 0xe1, 0x4a, 0x8b, 0x40, 0xa5, 0x80, 0xa5, 0x12, 0x43, 0x65, 0x99, 0x2b, 0x32, + 0xef, 0xdf, 0x03, 0x28, 0x05, 0x3e, 0x0c, 0x12, 0x12, 0xc5, 0x43, 0xe9, 0xd6, 0x2c, 0x2a, 0x8b, + 0xb7, 0xa6, 0xc9, 0x26, 0x0b, 0x7f, 0x06, 0x96, 0x0f, 0x30, 0x69, 0x06, 0xac, 0xa6, 0x68, 0x0c, + 0x13, 0x82, 0x7b, 0xec, 0xec, 0x92, 0x32, 0x14, 0x95, 0xc5, 0x0c, 0x26, 0x1b, 0x89, 0x52, 0x01, + 0x89, 0x87, 0xaf, 0xdb, 0xed, 0xec, 0x46, 0x56, 0xff, 0xbb, 0xaa, 0xc9, 0x55, 0xe2, 0x20, 0xb0, + 0x5b, 0x48, 0xac, 0x32, 0x4b, 0xe2, 0xe1, 0x09, 0x8a, 0x2f, 0x33, 0x1c, 0x7f, 0x54, 0xf4, 0x12, + 0x5a, 0xf1, 0x1a, 0x51, 0x6a, 0xc4, 0xa3, 0x87, 0x60, 0x91, 0xef, 0xb3, 0x7d, 0xe6, 0xc1, 0xb6, + 0xf3, 0x53, 0xcd, 0xdd, 0x60, 0x23, 0x0a, 0xc3, 0x1b, 0x98, 0x4a, 0x80, 0x37, 0x9f, 0x1e, 0x06, + 0x52, 0xb2, 0x27, 0x5a, 0x04, 0xdd, 0x20, 0xcf, 0xf4, 0xe9, 0x48, 0x3b, 0x9e, 0xe6, 0xb7, 0x60, + 0xfe, 0x2d, 0xa6, 0x85, 0x08, 0x53, 0xd6, 0x50, 0x07, 0x27, 0x85, 0x34, 0xba, 0x81, 0xb8, 0x41, + 0x54, 0x3b, 0xa6, 0x94, 0x4e, 0x98, 0x33, 0xb6, 0x79, 0x52, 0xc7, 0x4a, 0x14, 0x9e, 0x07, 0x1d, + 0xf8, 0x58, 0x73, 0xd1, 0xf4, 0x79, 0xe4, 0x27, 0xa3, 0xcc, 0xf2, 0xf6, 0xef, 0x3d, 0xf9, 0xe7, + 0x5f, 0xa7, 0xc6, 0xfe, 0xfe, 0x71, 0x63, 0xec, 0x1f, 0x1f, 0x37, 0xc6, 0xfe, 0xf5, 0x71, 0x63, + 0xec, 0xcf, 0xff, 0xde, 0x70, 0xc0, 0x7c, 0x14, 0x77, 0xd8, 0x39, 0xbf, 0x73, 0x39, 0x60, 0xff, + 0x84, 0x77, 0x36, 0xc1, 0x7e, 0x7c, 0xfe, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x73, 0x5d, + 0xb3, 0x21, 0x28, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1454,7 +1454,7 @@ type TikvClient interface { // Commands using a transactional interface. KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) - KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEntriesRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntriesResponse, error) + KvScanTxnEntry(ctx context.Context, in *kvrpcpb.ScanTxnEntryRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntryResponse, error) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) KvPessimisticLock(ctx context.Context, in *kvrpcpb.PessimisticLockRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticLockResponse, error) KVPessimisticRollback(ctx context.Context, in *kvrpcpb.PessimisticRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.PessimisticRollbackResponse, error) @@ -1580,9 +1580,9 @@ func (c *tikvClient) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts . return out, nil } -func (c *tikvClient) KvScanTxnEntries(ctx context.Context, in *kvrpcpb.ScanTxnEntriesRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntriesResponse, error) { - out := new(kvrpcpb.ScanTxnEntriesResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScanTxnEntries", in, out, opts...) +func (c *tikvClient) KvScanTxnEntry(ctx context.Context, in *kvrpcpb.ScanTxnEntryRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanTxnEntryResponse, error) { + out := new(kvrpcpb.ScanTxnEntryResponse) + err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvScanTxnEntry", in, out, opts...) if err != nil { return nil, err } @@ -2381,7 +2381,7 @@ type TikvServer interface { // Commands using a transactional interface. KvGet(context.Context, *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) KvScan(context.Context, *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) - KvScanTxnEntries(context.Context, *kvrpcpb.ScanTxnEntriesRequest) (*kvrpcpb.ScanTxnEntriesResponse, error) + KvScanTxnEntry(context.Context, *kvrpcpb.ScanTxnEntryRequest) (*kvrpcpb.ScanTxnEntryResponse, error) KvPrewrite(context.Context, *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) KvPessimisticLock(context.Context, *kvrpcpb.PessimisticLockRequest) (*kvrpcpb.PessimisticLockResponse, error) KVPessimisticRollback(context.Context, *kvrpcpb.PessimisticRollbackRequest) (*kvrpcpb.PessimisticRollbackResponse, error) @@ -2491,8 +2491,8 @@ func (*UnimplementedTikvServer) KvGet(ctx context.Context, req *kvrpcpb.GetReque func (*UnimplementedTikvServer) KvScan(ctx context.Context, req *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KvScan not implemented") } -func (*UnimplementedTikvServer) KvScanTxnEntries(ctx context.Context, req *kvrpcpb.ScanTxnEntriesRequest) (*kvrpcpb.ScanTxnEntriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvScanTxnEntries not implemented") +func (*UnimplementedTikvServer) KvScanTxnEntry(ctx context.Context, req *kvrpcpb.ScanTxnEntryRequest) (*kvrpcpb.ScanTxnEntryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KvScanTxnEntry not implemented") } func (*UnimplementedTikvServer) KvPrewrite(ctx context.Context, req *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KvPrewrite not implemented") @@ -2727,20 +2727,20 @@ func _Tikv_KvScan_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Tikv_KvScanTxnEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(kvrpcpb.ScanTxnEntriesRequest) +func _Tikv_KvScanTxnEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(kvrpcpb.ScanTxnEntryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TikvServer).KvScanTxnEntries(ctx, in) + return srv.(TikvServer).KvScanTxnEntry(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/tikvpb.Tikv/KvScanTxnEntries", + FullMethod: "/tikvpb.Tikv/KvScanTxnEntry", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TikvServer).KvScanTxnEntries(ctx, req.(*kvrpcpb.ScanTxnEntriesRequest)) + return srv.(TikvServer).KvScanTxnEntry(ctx, req.(*kvrpcpb.ScanTxnEntryRequest)) } return interceptor(ctx, in, info, handler) } @@ -3962,8 +3962,8 @@ var _Tikv_serviceDesc = grpc.ServiceDesc{ Handler: _Tikv_KvScan_Handler, }, { - MethodName: "KvScanTxnEntries", - Handler: _Tikv_KvScanTxnEntries_Handler, + MethodName: "KvScanTxnEntry", + Handler: _Tikv_KvScanTxnEntry_Handler, }, { MethodName: "KvPrewrite", @@ -4993,16 +4993,16 @@ func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) MarshalToSizedB } return len(dAtA) - i, nil } -func (m *BatchCommandsRequest_Request_ScanTxnEntries) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchCommandsRequest_Request_ScanTxnEntry) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchCommandsRequest_Request_ScanTxnEntries) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchCommandsRequest_Request_ScanTxnEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.ScanTxnEntries != nil { + if m.ScanTxnEntry != nil { { - size, err := m.ScanTxnEntries.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ScanTxnEntry.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5799,16 +5799,16 @@ func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) MarshalToSize } return len(dAtA) - i, nil } -func (m *BatchCommandsResponse_Response_ScanTxnEntries) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchCommandsResponse_Response_ScanTxnEntry) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchCommandsResponse_Response_ScanTxnEntries) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchCommandsResponse_Response_ScanTxnEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.ScanTxnEntries != nil { + if m.ScanTxnEntry != nil { { - size, err := m.ScanTxnEntries.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ScanTxnEntry.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6366,14 +6366,14 @@ func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) } return n } -func (m *BatchCommandsRequest_Request_ScanTxnEntries) Size() (n int) { +func (m *BatchCommandsRequest_Request_ScanTxnEntry) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ScanTxnEntries != nil { - l = m.ScanTxnEntries.Size() + if m.ScanTxnEntry != nil { + l = m.ScanTxnEntry.Size() n += 2 + l + sovTikvpb(uint64(l)) } return n @@ -6793,14 +6793,14 @@ func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int } return n } -func (m *BatchCommandsResponse_Response_ScanTxnEntries) Size() (n int) { +func (m *BatchCommandsResponse_Response_ScanTxnEntry) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ScanTxnEntries != nil { - l = m.ScanTxnEntries.Size() + if m.ScanTxnEntry != nil { + l = m.ScanTxnEntry.Size() n += 2 + l + sovTikvpb(uint64(l)) } return n @@ -8116,7 +8116,7 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 37: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScanTxnEntries", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ScanTxnEntry", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8143,11 +8143,11 @@ func (m *BatchCommandsRequest_Request) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &kvrpcpb.ScanTxnEntriesRequest{} + v := &kvrpcpb.ScanTxnEntryRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Cmd = &BatchCommandsRequest_Request_ScanTxnEntries{v} + m.Cmd = &BatchCommandsRequest_Request_ScanTxnEntry{v} iNdEx = postIndex case 255: if wireType != 2 { @@ -9467,7 +9467,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 37: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScanTxnEntries", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ScanTxnEntry", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9494,11 +9494,11 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &kvrpcpb.ScanTxnEntriesResponse{} + v := &kvrpcpb.ScanTxnEntryResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Cmd = &BatchCommandsResponse_Response_ScanTxnEntries{v} + m.Cmd = &BatchCommandsResponse_Response_ScanTxnEntry{v} iNdEx = postIndex case 255: if wireType != 2 { diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index b9d3474ee..e3b990a35 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -1550,19 +1550,21 @@ message TxnEntry { } } -// ScanTxnEntriesRequest is like ScanRequest, but retrieves transaction entries +// ScanTxnEntryRequest is like ScanRequest, but retrieves transaction entries // instead of key-value pairs. -message ScanTxnEntriesRequest { +message ScanTxnEntryRequest { Context context = 1; + uint64 max_version = 2; + bool key_only = 3; // `start_key` and `end_key` must be specified; `limit` is optional. - bytes start_key = 2; - bytes end_key = 3; - uint32 limit = 4; - bool key_only = 5; + bytes start_key = 4; + bytes end_key = 5; + uint32 limit = 6; } -message ScanTxnEntriesResponse { +message ScanTxnEntryResponse { errorpb.Error region_error = 1; - repeated TxnEntry entries = 2; + KeyError error = 2; + repeated TxnEntry entries = 3; } diff --git a/proto/tikvpb.proto b/proto/tikvpb.proto index 42ca49313..eb0ad2d27 100644 --- a/proto/tikvpb.proto +++ b/proto/tikvpb.proto @@ -22,7 +22,7 @@ service Tikv { // Commands using a transactional interface. rpc KvGet(kvrpcpb.GetRequest) returns (kvrpcpb.GetResponse) {} rpc KvScan(kvrpcpb.ScanRequest) returns (kvrpcpb.ScanResponse) {} - rpc KvScanTxnEntries(kvrpcpb.ScanTxnEntriesRequest) returns (kvrpcpb.ScanTxnEntriesResponse) {} + rpc KvScanTxnEntry(kvrpcpb.ScanTxnEntryRequest) returns (kvrpcpb.ScanTxnEntryResponse) {} rpc KvPrewrite(kvrpcpb.PrewriteRequest) returns (kvrpcpb.PrewriteResponse) {} rpc KvPessimisticLock(kvrpcpb.PessimisticLockRequest) returns (kvrpcpb.PessimisticLockResponse) {} rpc KVPessimisticRollback(kvrpcpb.PessimisticRollbackRequest) returns (kvrpcpb.PessimisticRollbackResponse) {} @@ -180,7 +180,7 @@ message BatchCommandsRequest { kvrpcpb.FlashbackToVersionRequest FlashbackToVersion = 35; kvrpcpb.PrepareFlashbackToVersionRequest PrepareFlashbackToVersion = 36; - kvrpcpb.ScanTxnEntriesRequest ScanTxnEntries = 37; + kvrpcpb.ScanTxnEntryRequest ScanTxnEntry = 37; // For some test cases. BatchCommandsEmptyRequest Empty = 255; @@ -236,7 +236,7 @@ message BatchCommandsResponse { kvrpcpb.FlashbackToVersionResponse FlashbackToVersion = 35; kvrpcpb.PrepareFlashbackToVersionResponse PrepareFlashbackToVersion = 36; - kvrpcpb.ScanTxnEntriesResponse ScanTxnEntries = 37; + kvrpcpb.ScanTxnEntryResponse ScanTxnEntry = 37; // For some test cases. BatchCommandsEmptyResponse Empty = 255; diff --git a/scripts/proto.lock b/scripts/proto.lock index 700b52597..c3576b6ab 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -11279,7 +11279,7 @@ ] }, { - "name": "ScanTxnEntriesRequest", + "name": "ScanTxnEntryRequest", "fields": [ { "id": 1, @@ -11288,28 +11288,33 @@ }, { "id": 2, + "name": "max_version", + "type": "uint64" + }, + { + "id": 3, + "name": "key_only", + "type": "bool" + }, + { + "id": 4, "name": "start_key", "type": "bytes" }, { - "id": 3, + "id": 5, "name": "end_key", "type": "bytes" }, { - "id": 4, + "id": 6, "name": "limit", "type": "uint32" - }, - { - "id": 5, - "name": "key_only", - "type": "bool" } ] }, { - "name": "ScanTxnEntriesResponse", + "name": "ScanTxnEntryResponse", "fields": [ { "id": 1, @@ -11318,6 +11323,11 @@ }, { "id": 2, + "name": "error", + "type": "KeyError" + }, + { + "id": 3, "name": "entries", "type": "TxnEntry", "is_repeated": true @@ -19493,8 +19503,8 @@ }, { "id": 37, - "name": "ScanTxnEntries", - "type": "kvrpcpb.ScanTxnEntriesRequest" + "name": "ScanTxnEntry", + "type": "kvrpcpb.ScanTxnEntryRequest" }, { "id": 255, @@ -19690,8 +19700,8 @@ }, { "id": 37, - "name": "ScanTxnEntries", - "type": "kvrpcpb.ScanTxnEntriesResponse" + "name": "ScanTxnEntry", + "type": "kvrpcpb.ScanTxnEntryResponse" }, { "id": 255, @@ -19762,9 +19772,9 @@ "out_type": "kvrpcpb.ScanResponse" }, { - "name": "KvScanTxnEntries", - "in_type": "kvrpcpb.ScanTxnEntriesRequest", - "out_type": "kvrpcpb.ScanTxnEntriesResponse" + "name": "KvScanTxnEntry", + "in_type": "kvrpcpb.ScanTxnEntryRequest", + "out_type": "kvrpcpb.ScanTxnEntryResponse" }, { "name": "KvPrewrite", From 155d810a451fa244a72cd85c8a85663729a55ba2 Mon Sep 17 00:00:00 2001 From: qupeng Date: Mon, 16 Oct 2023 18:32:26 +0800 Subject: [PATCH 4/4] handle prewrite lock without value Signed-off-by: qupeng --- pkg/kvrpcpb/kvrpcpb.pb.go | 922 ++++++++++++++++++++------------------ proto/kvrpcpb.proto | 13 +- scripts/proto.lock | 25 +- 3 files changed, 504 insertions(+), 456 deletions(-) diff --git a/pkg/kvrpcpb/kvrpcpb.pb.go b/pkg/kvrpcpb/kvrpcpb.pb.go index 2191f2f85..99d4cca7b 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -10398,9 +10398,10 @@ func (*TxnEntry) XXX_OneofWrappers() []interface{} { type TxnEntry_Prewrite struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - PrimaryKey []byte `protobuf:"bytes,4,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + PrimaryKey []byte `protobuf:"bytes,3,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + HasValue bool `protobuf:"varint,5,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -10446,13 +10447,6 @@ func (m *TxnEntry_Prewrite) GetKey() []byte { return nil } -func (m *TxnEntry_Prewrite) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - func (m *TxnEntry_Prewrite) GetStartTs() uint64 { if m != nil { return m.StartTs @@ -10467,11 +10461,25 @@ func (m *TxnEntry_Prewrite) GetPrimaryKey() []byte { return nil } +func (m *TxnEntry_Prewrite) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *TxnEntry_Prewrite) GetHasValue() bool { + if m != nil { + return m.HasValue + } + return false +} + type TxnEntry_Commit struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - StartTs uint64 `protobuf:"varint,3,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - CommitTs uint64 `protobuf:"varint,4,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` + CommitTs uint64 `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -10517,13 +10525,6 @@ func (m *TxnEntry_Commit) GetKey() []byte { return nil } -func (m *TxnEntry_Commit) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - func (m *TxnEntry_Commit) GetStartTs() uint64 { if m != nil { return m.StartTs @@ -10538,6 +10539,13 @@ func (m *TxnEntry_Commit) GetCommitTs() uint64 { return 0 } +func (m *TxnEntry_Commit) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + // ScanTxnEntryRequest is like ScanRequest, but retrieves transaction entries // instead of key-value pairs. type ScanTxnEntryRequest struct { @@ -10848,15 +10856,15 @@ func init() { func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } var fileDescriptor_1afe832be69693c7 = []byte{ - // 7043 bytes of a gzipped FileDescriptorProto + // 7061 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x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0x44, 0x64, 0x66, 0x64, 0x44, 0x64, 0x64, 0x64, 0x66, 0x64, 0xc2, 0xf4, 0xde, 0x7e, 0x1c, 0xb9, 0xd1, 0xce, 0x5a, 0x14, 0x87, 0x2c, 0x44, 0x65, 0xf5, 0xb9, 0x32, 0xd5, 0x25, 0x0c, 0x6b, 0xf0, 0xca, 0x34, 0x89, 0xe3, 0x30, 0x4e, 0x3e, 0xe7, 0xdb, 0x61, 0x3b, 0x14, 0x7f, 0xaf, @@ -10874,7 +10882,7 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x4b, 0x97, 0x8c, 0xab, 0x15, 0xbb, 0x12, 0x84, 0xec, 0x36, 0xff, 0x46, 0x6f, 0xc3, 0x0c, 0x39, 0x24, 0xae, 0xd3, 0x22, 0x0c, 0x7b, 0x3e, 0x75, 0xf6, 0xd7, 0xeb, 0x13, 0xa2, 0x95, 0xc5, 0xa4, 0x95, 0x5b, 0x87, 0xc4, 0xbd, 0x29, 0xd1, 0x8f, 0xd6, 0xed, 0x69, 0x92, 0xfd, 0x7c, 0xb7, 0x54, - 0x19, 0x37, 0x27, 0xac, 0xbf, 0x33, 0xa0, 0xda, 0x70, 0x71, 0x70, 0x1a, 0x61, 0x9e, 0x83, 0x49, + 0x19, 0x37, 0x27, 0xac, 0xbf, 0x31, 0xa0, 0xda, 0x70, 0x71, 0x70, 0x1a, 0x61, 0x9e, 0x83, 0x49, 0xca, 0x70, 0xcc, 0x9c, 0x54, 0xa4, 0x15, 0x01, 0xb8, 0x47, 0xfa, 0xbc, 0x47, 0xbe, 0xd7, 0xf5, 0x98, 0xe8, 0xd1, 0xb4, 0x2d, 0x3f, 0xb2, 0xd2, 0x2e, 0xe5, 0xa4, 0x8d, 0x96, 0xa1, 0xb2, 0x47, 0xfa, 0x4e, 0x18, 0xf8, 0xfd, 0xfa, 0xb8, 0xe8, 0x6a, 0x79, 0x8f, 0xf4, 0xb7, 0x02, 0x5f, 0xa8, @@ -10889,7 +10897,7 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x1f, 0xba, 0x7b, 0xe8, 0x45, 0x98, 0x96, 0x3a, 0xce, 0xab, 0x6d, 0x4a, 0x00, 0x1f, 0xa5, 0xba, 0xe3, 0xe5, 0x1d, 0xc6, 0x7c, 0xa1, 0xbb, 0x92, 0x5d, 0xe6, 0xdf, 0x4d, 0xe6, 0xa3, 0x75, 0x58, 0xa0, 0x7b, 0x5e, 0xe4, 0xb8, 0x61, 0x40, 0x59, 0x8c, 0xbd, 0x80, 0x39, 0x6e, 0x87, 0xb8, 0x7b, - 0x4a, 0x93, 0x73, 0x1c, 0xb9, 0x91, 0xe0, 0x36, 0x38, 0x0a, 0xfd, 0x3b, 0x98, 0x8b, 0x08, 0xa5, + 0x4a, 0x93, 0x73, 0x1c, 0xb9, 0x91, 0xe0, 0x36, 0x38, 0x0a, 0xfd, 0x1b, 0x98, 0x8b, 0x08, 0xa5, 0x5e, 0xd7, 0xa3, 0xcc, 0x73, 0x1d, 0xec, 0xca, 0x1e, 0x95, 0x2f, 0x15, 0xaf, 0xd6, 0xd6, 0x57, 0x93, 0x1e, 0x0d, 0x88, 0x6a, 0x6d, 0x3b, 0x2d, 0x73, 0x5d, 0x14, 0xb1, 0x51, 0x34, 0x08, 0xa2, 0x9c, 0x57, 0x76, 0x18, 0x38, 0xd4, 0xfb, 0x1a, 0x11, 0x66, 0x51, 0xb2, 0xcb, 0xec, 0x30, 0x68, @@ -10910,10 +10918,10 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x62, 0xe3, 0xde, 0xe6, 0xb6, 0xb3, 0x7d, 0xab, 0xd1, 0xd8, 0x7c, 0xb0, 0xd9, 0x68, 0x6e, 0x6e, 0x38, 0x1b, 0x77, 0x6f, 0x6d, 0xdc, 0x33, 0xc7, 0x50, 0x1d, 0xe6, 0x6f, 0x6e, 0x8d, 0xc0, 0x18, 0x68, 0x09, 0xe6, 0x6e, 0x6e, 0x39, 0x1b, 0x5b, 0x0f, 0x1b, 0x4d, 0xfb, 0xfa, 0xe6, 0xc3, 0xa6, - 0x42, 0x14, 0xac, 0x7f, 0x34, 0xc0, 0x4c, 0x25, 0x71, 0x7a, 0x17, 0xf3, 0x49, 0x98, 0x10, 0xd8, + 0x42, 0x14, 0xac, 0x7f, 0x30, 0xc0, 0x4c, 0x25, 0x71, 0x7a, 0x17, 0xf3, 0x49, 0x98, 0x10, 0xd8, 0xe1, 0xf1, 0x9c, 0x38, 0x0f, 0x45, 0x30, 0x6c, 0x99, 0xc5, 0x61, 0xcb, 0x7c, 0x19, 0x4c, 0x69, 0x49, 0x19, 0x32, 0x39, 0xa0, 0xa7, 0x43, 0x6e, 0x50, 0x09, 0xe1, 0x88, 0xc9, 0x65, 0xfc, 0x09, - 0x26, 0x17, 0xeb, 0x47, 0x25, 0x58, 0xcc, 0x08, 0x99, 0xbb, 0x92, 0x7f, 0x2d, 0x1e, 0x6d, 0xc8, + 0x26, 0x17, 0xeb, 0x47, 0x25, 0x58, 0xcc, 0x08, 0x99, 0xbb, 0x92, 0x7f, 0x29, 0x1e, 0x6d, 0xc8, 0x4b, 0x4c, 0x8c, 0xf4, 0x12, 0x1e, 0x75, 0x76, 0xbd, 0x98, 0x32, 0xc9, 0x47, 0x59, 0x0c, 0xdc, 0xaa, 0x47, 0x6f, 0x73, 0x98, 0xe0, 0xe3, 0x32, 0x4c, 0x1d, 0x60, 0xae, 0x02, 0xaf, 0x4b, 0xc2, 0x1e, 0x13, 0xce, 0xa8, 0x68, 0x57, 0x39, 0xac, 0x29, 0x41, 0xa8, 0x0e, 0xe3, 0xbb, 0x61, 0xec, @@ -10924,25 +10932,25 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x7a, 0xaa, 0x3c, 0x92, 0xc9, 0x51, 0x7c, 0xae, 0xde, 0xdc, 0x15, 0x25, 0x28, 0xba, 0xc9, 0x7b, 0xb7, 0x47, 0x9c, 0x5e, 0xe4, 0x74, 0xc3, 0x16, 0x11, 0x8e, 0xa9, 0xb6, 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0x3e, 0xcf, 0xf3, 0x73, 0x58, 0x01, 0x66, 0x67, 0x9c, - 0x62, 0x7e, 0xc6, 0x19, 0xa1, 0x83, 0xd2, 0x93, 0xe8, 0xe0, 0x7f, 0x16, 0x61, 0x41, 0x44, 0xd6, + 0x62, 0x7e, 0xc6, 0x19, 0xa1, 0x83, 0xd2, 0x93, 0xe8, 0xe0, 0x7f, 0x14, 0x61, 0x41, 0x44, 0xd6, 0xcd, 0xc3, 0xa0, 0xc1, 0x30, 0xeb, 0xd1, 0xd3, 0x68, 0xe1, 0x22, 0x68, 0x89, 0x67, 0xd6, 0x7b, 0xa0, 0x40, 0x7c, 0xcd, 0xb5, 0x04, 0x65, 0xd9, 0x03, 0x6d, 0xda, 0x13, 0xa2, 0x03, 0x94, 0xcb, 0xdd, 0xc5, 0xbe, 0x4f, 0x62, 0x47, 0xea, 0x28, 0x0d, 0x3a, 0x24, 0xb8, 0xc1, 0xa1, 0x4d, 0xe1, @@ -10952,344 +10960,345 @@ var fileDescriptor_1afe832be69693c7 = []byte{ 0x5c, 0x3c, 0x23, 0x10, 0x8d, 0x34, 0x16, 0xff, 0x22, 0xac, 0xa4, 0x3e, 0x3a, 0xbb, 0xfe, 0x10, 0x36, 0x57, 0x11, 0x85, 0xea, 0x09, 0xc5, 0x80, 0x7f, 0xe1, 0x2d, 0xed, 0x93, 0xd8, 0xdb, 0xed, 0x3b, 0x1e, 0x75, 0x94, 0x50, 0xe4, 0xb4, 0x6d, 0xcf, 0x48, 0xc4, 0x26, 0xdd, 0x96, 0x60, 0xeb, - 0x27, 0x05, 0x58, 0x1c, 0xd4, 0xc7, 0xaf, 0xd6, 0xc2, 0xae, 0x40, 0x4d, 0xb9, 0xfe, 0x7c, 0x50, + 0x27, 0x05, 0x58, 0x1c, 0xd4, 0xc7, 0x2f, 0xd7, 0xc2, 0xae, 0x40, 0x4d, 0xb9, 0xfe, 0x7c, 0x50, 0x34, 0x2d, 0xa1, 0x7a, 0x00, 0xbd, 0x0c, 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0x06, 0x35, 0xe9, 0x08, 0xe5, 0x56, - 0x9f, 0x4c, 0xb9, 0x53, 0xc7, 0x28, 0xf7, 0x1b, 0x86, 0x54, 0x8f, 0x58, 0xfc, 0xe8, 0x15, 0x87, - 0x31, 0xe2, 0x74, 0x56, 0x64, 0x8f, 0xc8, 0x15, 0xc7, 0x2a, 0x4c, 0x08, 0xaf, 0xa9, 0xd3, 0x44, - 0x50, 0x8e, 0x50, 0x0c, 0x40, 0x5b, 0x51, 0x70, 0x5a, 0xf5, 0x4a, 0x48, 0x71, 0x04, 0xad, 0x50, - 0x8f, 0x7e, 0x39, 0xc4, 0x7a, 0x1d, 0xca, 0xea, 0xae, 0x90, 0xd0, 0xd8, 0x61, 0xa0, 0x2c, 0x8c, - 0xff, 0x45, 0x8b, 0x30, 0x41, 0xc5, 0xbd, 0x79, 0x65, 0x17, 0xea, 0xcb, 0x7a, 0x47, 0xec, 0x1c, - 0x8b, 0x84, 0x85, 0x7c, 0x8e, 0x8c, 0x71, 0x74, 0x86, 0x58, 0x21, 0x97, 0x21, 0xf6, 0x47, 0x06, - 0x80, 0x9c, 0x51, 0x44, 0xd3, 0xc7, 0x9e, 0x37, 0x2f, 0x41, 0x39, 0x22, 0x24, 0x4e, 0xcf, 0x28, - 0x26, 0xf8, 0xe7, 0x66, 0x2b, 0x39, 0x2e, 0x2e, 0x66, 0x8e, 0x8b, 0x07, 0x0f, 0xa7, 0x4b, 0x27, - 0x3c, 0x9c, 0x7e, 0x4d, 0xad, 0x27, 0x79, 0x0f, 0x89, 0xda, 0x6a, 0x46, 0x99, 0xf3, 0x2c, 0xdc, - 0x6a, 0x70, 0x8c, 0x5c, 0x63, 0x8a, 0xbf, 0xd6, 0x26, 0x4c, 0x26, 0xf0, 0xe1, 0x93, 0x51, 0x63, - 0xf4, 0xc9, 0xa8, 0xb8, 0x82, 0xc4, 0x52, 0x81, 0xe2, 0x5d, 0xd2, 0xa4, 0x56, 0x03, 0x90, 0x4c, - 0xe9, 0x12,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11, 0xa4, 0x7c, 0x9e, - 0xb5, 0x70, 0x56, 0xa0, 0xe2, 0xaa, 0xca, 0x93, 0x35, 0x8b, 0xfa, 0xe6, 0x16, 0x22, 0xb7, 0x60, - 0xf7, 0xf6, 0x93, 0x07, 0x60, 0x04, 0xe0, 0xde, 0xbe, 0x08, 0x3f, 0x25, 0x52, 0xee, 0x5e, 0xcb, - 0x18, 0x19, 0x04, 0x48, 0x6e, 0x5f, 0xff, 0xb0, 0x08, 0x53, 0x1b, 0x61, 0x37, 0xc2, 0x2e, 0x93, - 0x0c, 0x7c, 0x00, 0x0b, 0x24, 0x8e, 0x1d, 0x2f, 0xd8, 0xc7, 0xbe, 0xd7, 0x72, 0xf2, 0x11, 0x57, - 0x75, 0xfd, 0x13, 0xd9, 0x33, 0xe2, 0xa4, 0xd4, 0xa6, 0xa4, 0x6e, 0xa8, 0x68, 0xec, 0xee, 0x98, - 0x8d, 0x48, 0x3c, 0x08, 0x45, 0x3e, 0x9c, 0xe7, 0x55, 0x47, 0x2a, 0x6b, 0xd9, 0x51, 0x6b, 0xf2, - 0xc4, 0x61, 0xca, 0x8d, 0xae, 0xd5, 0x91, 0x2d, 0xe8, 0x54, 0xe7, 0xa6, 0x58, 0xa7, 0x2b, 0x57, - 0x7a, 0x77, 0xcc, 0xae, 0x93, 0x78, 0x34, 0x0e, 0x39, 0xb0, 0xc4, 0x5b, 0x73, 0x65, 0x25, 0x8e, - 0x17, 0x38, 0x51, 0x1c, 0xb6, 0x63, 0x42, 0xa9, 0xda, 0x16, 0x7b, 0x69, 0x64, 0x43, 0xea, 0xff, - 0x66, 0xb0, 0xad, 0xa8, 0xef, 0x8e, 0xd9, 0xf3, 0x24, 0x1e, 0x86, 0xa3, 0x5d, 0x58, 0xe1, 0x0d, - 0xb0, 0x30, 0x74, 0xba, 0x38, 0xe8, 0x3b, 0x11, 0x09, 0x5a, 0x5e, 0xd0, 0x76, 0x18, 0xa6, 0x7b, - 0x54, 0x85, 0x83, 0x57, 0x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0xe4, 0x4f, 0x73, 0x5e, 0x1f, 0x86, 0xec, 0xba, 0xef, 0x87, 0x07, - 0xa4, 0xb5, 0x15, 0x70, 0xb0, 0x14, 0x59, 0x02, 0xba, 0xee, 0x77, 0x43, 0xca, 0x04, 0xc2, 0x40, - 0x75, 0x98, 0xcf, 0x20, 0x44, 0xb2, 0x92, 0xc0, 0x14, 0x56, 0x5d, 0x28, 0x6c, 0x45, 0x9c, 0xc3, - 0xed, 0x1e, 0x93, 0xac, 0xde, 0x24, 0xbe, 0x64, 0x55, 0x88, 0xbb, 0x80, 0xa6, 0xa0, 0xa2, 0xf7, - 0x67, 0xcd, 0x22, 0xef, 0xd7, 0x66, 0x40, 0x49, 0xcc, 0xcc, 0x12, 0x9a, 0x83, 0x99, 0x01, 0x45, - 0x98, 0xe3, 0x08, 0x41, 0x4d, 0x70, 0xad, 0xa7, 0x52, 0x6a, 0x4e, 0xac, 0xae, 0xc1, 0x64, 0xb2, - 0x5d, 0xcd, 0x6b, 0x7e, 0x18, 0x06, 0x44, 0x0a, 0x51, 0x90, 0x98, 0x06, 0x6f, 0x44, 0x17, 0x90, - 0xd2, 0xc9, 0xbf, 0xcc, 0xce, 0xf9, 0xda, 0xda, 0xdd, 0x35, 0xc7, 0x78, 0xe9, 0xdb, 0x58, 0x14, - 0x01, 0x98, 0x68, 0xb0, 0x98, 0xab, 0xae, 0xb0, 0xfa, 0x3d, 0x03, 0x26, 0xd4, 0x7b, 0xe6, 0xa2, - 0x26, 0xf9, 0xdf, 0x1c, 0x43, 0x0b, 0x30, 0xdb, 0x6c, 0xde, 0x97, 0x09, 0x4d, 0x49, 0x2f, 0x84, - 0x3c, 0xc4, 0xd1, 0x8b, 0x6a, 0x32, 0xc1, 0x14, 0x78, 0x81, 0x07, 0x49, 0x06, 0x52, 0x63, 0xbb, - 0x47, 0x3b, 0xa4, 0x65, 0x16, 0xb9, 0xf5, 0x24, 0xf5, 0x8c, 0x78, 0x93, 0xd6, 0x2c, 0xa1, 0x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f7, 0x9c, 0xdd, 0x9e, 0xef, + 0x3b, 0x61, 0xc4, 0xea, 0x73, 0x42, 0xc9, 0xf3, 0x89, 0x92, 0x6f, 0x7a, 0x74, 0xef, 0x76, 0xcf, + 0xf7, 0xb7, 0x22, 0x66, 0x57, 0x5b, 0xe9, 0x07, 0x97, 0x39, 0x9f, 0xc4, 0x08, 0x8b, 0xfb, 0x4e, + 0x2c, 0x87, 0x78, 0x7d, 0x5e, 0xca, 0xdc, 0xa3, 0x36, 0x07, 0xeb, 0x81, 0xff, 0x06, 0x54, 0x71, + 0xe4, 0x25, 0xc7, 0x30, 0x0b, 0x03, 0xe6, 0x77, 0x7d, 0x7b, 0x53, 0xef, 0x63, 0x02, 0x8e, 0xbc, + 0x34, 0x7b, 0x67, 0x46, 0xee, 0x7a, 0xb2, 0x44, 0x0f, 0x8b, 0x42, 0x0f, 0xb5, 0x04, 0x2c, 0x15, + 0xf1, 0x79, 0x90, 0xf7, 0xb0, 0x1c, 0xed, 0x5d, 0x96, 0xc4, 0xc8, 0x58, 0x58, 0xd3, 0xb7, 0xb3, + 0x9a, 0xfc, 0x57, 0xbb, 0x98, 0x29, 0x96, 0xf9, 0x92, 0xba, 0x16, 0x5c, 0x3a, 0x52, 0x30, 0xf5, + 0xba, 0xf0, 0x02, 0xd3, 0x0a, 0xda, 0x10, 0x40, 0x2e, 0x72, 0x71, 0x0b, 0x43, 0x92, 0x2c, 0x4b, + 0xef, 0xcf, 0x0e, 0x03, 0x85, 0x5e, 0x85, 0xd9, 0x9d, 0x1e, 0xed, 0x3b, 0xac, 0x13, 0x13, 0xda, + 0x09, 0xfd, 0x16, 0x37, 0x81, 0x73, 0x22, 0x9e, 0x99, 0xe1, 0x88, 0xa6, 0x86, 0x3f, 0xa0, 0xe8, + 0x03, 0xa8, 0x27, 0xea, 0xe1, 0x0c, 0xc7, 0xa1, 0x9f, 0x30, 0x7e, 0x5e, 0x30, 0x7e, 0x31, 0x91, + 0x8c, 0xad, 0x08, 0x37,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d8, 0x4c, 0x75, 0xeb, 0x8f, 0x0c, 0x00, 0xbe, 0x4a, 0x92, 0x89, 0x3f, 0xe8, 0x93, + 0x30, 0x2b, 0xcc, 0xec, 0x00, 0xfb, 0xbe, 0x5c, 0x54, 0x75, 0xb5, 0x4c, 0x6a, 0x1c, 0xf1, 0x3e, + 0xf6, 0x7d, 0x4e, 0xfe, 0x80, 0xa2, 0x6b, 0x30, 0x1f, 0xc5, 0xa1, 0x4b, 0x28, 0xcd, 0x53, 0x2b, + 0x63, 0x51, 0xb8, 0x4c, 0x81, 0x35, 0x98, 0xdf, 0xdb, 0x17, 0x6b, 0x92, 0x7c, 0x01, 0x15, 0x63, + 0xed, 0xed, 0xf3, 0xd5, 0x49, 0x86, 0x7e, 0x1d, 0x16, 0x59, 0xc8, 0xb0, 0xef, 0xc4, 0x91, 0x9b, + 0x29, 0x11, 0x68, 0xe1, 0x21, 0x81, 0xb5, 0x23, 0x57, 0x97, 0x79, 0x48, 0xad, 0x6f, 0x16, 0x60, + 0x2a, 0xed, 0xce, 0xa3, 0xf5, 0x11, 0x1d, 0x0a, 0x46, 0x76, 0xe8, 0xe1, 0x11, 0x1d, 0x0a, 0x8e, + 0xea, 0xd0, 0x43, 0x8a, 0xde, 0x86, 0xf3, 0xba, 0x00, 0xed, 0xd1, 0x88, 0x04, 0xad, 0x7c, 0x41, + 0xd9, 0xb1, 0xba, 0xa2, 0x69, 0x48, 0x92, 0x4c, 0xf9, 0x91, 0x02, 0x49, 0xba, 0x37, 0x20, 0x90, + 0x87, 0xc7, 0x09, 0x64, 0xfc, 0x48, 0x81, 0x7c, 0x19, 0x2a, 0x7c, 0x69, 0x2b, 0x42, 0xc3, 0x79, + 0x18, 0x17, 0x14, 0xa2, 0xff, 0x45, 0x5b, 0x7e, 0xf0, 0x38, 0x43, 0x71, 0x48, 0x64, 0x70, 0x5a, + 0xb4, 0x53, 0x40, 0xb2, 0xad, 0xb5, 0xd3, 0x67, 0x44, 0xf6, 0xa8, 0x28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, 0x92, 0x93, 0x2f, 0x40, 0x2d, 0xc3, 0x89, + 0xb3, 0xbf, 0xae, 0x98, 0x59, 0x18, 0xc1, 0xcc, 0xa3, 0x75, 0x7b, 0x8a, 0x66, 0x47, 0xfd, 0x67, + 0x60, 0x4a, 0x78, 0x17, 0xdd, 0x66, 0x71, 0x60, 0x5d, 0x20, 0x02, 0x4d, 0xd5, 0x68, 0xf5, 0x20, + 0xfd, 0xe0, 0xad, 0x66, 0x78, 0x4d, 0x13, 0x96, 0x17, 0x46, 0xb0, 0xcb, 0x5b, 0x65, 0x99, 0x2f, + 0xeb, 0xeb, 0x65, 0xa8, 0x66, 0x6a, 0x46, 0xaf, 0xc3, 0x22, 0x65, 0x61, 0x4c, 0x9c, 0x1d, 0x3e, + 0x21, 0x67, 0xb5, 0x29, 0xfd, 0xcf, 0x9c, 0xc0, 0x8a, 0x13, 0xea, 0xd4, 0x12, 0xde, 0x14, 0x1e, + 0x48, 0x98, 0x20, 0x95, 0xf3, 0x48, 0x52, 0x4a, 0xba, 0x94, 0x79, 0x85, 0x6e, 0x88, 0x29, 0x44, + 0x17, 0x5b, 0x85, 0xd9, 0x88, 0x7b, 0x19, 0x71, 0x2d, 0xbf, 0xad, 0x0a, 0xa8, 0x08, 0x52, 0x21, + 0xee, 0x87, 0x6d, 0x49, 0xbb, 0x01, 0x17, 0x63, 0xbc, 0xcb, 0x9c, 0xd6, 0x8e, 0x23, 0xa5, 0xe4, + 0x13, 0xdc, 0x22, 0x71, 0xb6, 0x29, 0xe9, 0x4a, 0x56, 0x38, 0xd9, 0xcd, 0x1d, 0xd1, 0xa7, 0xfb, + 0x82, 0x26, 0x6d, 0x70, 0x1d, 0x16, 0x75, 0x25, 0x7a, 0x53, 0x56, 0x95, 0x55, 0x53, 0x90, 0x2c, + 0xdb, 0x90, 0x1b, 0xb4, 0xb2, 0xcc, 0xdb, 0x70, 0x3e, 0xdf, 0x70, 0x97, 0x74, 0x19, 0x5f, 0xc4, + 0xaa, 0x92,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 0x00, 0x00, 0xff, 0xff, 0x17, 0x0f, 0x68, + 0x1f, 0xe2, 0x64, 0x00, 0x00, } func (m *GetRequest) Marshal() (dAtA []byte, err error) { @@ -19576,24 +19585,34 @@ func (m *TxnEntry_Prewrite) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.HasValue { + i-- + if m.HasValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x22 + } if len(m.PrimaryKey) > 0 { i -= len(m.PrimaryKey) copy(dAtA[i:], m.PrimaryKey) i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if m.StartTs != 0 { i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) i-- - dAtA[i] = 0x18 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.Key) > 0 { i -= len(m.Key) @@ -19629,22 +19648,22 @@ func (m *TxnEntry_Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x22 + } if m.CommitTs != 0 { i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } if m.StartTs != 0 { i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) i-- - dAtA[i] = 0x18 - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.Key) > 0 { i -= len(m.Key) @@ -23476,10 +23495,6 @@ func (m *TxnEntry_Prewrite) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovKvrpcpb(uint64(l)) - } if m.StartTs != 0 { n += 1 + sovKvrpcpb(uint64(m.StartTs)) } @@ -23487,6 +23502,13 @@ func (m *TxnEntry_Prewrite) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } + if m.HasValue { + n += 2 + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -23503,16 +23525,16 @@ func (m *TxnEntry_Commit) Size() (n int) { if l > 0 { n += 1 + l + sovKvrpcpb(uint64(l)) } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovKvrpcpb(uint64(l)) - } if m.StartTs != 0 { n += 1 + sovKvrpcpb(uint64(m.StartTs)) } if m.CommitTs != 0 { n += 1 + sovKvrpcpb(uint64(m.CommitTs)) } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovKvrpcpb(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -45676,10 +45698,10 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } - var byteLen int + m.StartTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -45689,31 +45711,16 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrimaryKey", wireType) } - m.StartTs = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -45723,14 +45730,29 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrimaryKey = append(m.PrimaryKey[:0], dAtA[iNdEx:postIndex]...) + if m.PrimaryKey == nil { + m.PrimaryKey = []byte{} + } + iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrimaryKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -45757,11 +45779,31 @@ func (m *TxnEntry_Prewrite) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PrimaryKey = append(m.PrimaryKey[:0], dAtA[iNdEx:postIndex]...) - if m.PrimaryKey == nil { - m.PrimaryKey = []byte{} + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} } iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HasValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKvrpcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HasValue = bool(v != 0) default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) @@ -45848,10 +45890,10 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } - var byteLen int + m.StartTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -45861,31 +45903,16 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.StartTs |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthKvrpcpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) } - m.StartTs = 0 + m.CommitTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -45895,16 +45922,16 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.CommitTs |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - m.CommitTs = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKvrpcpb @@ -45914,11 +45941,26 @@ func (m *TxnEntry_Commit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CommitTs |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthKvrpcpb + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKvrpcpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKvrpcpb(dAtA[iNdEx:]) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index e3b990a35..0ab9976ae 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -1534,15 +1534,16 @@ message TiFlashSystemTableResponse { message TxnEntry { message Prewrite { bytes key = 1; - bytes value = 2; - uint64 start_ts = 3; - bytes primary_key = 4; + uint64 start_ts = 2; + bytes primary_key = 3; + bytes value = 4; + bool has_value = 5; } message Commit { bytes key = 1; - bytes value = 2; - uint64 start_ts = 3; - uint64 commit_ts = 4; + uint64 start_ts = 2; + uint64 commit_ts = 3; + bytes value = 4; } oneof entry { Prewrite prewrite = 1; diff --git a/scripts/proto.lock b/scripts/proto.lock index c3576b6ab..21c70384c 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -11236,18 +11236,23 @@ }, { "id": 2, - "name": "value", - "type": "bytes" + "name": "start_ts", + "type": "uint64" }, { "id": 3, - "name": "start_ts", - "type": "uint64" + "name": "primary_key", + "type": "bytes" }, { "id": 4, - "name": "primary_key", + "name": "value", "type": "bytes" + }, + { + "id": 5, + "name": "has_value", + "type": "bool" } ] }, @@ -11261,18 +11266,18 @@ }, { "id": 2, - "name": "value", - "type": "bytes" + "name": "start_ts", + "type": "uint64" }, { "id": 3, - "name": "start_ts", + "name": "commit_ts", "type": "uint64" }, { "id": 4, - "name": "commit_ts", - "type": "uint64" + "name": "value", + "type": "bytes" } ] }